[Simplified Collect][Workflows] Create main workflow page (App)#36345
Conversation
|
WIP Currently did the part and the parts before that here in the DD. Screenshot on how it is currently: What is left:
|
|
@lakchote are all the other menu items in the LHN just because you're testing the development in a |
|
That seems like a free workspace |
Yes, I'm just testing things right now to have the correct look and feel. I'll ensure it's only available for |
Screen.Recording.2024-02-14.at.18.14.45.movWhat is left:
|
Lint tests are passing now. @ishpaul777 waiting for the video to upload. It looks good |
For some reason, GH won't let me upload my video (it's stuck) I've put it here |
|
@youssef-lr Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🎯 @ishpaul777, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #37157. |
I didn't experience this during my tests. Was there some pre-requisite to reproduce that, e.g. selecting the toggle before or something? |
Didn't experience it either too. Was just able to reproduce it. Toggle a switch and reload the page |
|
I'd say that's not a blocker for this PR. |
|
Just toggle on/off a option multiple times quickly, it will be reporoducible |
|
Created an issue for it here |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Can you assign me as c+ if this goes external 🙃 |
|
done |
|
Thank you 🙃🙂 |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
| guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_WORKFLOWS} | ||
| shouldShowOfflineIndicatorInWideScreen | ||
| shouldShowNotFoundPage={!isPaidGroupPolicy || !isPolicyAdmin} | ||
| > |
There was a problem hiding this comment.
This caused #36345, we have had tp wrap this view in a scrollview

Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/368331
PROPOSAL:
Tests
Create a new Collect policy on OldDot
Follow the steps outlined here to enable the Collect workspace to show up on NewDot
Login to NewDot, then navigate to Settings > Workspaces. You should see your Collect workspace, click on it.
On the LHP, you should only see the menu items below, specific to paid policies:
-
Delay submissionsAdd approvalsMake or track paymentsIt should open a new sub item for each just like below

Note:
a. When you toggle
Add approvals, the default approver should be the policy's owner nameb. The right switch icons do not work for now as it will be done in follow-up issues:
Delay Submissionstoggle and inspect the responsepolicy.autoReportingshould be set totrueRefresh the page, the switch for
Delay Submissionsshould be onOpen Onyx Data,
Application> IndexedDB > Onyx > keyvaluepairs(in your browser's inspector)Go into the policy's ID data (you can find the policy ID directly in the URL).
autoreportingshould be set to true just like belowDelay Submissionsswitch to off and inspect the response againpolicy.autoReportingshould be set tofalseautoreportingshould be set to false in Onyx (don't forget to refresh Onyx data)12. Refresh the page, the switch for
Delay Submissionsshould be offAdd approvals, look for the following:Toggle switch ON, expected response:
{ "policy": { "approvalMode": "BASIC", "approver": "collect@collect.com", // policy's owner email "lastModified": 1708592956718697, "isAutoApprovalEnabled": true } }Expected Onyx values:

Toggle switch OFF, expected response:
{ "policy": { "approvalMode": "OPTIONAL", "approver": "collect@collect.com", // policy's owner email "lastModified": 1708592956718697, "isAutoApprovalEnabled": false } }Expected Onyx values:

Offline tests
Repeat the same steps as in the video below, ensuring you have the same look and feel.
Screen.Recording.2024-02-23.at.1.02.30.AM.mov
QA Steps
Same as in Tests section above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop