Repository navigation
Description
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.
- 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.
- 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.
- A blank slot, with no value in any field.
- Fix: delete it.
- 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
mergeSlotsservice. - 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.
- 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
- A field with no name ("Untitled").
- Fix: an inline input; save it as the field's label.
- Dates repeat, but the page isn't grouped by them.
- Fix: set
settings.groupByFieldRefsto the date field. Never group in the card alone: the card, the preview and the public page must agree.
- Fix: set
- 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_shownandreview.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 testandpnpm test:dbpass.
Planned in https://claude.ai/code/session_01AkZbMUc4ej4ed7o5uh6nqr
Activity
Merge PR 3 (#525, #526 and PR 3's round) into the publish check
Merge PR 4 (with main's #568) into the fix focus
Say in the CHANGELOG how Publish anyway is recorded
Merge PR 4 (a pending fix kept through a new-tab click) into the fix …
richshaw commentedon Oct 24, 2026
From a UX walkthrough on 2026-10-24 (scenario O2), checked against
mainat4ed27a9. 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.DEFAULT_TEMPLATE(src/lib/signup-templates.ts): a What field, a Date field and no settings. SogroupByFieldRefstakes 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.BuildWysiwyg.tsx). Until then, the only way to add a day is Add a slot and setting each slot's date.create_signupthrough the samepersistDraft, keep the model'sgroupByonly when some group has two or more slots (hasUsableGroupinginsrc/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.Generated by Claude Code
Merge PR 4 (the owner's second round, PR 2's and PR 1's, #579) into t…
Merge PR 4 (its check fixes, PR 2's and PR 1's) into the fix focus
Merge PR 4's last edge-case fixes into the fix focus
richshaw commentedon Oct 30, 2026
Closing as done: the check at Publish shipped in #580 (
checkBeforePublishinsrc/lib/publish-check.ts).https://claude.ai/code/session_016YZ9SUWWJa1udHCjU5fUma
Generated by Claude Code