generated from mantinedev/vite-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Summary
Add year selection UI to the standalone household creation flow (/[country]/households/create) to match the report pathway's year selection capability.
Background
PR #489 fixed the "Configuration Error" in standalone household creation by wrapping PopulationPathwayWrapper with ReportYearProvider using CURRENT_YEAR as the default. This unblocks users from creating households directly.
However, the standalone flow currently hardcodes CURRENT_YEAR = '2025', while the report pathway allows users to select their desired year in ReportLabelView.
Current Behavior
- Report pathway: User selects year →
reportState.year→ passed toReportYearProvider - Standalone pathway: Year hardcoded to
CURRENT_YEAR('2025')
Proposed Enhancement
Add a year selector step or dropdown to the standalone household flow, similar to how the report pathway handles it in ReportLabelView.
Implementation Options
- Add year field to household builder form - Inline with other household inputs
Related
- PR Added ReportYearProvider to standalone household creation #489 - Fixed Configuration Error by adding
ReportYearProvider - Issue Standalone household creation fails due to missing year context #463 - Original bug report
ReportPathwayWrapper.tsx:602-604- How report pathway handles year contextReportLabelView- Where report pathway collects year from user
Files to Modify
app/src/pathways/population/PopulationPathwayWrapper.tsx- Potentially add new view component for year selection
Metadata
Metadata
Assignees
Labels
No labels