Skip to content

feat(cases): add local case workspace foundation - #284

Open
luandro wants to merge 4 commits into
mainfrom
issue-268-cases-foundation
Open

feat(cases): add local case workspace foundation#284
luandro wants to merge 4 commits into
mainfrom
issue-268-cases-foundation

Conversation

@luandro

@luandro luandro commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Closes #268
Refs #145

Summary

  • Adds the Dexie v13 local Case, metadata-only activity, and independent per-agency report-state foundation.
  • Implements offline-first Case CRUD, lifecycle transitions, strict project isolation, and the exact Brazil v1 ten-category taxonomy.
  • Requests persistent browser storage and surfaces eviction/quota-risk states without blocking local Case work.
  • Adds local TanStack Query hooks and /cases, /cases/new, and /cases/$caseId routes.
  • Keeps Case activity metadata-only and Case/provider operations local-only with privacy/no-network regression coverage.
  • Ships localized en/pt/es Case UI plus Storybook coverage and desktop/mobile E2E.

Testing

  • npm run validate — PASS on the exact committed tree.
    • 237 unit test files passed.
    • 2916 tests passed, 1 skipped.
    • Coverage: 89.27% statements / 83.87% branches / 89.44% functions / 91.01% lines.
  • Focused feat(cases): Cases foundation + local model/lifecycle/navigation #268 unit/component suite: 223/223 passed.
  • Strict TypeScript: PASS.
  • Full ESLint: PASS.
  • Full Prettier: PASS.
  • React Doctor changed-file scan: 0 findings.
  • Storybook static build: PASS.
  • Chromium Cases E2E: 2/2 PASS at 1440x900 desktop and 375x812 mobile.
  • npm run check:i18n: PASS.

Review

  • Adversarial pre-commit review completed with: No actionable findings.

Out of scope

Do not merge as part of this task; this PR is for human QA/review.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 6e9a255.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Preview deployment ready: https://issue-268-cases-foundation.comapeo-cloud-app.pages.dev

Commit: c8e2cb4

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cases): Cases foundation + local model/lifecycle/navigation

1 participant