Fixes #69
feat/navigation-aid-flows
Sets up the structural foundation for future aid-related flows (such as viewing aid packages and claims) in the mobile app. To avoid blocking the main branch with incomplete features, placeholder UI and basic route definitions have been added. The navigator is now scaled to support these upcoming features cleanly.
- [MODIFY]
src/navigation/types.ts- Added
AidOverviewandAidDetailsto theRootStackParamList.AidDetailsaccepts anaidId: stringparameter.
- Added
- [MODIFY]
src/navigation/AppNavigator.tsx- Grouped existing screens under
Core Screens. - Registered
AidOverviewandAidDetailsscreens underAid Flow Screens (Placeholders).
- Grouped existing screens under
- [MODIFY]
src/screens/HomeScreen.tsx- Added two placeholder action buttons for future flows.
- Buttons currently show an alert (
Coming in a future wave) when pressed to indicate they are under construction.
- [NEW]
src/screens/AidOverviewScreen.tsx- Created a simple placeholder screen component.
- [NEW]
src/screens/AidDetailsScreen.tsx- Created a simple placeholder screen component that reads the
aidIdparam.
- Created a simple placeholder screen component that reads the
- [NEW]
src/__tests__/AppNavigator.test.tsx- Verifies the
NavigationContainermounts without crashing and defaults to the Home screen.
- Verifies the
- [MODIFY]
src/__tests__/HomeScreen.test.tsx- Added tests to ensure placeholder buttons trigger the correct
Alert.alert.
- Added tests to ensure placeholder buttons trigger the correct
From app/mobile:
pnpm test| Requirement | Status |
|---|---|
| Clearly named/grouped screens in Navigator | Done |
| Placeholder routes (AidOverview, AidDetails) added | Done |
| Navigation Types updated | Done |
| HomeScreen shows placeholder buttons with Alert | Done |
| Navigator works without runtime errors | Done (Tests pass) |
| Tests cover navigation configuration and new UI | Done |
Attach your screenshot or screen recording showing the navigation between Home and Health, and showing the placeholder Alert below: