Skip to content

F3: ordered process selection and virtualized selected list (#18) - #53

Merged
DavidVFitzGerald merged 4 commits into
mainfrom
feat/f3-selection
Nov 14, 2026
Merged

DavidVFitzGerald merged 4 commits into
mainfrom
feat/f3-selection

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #18

Behavior

  • src/app/selection.ts: one ordered, in-memory selection per verified workspace (external store + useSelection). It supports idempotent append, deselect, toggle, clear and move (for F4 column reorder), has no cap, and publishes immutable snapshots. Entries carry release/revision/id plus display name and geography captured at selection (D1).
  • Process tree: process rows expose aria-checked with a visual checkbox and toggle with Space, Enter or click. Branch rows are unchanged; tri-state and bulk actions belong to [Task] F3: implement filter-scoped bulk selection and tri-state parent checkboxes #19.
  • New Selected processes (N) section below the tree:
    • a disclosure button and Clear all (no confirmation, with a live announcement);
    • a virtualized list showing each entry's position, name — geography and release;
    • roving remove buttons (Arrow/Home/End). Focus moves to the next or previous entry, or to the empty-state text when the list empties;
    • removal names qualified by release, plus an item number when labels are duplicated.
  • The selection is discarded on signout or account change and never written to storage (F5 adds persistence).

Checks (rootless container, project lca-diff-f3-selection)

  • ./dev check and frozen npm ci PASS (no dependency changes)
  • format:check, lint, typecheck and build PASS
  • test:unit PASS: 200 tests in 13 files (3 consecutive runs)
  • test:e2e @smoke PASS (10 cases); full test:e2e PASS (30 cases, Chromium and Firefox)

Details: docs/engineering/f3-selection-verification.md.

Limitations

  • Search does not exist yet. "Survives filtering" is proven as independence from tree visibility (collapse, paging, hidden rows); the search-filter journey is [Task] F3: add reactive AND-tokenized process search with cancellation #17's (D8).
  • Bounded rendering of 300 entries is component (jsdom) evidence. jsdom doesn't click buttons from keys, so those component cases click the focused button, while the browser test uses real Enter and Space.
  • e2e/f2-gate.spec.ts now tabs through the new "Selected processes (0)" control and matches the "Processes" heading exactly. Tree tests now share src/services/mock/test-harness.ts.
  • Mock evidence does not prove persistence, authorization or real data.

🤖 Generated with Claude Code

DavidVFitzGerald and others added 3 commits November 14, 2026 15:44
… list (Refs #18)

An in-memory external store keeps one ordered selection per verified
workspace: idempotent appends, removal, clear and move for later column
reordering. Process tree rows expose aria-checked and toggle with Space,
Enter or click. A collapsible virtualized Selected processes (N) list has
roving remove buttons, defined focus after removal and Clear all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(Refs #18)

Share the mock-injected workspace harness between tree and selection tests,
add a Chromium/Firefox selection journey, and update the F2 keyboard journey
for the new selected-process controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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