Repository navigation
Description
Delivery phase
Phase 1 - frontend with mock services
Goal
Provide a minimal executable frontend foundation and deterministic local checks without implementing product UX.
Context and authority
Milestone F1; 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 §§3, 3.3, 9.2. Current planning baseline is on docs/agent-workflow, pending review/merge into main; proposed ADRs are not accepted authority. Create apps/frontend/ (React, TypeScript, Vite), its npm lockfile and test/tool configuration; extend existing container/Make documentation only where needed. These application paths are planned until created. Exclude all archive/reference folders.
Requirements and constraints
Use the pinned Node toolchain in the Dev Container; pin compatible package versions and commit package-lock.json. Establish nonwatch package scripts format:check, lint, typecheck, test:unit and build. Add Vitest/React Testing Library setup and a minimal technical mount target. This target is not the product shell.
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 - A clean container checkout installs with
npm --prefix apps/frontend ci; the committed lock is unchanged by install. - AC2 - React/TypeScript/Vite build successfully, with a minimal mount target and no product/API/auth behavior.
- AC3 - All five required scripts exist, run noninteractively, and return nonzero for a deliberately demonstrated applicable format/lint/type/unit failure.
- AC4 - At least one meaningful mount/component test runs under Vitest/RTL; the suite is not an empty-test success.
- AC5 - README gives exact container development/build commands; no host tool installation or package artifacts are required.
- AC6 - The first frontend PR introduces container-based CI for locked install, format/lint/type/unit/build checks; failures fail the PR check. Browser checks extend this baseline in #10.
Out of scope and follow-ups
Product shell/auth is #11–#14; typed services are #6; browser/CI gate is #10. No real API, Firebase, database or production resources.
Verification plan
This task creates the scripts. After ./dev up and ./dev shell, run npm --prefix apps/frontend ci, then 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. Record command exits/test counts and inspect a locked clean install.
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 #3, #2. 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 blockers above
PM: READY for Phase 1/F1 scaffold. #2 runtime/editor QA and PR #35 merge are verified; #3 activation QA and PR #36 merge (16e5fde) are verified. Current accepted ADRs and main docs apply; the planning-branch/pending-merge statements above are historical. AC1–6 are unchanged.
Engineering: implemented at 67315a9, branch feat/frontend-foundation, PR #37. All five package quality scripts passed in the rootless workspace (one RTL test); temporary format/lint/type/unit/build failures returned 1/1/2/1/2, then probes were restored and green checks repeated. Independent QA and hosted CI are running. No host installations or backend implementation occurred. Leave open until final QA, review and merge.
Final Engineering / QA handoff
Final SHA 74af25d, PR #37: #37. Engineering: READY FOR QA; independent QA: PASS, all AC1–6. Documentation and whitespace follow-ups supersede the earlier candidate SHA.
AC1: isolated container npm ci installed 225 packages, lock unchanged. AC2: technical React/TypeScript/Vite target builds without API/auth. AC3: five noninteractive scripts green; negative format/lint/type/unit/build exits 1/1/2/1/2. QA independently reproduced mount/type/build failures. AC4: one RTL test detects loss of the accessible main region. AC5: exact README container commands, guarded Make wrappers and Vite HTTP200 smoke verified. AC6: final digest-pinned hosted container quality job PASS (59s): https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43530876891.
Checks: npm --prefix apps/frontend ci; run format:check, lint, typecheck, test:unit and build; Make wrappers; make dev-check; git diff --check origin/main. QA used isolated /tmp/lca-f1-qa.FZh9VD inside the workspace container. No host packages installed. Seven moderate npm advisory entries affect development lint tooling through typescript-eslint/minimatch; production dependency audit reports zero. Browser coverage remains #10; no real backend/security validation claimed.
Ready for review; leave #5 open until approved merge. Next dependency-ordered issue: #6 provisional service contracts and synthetic fixtures.
Activity
DavidVFitzGerald commentedon Nov 13, 2026
PM: BLOCKED
Groomed using docs/team/product-manager.md for F1, 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: #3, #2. 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.
docs: align workspace guide with frontend quality commands (Refs #5)
style: trim scaffold configuration trailing whitespace (Refs #5)
feat: scaffold container-run React frontend and quality CI (Refs #5)
docs: align workspace guide with frontend quality commands (Refs #5)
style: trim scaffold configuration trailing whitespace (Refs #5)
DavidVFitzGerald commentedon Nov 14, 2026
Coordinator reconciliation: scaffold implementation merged by maintainer in PR #37 at 04779ea on 2026-11-14. Final Engineering/QA handoff in this issue records independent QA PASS for AC1–6; hosted quality check succeeded: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43530876891. Verified merge and check through GitHub before closure. Closing the administratively open completed predecessor; #6 now tracks the next F1 slice.