feat: workflow "+X more" opens the members list directly#92288
Conversation
|
@nyomanjyotisa 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f2e271a04
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7bcca3c17d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
PR is ready. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@TaduJR Updating members via MacOS-Chrome.mp4 |
Done. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid-Native.mp4Android: mWeb ChromeAndroid-mWeb.Chrome.mp4iOS: HybridAppiOS-Native.mp4iOS: mWeb SafariiOS-mWeb.Safari.mp4MacOS: Chrome / SafariMacOS-Chrome.mp4 |
|
@TaduJR Could you merge with latest main? |
Explanation of Change
Per customer feedback and team discussion (link to comment), tapping
+X moreon a workflow card now jumps straight to the members list instead of opening the Edit approval workflow panel first.What changes for the user
+X more→ members list opens directly.+X more, the Edit panel when entered through it). Save still routes through the Edit panel so the commit step is preserved.+X moreare unchanged.Implementation
UserPills: new optionalonShowAllPress. When provided,+X moreis wrapped in aPressableWithoutFeedbackso the tap is captured there (doesn't bubble to the row).ApprovalWorkflowSection: addsonShowAllMembersPress, forwards it to the membersUserPills. Row-levelonPressis unchanged.WorkspaceWorkflowsPage: the new callback callsselectApprovalWorkflowForEdit(...)then navigates to the members list.selectApprovalWorkflowForEdit(newWorkflowaction): centralises the EDIT-mode onyx commit (approvers,availableMembers,usedApproverEmails,originalApprovers,action: EDIT). Previously inline in the Edit page'suseEffect; now the Edit page and the+X moredeep-link both call it, so any sub-page can be entered through either path.WorkspaceWorkflowsApprovalsEditPage: when the user returns from a sub-page viagoBack(EditRHP)after editing, theuseEffectdetects the in-progress session and skips re-init so pending edits aren't wiped (skipped when seed params are present — those always want a fresh init).WorkspaceWorkflowsApprovalsExpensesFromPage: header back arrow now pops one nav frame instead of forcing the Edit panel as the back target. Coming from+X more→ back returns to Workflows; coming from the Edit panel → back returns to the Edit panel (unchanged). Save still routes through the Edit panel so the commit step is preserved.Fixed Issues
$ #84985
PROPOSAL: #84985 (comment)
Tests
Setup
A.
+X moreopens the members list directly+X moretext inside the "Expenses from" row → the members list opens directly. No intermediate Edit panel.+X moretext → tooltip shows the hidden member names.B. Back arrow returns to the right place
3. Repeat A1 to land on the members list via
+X more. Without changing anything, tap the back arrow in the header → you land on Workflows. (Not the Edit panel.)4. Reach the same members list through the Edit panel: tap a row → Edit panel opens → tap "Expenses from" inside it. Tap the back arrow → you land on the Edit panel (unchanged behavior).
C. Round-trip preserves edits
5. Tap
+X more→ on the members list, add or remove a member → tap Save.6. Verify you land on the Edit panel with your changes preserved.
7. Tap Save on the Edit panel → close → verify the workflow card on Workflows shows the updated pills.
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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-Native.mp4
iOS: mWeb Safari
iOS-Safari.mp4
MacOS: Chrome / Safari
Mac-Chrome.mp4