Skip to content

feat(ats): Move ▾ menu on the board, keyboard semantics intact - #629

Merged
thinkclay merged 1 commit into
mainfrom
redesign/ats-move-menu
Aug 22, 2026
Merged

thinkclay merged 1 commit into
mainfrom
redesign/ats-move-menu

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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 — 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:

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 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 prepush green.

🤖 Generated with Claude Code

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]>
@thinkclay
thinkclay merged commit d654e89 into main Aug 22, 2026
5 of 7 checks passed
@thinkclay
thinkclay deleted the redesign/ats-move-menu branch August 22, 2026 04:12
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.

1 participant