Skip to content

Call a slot's places "Spots" in the builder, and say what the counter counts - #565

Merged
richshaw merged 3 commits into
mainfrom
claude/issue-140-spots-wording
Oct 23, 2026
Merged

richshaw merged 3 commits into
mainfrom
claude/issue-140-spots-wording

Conversation

@richshaw

Copy link
Copy Markdown
Owner

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 and aria-label are 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 with aria-describedby (via useId). 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 dropped font-mono for tabular-nums, because the longer wording needs less width in a proportional font. That's my call; the issue didn't say.
  • Unchanged: internal names (capacity, onCapacity, onSetCapacity, the DB column, and the API and MCP capacity argument).
  • Help: in create-and-publish-a-signup, the UI key went from capacity: 'Capacity' to spots: 'Spots', and the step gained "Leave it blank for no limit." The walkthrough finds the field by UI.spots. I re-took slot.png only, 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: docs/writing-help.md now says the box is called Spots on screen, and the run-opensignup skill's example uses fill Spots = 2.
  • CHANGELOG has a line under Changed.

Tests

  • SlotEditor.test.tsx, WysiwygSlot.test.tsx and BuildWysiwyg.test.tsx now check the new label, the "No limit" placeholder, the helper text wired through aria-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.
  • Playwright with the container config, chromium: the help walkthroughs (6) and the organizer, a11y, enum-picker, reminder-field and slot-row-layout specs (18) all passed.
  • Phone check at 390 px, on a slot whose first value was long: "12 of 15 taken" stays whole, the anchor still shows "Fruit, water and …", and nothing scrolls sideways.

https://claude.ai/code/session_01JSFvq9kmjLEfXUBXpU4YwA


Generated by Claude Code

… 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
@richshaw richshaw added pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude
@richshaw
richshaw requested a balanced review from Copilot October 23, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@richshaw richshaw added pipeline:tophat pipeline:working A session is working on it right now and removed pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Tophat: passed

I ran deb5a26 locally with pnpm dev, Postgres 16, and Chromium at 1280×900 and 390×844. I didn't run the worker, because nothing here touches jobs or email. All the data is made up: one signup, "Snack duty — Spring season", with a "Fruit and water" slot (15 spots) and a "Paper plates" slot (no limit), and sign-ups from sam@example.com and riley@example.com.

Check Result What I saw
Base (1aeca55), for comparison ✅ seen The editor's field was labelled "Capacity", with no explanation (565-base-editor). The closed rows read "1/15" and "1/∞" (565-base-rows).
Slot editor label, placeholder and helper ✅ The field is labelled Spots, and the helper line under it reads "How many places people can take. Leave blank for no limit." The input's aria-describedby points at that line, and its aria-label is still just "Spots". I cleared the box and it saved ("Saved"); the empty box then shows "No limit" (565-head-editor-nolimit).
Saving still works ✅ Setting Spots to 15 saved, and so did clearing it. After publishing, the public page showed "15 of 15 spots left" for Fruit and water and no limit for Paper plates.
Counter, before and after sign-ups ✅ Closed rows read "0 of 15 taken" and "0 taken". After one sign-up on each slot from the public page they read "1 of 15 taken" and "1 taken" (565-head-rows-after-signups). At the same moment the public page read "14 of 15 spots left" and "1 signed up".
Phone ✅ At 390 px the helper wraps inside its cell under the 15, and the counters sit on the right of each row. The page is 390 wide, so nothing scrolls sideways (565-head-phone-editor, 565-head-phone-rows).
Help article ✅ /help/create-and-publish-a-signup reads "In Spots, type how many spots this slot has. … Leave it blank for no limit." The new slot.png shows Spots, set to 2, with the helper line (565-head-help-slot).
Console and server logs ✅ No console errors. The only server errors were the health check's pgboss.job query, because the worker wasn't running.

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 main. I measured it at 812–892 px. "1 of 15 taken" spans 816–886, so the toolbar still covers it all. A counter with three-digit numbers ("100 of 150 taken") would come out about 10px past the toolbar's left edge while the row is hovered. It only shows while the row is hovered, so I've left it as a note.

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 565-base-editor and 565-base-rows with 565-head-editor-nolimit, 565-head-rows-after-signups and 565-head-phone-editor.

Screenshots are in https://claude.ai/code/session_01VMapG32mqYajmgtbJ9mQsG.


Generated by Claude Code

@richshaw richshaw added pipeline:review pipeline:working A session is working on it right now and removed pipeline:tophat pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 bare 0/{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

@richshaw richshaw added pipeline:owner Passed; waits for the owner (UX or high-risk) and removed pipeline:review pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude
@richshaw richshaw added pipeline:merge and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Oct 23, 2026
@richshaw richshaw added the pipeline:working A session is working on it right now label Oct 23, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Approved by the owner at 6d8b07d. The owner moved this PR from pipeline:owner to pipeline:merge after review round 1 at deb5a26. The only change since is a merge from main (6d8b07d).

Session: https://claude.ai/code/session_014Zo1eizoiYtzTbeo28XM5B


Generated by Claude Code

Copy link
Copy Markdown
Owner Author

Not merged. #562 just landed, and it conflicts with this PR in CHANGELOG.md only: both PRs add a line under Unreleased › Changed. Every other gate passed at 6d8b07d:

  • CI is green.
  • The review (round 1) and the tophat both passed at deb5a26, and nothing since is the PR's own code.
  • There are no open threads.
  • The owner's approval is recorded above.

Moving to pipeline:fix so main gets merged in. If the merge commit only resolves CHANGELOG, the approval carries over and this can come straight back to pipeline:merge.

Session: https://claude.ai/code/session_014Zo1eizoiYtzTbeo28XM5B


Generated by Claude Code

@richshaw richshaw added pipeline:fix pipeline:working A session is working on it right now and removed pipeline:merge pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude
@richshaw richshaw removed the pipeline:fix label Oct 23, 2026 — with Claude
@richshaw richshaw added pipeline:merge and removed pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

I merged main into this branch in f86c859. The only conflict was in CHANGELOG.md, where both PRs added a line under Unreleased › Changed. I kept both lines, with this PR's #140 line first. No runtime code was touched.

Before pushing I ran pnpm lint && pnpm typecheck && pnpm knip && pnpm test (1351 passed). CI is green on f86c859: lint-type-test, e2e and CodeQL.

The PR has no commits of its own since the owner approved 6d8b07d, so that approval carries over, as do the review and the tophat from deb5a26. Back to pipeline:merge.

https://claude.ai/code/session_01PtqmJDYFWZ87GsyZe2Ay2u


Generated by Claude Code

@richshaw richshaw added the pipeline:working A session is working on it right now label Oct 23, 2026 — with Claude
@richshaw
richshaw merged commit a7048a1 into main Oct 23, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-140-spots-wording branch October 23, 2026 23:54
@richshaw richshaw removed pipeline:merge pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Oct 23, 2026 — with Claude
richshaw pushed a commit that referenced this pull request Oct 24, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The builder's "Capacity" field and "0/15" counter don't say what they count

3 participants