Repository navigation
Description
Delivery phase
Phase 1 - frontend with mock services. Milestone F5; task key F5-07.
Goal
Make asynchronous comparison transitions understandable and recoverable without freezing controls or hiding retained selections.
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. Current governance/spec documents are prepared on branch docs/agent-workflow; acceptance/merge authority follows docs/adr/README.md, not proposed ADR status. Any contract deviation needs an ADR and both current document updates in the same PR.
Specification §§6.1, 6.8, 7.4, 9.1–9.3. Planned files: apps/frontend/src/app/ comparison status orchestration, shared notices/focus behavior and focused browser tests (planned).
Requirements and constraints
Focus on the cross-component state gaps after completed features; do not refactor unrelated UI. Use deterministic latency/error scenarios through mock services. Existing auth-required/forbidden handling must clear protected data and return to the modal, without a new page or technical backend details in routine UI.
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 Software Engineer and QA role handoffs, commit focused increments referencing this issue, and leave it open for QA/review.
Acceptance criteria
- AC1 — No processes, one process, no search matches and no indicators each show the correct actionable state without undesired selection loss.
- AC2 — Loading/skeleton/progress and large-comparison notices are non-blocking; users can cancel/replace work, and large selection alone never requires confirmation.
- AC3 — Transient errors provide safe retry; structured auth/unverified/unavailable/window/snapshot errors route to appropriate recoverable UI rather than exposing raw payloads.
- AC4 — All tabs, trees, sidebars, removal/reorder controls and warning/value tooltips retain labels, focus rings and keyboard access across loading/error transitions.
- AC5 — Desktop layouts remain usable with both sidebars open, and unsupported small screens show an accessible larger-screen-required state.
- AC6 — No critical regression found during this state audit is silently deferred: fix a bounded in-scope state gap or file a linked Bug and block its affected criterion.
Out of scope and follow-ups
Feature-owned behavior remains in its original issue; full phase conformance is #34. Real token verification/backend authorization stay in roadmap B2/I1.
Verification plan
Run on the Docker host: ./dev shell, then inside /workspaces/lca-diff: npm --prefix apps/frontend run format:check, npm --prefix apps/frontend run lint, npm --prefix apps/frontend run typecheck, npm --prefix apps/frontend run test:unit, and npm --prefix apps/frontend run build. These scripts are established by F1, not claimed available today. Browser scenarios use npm --prefix apps/frontend run test:e2e -- --project=chromium (F1 establishes the pinned Playwright tool/browser setup). No host package installs.
Run targeted component/browser tests with injected delays, cancellations, auth failures, temporary errors, empty results and narrow viewport. Record keyboard/focus checks and verify cancellation/stale responses cannot replace current UI.
Record exact commands/results and 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
Blocking predecessors: #32. Also requires verified M1 container runtime and merged bootstrap/M2 configuration; later milestones are planned, not implementation-ready while predecessors remain open. PM must recheck dependencies and actual interfaces before marking READY.
Activity
DavidVFitzGerald commentedon Nov 13, 2026
PM: BLOCKED
Groomed using docs/team/product-manager.md for F5, 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: #32. 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 note carried from #25 QA (O4), not a readiness change: the header × removal announcement uses the plain process label, so two selected processes with the same label from different releases sound identical. This matches the Selected list's existing wording. Consider disambiguating both together, for example by adding the release, when grooming #33.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 16, 2026
Deferred to post-MVP (coordinator, 2026-11-16) per the maintainer's local-only MVP scope revision, ADR 0006 (#95). The basic loading/error/retry states delivered in F2–F5 are sufficient for the local MVP. This cross-state audit and accessibility polish pass is deferred. Critical defects found in L1–L3 are still fixed there or filed as Bugs. Body and criteria are retained unchanged for later re-grooming; recheck dependencies (now partly on L1–L3: #96, #97, #30) before any future start.