Repository navigation
Description
Delivery phase
Phase 1 — frontend with mocks (F3 follow-up).
Goal
Close two non-blocking QA follow-ups from #16 (PR #50): give the process tree's pseudo rows (Load more, loading, empty, error) consistent ARIA set positions, and make the browser storage check cover localStorage, sessionStorage and IndexedDB before and after re-login.
Context and authority
- QA on [Task] F3: render the paginated release and nested process tree #16: finding F-3 (pseudo
treeitems carryaria-levelbut noaria-posinset/aria-setsize) and the e2e gap (e2e/process-tree.spec.tscompareslocalStoragekeys only). - Spec §6.2 (process tree), §6.8 (keyboard/ARIA accessibility; persist only the listed workspace fields under a UID-scoped key, do not persist temporary expanded tree nodes; clear in-memory data on logout/account change), §9.2 item 17 (per-user storage). AGENTS.md correctness gates (no protected data before verified auth).
- Code today:
apps/frontend/src/components/process-tree/ProcessTree.tsxbuilds rows inwalk(); real nodes getposinset: index + 1andsetsize= child count when the branch's load is complete, else-1; thepseudo()rows get neither.e2e/selection.spec.tsalready readssessionStoragekeys (precedent).
Requirements and constraints
- Pattern (default): a pseudo row is the last member of its branch's child set:
aria-posinset= rendered real children + 1;aria-setsize=-1while the branch's load is incomplete (same as its siblings), otherwise real children + 1 (so an empty branch's row is 1 of 1). Real nodes' values stay unchanged. Another WAI-ARIA 1.2-valid pattern is allowed only if justified in the PR and applied to all four kinds. - No other tree behaviour changes (keyboard navigation, focus, selection, paging, search, roving tab stop).
- The storage check reads storage in the page; no product storage code is added.
- Does not touch files of concurrent [Task] F5 — Add the indicator tree and source-ordered selection state #27/PR F5: add independent indicator tree and selection (#27) #88 (
App.tsx,session.test.tsx,services/mock/test-harness.ts, indicator tree). If a test-harness change is unavoidable, mergeorigin/mainafter F5: add independent indicator tree and selection (#27) #88 lands first.
Acceptance criteria
- AC1 Each pseudo kind renders
aria-level,aria-posinsetandaria-setsizeper the pattern. - AC2 Component tests in
src/services/mock/process-tree.test.tsxassert exact level/posinset/setsize for: loading (first page pending), more (hasNext), error on the first page, error on a later page (nextFailed), and empty; and that the real siblings' values are unchanged in each case. - AC3
e2e/process-tree.spec.tsrecords, before sign-out and after re-sign-in (after expanding branches):localStoragekeys and values,sessionStoragekeys, andindexedDB.databases()names. It asserts thelocalStorageandsessionStoragekey sets and the IndexedDB database names are identical before and after (thesessionStorageand IndexedDB lists are expected to be empty; record what was observed), and nolocalStoragevalue contains tree expansion state (expanded branch path segments such astransport systems, or tree node keys). It fails, not skips, ifindexedDB.databasesis unavailable in a project. - AC4 It passes in Chromium and Firefox; existing process-tree, selection, bulk-selection and search unit/e2e tests pass unchanged.
- AC5 Container gates pass: frozen
npm ci, format:check, lint, typecheck,test:unit, build, fulltest:e2e; hostedqualitypasses on the PR.
Out of scope and follow-ups
Any tree behaviour change beyond these attributes and checks; F-5 (observation only); unit-suite budgets (#76/#87); AuthDialog flake (#51 — if it appears in a run, rerun and cite #51, do not fix here).
Verification plan
git -C /home/david/projects/LCA-diff fetch origin
git -C /home/david/projects/LCA-diff worktree add -b fix/52-tree-aria-storage /tmp/lca-diff-tree52 origin/main
cd /tmp/lca-diff-tree52
ss -ltn | grep ':5223 ' && echo 'port 5223 busy - pick another and record it'
COMPOSE_PROJECT_NAME=lca-diff-tree52 FRONTEND_PORT=5223 ./dev up
COMPOSE_PROJECT_NAME=lca-diff-tree52 FRONTEND_PORT=5223 ./dev check
docker compose -p lca-diff-tree52 exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npx vitest run src/services/mock/process-tree.test.tsx && npm run test:unit && npm run build'
docker compose -p lca-diff-tree52 exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- e2e/process-tree.spec.ts --reporter=list && npm run test:e2e'
COMPOSE_PROJECT_NAME=lca-diff-tree52 ./dev downHost rule: at most two container suites at once; do not run the full unit or e2e suite while #76's gate runs are in progress (coordinator confirms). Show AC2/AC3 tests failing before the change (record) and passing after.
Dependencies and readiness
Dependencies met: #16 merged (PR #50); F3 complete. Groomed READY 2026-11-15; runs in parallel with #76/#87. Likely files: apps/frontend/src/components/process-tree/ProcessTree.tsx, apps/frontend/src/services/mock/process-tree.test.tsx, apps/frontend/e2e/process-tree.spec.ts. No conflict with PR #88's file list or #76/#87's likely files.
Activity
DavidVFitzGerald commentedon Nov 15, 2026
PM: READY
fix/52-tree-aria-storage, worktree/tmp/lca-diff-tree52, projectlca-diff-tree52, port 5223 (free at grooming). One PR,Refs #52.aria-posinsetis the number of real children + 1.aria-setsizeis-1while the branch is incomplete, matching its siblings. Otherwise it is the number of real children + 1, so an empty branch's row is 1 of 1.localStoragekeys and values,sessionStoragekeys andindexedDB.databases()after expanding branches, before sign-out and after re-sign-in.nextFailed) and empty. Show them failing before the change.Hand-off: Software Engineer, then QA.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → implementing. Software Engineer assigned on
fix/52-tree-aria-storagefromaf5317d, worktree/tmp/lca-diff-tree52, Compose projectlca-diff-tree52, port 5223. Runs alongside #76/#87.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Engineering: READY FOR QA
fix/52-tree-aria-storage@9633d77ab4cc7c6fab2502f41b21f1db0f951633, based on mainaf5317d.Refs #52and no closing keyword.7baf84cgives the pseudo rows their ARIA set positions and adds the unit tests.9633d77adds the e2e storage check.Criteria
AC1 done. In
ProcessTree.tsx, every pseudo row (loading, more, error, empty) hasaria-posinset= real children + 1.aria-setsizeis-1while the branch is incomplete, otherwise real children + 1. All three attributes are rendered fromTreeRow's shared props, and real nodes keep their old values. This is the PM's default pattern.AC2 done. The new describe block "process tree pseudo-row ARIA positions (F3: process tree pseudo-row ARIA positions and full browser storage check #52)" checks exact
[level, posinset, setsize]values:[2,1,-1][1,1,2]/[1,2,2][3,51,-1]; root's row[2,2,-1][3,1,-1]/[3,50,-1]; t[2,1,-1]; root[1,1,1][2,1,-1][1,1,2]/[1,2,2]nextFailed)[3,51,-1][3,1,-1]/[3,50,-1]; t[2,1,-1][2,1,1][1,1,1]null.AC3 done.
storage()helper readslocalStoragekeys and values,sessionStoragekeys andindexedDB.databases()names. It runs after five branches are expanded and before sign-out, and again after re-sign-in.transport systems,operations,infrastructure, or any expanded row'sdata-row-key.indexedDB.databasesis missing, the helper throws, so the test fails instead of skipping.lca-diff:mock-session:v1, which is the mock auth session (uid, email, verified flag). sessionStorage was[]and IndexedDB[].IDBFactory.prototype.databasesfailed with "indexedDB.databases() is unavailable in this browser".transport systemsinto localStorage failed thenot.toMatchcheck.AC4 done. The existing process-tree, selection, bulk-selection and search unit and e2e tests pass unchanged in Chromium and Firefox.
AC5 done. All container gates passed (below), and hosted
qualitypassed, as didapi-quality,backend-qualityandetl-quality.Commands
All commands ran in Compose project
lca-diff-tree52on port 5223, fromapps/frontend(docker compose -p lca-diff-tree52 exec -T workspace bash -lc '…')../dev up,./dev checknpm ci --no-audit --no-fundnpm run format:checknpm run lintnpm run typechecknpx vitest run src/services/mock/process-tree.test.tsxnpm run test:unitnpm run buildnpm run test:e2e -- e2e/process-tree.spec.ts --reporter=listnpm run test:e2e./dev downlca-diff-headroomloop for [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 had gone idle.Limitations and notes
locator.evaluateAllcrashed the page ("Page crashed") twice in a row at the expanded-rows read. The spec reads each row withlocator.all()andgetAttributeinstead. This changes only how the test reads the rows, not what it asserts.apps/frontend/src/components/process-tree/ProcessTree.tsx,apps/frontend/src/services/mock/process-tree.test.tsxandapps/frontend/e2e/process-tree.spec.ts. None of [Task] F5 — Add the indicator tree and source-ordered selection state #27's files were touched.Next: QA verifies the delivered SHA
9633d77.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → QA. Engineering READY FOR QA at
9633d77(PR #90). Independent QA assigned in detached worktree/tmp/lca-diff-tree52-qa. QA to check whether the FirefoxevaluateAllpage crash is the same Playwright 1.65.1 defect as #75 and, if so, link it to #85.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 16, 2026
QA: PASS
9633d77ab4cc7c6fab2502f41b21f1db0f951633(PR F3: pseudo-row ARIA positions and full browser storage check (#52) #90 head,fix/52-tree-aria-storage), based on mainaf5317d. Commits7baf84c(ARIA and unit tests) and9633d77(e2e storage check)./tmp/lca-diff-tree52-qa, Compose projectlca-diff-tree52-qa, port 5227, rootless workspace container. Playwright 1.65.1 with its Chromium and Firefox builds. Compose was brought down afterwards and the worktree is clean at the SHA.docker statsshowedlca-diff-headroomandlca-diff-headroom-qaidle. See the note on the first unit run below.Criteria
buildRows, each pseudo row getsposinset = children.length + 1. Itssetsizeis-1unlesscomplete(load), and then it ischildren.length + 1.TreeRowrenders all three attributes from the sharedcommonprops for every kind. The real-row computation (index + 1, the branch setsize) is unchanged in the diff. The only change is thataria-posinsetandaria-setsizemoved intocommon, with the same values. This is the PM pattern. It is also valid under WAI-ARIA 1.2:aria-setsize="-1"is the required value when the set size is unknown, and posinset ≥ 1 and ≤ setsize when the size is known. Loading, more and error rows can only appear while the branch is incomplete, so they are always-1. An empty branch is complete, so its row is 1 of 1. Filtered derived branches render no pseudo rows, which is unchanged.af5317d'sProcessTree.tsxwith the new test file, 5/5 failed (expected ['2', null, null] to deeply equal ['2','1','-1'], and so on), while the other 15 passed. With the PR component, 20/20 pass. Mutation check: forcing pseudosetsize = children + 1regardless of completeness fails 4 of the 5 tests. Only the empty case passes, as expected. Each test also asserts the real siblings' level, posinset and setsize.storage()runspage.evaluatein the page. It reads localStorage keys and values, sessionStorage keys and theindexedDB.databases()names. It is called after the 5 branches are expanded (before sign-out) and again after re-sign-in. The test asserts identical localStorage and sessionStorage key sets and identical IndexedDB names. It asserts that no key or value matches the expanded path segments or any expanded row'sdata-row-key, and that session and IndexedDB are[]. Observed in both browsers, before and after: localStorage{"lca-diff:mock-session:v1": <mock uid, email, email_verified, verificationRequested>}, sessionStorage[], IndexedDB[]. QA's mutation copies (temporary and deleted, not committed) all failed in both projects (12/12): (1) a localStorage value["transport systems"]:not.toMatch; (2) a localStorage value holding an expanded row key:not.toMatch; (3) a sessionStorage key added after re-login: session equality; (4) an IndexedDB database opened after re-login: IndexedDB equality; (5)IDBFactory.prototype.databasesdeleted by an init script: fails withindexedDB.databases() is unavailable in this browser, so the test fails and does not skip; (6) a localStorage key present before and removed after: key-set equality.process-tree.spec.ts --repeat-each=3: 6/6 (3 Chromium, 3 Firefox). Full e2e: 66 passed in both projects. Full unit suite: 410/410. The PR touches onlyProcessTree.tsx,process-tree.test.tsx(additions only) andprocess-tree.spec.ts. The selection, bulk-selection and search tests are unchanged and pass.npm ci(236 packages), format:check, lint, typecheck and build passed, along withtest:unit410/410 andtest:e2e66 passed. Hosted checks at9633d77all passed:quality(run 43771987124, includingtest:unitand the critical browser smoke in both projects),api-quality,backend-qualityandetl-quality.AC2 tests
[level, posinset, setsize][2,1,-1][3,51,-1], plus the root's own[2,2,-1][2,1,-1]nextFailed)[3,51,-1][2,1,1]The Firefox
evaluateAllcrash is the #75 defectQA reproduced it with temporary spec copies (not committed), Firefox,
--repeat-each=2:expandedRows.evaluateAll(...), whereexpandedRows = page.getByRole("tree", { name: "Processes" }).locator('[role="treeitem"][aria-expanded="true"]'), failed 2/2 withlocator.evaluateAll: Page crashed.evaluateAllscoped by CSS,page.locator("[role=tree]").locator(...), passed 2/2.The tree's name comes from
aria-labelledby(ProcessTree.tsx,aria-labelledby={labelledBy}). A named role query whose name comes fromaria-labelledby, combined with a main-world read, is the trigger recorded in #75: Playwright 1.65.1's firefox-1572, upstream microsoft/playwright#43967, Mozilla bug 2090055.The replacement keeps the same assertions:
locator.all()+getAttribute("data-row-key")collects the same keys.toHaveCount(5)and everyexpectare unchanged.For #85: this spec now also depends on the workaround. When Playwright is upgraded, #85 should also confirm that
evaluateAllthrough the namedtreelocator is stable inprocess-tree.spec.ts. Restoring it is optional, because the current loop is behaviourally equivalent. Unlike the other workarounds, this one has no#75/upstream comment in the spec. Adding one (in #85 or later) would make it findable.Commands
All of these ran via
docker compose -p lca-diff-tree52-qa exec -T workspace bash -lc 'cd apps/frontend && …', afterCOMPOSE_PROJECT_NAME=lca-diff-tree52-qa FRONTEND_PORT=5227 ./dev upand./dev check(PASS).npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typechecknpx vitest run src/services/mock/process-tree.test.tsxaf5317d's component, 5 failed / 15 passednpx playwright test e2e/process-tree.spec.ts --repeat-each=3 --reporter=listnpm run test:unitnpm run buildnpm run test:e2e -- --reporter=list./dev downNote on the unit runs: two earlier
test:unitruns were invalid because other suites started on the host mid-run. In one,lca-diff-headroomandlca-diff-f5-indicatorswere at 130–160 % CPU and the load average reached 7.8. In the other,lca-diff-headroom-qawas at 163 %. Those runs failed 3/410 and then 2/410. The failures were the #76 budget-sensitive tests: the 300-selection test, deep scroll and the #69 hold. They are in files this PR does not touch, and both files pass 21/21 in isolation. The run on a quiet host passed 410/410. This is consistent with #76/#87, not a #52 regression. No #51 AuthDialog flake appeared.Next: hand to the maintainer for review and merge of PR #90. #85 owner: note the extra dependency on the workaround described above.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 16, 2026
Coordinator state: ready for review.
9633d77(QA), and the hosted checks are green.🤖 Generated with Claude Code
fix: give process tree pseudo rows ARIA set positions (Refs #52)
test: check all browser storage around re-login in the tree e2e (Refs #…
DavidVFitzGerald commentedon Nov 16, 2026
Coordinator: closed. PR #90 merged at
ca68126after QA PASS and green hosted checks.🤖 Generated with Claude Code