Task
Build pages/workspace/copyPolicySettings/CopyPolicySettingsProgressModal.tsx, rendered from WorkspacesListPage.tsx. Driven by the currentStep field on the COPY_POLICY_SETTINGS Onyx value:
'loading' → State 1: Copy in progress. Message explains the copy is running and offers a "Let me know when it's done" button. Clicking it calls requestCopyPolicySettingsNotification() and transitions to State 1b (rendered in the same modal — the design doc allows either a transition or a second modal, pick whichever is cleaner in the codebase).
- State 1b (after notification requested): shows "Concierge will let you know" with two buttons — "Go to Concierge" navigates to
ONYXKEYS.CONCIERGE_REPORT_ID, "Dismiss" clears the modal state.
'complete' → State 2: "All Set! Your workspace settings have been copied." Single "Done" button that calls clearCopyPolicySettings().
undefined → modal is hidden.
The currentStep transitions to 'complete' via the backend updating the bulkCopySettings NVP, which will flow through Onyx once the backend pieces (see backend Issues 1 and 3) are in place.
Relevant design doc section: "[App] Progress modal".
Depends on Issues 1 and 2.
Issue Owner
Current Issue Owner: @mallenexpensify
Add Bulk Workspace EditsTask
Build
pages/workspace/copyPolicySettings/CopyPolicySettingsProgressModal.tsx, rendered fromWorkspacesListPage.tsx. Driven by thecurrentStepfield on theCOPY_POLICY_SETTINGSOnyx value:'loading'→ State 1: Copy in progress. Message explains the copy is running and offers a "Let me know when it's done" button. Clicking it callsrequestCopyPolicySettingsNotification()and transitions to State 1b (rendered in the same modal — the design doc allows either a transition or a second modal, pick whichever is cleaner in the codebase).ONYXKEYS.CONCIERGE_REPORT_ID, "Dismiss" clears the modal state.'complete'→ State 2: "All Set! Your workspace settings have been copied." Single "Done" button that callsclearCopyPolicySettings().undefined→ modal is hidden.The
currentSteptransitions to'complete'via the backend updating thebulkCopySettingsNVP, which will flow through Onyx once the backend pieces (see backend Issues 1 and 3) are in place.Relevant design doc section: "[App] Progress modal".
Depends on Issues 1 and 2.
Issue Owner
Current Issue Owner: @mallenexpensify