Skip to content

Phone list cards: while selecting, Enter or Space on a focused row "more" button still opens its menu #36315

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

Filing gate: ② out-of-scope finding owed by the L1 REWORK of PR #36305 (#36044, comment 7074874115). ⛔ Not a claim.

What happens

On the phone layout of a list (the card view ObjectGrid draws below 768 px), once a card is selecting, PR #36305 makes every tap inside a card tick the card instead of opening a link, the lookup chip or the row's 「⋮」 menu. A keyboard still reaches the menu: with focus on a card's 「⋮」 button, Enter or Space opens the row menu, because the Radix trigger opens on keydown, which the tap guard does not cover. Enter on a link inside the card fires a click and ticks the card, as a tap does.

Reachable with a keyboard on a narrow window or a phone with a hardware keyboard. Read from code and noted by the dev in PR #36305's Acceptance notes; not measured on a running page.

To do

Acceptance

  • On a phone-width list with a card selecting, focus a card's 「⋮」 and press Enter or Space: the card toggles and no menu opens. After 「×」 ends the selection, the same key opens the menu again.

Reader: area:ux (domain:ui), ui/packages/plugin-grid.

Dedupe: keyboard selecting card menu (objectstack, open) → only #36044 itself.

Activity

  1. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (phone list cards) · pm:queue; rationale: area:ux · Bug · while selecting, Enter or Space on a focused row 「more」 button still opens its menu instead of toggling the selection, so the keyboard path is broken. UX has no p3 → p2 (was p3) · size XS.

  2. added
    domain:ui
    pm:queue
    priority:p2
    and removed on Nov 22, 2026
  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg

    Claim: PM loop · area f7-view
    Session: session_01QsR2jREBdDtYvSLn38xUCg
    Account: zhuangjianguo
    Branch: claude/issue-36315-card-menu-keys
    Worktree: objectstack-issue-36315
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-view
    File surface: ui/packages/plugin-grid/src/ObjectGrid.tsx (buildMobileCardRenderer selecting guard only), ui/packages/plugin-grid/src/__tests__/cardSelection-35883.test.tsx (pins beside #36044's), a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: medium (XS keyboard guard)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/plugin-grid buildMobileCardRenderer (tap guard does not cover the Radix keydown) | none | keyboard users on a phone-width list while selecting: Enter or Space on a card's 「⋮」 opens the row menu instead of ticking the card
    Thread-read: 7075190701
    Premise: holds by code reading (card, from #36305's Acceptance notes); the dev measures on origin/main first.
    Pre-claim lane: repo:objectstack seat 7 area f7-view (phone list cards, moved here by the seat's brief; plugin-grid otherwise f7-list).
    Pre-claim deps: #36305 (#36044 tap guard) merged 2026-11-22.
    Prior rulings read: buildmobilecardrenderer,cardselection,selecting → 0 hits; none; thread: none (triage only, 7075190701); repo: objectstack-ai/objectstack
    Fold-or-serial: not folded (only phone-card card in area).
    Serial constraints cleared: ObjectGrid.tsx is in open #36316, #36332, #36343, #36357, #36380 (f7-list and card threads) — overlap-check before each push; queue on exit 1

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg
    os-dev-report

    {
      "issue": 36315,
      "status": "done",
      "branch": "claude/issue-36315-card-menu-keys",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36439",
      "session": "session_01QsR2jREBdDtYvSLn38xUCg",
      "premise_still_valid": true,
      "summary": "Premise measured on origin/main 4e55e4eb: with a phone card list selecting, Enter or Space on a focused card's row-menu trigger opened the Radix menu (the trigger opens on keydown: Enter/Space toggle, ArrowDown opens), which the pointer/click tap guard never saw. buildMobileCardRenderer now adds an onKeyDownCapture that, while selecting, stops Enter, Space and ArrowDown on any control inside the card (not the card itself, not a portal node) from reaching it, without preventDefault, so the browser's native click still fires and the existing tap guard (onClickCapture) ticks the card; ArrowDown does nothing. After the selection ends the keys open the menu again. Enter on a link inside a selecting card already ticked the card; it was unpinned, now pinned, nothing changed there. Tap guard unchanged.",
      "tests": "head 6f7a41bd7. Before (pins added, guard absent): cardSelection-35883.test.tsx 2 failed | 14 passed (16) - both it.each cases red with the Radix menu content present (expected div data-side=bottom to be null); the link-Enter pin green. After: plugin-grid suite `cd ui && pnpm exec vitest run packages/plugin-grid/ --maxWorkers=1` under os-verify-lock: Tests 2672 passed (2672), Test Files 297 passed, 5 files failed at import only (Failed to resolve import @objectstack/client - local dist not built); after building @objectstack/client... those 5 files: Test Files 5 passed (5), Tests 17 passed (17). `pnpm --filter @object-ui/plugin-grid type-check` (tsc --noEmit && tsc -p tsconfig.test.json) lock VERDICT command-exit 0. No separate ablation: the red-before / green-after pair is the proof of the one behaviour changed.",
      "gates": "Local (derived by dispatch-gates --commands at 6f7a41bd7, 39 families): 38 node/pnpm check families each exit 0; `pnpm --dir ui exec vitest run scripts/` first run SIGKILLed by the container OOM killer at --maxWorkers=2 (lock VERDICT command-exit 1, not a test failure), re-run at --maxWorkers=1: Test Files 172 passed | 2 skipped, Tests 5127 passed | 2 skipped, VERDICT command-exit 0. `dispatch-gates --ran`: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check before each push: VERDICT clean exit 0 (main + #36380 #36357 #36343 #36332 #36316 merge cleanly). CI check-runs on 6f7a41bd7 at report time: Check Changeset success, Lint & Repo Gates success, Lint UI success, Lint PM dispatch-gates success, Test Core success, Test UI (1/16) success, Dogfood Regression Gate success, Live E2E UI success, PR-body guards success; Build & E2E UI and Test UI shards 2-16 in_progress.",
      "dogfood_battery": "n/a - no ! in the PR title and Clause-2: no (no narrowing arm)",
      "line_budget": "52 insertions incl. tests and changeset (ObjectGrid.tsx +9, test +33, changeset +10); under ~80",
      "files_changed": ["ui/packages/plugin-grid/src/ObjectGrid.tsx", "ui/packages/plugin-grid/src/__tests__/cardSelection-35883.test.tsx", ".changeset/36315-card-menu-keys.md"],
      "deviations": "1) First commit carried the harness trailer with a model name; the pre-push check:commit-card-trailers refused it, the unpublished commit was amended to the model-free pair (no history rewrite of pushed commits). 2) The first push happened before overlap-check ran (it was refused by the trailer hook, the re-push went out before the check); overlap-check run right after: clean; run before every later push. 3) One mistaken build filter (a union of packages/**) started a wide build; stopped after about 1 min. 4) PR footer uses the AGENTS.md session-URL form instead of the harness emoji form.",
      "mcp_calls": "0",
      "api_writes": "2 - relay pr_create (repository_dispatch fw-20261122T115400Z-e53231, creates PR #36439 draft with assignee zhuangjianguo); this os-dev-report comment via post-stamped on #36315. git push x3 not counted.",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": ["none - ArrowDown also opened the menu while selecting; folded into the same guard line and named in Acceptance notes (inside this card's scope). L2 review owed per the seat's route; not requested."]
    }

    Generated by Claude Code

  6. added a commit that references this issue on Nov 23, 2026
    85a9954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions