[CRITICAL] Adjust <WorkspaceWorkflowsApprovalsApproverPage /> for Approver Selection#46510
Conversation
|
To push things forward I opened the PR without videos, I'm sick and will add them later. @suneox please have a look at the PR 😄 |
@blazejkustra Sure, how can I access the document to get more context? I’ve requested access docs via email |
I shared it with you 🚀 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-02.at.22.18.09.mp4Android: mWeb ChromeScreen.Recording.2024-08-02.at.22.16.48.mp4iOS: NativeScreen.Recording.2024-08-02.at.22.06.49.mp4iOS: mWeb SafariScreen.Recording.2024-08-02.at.22.00.31.mp4MacOS: Chrome / SafariScreen.Recording.2024-08-02.at.21.56.00.mp4MacOS: DesktopScreen.Recording.2024-08-02.at.22.04.15.mp4 |
src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Show resolved
Hide resolved
suneox
left a comment
There was a problem hiding this comment.
Works as expected on all platforms, and the change set LGTM
| return <WorkspaceWorkflowsApprovalsApproverPageOld {...props} />; | ||
| } | ||
|
|
||
| function WorkspaceWorkflowsApprovalsApproverPageNew({policy, personalDetails, isLoadingReportData = true, route}: WorkspaceWorkflowsApprovalsApproverPageProps) { |
There was a problem hiding this comment.
Would you mind changing the name of this component to WorkspaceWorkflowsApprovalsApproverPageBeta and I would just keep the name of the "old" component the way it was before. The only reason is that "new" and "old" hold no meaning once this PR is merged.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.0.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
2 similar comments
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
Details
Link to the doc.
UI changes
WorkspaceWorkflowsApprovalsApproverPageis split into two components:WorkspaceWorkflowsApprovalsApproverPageNew- The new refreshed UI with logic changes, this variant is displayed only whencanUseWorkflowsAdvancedApprovalbeta is turned on +approverIndexscreen param has to be provided.WorkspaceWorkflowsApprovalsApproverPageOld- The old screen left for backward compatibility, it will be displayed for the old flow:Onyx actions:
Clicking on an approver will set the approver with
setApprovalWorkflowApproveraction (more info in the Onyx setup section) and navigate to the ‘Create approval’ page (‘settings/workspaces/:policyID/workflows/approvals/new’) or ‘Edit approval’ page (‘settings/workspaces/:policyID/workflows/approvals/:firstApproverEmail/edit’) based onisBeingEditedproperty in Onyx.Fixed Issues
$ #45955
PROPOSAL: N/A
Tests
More featuressettings page)canUseWorkflowsAdvancedApprovalfunction to return true (or usecanUseWorkflowsAdvancedApprovalbeta)Offline tests
N/A
QA Steps
Same as tests
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.webm
Android: mWeb Chrome
android-web.webm
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-08-02.at.09.09.38.mov
MacOS: Desktop
desktop.mov