Skip to content

Phase 2b: migrate household flows to the API v2 shadow path#939

Merged
anth-volk merged 33 commits intomainfrom
feat/api-v2-phase-2b
Apr 16, 2026
Merged

Phase 2b: migrate household flows to the API v2 shadow path#939
anth-volk merged 33 commits intomainfrom
feat/api-v2-phase-2b

Conversation

@anth-volk
Copy link
Copy Markdown
Collaborator

Fixes #938

Summary

  • make Household the canonical frontend household model for v1/v2 conversion
  • add household shadow create and immutable reassignment flows for v2 validation
  • migrate household read paths and shared-report save handling onto the canonical model
  • remove the temporary HouseholdAdapter layer and replace it with focused model/view tests

Testing

  • bun run typecheck
  • bun run vitest run src/tests/unit/models/Household.test.ts src/tests/unit/hooks/useCreateHousehold.test.tsx src/tests/unit/hooks/useUserHousehold.dualWrite.test.tsx src/tests/unit/hooks/useSaveSharedReport.test.tsx src/tests/unit/pathways/report/views/population/PopulationExistingView.test.tsx
  • bun run vitest run src/tests/unit/hooks/useUserHousehold.test.tsx src/tests/unit/hooks/useSaveSharedReport.test.tsx
  • bunx prettier --check src/hooks/useUserHousehold.ts src/adapters/index.ts src/pages/Populations.page.tsx src/tests/unit/models/Household.test.ts src/tests/fixtures/models/v1HouseholdMocks.ts src/tests/unit/pathways/report/views/population/PopulationExistingView.test.tsx

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Apr 16, 2026 11:05pm
policyengine-calculator Ready Ready Preview, Comment Apr 16, 2026 11:05pm
policyengine-calculator-next Ready Ready Preview, Comment Apr 16, 2026 11:05pm
policyengine-website Ready Ready Preview, Comment Apr 16, 2026 11:05pm

Request Review

@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 11, 2026 00:03 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 11, 2026 00:15 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 11, 2026 00:42 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 13, 2026 14:51 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 13, 2026 16:59 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 13, 2026 17:19 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 13, 2026 17:27 Inactive
@vercel vercel bot temporarily deployed to Preview – policyengine-calculator-next April 13, 2026 17:49 Inactive
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.

Phase 2b: migrate household flows to the API v2 shadow path

1 participant