Skip to content

[Task] F3: implement filter-scoped bulk selection and tri-state parent checkboxes #19

Closed

Description

@DavidVFitzGerald

Delivery phase

Phase 1 - frontend with mock services

Goal

Select or deselect every eligible match, including unloaded descendants, while preserving coherent ordering and checkbox state.

Context and authority

Milestone F3; read AGENTS.md, docs/team/product-manager.md, docs/product/LCA_diff_PRD.md, docs/engineering/roadmap.md, and docs/engineering/LCA_diff_Implementation_Specification.md §§6.2–6.3, 9.2; roadmap F3 gate. Current planning baseline is on docs/agent-workflow, pending review/merge into main; proposed ADRs are not accepted authority. Connect resolve-selection services to tree/root/category/all-match bulk actions; extend selector integration/browser tests and F3 gate evidence. These application paths are planned until created. Exclude all archive/reference folders.

Requirements and constraints

When filtering, branch actions apply only to matching descendants; unfiltered actions cover all descendants. Parent checked/unchecked/indeterminate state uses actionable scope, not rendered children. Newly bulk-added IDs append alphabetically by process name with geography/ID ties; existing selected order is unchanged. All work uses services, cancellable async states and no hard cap.

One session-sized task/PR including verification and handoff. Run all development, installation and checks in containers; install nothing on the host. No real backend, Firebase project, cloud credentials or proprietary inputs. If the current PRD/spec must change, prepare an ADR and updates to both current documents in the same PR.

Acceptance criteria

  • AC1 - Select/deselect all matches and release/category/subcategory actions affect all eligible IDs across cursors/unmounted rows, not just the current page.
  • AC2 - Filtered branch actions never remove unrelated hidden selections; clearing filters changes actionable scope without changing selection.
  • AC3 - Parent checkboxes expose aria-checked mixed and correctly reflect checked/unchecked/indeterminate state relative to the current scope.
  • AC4 - Bulk append preserves existing order, adds only new IDs in deterministic alphabetical/geography/ID order, and does not duplicate IDs or impose a product count cap.
  • AC5 - Loading/cancellation/error of a bulk action leaves selection coherent and explains incomplete work; tests cover cross-page branches and races.
  • AC6 - F3 gate evidence covers keyboard tree/search/individual and bulk actions, selected-list retention and all established container checks.

Out of scope and follow-ups

Comparison grid/order drag interactions are F4; persistent workspace is F5. Real backend selection resolution remains B2; do not silently fetch millions of cell values to resolve selected process IDs.

Verification plan

Inside ./dev shell, run format:check/lint/typecheck/test:unit/build and npm --prefix apps/frontend run test:e2e. Use a branch spanning multiple search pages, mixed existing selections and cancelled/failed resolve-selection calls. Record F3 browser evidence against the delivered SHA.

Engineer records branch/SHA and exact results, leaves issue open, and hands off to QA. QA verifies every criterion at that SHA and reports PASS/FAIL/BLOCKED; mock evidence is not proof of real security/integration.

Dependencies and readiness

Blocked by #17, #18. No implementation until dependencies and the M1 environment runtime gate are satisfied. This body is groomed planning material, not PM READY while blockers remain. Coordinator/PM rechecks merged dependencies and session-sized scope before starting.

Current readiness — supersedes historical planning baseline/blockers above

Rechecked 2026-11-14 on main at b5704da. #17 (PR #54) and #18 (PR #53) are merged and closed, as is #16 (PR #50); the M1/M2 gates were satisfied previously.

Merged interfaces this issue consumes

Decisions

  • D1 Query layer.
    • queries.resolveAll(dto) follows every cursor (limit 100) and returns the ordered IDs.
    • queries.headersFor(release, ids) batches 100 IDs per request.
    • Both are cancellable queryOptions under the existing lca-services key namespace. Components still never call services directly.
  • D2 Selection entries.
    • SelectedProcess gains path (the category path, from the tree node or the header).
    • The store gains atomic selectMany(entries), which appends only entries not already selected, in the given order, with one notification, and deselectMany(keys).
    • The existing order never changes.
  • D3 Bulk scopes.
    • Branch row (release root, category or subcategory): scope: "branch" with branch_path, the current normalized fields and a single-release snapshot.
    • "Select all matches" / "Deselect all matches" buttons appear while a filter is active: scope: "all_matching", once per release.
    • With no filter, a release root's checkbox covers the whole release.
    • Branch with zero eligible processes: the control is shown disabled with aria-disabled.
  • D4 Ordering.
    • New IDs are resolved, then their headers are fetched.
    • The new entries are sorted by lowercased name, then lowercased geography, then ID, and appended with selectMany.
    • Deselect removes the resolved IDs and needs no headers.
    • There is no cap.
  • D5 Tri-state (spec §6.2.6).
    • A branch's state compares the number of selected entries inside its actionable scope with its exact count. Checked means equal and greater than 0, unchecked means 0, and mixed is anything else (aria-checked="mixed").
    • Unfiltered, the scope is every selected entry in the release whose path starts with the branch path.
    • Filtered, entries also have to be in the release's matching-ID set (resolveAll with all_matching). That set is fetched only when the release has selected entries; otherwise the state is unchecked without any request.
    • While the set loads, the state uses the matching leaves already loaded, and the row is marked aria-busy.
  • D6 Interaction.
    • Branch rows: Space toggles the bulk selection, and clicking the checkbox does the same. Enter and arrow keys still expand and collapse, and clicking the label still expands.
    • Checked means deselect the scope; unchecked or mixed means select it.
    • Process rows are unchanged.
  • D7 Async states (AC5).
    • One bulk action runs at a time. A status area names it ("Selecting processes in road…") with a progress count and a Cancel button, and the other bulk controls are disabled meanwhile.
    • Selection changes only on success, atomically.
    • Cancel, failure, signout or account change leave the selection unchanged. A message names the action and the error ("Selection unchanged: …"), with Retry when the error is retryable.
    • The action keeps the scope it started with, even if the filter changes during the run.
  • D8 F3 gate (AC6).

Scope

  • src/app/queries.ts and src/app/selection.ts, plus ProcessTree.tsx (branch checkboxes, tri-state and bulk controller).
  • A new src/components/bulk-selection/ (controller hook and status UI), and the select-all buttons in ProcessSearch or the sidebar.
  • App.tsx, the tests, e2e/bulk-selection.spec.ts, e2e/f3-gate.spec.ts, the F3 record and the roadmap.
  • There is no service or contract change.

Objective verification

  • Unit:
    • selectMany / deselectMany (order kept, no duplicates, one notification, no cap);
    • the tri-state reducer (checked, unchecked, mixed; filtered and unfiltered);
    • the bulk ordering comparator.
  • Component (mock injected):
    • AC1: a 260-leaf branch spanning six tree pages and three resolve pages selects all 260 with one page loaded; a release root selects everything; select/deselect all matches across two releases.
    • AC2: filtered deselect leaves hidden non-matching selections alone; Clear changes the tri-state without changing the selection.
    • AC3: aria-checked checked, mixed and false on root, category and subcategory, both filtered and unfiltered; Space and checkbox click toggle bulk, and Enter still expands.
    • AC4: existing order is kept, and new IDs follow name/geography/ID order with no duplicates.
    • AC5: under latency the status and Cancel show; Cancel aborts (signal.aborted) and leaves the selection unchanged. A resolve or headers failure gives "Selection unchanged" plus Retry. Signout mid-action applies nothing. A second action is disabled while one runs.
  • Browser (Chromium and Firefox, composed mock):
    • bulk-selection.spec.ts: root bulk select with alphabetical order, branch mixed state, filter plus "Select all matches", and Clear keeping the selection.
    • f3-gate.spec.ts: the AC6 keyboard journey.

Verification (container only)

COMPOSE_PROJECT_NAME=lca-diff-f3-bulk FRONTEND_PORT=5192 ./dev up && ./dev check
docker compose -p lca-diff-f3-bulk exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npm run test:unit && npm run build && npm run test:e2e -- --grep @smoke && npm run test:e2e'

Mock evidence does not prove real selection resolution (B2) or large-scale performance.

Activity

  1. added
    task
    frontend
    blocked
    on Nov 13, 2026
  2. DavidVFitzGerald commented on Nov 13, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: BLOCKED

    Groomed using docs/team/product-manager.md for F3, Phase 1 — frontend with mock services. Documentation review: PASS for scope, required sections, specification coverage and acyclic dependency links; this is not application QA or implementation readiness.

    Blocking predecessor issues: #17, #18. The M1 runtime gate (#2) and merged bootstrap/M2 configuration (#3) also remain required. PM must recheck merged dependencies and current interfaces before changing this to READY.

    Engineer implements one issue, commits regularly and hands the delivered SHA plus exact container checks to independent QA; do not close before QA, review and approved merge. No backend/Firebase/cloud credentials or host installations are required for Phase 1.

  3. removed
    blocked
    on Nov 14, 2026
  4. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: READY

    Phase 1 (frontend with mock services), milestone F3 (final F3 task, with the gate in AC6). Dependencies #16, #17 and #18 are merged and closed. Spec: §§6.2 (bulk rules 5–6, bulk actions), 6.3 (alphabetical bulk append), 6.8, 9.2. Decisions D1–D8 are in the issue body's Current readiness section:

    • resolve and header helpers in the query layer;
    • path on selection entries, with atomic selectMany/deselectMany;
    • branch, root and all-matches scopes;
    • name/geography/ID ordering for bulk appends;
    • tri-state computed from exact scope counts, with a filtered matching-ID set fetched only when needed;
    • Space and checkbox-click bulk toggles;
    • atomic async bulk actions with Cancel, Retry and an explanation when nothing was applied;
    • the F3 gate record and journey.

    There is no contract change and no ADR (no PRD or spec deviation). Next: Software Engineer.

  5. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: IN PROGRESS (session handoff)

    Branch feat/f3-bulk-selection at local commit dbb44e0 (WIP, not pushed). Compose project lca-diff-f3-bulk on port 5192.

    Done:

    • queries.resolveAll and queries.headersFor (cursor-following and batched, SERVICE_WINDOW=100).
    • SelectedProcess.path, plus selectMany/deselectMany.
    • components/bulk-selection/: scope.ts (bulkOrder, selectedByScope, checkState), useBulkSelection (atomic, cancellable, Retry) and BulkStatusArea.
    • Tree: branch tri-state aria-checked, Space and checkbox-click bulk toggles, and Select/Deselect all matches.
    • The test harness injects resolveSelection/headers spies.

    Results (in the container):

    • typecheck and lint pass.
    • The previous 214 unit tests plus 11 new store/scope unit tests pass.
    • 7 of 8 tests in the new src/services/mock/bulk-selection.test.tsx fail. Their treeitem lookups (for example /^t, 270/, /^x, 4/, /^road, 3/) don't find rows, so the expansion helper or the expected labels need debugging.

    Remaining:

    • Fix those tests.
    • Write e2e/bulk-selection.spec.ts and e2e/f3-gate.spec.ts.
    • Write docs/engineering/f3-verification.md and update the roadmap's F3 row.
    • Run the full container check suite, then push, open the PR and hand off to QA.
  6. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    PR #62, branch feat/f3-bulk-selection, delivered SHA e626581 (on top of dbb44e0, based on main b5704da).

    Container lca-diff-f3-bulk results:

    • format:check, lint, typecheck and build: PASS
    • test:unit: 229/229 (3 consecutive runs)
    • e2e @smoke: 12 passed
    • e2e full: 36 passed (Chromium and Firefox)

    The AC1–AC6 evidence and the F3 gate mapping are in docs/engineering/f3-verification.md.

    One deviation from the D3 wording: a branch with zero eligible processes is an inert, unchecked no-op, not aria-disabled. Marking the treeitem aria-disabled would also disable expanding it.

    Hosted full CI: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43624181572. Next: independent QA.

  7. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: FAIL

    Reviewed: PR #62, branch feat/f3-bulk-selection, SHA e62658187f6a9e4286e8865ddfed5ce93ddfa108. Phase 1, mock mode only: no real backend, auth or security validation is claimed.

    Environment: a detached worktree at e626581 and the rootless Compose project lca-diff-qa19 (FRONTEND_PORT=5193). No host runtimes were used.

    Commands and results

    COMPOSE_PROJECT_NAME=lca-diff-qa19 FRONTEND_PORT=5193 ./dev up && COMPOSE_PROJECT_NAME=lca-diff-qa19 FRONTEND_PORT=5193 ./dev check
    docker compose -p lca-diff-qa19 exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npm run test:unit && npm run build && npm run test:e2e -- --grep @smoke && npm run test:e2e'
    Check Result
    ./dev check PASS (rootless identity, restricted capabilities, frozen lock; 8 preflight scenarios)
    npm ci PASS (232 packages; the working tree stayed clean apart from the QA probe)
    format:check, lint, typecheck PASS
    test:unit PASS, 229 tests in 17 files
    build PASS
    e2e @smoke PASS, 12 tests
    e2e full PASS, 36 tests
    Hosted CI run 43624181572 at e626581 success

    React prints "flushSync was called from inside a lifecycle method" warnings in stderr (65 times). The existing process-tree suites print the same warning, so it does not fail the run.

    QA probes: a temporary src/services/mock/qa19-probe.test.tsx, run with npx vitest run src/services/mock/qa19-probe.test.tsx in the same container. It was not committed and was removed with the worktree.

    • P1: a filtered branch with 150 matching leaves out of 300, with only about 10 rows mounted, selects all 150 after one hidden non-matching selection, in order. Deselecting removes only the matches. PASS
    • P2: changing the filter during "Select all matches" keeps the scope the action started with. PASS
    • P3 and P7: a failed matching-set read. FAIL, see F-1.
    • P4: an account change (uid A to uid B with no signout) during a run applies nothing. PASS
    • P5: a 3,000-leaf branch selects all 3,000 using 30 header batches, with no cap. PASS
    • P6: Cancel during the details (headers) phase leaves the selection unchanged, and a new action can start straight away. PASS

    Per-criterion findings

    • AC1: PASS. resolveAll follows every cursor with a 100-item window, and headersFor batches by 100. The committed tests cover a 260-leaf branch with 50 rows loaded (3 resolves, 3 header batches) and all matches across two releases. P1 and P5 confirm the filtered cross-page and large cases.
    • AC2: PASS. Filtered branch and all-match deselects resolve with the current fields, so hidden non-matching selections survive. Clear changes only the tri-state. Both are covered by component and browser tests.
    • AC3: FAIL on the error path (F-1). The happy path is correct: branch treeitems expose aria-checked true, false or mixed, computed from matching_descendant_count and the selected entries in scope, filtered and unfiltered, on root, category and subcategory. Space and a checkbox click bulk-toggle, and Enter and the arrow keys still expand.
    • AC4: PASS. selectMany appends only absent keys, in the given order, with one notification. Sorting is by lowercased name, then geography, then ID. 50,000 entries are covered at unit level and 3,000 end to end (P5). There is no cap.
    • AC5: PASS, with a test gap (F-3).
      • Selection changes only after every read succeeds, and then all at once.
      • Cancel aborts the signal. Resolve and header failures show "Selection unchanged: …" with Retry or Dismiss.
      • Signout cancels on unmount, and Workspace is keyed by uid, so an account change also cancels (P4).
      • The single-run guard and the token check stop a stale run from applying anything after Cancel.
    • AC6: FAIL (F-2). f3-gate.spec.ts covers the keyboard journey: tree, search, individual and bulk actions, Clear keeping the list, and signout. However, the roadmap F3 gate item "filtered bulk selection beyond a visible page" is mapped in f3-verification.md to an unfiltered test. No committed test exercises a filtered bulk action across pages.
    • Architecture: PASS. bulk-selection/ and ProcessTree reach services only through useServiceQueries and the query client, and import only contract types. There are no mock, HTTP or Firebase imports in components.
    • Docs and spec consistency: PASS, apart from F-2's mislabelled gate row. There is no spec or PRD deviation and no ADR is needed. The roadmap still shows [Task] F3: implement filter-scoped bulk selection and tri-state parent checkboxes #19 as in progress, which matches D8.

    Defects

    F-1 (Medium, blocking for AC3): a failed matching-set read leaves the parent state wrong, aria-busy stuck and the toggle inverted, with no explanation.

    • Steps (probe P7):
      1. Use a 300-leaf branch t/road.
      2. Bulk-select road, 300 with no filter. This succeeds and the branch is checked.
      3. Make resolveSelection with scope:"all_matching" return TEMPORARILY_UNAVAILABLE.
      4. Type "road" (every leaf still matches), wait 500 ms, then press Space on road, 300.
    • Expected: aria-checked="true", or a visible error with a retry and the toggle not inverted. aria-busy should not stay set indefinitely.
    • Actual:
      • road shows aria-checked="mixed" and the release row keeps aria-busy="true" indefinitely.
      • The status area still shows the previous "Selected 300 processes in road."
      • Space runs a select, which reports "Selected 0 processes in road.", instead of deselecting.
      • P3 shows the same stuck aria-busy with no alert for a single selection.
    • Cause: in ProcessTree.tsx, matchSets[position]?.data is undefined on error, so busy stays true and the state falls back to loaded leaves only. Query retry is false, and nothing surfaces or retries the error.

    The same inversion happens briefly while the set is loading, when a fully selected filtered branch can show mixed and Space selects. Suggested fix: surface the query error with a Retry and stop reporting busy on error. Consider making a branch's bulk toggle inert while that row is aria-busy.

    F-2 (Medium, blocking for AC6 and the roadmap F3 gate): no committed test covers filtered bulk selection beyond a visible page.

    • f3-verification.md's F3 gate table maps "Filtered bulk selection beyond a visible page" to the AC1 test, which runs with fields: {}.
    • The filtered component and browser tests use catalogues of 1 to 4 leaves.
    • The behaviour works (probe P1), so this is a missing-evidence gap. Add a filtered cross-page component test, for example P1, and correct the table row.

    F-3 (Low): race coverage named in D7 and AC5 is not committed. No committed test covers a filter change during a run (D7 "keeps the scope it started with"), an account change without signout, or Cancel during the headers phase. Probes P2, P4 and P6 pass, so this is coverage only. It could be folded into the F-2 fix.

    F-4 (Low, accessibility and UX):

    • While a bulk action runs, branch checkboxes and Space are silently ignored. Unlike the all-match buttons, they are not exposed as disabled. D7 says the other bulk controls are disabled meanwhile.
    • The deviation the engineer disclosed from D3 (a zero-count branch is an inert no-op rather than aria-disabled) is reasonable, but PM should confirm it, because it changes the D3 wording.

    Next action

    Engineering (Software Engineer) fixes F-1 and F-2, and optionally F-3 and F-4, on feat/f3-bulk-selection. QA then re-verifies at the new SHA: the full container suite plus probes P1, P3 and P7. The issue stays open.

  8. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: decision on the D3 deviation (QA F-4)

    A branch with zero eligible processes stays an inert, unchecked checkbox. It is not marked aria-disabled, because that would also disable expanding the treeitem. This is within the contract (spec §6.2 sets no disabled requirement), so no ADR is needed. The D3 wording in the readiness section is superseded by this decision.

    Engineering: READY FOR QA (re-verify)

    Delivered SHA e1c8fc5 on PR #62.

    QA findings addressed:

    • F-1: branch toggles now decide select or deselect from the resolved scope at run time. When a filtered matching-set read fails, the rows stop being busy and a notice with Retry explains that checkbox states may be incomplete.
    • F-2: new test for a filtered branch of 150 matches out of 300, selected beyond the loaded page, and the gate row in the evidence doc is corrected.
    • F-3: new tests for a filter change mid-run, an account change mid-run and Cancel during the details phase.
    • F-4: branch checkboxes are dimmed and inert while a bulk action runs.

    The running and failure text for branch toggles now says "Updating processes in X…" and "could not update".

    Container results:

    • format:check, lint, typecheck and build: PASS
    • test:unit: 234/234 (3 consecutive runs)
    • e2e @smoke: 12 passed
    • e2e full: 36 passed

    Hosted full CI: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43625061558

  9. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: FAIL

    Reviewed: PR #62, branch feat/f3-bulk-selection, SHA e1c8fc50cd9f72798b2a26e2f6aac3b0ba38f80f. This is a re-verification of the previous FAIL at e626581. Phase 1, mock mode only: no real backend, auth or security validation is claimed.

    Environment: a detached worktree at e1c8fc5 and the rootless Compose project lca-diff-qa19b (FRONTEND_PORT=5193). No host runtimes were used.

    Commands and results

    COMPOSE_PROJECT_NAME=lca-diff-qa19b FRONTEND_PORT=5193 ./dev up && COMPOSE_PROJECT_NAME=lca-diff-qa19b FRONTEND_PORT=5193 ./dev check
    docker compose -p lca-diff-qa19b exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npm run test:unit && npm run build && npm run test:e2e -- --grep @smoke && npm run test:e2e'
    Check Result
    ./dev check PASS (rootless identity, restricted capabilities, frozen lock; 8 preflight scenarios)
    npm ci PASS (232 packages; the tracked tree stayed clean)
    format:check, lint, typecheck PASS
    test:unit PASS, 234 tests in 17 files
    build PASS
    e2e @smoke PASS, 12 tests
    e2e full PASS, 36 tests
    • The suite above was a clean run with no probe file in the tree. My first attempt was invalid because I had copied the probe in too early. I discarded it and reran.
    • Hosted CI run 43625061558 is at e1c8fc5 and was still in_progress when I checked, so I report no result for it.
    • React prints "flushSync was called from inside a lifecycle method" in stderr (75 times). This is the same non-failing warning as before.

    QA probes

    I copied a temporary src/services/mock/qa19-probe.test.tsx into the worktree and ran it with npx vitest run src/services/mock/qa19-probe.test.tsx in the same container. It was not committed. 11/11 PASS.

    • P1: a filtered branch with 150 of 300 leaves matching, with about 10 rows mounted, selects 150 after one hidden selection, in order. Deselect keeps the hidden selection. PASS
    • P2: changing the filter during "Select all matches" keeps the starting scope. PASS
    • P3 (adapted): when the matching-set read fails with one selection, neither the release nor the branch row stays aria-busy. The notice reads "Could not check which selected processes match the search in Big v1…" and has Retry. Retry removes the notice. The row is busy for a moment while it refetches, then clears, and the branch shows the correct mixed state. PASS
    • P4: an account change mid-run applies nothing. PASS
    • P5: a 3,000-leaf branch selects all 3,000 in 30 header batches, with no cap. PASS
    • P6: Cancel during the details phase leaves the selection unchanged. A new action starts ("Updating processes in road…"). PASS
    • P7 (adapted): with 300 selected and the filtered matching-set read failing, the branch shows mixed, the notice and Retry are present, and the row is not busy. Space deselects all 300 ("Deselected 300 processes in road."). The notice then disappears, correctly, because nothing is selected so no matching-set read is needed. PASS
    • P8 (new): while the matching-set read is still pending (1.5 s), Space on a fully selected filtered branch deselects. The earlier inversion while loading is gone. PASS
    • P9 (new): on a mixed, unfiltered branch, the toggle selects the remaining 299 and keeps the earlier selection first.
      • While the action runs, branch checkboxes carry .disabled. A checkbox click or Space on another branch makes no new resolve call.
      • After the action, .disabled is cleared and the branch reads true.
      • PASS
    • P10 (new): a failed toggle shows "Selection unchanged: could not update processes in road." Retry recovers. PASS
    • P11 (new): no notice appears without a filter. Clearing the filter removes the failure notice and the tri-state recovers. PASS

    Status of the earlier findings

    • F-1: FIXED.
      • Branch toggles now use kind: "toggle", so useBulkSelection decides at run time from the resolved IDs: it deselects only when every resolved ID is selected and at least one was resolved.
      • busy now requires isPending && isFetching, so it no longer sticks after an error.
      • The failure notice offers Retry through query.refetch().
      • Committed test: "explains a failed matching-set read, never stays busy and still toggles correctly". Probes P3, P7 and P8 confirm.
    • F-2: PARTIALLY FIXED, still open.
      • The new committed test "bulk-selects a filtered branch beyond the loaded page and keeps hidden selections" (150 of 300, fewer than 40 rows mounted, filtered branch resolves) closes the coverage gap.
      • However, the handoff says "the gate row in the evidence doc is corrected", and it is not. docs/engineering/f3-verification.md, F3 roadmap gate coverage table, line 73, is byte-identical to e626581: "Filtered bulk selection beyond a visible page | AC1 component test (260 leaves, 50 loaded)". That is still the unfiltered test. The AC1 row in the AC table also does not cite the new filtered test.
      • Expected: the gate row points to the new filtered cross-page test (bulk-selection.test.tsx › "bulk selection regressions (QA F-1–F-3)" › "bulk-selects a filtered branch beyond the loaded page…").
    • F-3: FIXED. Committed tests now cover a filter change mid-run, an account change mid-run (signal aborted, nothing applied), and Cancel during the details phase followed by a new action.
    • F-4: RESOLVED.
      • Branch checkboxes are dimmed and inert while an action runs (P9). The status area announces the running action and offers Cancel.
      • Residual note, not blocking: the inert state is visual only (aria-hidden span). A screen-reader user gets no per-row disabled state, but the status region does say an action is running.
      • The zero-count branch deviation is accepted by the PM decision and needs no ADR.

    Per-criterion findings

    • AC1: PASS.
      • Cursor-following resolveAll and batched headersFor.
      • The 260-leaf unfiltered test and the new 150/300 filtered cross-page test.
      • P1 and P5 confirm.
    • AC2: PASS. Filtered branch and all-match deselects keep hidden non-matching selections. Clear changes only the tri-state.
    • AC3: PASS.
      • Tri-state is correct on root, category and subcategory, with and without a filter.
      • The error path is fixed (F-1): no stuck busy state, an explained notice with Retry, and the toggle cannot invert.
      • Enter and the arrow keys still expand.
    • AC4: PASS. selectMany appends in order with no duplicates and no cap (50,000 at unit level, 3,000 end to end).
    • AC5: PASS.
      • Changes apply all at once after every read succeeds.
      • Cancel, failure, signout and an account change apply nothing.
      • Retry and Dismiss work, the single-run guard holds, and the controls are inert while an action runs.
      • The new committed race tests cover these cases.
    • AC6: FAIL.
      • The browser journey in f3-gate.spec.ts and all container checks pass.
      • The F3 gate record still maps "Filtered bulk selection beyond a visible page" to the unfiltered AC1 test (F-2, doc part). The evidence now exists, but the record cites the wrong test.
    • Regression review of the toggle kind and the matching-set notice: no regression found.
      • The status and failure verbs ("Updating…", "could not update") are consistent.
      • The final "Selected N" or "Deselected N" message reflects what actually happened.
      • indexOf(-1) for releases without selections gives "not busy".
      • The notice appears only while filtering, for releases with selections.
    • Architecture: PASS. There are still no mock, HTTP or Firebase imports in components.
    • Docs and spec: PASS, apart from AC6 above.

    Next action

    Software Engineer: correct the "Filtered bulk selection beyond a visible page" row in docs/engineering/f3-verification.md, and optionally add the new filtered test to the AC1 row. This is documentation only; no code change is needed. QA will then re-check the doc at the new SHA and confirm the hosted CI result. The issue stays open.

  10. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA (doc fix)

    Delivered SHA 3c785af on PR #62. This is a documentation-only change from e1c8fc5 (git diff --stat e1c8fc5 3c785af shows only docs/engineering/f3-verification.md).

  11. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    Reviewed SHA: 3c785aff085033d49607d0a765401a28e743a4c3 (branch feat/f3-bulk-selection, PR #62). Mock mode only; this is not evidence of real-backend resolution, auth or adapter parity (B2/I1).

    Scope of this recheck: the previous verdict (## QA: FAIL at e1c8fc5) failed only AC6, because the F3 gate row and the AC1 row in docs/engineering/f3-verification.md cited the unfiltered 260-leaf test. AC1–AC5, the full container suite and 11 probes passed at e1c8fc5.

    What I checked

    • git diff --stat e1c8fc5 3c785af: one file changed, docs/engineering/f3-verification.md (+8/−8). No other paths changed. Tree hashes for apps/, .github/, Makefile and dev are identical at both SHAs (apps = 57e0c6e), so the code, tests and workflow under test are byte-identical to e1c8fc5.
    • Gate row "Filtered bulk selection beyond a visible page" now cites bulk-selection.test.tsx › "bulk-selects a filtered branch beyond the loaded page and keeps hidden selections". That test exists at line 408 of apps/frontend/src/services/mock/bulk-selection.test.tsx. The doc's description matches what the test asserts:
      • a branch filtered to 150 matches out of 300 (road, 150 after filtering by "even");
      • fewer than 40 tree items mounted (toBeLessThan(40));
      • exactly 2 branch resolveSelection requests, both carrying fields: { process_name: "even" } (100-item window, so 2 windows for 150);
      • 151 selected, with the pre-existing hidden non-matching "Aodd road 0003" kept first; after deselecting, only that hidden selection remains.
    • AC1 row now cites the 260-leaf unfiltered test (still present, lines 44–110), the filtered 150-of-300 test above, and the two-release all-matches test (line 220). All three exist and match the text.
    • Other doc content: the counts (234 unit tests in 17 files, 12 smoke, 36 full e2e) match the hosted run below and the previous QA container results at the identical code tree. The design, async-state and QA F-1 claims are unchanged from e1c8fc5, where they were verified. The remaining gaps (Flaky AuthDialog focus assertion under the parallel unit suite #51, F3: process tree pseudo-row ARIA positions and full browser storage check #52, B2) are unchanged. AC3's "filtered and unfiltered" wording is an accurate description of AC3 coverage, not a stale citation.
    • No ADR is needed. The doc says it makes no product or spec deviation, and the diff contains none. I did not consult any historical folders.

    Per-AC status

    AC Status Evidence
    AC1 PASS Verified at e1c8fc5 (identical code). The doc row now also cites the filtered beyond-page test.
    AC2 PASS Verified at e1c8fc5 (identical code)
    AC3 PASS Verified at e1c8fc5 (identical code)
    AC4 PASS Verified at e1c8fc5 (identical code)
    AC5 PASS Verified at e1c8fc5 (identical code)
    AC6 PASS The gate record now cites the correct filtered test, and its description matches the test. The f3-gate.spec.ts smoke and the #16–#18 suites passed at e1c8fc5.

    CI status

    • gh run view 43625061558 (Frontend, workflow_dispatch, headSha e1c8fc5): success. Its quality job passed format, lint, typecheck, test:unit (17 files, 234 passed), build and the full browser suite (36 passed). It applies to 3c785af because the apps/ and .github/ trees are identical.
    • gh pr checks 62: no checks reported for 3c785af. gh pr view 62 shows mergeable: CONFLICTING. git merge-tree origin/main 3c785af shows a content conflict in docs/engineering/roadmap.md against main's 125b090 (docs: allow parallel backend delivery in four work units #56, parallel backend delivery). Because of that conflict, pull_request workflows cannot run.
    • I did not rerun the container suite, because the code is identical to e1c8fc5.

    Next action (coordinator / engineering)

    This PASS applies to the reviewed SHA. Before the maintainer merges:

    1. Resolve the docs/engineering/roadmap.md conflict with main (merge, no force-push).
    2. Confirm that the PR's pull_request Frontend check passes on the new head.
    3. If the conflict resolution changes only roadmap.md, a quick QA recheck of that diff is enough.

    Then hand the PR to the maintainer for review and merge.

  12. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: ready for review

    PR #62 head: 372fa14. This is a merge of origin/main (125b090, #56) into the QA-passed SHA 3c785af.

    Once merged, F3 is complete, and the roadmap F3 row then needs updating from "in progress" to "complete". The issue stays open until the maintainer merges.

  13. added a commit that references this issue on Nov 14, 2026
  14. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Closed after independent QA PASS (at 3c785af), passing checks and the maintainer's merge of PR #62. F3 is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions