Skip to content

Find fixable problems in a draft and offer one-tap fixes #503

Closed

Description

@richshaw

Needs your OK: this adds notices and fixes to the review page (#502). Swap pipeline:proposed for pipeline:ready to have it built. Part of #498.

Why

Most drafts need nothing but a look and Publish. Some have problems the code can prove are there:

  • AI drafts with a row per person;
  • placeholder rows that still say "TBD";
  • fields nobody will fill in;
  • blank slots.

Showing those, with one tap to fix each, is cheaper and safer than building a custom editor for each signup's shape. That approach was tried and dropped; the canvas shows why.

Design: canvas https://claude.ai/artifact/RqcjzCcdSTw5JhbXjm2x5y, row C. See "C · Check and publish: an AI draft with two problems" (clickable) and "C · The same card on four common shapes (made-up data)".

The checks, in build order

Each check is a pure function over the signup's fields, slots and settings, returning { kind, slotIds | fieldId }. Checks run over every slot, not just the ones visible above the fold.

  1. Placeholder values. A slot value containing "TBD", "TBC" or "TBA". The Magic Compose prompt writes these on purpose when a description leaves something out (Magic Compose: one slot with N spots, not N copies of a row #501 keeps that rule).
    • Notice: "3 slots still say “TBD”, so people would see that on the page."
    • Fix: open the first one in the slot editor, then the next.
  2. A field that's empty on every slot. Usually a field meant for participants to fill in (Connected assistants add fields for things participants would type in #475), or the blank template's unused Date.
    • Notice: explains that people give their own name and email when they sign up.
    • Fix: delete the field.
  3. A blank slot, with no value in any field.
    • Fix: delete it.
  4. Identical rows, with the same value in every field.
    • Fix: one slot whose capacity is the sum of theirs, with the others deleted. Do it in one transaction with one activity row, through a small mergeSlots service.
    • Never offer it when the rows hold a placeholder, or when they're missing a value that other slots have, such as an unfilled time. Those are unfinished slots, not copies.
    • Numbered copies ("Helper 1", "Helper 2") count as copies only when every one has capacity 1 and none holds a placeholder. "TBD: game 1, game 2, game 3" are three different games.
  5. A field with no name ("Untitled").
    • Fix: an inline input; save it as the field's label.
  6. Dates repeat, but the page isn't grouped by them.
    • Fix: set settings.groupByFieldRefs to the date field. Never group in the card alone: the card, the preview and the public page must agree.
  7. Times typed into a text field, such as "Morning 8–12".
    • Notice only, with a link to the builder. No automatic conversion: these values are ranges, labels with a time in them, or other languages' formats.

Watch for

  • False fixes are worse than none. Keep every check exact. Test each one on synthetic fixtures, including the near misses above: numbered placeholders, and identical rows with a missing time.
  • Measure from day one. Record review.notice_shown and review.notice_accepted (Record link copies, failed AI drafts and refused publishes #500), by kind.
  • Drafts only. Merging slots on a published signup would move people who've signed up.
  • Undo. Offer Undo for the last fix.
  • Plain words. Follow docs/writing-help.md.

Done when

  • Each check has unit tests on made-up data, covering what it must catch and what it must leave alone.
  • Each fix goes through the existing services, or the new mergeSlots, with a DB test for the merge.
  • The review page lists the notices with their fixes, and Undo restores the last change.
  • pnpm lint && pnpm typecheck && pnpm knip && pnpm test and pnpm test:db pass.

Planned in https://claude.ai/code/session_01AkZbMUc4ej4ed7o5uh6nqr

Activity

  1. added
    enhancement
    pipeline:ux
    and removed on Oct 19, 2026
  2. richshaw commented on Oct 24, 2026

    @richshaw
    OwnerAuthor

    From a UX walkthrough on 2026-10-24 (scenario O2), checked against main at 4ed27a9. This adds to check 6 ("Dates repeat, but the page isn't grouped by them"), which #580 left out when this issue narrowed to the check at Publish.

    • A signup made by hand is never grouped. "Skip, fill in by hand" creates the signup from DEFAULT_TEMPLATE (src/lib/signup-templates.ts): a What field, a Date field and no settings. So groupByFieldRefs takes its default, [] (SignupSettingsSchema). An organizer building six food-bank shifts over two Saturdays had to find Fields → Group slots by → Date before the Build tab showed a heading for each day.
    • Grouping is also what shows "Add date". That button only appears when the group field is a Date field (BuildWysiwyg.tsx). Until then, the only way to add a day is Add a slot and setting each slot's date.
    • The AI paths decide case by case. Magic Compose, and the connector's create_signup through the same persistDraft, keep the model's groupBy only when some group has two or more slots (hasUsableGrouping in src/lib/magic-compose/to-template.ts). The prompt's grouping rules put "shift dates" under "Pure date list: groupBy = null", and don't name a days × shifts grid. So only the hand-built path is always ungrouped.
    • Grouping by default isn't the fix. Grouping every new signup by date would give a plain list of dated games one heading per slot. fix(magic-compose): demote groupBy when every group has one slot #110 removed exactly that from Magic Compose. Check 6's trigger, a date shared by two or more slots, is the right one.
    • Suggestion: run check 6 on the Build tab as soon as a date repeats, for example right after Duplicate, with a one-tap "Group by date" and Undo, not only when Publish is pressed. That fits the note on Epic: get new organizers from a draft to a shared link #498 that fixes probably belong on the Build page.

    Generated by Claude Code

  3. richshaw commented on Oct 30, 2026

    @richshaw
    OwnerAuthor

    Closing as done: the check at Publish shipped in #580 (checkBeforePublish in src/lib/publish-check.ts).

    https://claude.ai/code/session_016YZ9SUWWJa1udHCjU5fUma


    Generated by Claude Code

  4. removed
    pipeline:ux
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions