Repository navigation
feat(ats): Move ▾ menu on the board, keyboard semantics intact - #629
Merged
Merged
Conversation
Follows #627/#628. Swaps the board's per-card move controls from one button per legal target to a single compact menu, matching the prototype. WHY. Three buttons under every card put thirty-six controls on a twelve-card board. Visible buttons are more discoverable and cost fewer interactions — that is a real trade, not a regression — but the board is the screen where density matters most, and the comp uses a menu for exactly that reason. WHAT HAD TO SURVIVE. §12 #12 was "the board is pointer-only". A menu that cannot be operated by keyboard would move that barrier rather than remove it, so the swap is only correct if the menu is genuinely operable. `@scaffald/ui`'s Dropdown was the obvious component and is deliberately NOT used: it has no key handling of any kind — no Escape, no arrow keys, no roles — so adopting it would have put the board back behind a nicer-looking trigger. MoveMenu is built on Popover instead, which already closes on Escape, with every item a real Pressable carrying `role="menuitem"` so it lands in the tab order and Enter/Space activates it. Worth fixing Dropdown eventually; not worth blocking this on. VERIFIED, NOT ASSUMED. The smoke harness now opens the first menu and counts what it finds, so this cannot quietly rot: 9 triggers, 2 menuitem(s) after opening ← New's legal targets exactly 0 menuitem(s) after Escape ← the keyboard contract holds A menu that rendered but did not open, or opened but would not close, now fails visibly in the harness output rather than in production. Co-Authored-By: Claude Opus 5 <[email protected]>
8 of 10 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #627/#628. Swaps the board's per-card move controls from one button per legal target to a single compact menu, matching the prototype.
Why
Three buttons under every card put thirty-six controls on a twelve-card board. Visible buttons are more discoverable and cost fewer interactions — that is a real trade, not a regression — but the board is the screen where density matters most, and the comp uses a menu for exactly that reason.
What had to survive
§12 #12 was "the board is pointer-only". A menu that cannot be operated by keyboard would move that barrier rather than remove it, so the swap is only correct if the menu is genuinely operable.
@scaffald/ui'sDropdownwas the obvious component and is deliberately not used: it has no key handling of any kind — no Escape, no arrow keys, no roles — so adopting it would have put the board back behind a nicer-looking trigger.MoveMenuis built onPopoverinstead, which already closes on Escape, with every item a realPressablecarryingrole="menuitem"so it lands in the tab order and Enter/Space activates it.Worth fixing
Dropdowneventually — it is a shared component with other callers and none of them have keyboard access today. Not worth blocking this on.Verified, not assumed
The smoke harness now opens the first menu and counts what it finds, so this cannot quietly rot:
A menu that rendered but did not open, or opened but would not close, now fails visibly in harness output rather than in production. Given that a menu looks fine in a screenshot either way, this assertion is the point.
Typecheck and lint clean;
pnpm prepushgreen.🤖 Generated with Claude Code