Repository navigation
Description
Delivery phase
Phase 1 - frontend with mock services. Milestone F4; task key F4-06.
Goal
Let users rearrange and remove process columns without breaking selection or cross-tab order.
Context and authority
Read AGENTS.md, docs/product/LCA_diff_PRD.md, docs/engineering/LCA_diff_Implementation_Specification.md, docs/engineering/roadmap.md, and docs/team/product-manager.md. Do not read archive/reference folders. Acceptance and merge authority follows docs/adr/README.md: ADRs 0001–0003 are accepted, and 0004/0005 are Proposed and grant nothing. Any contract deviation needs an ADR and updates to both current documents in the same PR.
Specification §§6.3, 6.5 (same order in both tabs), 6.7 (order does not change differences), 6.8, 9.1, and 9.2 behaviours 17–18. PRD Selection ("users can drag/reorder/remove them").
Files:
apps/frontend/src/components/comparison/ProcessHeaders.tsx(header ×, drag, keyboard reorder) andcomparison.css.- Possibly
ComparisonGrid.tsx(focus/edge scroll) andComparisonHeader.tsx. app/selection.ts. Itsmove(key, toIndex)already exists.apps/frontend/package.jsonandpackage-lock.json(the drag-and-drop library).src/services/README.md(keyboard controls).- Tests in
services/mock/comparison-headers.test.tsx, a newservices/mock/flows-grid-columns.test.tsx(reusingservices/mock/flows-grid-harness.ts), ande2e/. Do not add large-workload tests toflows-grid.test.tsx(12 already) — see Verification plan.
The PM comment of the current grooming lists the interfaces verified on main.
Requirements and constraints
- Library: use one maintained, accessible, React-19-compatible, permissively licensed drag-and-drop library. Pin its exact version, install it only in the container, commit the lockfile, and confirm a frozen
npm ciin the container. - Shared order: reorder and removal go through the centralized
SelectionStore(move,deselect). There is no tab-local order. - Keyboard and focus: provide keyboard reorder as well as pointer drag, without conflicting with the existing Arrow/Home/End header navigation. Announce operations politely and keep focus predictable.
- Data: do not recreate scientific data when only the order changes.
- Out of bounds: do not change the
useFlowGridhold, seek, error, Retry orlocatelogic (Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69, merged in PR F4: keep the hold through row-page errors and restore the anchor on Retry (#69) #73). If a new test exposes a defect there, stop and report it for a separate bug rather than fixing it here. Additive helpers inflows-grid-harness.tsare allowed; existing helpers keep their behaviour.
All work runs in containers with synthetic mock data and no API/Firebase/cloud dependency. Keep HTTP/auth/fixtures behind typed services and mock adapters; components consume contracts rather than fixtures. Follow the Software Engineer and QA role handoffs, commit focused increments referencing this issue, and leave it open for QA/review.
Acceptance criteria
- AC1, pointer drag and keyboard reorder.
- Pointer drag on process headers calls one
store.moveon drop. An activation threshold keeps click, focus and hover behaviour, and Escape or a drop outside leaves the order unchanged. - Keyboard reorder is documented in
services/README.mdand in each header's accessible description, and announced in a polite live region (pick-up, "position n of N", drop, cancel). Focus stays on the moved header. - Process IDs and each cell's displayed lexeme are unchanged, and headers stay aligned with their values.
- Pointer drag on process headers calls one
- AC2, header × removal.
- The × is a real button, visible on hover and focus-within, without changing the header or column size.
- Its accessible name includes the process label (disambiguated as
removeNames) and is distinguishable from the Selected-list button. Only the active header's × is tabbable. - Activation deselects the process globally: headers, columns, the Selected list and the tree checkbox. Rows whose last contributor it was are removed.
- Focus moves to the next header, else the previous one, else a focusable element of the empty state (never the body), and the removal is announced.
- AC3, one shared order. The order after drag, keyboard reorder or removal equals the Selected-list order. It survives Flows → Scores → Flows, and no component keeps a tab-local order.
- AC4, F3 append rules still hold. After a manual reorder and a removal, a single select (including re-selecting the removed process) appends at the end. A bulk add appends only new processes in
bulkOrderafter the unchanged manual order. - AC5, large scenario (
/?mock-scenario=large, 220 processes).- A pointer drag auto-scrolls the header strip (the body stays in sync) and drops at least one viewport away.
- Keyboard reorder to an off-screen position scrolls the header into view and keeps focus. Mounted headers stay bounded.
- Removing the grid's active column moves the single tab stop to the same flow in the neighbouring column.
- × removal while scrolled deep keeps the top flow at its offset (±1 px).
- AC6, order-only reads.
- UI drag and keyboard reorder issue no row-page, summary or header reads, keep the
comparison_token, never showaria-busyor "Updating…", and invalidate no query. Cell reads happen only for uncached tile compositions, with identical values. - After any sequence of moves, cancels and drops onto the item's own position, the keys are unique and the column count equals the selection count.
- UI drag and keyboard reorder issue no row-page, summary or header reads, keep the
- AC7, × removal through the Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69 error/hold path (from Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69 QA O1/O2). In
flows-grid-columns.test.tsx, with 220 processes selected and scrolled deep (row ≥ 1150, so the anchor flow is beyond the first row page of the 219-process comparison), remove one column by clicking its header ×, with row-page faults injected through the harnessfaultslist (processes: 219):- O2, scroll during a paused hold. Fault on a later page (for example page 2,
times: 1). After the alert "Flow values could not be loaded." appears, scroll the grid by at least 5 rows vertically and at least one column window horizontally. While paused: no newflowSummariesorflowCellscalls,busyReadsis empty, the grid keepsaria-busy="true", and "Updating the comparison…" is absent. After Retry and settle: no alert,busyReadsis still empty, and the top flow follows the D4 rule (the user's scroll is not undone; the pre-removal anchor is not snapped back to the top). - O1, unknown is not absent. Fault on the first page of the new comparison (
page: 0,times: 1), with no scroll. After Retry and settle, the pre-removal top flow is at its offset ±1 px and no other flow was ever at the top (watchView). If the engineer finds another reachable state where partial new rows are in view during an error, add one test showing an unfetched flow is not treated as absent there. Otherwise, the handoff says why no such state is reachable.
- O2, scroll during a paused hold. Fault on a later page (for example page 2,
Out of scope and follow-ups
- Saved order is #31.
- Scores UI mounting is #28.
- Differences cache and order-insensitivity assertions are #30.
- The final async state audit is #33.
- The hold/Retry fix is #69. The F4 gate is #26.
- No row drag/reorder or zoom.
Verification plan
Run inside the workspace container (docker compose --project-directory . -f compose.yaml exec -T workspace bash -lc 'cd /workspaces/lca-diff && …', or ./dev shell):
npm --prefix apps/frontend cinpm --prefix apps/frontend run format:checknpm --prefix apps/frontend run lintnpm --prefix apps/frontend run typechecknpm --prefix apps/frontend run test:unitnpm --prefix apps/frontend run buildnpm --prefix apps/frontend run test:e2e -- --project=chromium
No host package installs.
Tests to add:
- Component tests in
comparison-headers.test.tsxfor the × (name, visibility, tab stop), keyboard reorder and announcements, focus after removal, and AC3/AC4. - Large-workload Flows grid tests in a new
services/mock/flows-grid-columns.test.tsxthat importsflows-grid-harness.ts: AC6 reads during a UI reorder, active-column removal, deep × removal anchoring, and AC7. Each large-workload jsdom test adds about 100 MB to the worker heap, and Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69 split the suite because 20 in one file exceeded the limit. So keepflows-grid.test.tsxat its current 12 andflows-grid-anchoring.test.tsxat its current 8, and keep the new file at 12 or fewer. Do not raise the heap limit, change the pool or skip tests to fit. Use the{ timeout: 20000 }describe budget, with per-test 40 s overrides only where the existing files use them. - Playwright (Chromium) cases for pointer drag (default scenario), edge auto-scroll drag and off-screen keyboard reorder (large scenario), and × removal by pointer and keyboard with Selected-list parity, focus and no duplicate columns.
Keep the 20 s large-suite budgets, and record the measured time of any new large test. Record the library/version/license rationale, the exact commands and results, and the delivered SHA in the engineering handoff. QA independently checks every criterion at that SHA and reports PASS/FAIL/BLOCKED; unavailable required checks are not passing.
Dependencies and readiness
- Satisfied: #69 (merged in PR F4: keep the hold through row-page errors and restore the anchor on Retry (#69) #73,
1c2a438, closed), [Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24 (merged in PR F4: assemble the Flows comparison with exact missingness and cell warnings (#24) #71,deb4f29), M1 runtime ([Task] M1: complete container runtime verification and the bootstrap lock #2) and bootstrap/M2 ([Task] M2: activate issue forms and publish the F1–F5 execution backlog #3). - Readiness: READY on
main1c2a438(PM recheck 2026-11-15). Branchfeat/f4-column-operationsfrom1c2a438or latermainin an isolated worktree with its own container project, ports and volumes. The PR targetsmainwithRefs #25.
Activity
DavidVFitzGerald commentedon Nov 13, 2026
PM: BLOCKED
Groomed using docs/team/product-manager.md for F4, 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: #24. 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.
DavidVFitzGerald commentedon Nov 15, 2026
PM: BLOCKED (on #69; otherwise groomed)
Rechecked using
docs/team/product-manager.mdagainstmainatdeb4f29. Phase 1, frontend with mock services; F4-06.Authority: spec §6.3 (selection/bulk order, drag-to-reorder in either tab, the × on hover/focus with global deselect, a keyboard-accessible removal control), §6.5 (Scores uses the same order; switching tabs changes nothing), §6.7 ("column order changes do not change the difference set"), §6.8 (keyboard access to column actions, focus rings, labels), §9.1 (no cap, virtualized columns, canonical sorted ID arrays) and §9.2 behaviours 17 (drag reorder) and 18. PRD §Selection: "users can drag/reorder/remove them". Accepted ADRs 0001–0003 apply. ADRs 0004 and 0005 are still Proposed and grant nothing here. No PRD or spec change is needed, so no ADR. Choosing the drag-and-drop library is an ordinary implementation choice within the AGENTS.md "accessible drag/drop" requirement.
Dependency check
main(PR #71,deb4f29), closed. SatisfiedWhy this waits for #69
store.deselect, which changes the canonical process set inuseFlowGridand triggers the placeholder/hold/anchor path. AC5's removal-while-deep test must be written against the corrected hold, not the D5-defective one.useFlowGrid.ts, possibly the pins inComparisonGrid.tsx,services/mock/flows-grid.test.tsxandservices/README.md. This issue needsComparisonGrid.tsx(focus and edge scrolling),flows-grid.test.tsx(order-only reads) and the README (keyboard controls). Only one writer may touch a file at a time, and the stacking for [Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24 showed the merge cost.Readiness rule: when #69 is merged to
main, PM rechecks the interfaces below against the newmainSHA and flips this to READY. Re-grooming is not expected. Then branchfeat/f4-column-operationsfrom thatmainSHA in an isolated worktree, with its own container project, ports and volumes. The PR targetsmainwithRefs #25.Current interfaces (verified on
maindeb4f29)app/selection.tshas a singleSelectionStore, withselect/selectManyappending,deselectanddeselectMany, andmove(key, toIndex).moveclamps the index, is a no-op on unknown keys or the same position, and is tested inapp/selection.test.ts:68. There is no per-tab order anywhere.ComparisonHeaderreadsuseSelection()and passesentriestoProcessHeadersand the grid.components/comparison/ProcessHeaders.tsxis a horizontally virtualized<ol>of memoizedHeaderCells. Each is arole="group"with one roving tab stop. Arrow, Home and End move focus between columns (onMove,:456–475), and the active header always stays mounted. Hover and focus reveal the identity panel. No ×, no drag, no keyboard reorder.ComparisonGrid.tsxkeys columns byselectionKey. The active cell follows its process by key (:126–147). When a column is removed, the tab stop falls back to the same index, and focus follows the active cell while the grid owns focus (O9,:314–333). The header and body scrollers are kept in horizontal sync (:293–312).useFlowGridkeys row pages and summaries by the canonical sorted ID set (:85–99), so a reorder keeps the comparison token. A test exists for keyboardstore.move(flows-grid.test.tsx:548, "reorders columns without re-reading rows"). Cell tiles useprocessIds.slice(columnStart, columnEnd)in display order (:193–205), so a reorder can create new tile keys. Header reads are keyed by the sorted ID set (comparison-headers.test.tsx:222, "never refetches on reorder").SelectedProcesses.tsx) already removes globally. It usesremoveNames(D4 disambiguation), moves focus to a neighbour or the empty state, and announces "Removed … from selection". e2e tests locate its buttons by exact nameRemove <name — geo> from selection(flows-composition.spec.ts:255,process-headers.spec.ts:138,flows-grid.spec.ts:219).EmptyComparison. Its grid is [Task] F5 — Assemble windowed Scores with valid and unavailable cell states #28, and it will mount the sameComparisonHeader.apps/frontend/package.jsonhas no drag-and-drop dependency.Delivered vs remaining, per criterion
AC1: pointer drag and keyboard reorder
store.moveand its tests. Columns, headers and cells follow keys, and the tab stop follows its process (the existing test).@dnd-kit/coreand@dnd-kit/sortable; the engineer chooses and justifies it).package.json.npm --prefix apps/frontend install --save-exact …, commitpackage-lock.json, and confirm a frozennpm --prefix apps/frontend ciin the container.store.moveonce on drop.services/README.mdand exposed in each header's accessible description.(flow, process)cell shows the same lexeme before and after a move, and process IDs are unchanged.AC2: header ×, global removal
<button>"×".:focus-within, and does not change header height or column width.removeNames, and is distinguishable from the Selected-list button (for example "Remove column <name — geo>"). Existing exact-name e2e locators then stay valid, or are deliberately scoped to their list.store.deselect. The process leaves the headers, the grid columns and the Selected list, and its tree checkbox clears. Rows whose last contributor it was are removed (spec §6.4).AC3: one shared order across tabs
SelectionStore.ComparisonHeader.AC4: F3 append rules after manual changes
bulkOrder(alphabetical, then geography/ID) after the existing manual order, which stays unchanged.AC5: virtualized columns, edge scrolling and focus
/?mock-scenario=large(220 processes):AC6: order-only changes read nothing new for the selection set
comparison_tokenis unchanged.aria-busyor "Updating…".Constraints
ProcessHeaders, so [Task] F5 — Assemble windowed Scores with valid and unavailable cell states #28 inherits them. Do not add row drag, cell drag, zoom or saved order ([Task] F5 — Persist the versioned account-scoped workspace #31).useFlowGrid(owned by Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69, merged first).src/test/service-boundary.test.tsmust still pass.Container verification plan
These are existing F1 scripts, run inside the workspace container. Nothing is installed on the host:
Test evidence expected:
comparison-headers.test.tsxcovers the × name, visibility and tab stop, keyboard reorder and announcements, focus after removal, and AC3/AC4.flows-grid.test.tsxcovers the AC6 reads during UI reorder, active-column removal, and deep × removal anchoring.Out of scope and linked follow-ups
Issue body updated: the dependency is now #69 (with #24 satisfied), the criteria are refined as above, and the stale branch note is removed. The
blockedlabel stays until #69 merges.Next action: coordinator runs #69 (Software Engineer, then QA, then merge). PM then rechecks this issue and flips it to READY for the Software Engineer.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
PM note carried from #69 QA, not a readiness change. When #25 is rechecked after PR #73 merges, add:
locatechange (unfetched pages report unknown, not absent, during an error) has no covering test. If header × removal creates a reachable state where partial rows are in view during an error, add a test for it.updatinginstead ofbusy, because the view never moves in those tests. Add a scroll during a paused hold, for example after a header × removal while scrolled deep.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
PM: READY
I rechecked this issue against
docs/team/product-manager.mdandAGENTS.mdonmainat1c2a438. It is Phase 1, frontend with mock services, F4-06. The authority and scope are unchanged from the previous grooming: spec §§6.3, 6.5, 6.7, 6.8, 9.1 and 9.2 behaviours 17–18, and the PRD's Selection section. ADRs 0001–0003 are accepted. ADRs 0004 and 0005 are still Proposed and grant nothing. No PRD or spec change is needed, so no ADR.Dependency check
deb4f29), closed. Satisfied1c2a438), closed. Satisfiedapps/frontend/Makefile, compose files andpackages/python/Interfaces rechecked after #69
deb4f29:ProcessHeaders.tsx,ComparisonGrid.tsxandapp/selection.tshave no diff. Everything the previous grooming relied on still holds:SelectionStore.moveanddeselect.onMoveArrow/Home/End handler.selectionKey, the O9 focus follow, and header/body scroll sync.useFlowGrid.tsandFlowsGrid.tsx):FlowGridDatahas a newbusyflag,placeholder || holding.busy.FlowsGridpassesbusy(notupdating) to the grid'saria-busy.locatetreats flows on unfetched pages as unknown, even after an error.store.deselect) now goes through the corrected hold.flows-grid-harness.tshelpers this issue needs already exist:renderwithfaults,pageReadsandbusyReads;selectAll,scrollTo,topRow,rowNamedandwatchView; andsettled,settledAtandloadError.FlowsGridmountsComparisonHeader, so harness tests can click the header × directly.flows-grid.test.tsx.Criterion deltas (issue body updated)
busyReadsis empty,aria-busystays true, and "Updating…" is absent. After Retry the grid settles with no busy reads, and the scroll is not undone (the D4 rule).watchViewshows no other top flow. If the engineer finds another reachable state with partial new rows in view during an error, they add a test for it. Otherwise the handoff explains why no such state exists.locatelogic inuseFlowGridmust not change. A defect a new test exposes there is reported for a separate bug, not fixed here. Additive harness helpers are allowed.services/mock/flows-grid-columns.test.tsxthat importsflows-grid-harness.ts.flows-grid.test.tsxalready has 12 such tests andflows-grid-anchoring.test.tsxhas 8.comparison-headers.test.tsx.The other criteria (AC1–AC6), the constraints, the container verification plan and the follow-ups (#26, #28, #30, #31, #33) are unchanged. A note for the F4 gate: #26's body names only #25 as its predecessor. #69 is closed, so this changes no readiness, but the #26 recheck should cite it.
Branch and handoff
feat/f4-column-operationsfrommain1c2a438, in an isolated worktree with its own container project, ports and volumes.mainwithRefs #25and no closing keyword.Next action: Software Engineer implements this issue. The
blockedlabel is removed.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → implementing. Software Engineer assigned on
feat/f4-column-operationsfrom1c2a438, in an isolated worktree.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Engineering: READY FOR QA
feat/f4-column-operations, frommain1c2a438, in the isolated worktree/tmp/lca-diff-f4-columns. It ran in its own Compose projectlca-diff-f4-columnson port 5201, with no shared volumes.9598c18737f92903ea92c04a463cff7adc5e109fRefs #25, no closing keyword, not merged)Library
@dnd-kit/core6.3.1, pinned exactly.@dnd-kit/accessibility3.1.1 and@dnd-kit/utilities3.2.2 (both MIT), plustslib(0BSD).react/react-dom >=16.8.npm cipasses frozen.npm audit --omit=devreports 0 vulnerabilities.overflow: hidden.The PR has the full rationale.
Criteria
comparison-headers.test.tsx: "reorders by keyboard…" and "drags a header…". The description text is asserted exactly. The e2e default-scenario test checks drag with alignment and unchanged values, the keyboard focus ring and announcements. The README documents the keysbulkOrderbulk add)flows-grid-columns.test.tsx. Edge auto-scroll drag to position ≥ 30 and the off-screen keyboard reorder are ine2e/column-operations.spec.ts(Chromium)flows-grid-columns.test.tsx"reorders by keyboard and pointer…": no row, summary or header reads; noaria-busy, no "Updating…", no query removed or invalidated; uncached tiles only, with the same token and identical values; unique keys, and the column count equals the selection countflows-grid-columns.test.tsx. Both pass, so no defect was found in theuseFlowGridhold, seek, error, Retry orlocatelogic. That logic is unchangedAC7 O1, other states: I found no state, beyond those #69 already lists, where partial new rows are in view during an error. Header × removal is a plain
store.deselect. During the hold, the previous comparison stays shown until an anchor flow loads, so partial new rows never appear. Outside a hold, paging errors and selection changes during an error are already covered by the #69 tests.Commands
All commands ran in the
lca-diff-f4-columnsworkspace withdocker compose --project-directory . -f compose.yaml exec -T workspace bash -lc 'cd /workspaces/lca-diff && …'.npm --prefix apps/frontend ci: exit 0npm --prefix apps/frontend run format:check: passnpm --prefix apps/frontend run lint: pass, 0 warningsnpm --prefix apps/frontend run typecheck: passnpm --prefix apps/frontend run test:unit: 31 files, 403 passednpm --prefix apps/frontend run build: passnpm --prefix apps/frontend run test:e2e -- --project=chromium: 29 passed (all specs, including the 3 new ones)Measured times of the new large tests (full parallel run):
render(30)tests use the 40 s per-test override, as the existing deep tests do.Changes to existing tests (please review)
e2e/process-headers.spec.ts: the header tab-stop count is scoped to[role="group"], and one tabbable × is now asserted. Without the scope, the active header's × makes the count ambiguous.comparison-headers.test.tsx: one exact description assertion now expects the reorder instructions appended. This is stricter.flows-grid.test.tsx"sizes mixed-sign rows…": raised thewaitFortimeout from the implicit 1 s to the file's usual 10 s.ProcessHeadersback in, so the cause is worker load, not this change.Limitations
Manual check
./dev upwithFRONTEND_PORTset, thennpm --prefix apps/frontend run devin the container./?mock-scenario=largeand sign in.Next role: QA. Verify independently at
9598c18737f92903ea92c04a463cff7adc5e109f.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
QA: PASS
9598c18737f92903ea92c04a463cff7adc5e109f(PR F4: shared column drag, keyboard reorder and global removal (#25) #74,feat/f4-column-operations→mainat1c2a438). It holds exactly the 7 handed-off commits (255b933…9598c18). The PR head matches this SHA. The working tree was clean before and after review./tmp/lca-diff-f4-columns-qa, not the engineer's. It ran in its own rootless workspace container: Compose projectlca-diff-f4-columns-qa,FRONTEND_PORT=5203, no shared volumes../dev checkpassed, and the container was taken down afterwards.git checkout. The scratch files were deleted.apps/frontend/(15 files), and choosing the library is an ordinary implementation choice.Commands and results
All were run in the QA container at
9598c18, withR='docker compose --project-directory . -f compose.yaml -p lca-diff-f4-columns-qa exec -T workspace bash -lc':src/test/service-boundary.test.tspasses as part of the unit run.Per-criterion results
AC1, pointer drag and keyboard reorder: PASS.
PointerSensorwith an 8 pxdistanceactivation. A drop callsstore.moveexactly once: the header test asserts this withtoHaveBeenCalledTimes(1)andtoHaveBeenCalledWith(key, 2).move.event.target !== currentTarget).services/README.md"Column operations ([Task] F4 — Add shared column drag, keyboard reorder and global removal #25)".toBeFocusedand a solidoutline-style.cellValues(flow|process ID → label) is identical before and after a drag and a keyboard move, and that header and cell x and width match within 1 px. The large jsdom test compares more than 100 mounted cells by flow and process.AC2, header ×: PASS.
<button type="button">inside the header group.Remove column <uniqueSelectionLabels>, asserted for duplicate labels (release suffix) and a missing geography.Remove … from selection.tabindex=0. My Chromium probe found:[tabindex="0"]in the strip (unscoped);aria-checked=falsein Chromium).h2[tabindex=-1][data-empty-focus]), never the body, in jsdom and Chromium. "Removed … from selection" is announced, in the same wording as the Selected list.AC3, one shared order: PASS.
ComparisonHeaderandProcessHeadersread onlyuseSelection(), and the only order state isSelectionStore.AC4, F3 append rules: PASS.
bulkOrder, after the unchanged manual order.store.selectMany([...].sort(bulkOrder)), the same ordering the bulk UI uses.AC5, large scenario: PASS.
?mock-scenario=large).scrollLeftequals the strip's.aria-colcountis unchanged, fewer than 30 headers are mounted, and the columns are aligned.data-col=5, with the next process's name.watchViewsees only the anchor flow, andbusyReadsis empty.AC6, order-only reads: PASS.
aria-busyand no "Updating…";comparison_token;aria-colcount= 221.AC7, × removal through the #69 error and hold path: PASS.
flowSummariesorflowCellscalls, emptybusyReads,aria-busy="true", and no "Updating…".busyReads, and the old anchor is not snapped back (D4).store.deselect, and while the hold is in effect the previous comparison is shown.useFlowGridis unchanged.git diff 1c2a438 9598c18 -- apps/frontend/src/components/comparison/useFlowGrid.tsis empty, and so are the diffs forFlowsGrid.tsxandComparisonGrid.tsx. The only harness change wraps the render inAnnouncerProviderinstead ofFragment.flows-grid.test.tsx12,flows-grid-anchoring.test.tsx8, the newflows-grid-columns.test.tsx6 (≤ 12). The heap limit, pool and skips are unchanged.Dependency (task item 3): accepted
@dnd-kit/corepackage.json, no^)latest; peersreact/react-dom >=16.8.0; resolves against react/react-dom 19.3.1, deduped (npm ls)@dnd-kit/accessibility@dnd-kit/utilitiestslibdev/optionalflags were droppednode_modules/@dnd-kit/*entries with integrity hashes. Frozennpm cipasses in the container and in CI, and leaves the tree clean.npm audit --omit=devreports 0 vulnerabilities. The 7 moderate dev-only advisories (minimatch) are not introduced by this PR.pyproject.toml,uv.lock,packages/, compose files, theMakefileor.github. dnd-kit is imported only byProcessHeaders.tsxand the frontend tests, so it never reaches the API or backend runtime.The
waitFortimeout in "sizes mixed-sign rows…" (task item 4): acceptedflows-grid.test.tsxrestored fromec7f956, which is identical to1c2a438), the full suite at9598c18failed this test in 3 of 3 runs. The failures were at 6.2 s, 6.5 s and 6.7 s, eachexpected false to be true, with every other test passing.1c2a438. Onmainthe full suite passed in 2 of 2 runs (the test took 4.4 s and 4.2 s). With one extra large-workload file added (a copy offlows-grid-anchoring.test.tsx, 8 tests, close to the new file's 6), it failed in 2 of 2 runs:expected null not to be null);So
mainis load-sensitive in the same way.9598c18against 3.92, 3.65 and 3.68 s at1c2a438. The whole file alone took 2.86 s on both.expect(...some(height > STANDARD_ROW_HEIGHT)).toBe(true)inwaitFor(…, { timeout: 10000 }), plus a comment.settledAtwould be an equivalent relaxation. Moving the test elsewhere would not reduce load.Changes to existing tests (task items 5 and 6): no coverage lost
e2e/process-headers.spec.tstab stops. The single[tabindex="0"]count became one[role="group"][tabindex="0"]plus onebutton[tabindex="0"].[tabindex="0"]count (exactly 2) and checked that the tabbable × belongs to the active header. Both pass.comparison-headers.test.tsxdescription. It is still an exact full-string match, with the instructions appended, so it is stricter.app/announcer.ts.SelectionProvider), so signout discards it.tabIndex={-1}, so it adds no tab stop, and it is used only as the programmatic focus target.uniqueSelectionLabelsis a pure extraction of the oldremoveNames, with the same release and(item n)disambiguation.Remove ${name} from selection, so its names are unchanged.flows-composition.spec.ts,process-headers.spec.ts,flows-grid.spec.tsandselection.spec.ts.Accessibility (task item 7): PASS
Touch (task item 8): observation, not a defect
Mutation table
Each mutant was a scratch edit applied inside the container by a script and run against
comparison-headers.test.tsxandflows-grid-columns.test.tsx(26 tests). Each was reverted withgit checkout -- apps/frontend, and none is committed.store.deselectremoved (no global deselect)useFlowGrid: row pages keyed by display-orderprocessIds, notcanonicalIds(a reorder re-reads rows)index + 2tabIndex=0(N tab stops)toHaveFocuson the heading)Timings (full parallel
test:unit, 96.1 s in total)None is near its budget. The 300-selection test (21.2 s of 30 s; 17.6 s in #69 QA) is the closest, and it is pre-existing. New e2e times: 2.6 s, 10.4 s and 3.6 s.
Defects
None.
Observations (non-blocking)
mainas well as here.1c2a438made a 10 s-wait deep-scroll test fail once, as well as the 1 s test.waitForand test times in the gate. Do not bump waits case by case.touch-actionis set, so a touch pan scrolls the page. The spec scopes MVP to desktop and laptop, and no criterion requires touch. Touchscreen laptops will need the keyboard or the × instead. Consider adding a TouchSensor ortouch-action: noneon headers in a later polish issue if wanted.store.deselectas the Selected list, and my probe confirmed it. A one-line follow-up in [Task] F4 — Verify large Flows comparisons and record the milestone gate #26 could pin it.@smoke. Consider tagging one, or covering it in the [Task] F4 — Verify large Flows comparisons and record the milestone gate #26 gate run.Next role
Coordinator, then maintainer review of PR #74. PASS returns the PR to review and merge. No merge is authorized by this report. O1 and O3 are candidates for #26, O4 for #33, and O2 and O5 are for maintainer judgement.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: QA PASS at
9598c18(#25 (comment)). Hostedqualitycheck passes. State → ready for maintainer review of PR #74. #25 closes after the maintainer merges PR #74.QA observations carried forward:
🤖 Generated with Claude Code
build: add @dnd-kit/core 6.3.1 for accessible column drag (Refs #25)
feat: drag, keyboard reorder and × removal on process headers (Refs #25)
test: cover header ×, keyboard and pointer reorder, shared order and …
fix: auto-scroll the header strip itself during a drag (Refs #25)
test: cover column operations on the large grid and in Chromium (Refs #…
docs: document column drag, keyboard reorder and removal (Refs #25)
test: give the row-300 height wait the file's 10 s deep-scroll budget…
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: closed. QA PASS at
9598c18. The maintainer merged PR #74 tomain. Next, when the maintainer authorizes it: PM grooms #26, the F4 gate.🤖 Generated with Claude Code