Description
Current State:
- 5 report participant routes use
backTo parameter
- These handle participants list, invites, and settings
Implementation:
- Replace
getRoute(..., backTo) with createDynamicRoute()
- Add source screens to
entryScreens array
- Remove
backTo parameter from route definitions
- Test forward/back navigation
Scope
Routes (5):
| Route Constant |
Path |
REPORT_PARTICIPANTS |
r/:reportID/participants |
REPORT_PARTICIPANTS_INVITE |
r/:reportID/participants/invite |
REPORT_PARTICIPANTS_DETAILS |
r/:reportID/participants/:accountID |
REPORT_PARTICIPANTS_ROLE_SELECTION |
r/:reportID/participants/:accountID/role |
REPORT_SETTINGS |
r/:reportID/settings |
Usages
REPORT_PARTICIPANTS:
src/pages/ReportDetailsPage.tsx:400
src/pages/home/report/ReportActionItemSingle.tsx:134
src/pages/ReportParticipantDetailsPage.tsx:46
src/pages/InviteReportParticipantsPage.tsx:132
src/components/AvatarWithDisplayName.tsx:231
REPORT_PARTICIPANTS_INVITE:
src/pages/ReportParticipantsPage.tsx:237
REPORT_PARTICIPANTS_DETAILS:
src/pages/ReportParticipantsPage.tsx:378
src/pages/ReportParticipantRoleSelectionPage.tsx:33
REPORT_PARTICIPANTS_ROLE_SELECTION:
- Search for usages in participant role flow
REPORT_SETTINGS:
src/pages/ReportDetailsPage.tsx:425
src/libs/ReportUtils.ts:6253
src/pages/settings/Report/WriteCapabilityPage.tsx:38
Files to modify:
src/ROUTES.ts - Update route definitions
src/libs/Navigation/types.ts - Remove backTo from params
- Components listed above
Migration Progress
Issue Owner
Current Issue Owner: @suneox
Description
Current State:
backToparameterImplementation:
getRoute(..., backTo)withcreateDynamicRoute()entryScreensarraybackToparameter from route definitionsScope
Routes (5):
REPORT_PARTICIPANTSr/:reportID/participantsREPORT_PARTICIPANTS_INVITEr/:reportID/participants/inviteREPORT_PARTICIPANTS_DETAILSr/:reportID/participants/:accountIDREPORT_PARTICIPANTS_ROLE_SELECTIONr/:reportID/participants/:accountID/roleREPORT_SETTINGSr/:reportID/settingsUsages
REPORT_PARTICIPANTS:src/pages/ReportDetailsPage.tsx:400src/pages/home/report/ReportActionItemSingle.tsx:134src/pages/ReportParticipantDetailsPage.tsx:46src/pages/InviteReportParticipantsPage.tsx:132src/components/AvatarWithDisplayName.tsx:231REPORT_PARTICIPANTS_INVITE:src/pages/ReportParticipantsPage.tsx:237REPORT_PARTICIPANTS_DETAILS:src/pages/ReportParticipantsPage.tsx:378src/pages/ReportParticipantRoleSelectionPage.tsx:33REPORT_PARTICIPANTS_ROLE_SELECTION:REPORT_SETTINGS:src/pages/ReportDetailsPage.tsx:425src/libs/ReportUtils.ts:6253src/pages/settings/Report/WriteCapabilityPage.tsx:38Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- RemovebackTofrom paramsMigration Progress
REPORT_PARTICIPANTSREPORT_PARTICIPANTS_INVITEREPORT_PARTICIPANTS_DETAILSREPORT_PARTICIPANTS_ROLE_SELECTIONREPORT_SETTINGSIssue Owner
Current Issue Owner: @suneox