Repository navigation
Call a slot's places "Spots" in the builder, and say what the counter counts - #565
Conversation
… counts
The slot editor labelled the number "Capacity" with an ∞ placeholder, and
the closed row showed a bare "2/15". Organizers in testing couldn't tell
what either meant. The signup page and help already say "spots".
- The editor's field is now "Spots", with a "No limit" placeholder and a
helper line ("How many places people can take. Leave blank for no
limit.") that screen readers get through aria-describedby.
- The closed row reads "2 of 15 taken", or "4 taken" with no limit.
- The help article, its UI list, walkthrough and slot screenshot, the
writing guide and the run skill's example use the new name.
Fixes #140.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JSFvq9kmjLEfXUBXpU4YwA
Tophat: passedI ran deb5a26 locally with
Not a failure, for whoever looks next: a row's hover toolbar (edit, duplicate, delete) still sits on top of the counter, as it did on For the owner (UX): in the builder, a slot's number field is now called Spots, with a line under it saying what it means and that blank means no limit, and an empty box says "No limit" instead of ∞. A closed slot row now reads "2 of 15 taken" (or "2 taken" when there's no limit) instead of "2/15". The help article's step and screenshot say Spots too. Compare Screenshots are in https://claude.ai/code/session_01VMapG32mqYajmgtbJ9mQsG. Generated by Claude Code |
richshaw
left a comment
There was a problem hiding this comment.
Review: passed (round 1)
The PR does what #140 asks, and it's done well. In SlotEditor the field's visible label and aria-label both read Spots. The placeholder is "No limit". The helper line has a useId id that the input's aria-describedby points at, and it sits inside the field's flex column, so it wraps under the w-20 input instead of widening the grid. In WysiwygSlot the closed row reads "N of M taken", or "N taken" when capacity === null. The public page's "spots left" wording is untouched. Internal names (capacity, onCapacity, onSetCapacity, the API and MCP argument) are unchanged, as the issue asks. The help article's UI key, step text, alt text and screenshot height match the screen, and the walkthrough finds the input by UI.spots. Nothing in src or tests/e2e still looks for the old Capacity label. docs/writing-help.md and the run-opensignup skill now say Spots too. Every "Done when" item is done.
Blocking (0): none.
Optional (1):
src/components/magic-compose/Drafting.tsx:311: the Magic Compose drafting preview still shows a bare0/{capacity ?? '∞'}per slot. It's a different screen from the builder this issue covers, and that column is only 50px wide, so it stays as it is. Worth bringing in line if that preview is ever reworked.
Earlier threads: none. Copilot couldn't review because the quota is used up.
Checks: CI is green on deb5a26 (lint-type-test, e2e, CodeQL). The tophat passed on deb5a26, the current head. I read the full diff against main and searched src, tests/e2e and the help docs for leftover Capacity labels and ∞ counters. On the checklist: no service, route, schema, policy guard or query changed, there's a CHANGELOG line under Changed, the help article and its walkthrough are updated, and nothing stored or sent changed, so no legal-page update is needed. The tophat's note that the row's hover toolbar covers the counter is how main already behaves, so it doesn't count against this PR.
Why owner: pipeline:ux. In the builder, a slot's number box is now Spots, with a helper line ("How many places people can take. Leave blank for no limit.") and a "No limit" placeholder. Closed rows read "2 of 15 taken" or "2 taken" instead of "2/15" and "2/∞". Compare the tophat's 565-base-editor and 565-base-rows with 565-head-editor-nolimit, 565-head-rows-after-signups and 565-head-phone-editor.
https://claude.ai/code/session_015GMDmEYwsPW8Y7siXex8F3
Generated by Claude Code
|
Approved by the owner at Session: https://claude.ai/code/session_014Zo1eizoiYtzTbeo28XM5B Generated by Claude Code |
|
Not merged. #562 just landed, and it conflicts with this PR in
Moving to Session: https://claude.ai/code/session_014Zo1eizoiYtzTbeo28XM5B Generated by Claude Code |
…s-wording # Conflicts: # CHANGELOG.md
|
I merged Before pushing I ran The PR has no commits of its own since the owner approved https://claude.ai/code/session_01PtqmJDYFWZ87GsyZe2Ay2u Generated by Claude Code |
Resolves conflicts with #565 and #567 in SlotEditor, WysiwygSlot, the SlotEditor tests and CHANGELOG by keeping both sides: the editor takes focusOnOpen/onFocused alongside the new taken/remindersOn props, and the focus ref sits on the field grid below the new signed-up note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015pfDqwVMpLjQtmFKGF5jBa
Fixes #140.
The problem
In the builder, the slot editor labelled the number of places Capacity, with an ∞ placeholder and no explanation, and a closed slot row showed a bare counter like "0/15". In user testing, organizers couldn't tell what the setting was for, or whether 15 meant items or people. The signup page and the help page already call these "spots", so the builder was the odd one out.
The fix
SlotEditor: the field's label andaria-labelare now Spots. A blank box shows "No limit" instead of ∞. A helper line under the input says "How many places people can take. Leave blank for no limit." and is tied to the input witharia-describedby(viauseId). It wraps inside the field's grid cell rather than widening the editor.WysiwygSlot: the closed row's counter reads "2 of 15 taken", or "4 taken" for an unlimited slot, instead of "2/15" and "4/∞". It counts spots taken on purpose, and the public page still counts spots left. I droppedfont-monofortabular-nums, because the longer wording needs less width in a proportional font. That's my call; the issue didn't say.capacity,onCapacity,onSetCapacity, the DB column, and the API and MCPcapacityargument).create-and-publish-a-signup, theUIkey went fromcapacity: 'Capacity'tospots: 'Spots', and the step gained "Leave it blank for no limit." The walkthrough finds the field byUI.spots. I re-tookslot.pngonly, because it's the only picture of this screen; the article's height went from 182 to 219 for the helper line. The re-run also changed five unrelated screenshots by a few pixels of font rendering, so I restored those.docs/writing-help.mdnow says the box is called Spots on screen, and the run-opensignup skill's example usesfill Spots = 2.Tests
SlotEditor.test.tsx,WysiwygSlot.test.tsxandBuildWysiwyg.test.tsxnow check the new label, the "No limit" placeholder, the helper text wired througharia-describedby, and both counter forms ("N of M taken", "N taken"). I updated the existing cases rather than deleting them. They failed before the component change and pass after it.pnpm lint && pnpm typecheck && pnpm knip && pnpm test: 1334 tests passed.pnpm build && pnpm budgets: the builder is at 151.4 kB against its 152 kB budget.organizer,a11y,enum-picker,reminder-fieldandslot-row-layoutspecs (18) all passed.https://claude.ai/code/session_01JSFvq9kmjLEfXUBXpU4YwA
Generated by Claude Code