feat: Added role filter to workspace members list#88293
feat: Added role filter to workspace members list#88293srikarparsi merged 19 commits intoExpensify:mainfrom
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad5a7f99a7
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@shawnborton can u review this? |
|
@Uzaifm127 the old filter list appears briefly with empty state graphics when filter is changed. 2026-04-23.18-20-12.mp4 |
|
Sure, will run a test build. |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
|
@shawnborton is the position of no items found text correct? or it should be below the text box? |
|
@Uzaifm127 one last bug related with debounced value because this line App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 595 to 596 in e69882b using non-debounced data it is causing the header disappear before the list is empty |
That looks correct. It's meant to be in place of the table or results themselves which is where it sits currently |
|
Yeah that works for me 👍 |
|
@FitseTLT This is done.
|
| @@ -881,7 +991,11 @@ function WorkspaceMembersPage({personalDetails, route, policy}: WorkspaceMembers | |||
| canSelectMultiple={canSelectMultiple} | |||
| turnOnSelectionModeOnLongPress={isPolicyAdmin} | |||
| onSelectAll={filteredData.length > 0 ? () => toggleAllUsers(filteredData) : undefined} | |||
There was a problem hiding this comment.
@FitseTLT Though I'm not sure, should we also use debounce data here instead of raw filteredData?
There was a problem hiding this comment.
The latest bug (mentioned by you) is caused by this so we must do this.
Implemented.
|
@Uzaifm127 there is a new bug the spacing on the header disappears quickly before the header does. Look 2026-05-01.19-08-37.mp4 |
|
Also don't you think we should reset selection on filter change see this: 2026-05-01.20-31-36.mp4 |
|
@FitseTLT Do we also need to do with Search too? should we remove selection on search? |
|
I think so |
|
Done for Filters and Search. |
|
🚧 @srikarparsi has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/srikarparsi in version: 9.3.66-0 🚀
|
|
Yes, help site changes are required. PR #88293 adds a role-based member filter to the Workspace Members page, but the existing help article (Managing-Workspace-Members.md) doesn't document this feature. I've created a draft PR with the docs update: #89492 Changes made:
Note: I was unable to add the PR to GitHub project 196 due to token permission limitations. Please add it manually: |
|
@stephanieelliott As per this Slack thread, Melvin posted that the help site changes are required but I'm not able to mark the PR ready for review? Could you please help me how can I proceed further? Do I need to ping in the comment after reviewing the PR? Do I only need to run this command: |
|
Deploy Blocker #89554 was identified to be related to this PR. |

Explanation of Change
This PR introduces a role-based member filter to the Workspace Members page, aligning it with the behavior already available on the domain members page.
Previously, users could not filter members by role, so this changes resolves that by:
Fixed Issues
$ #87907
PROPOSAL: #87907 (comment)
Tests
Offline tests
Same as Test
QA Steps
Same as Test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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-native.mov
Android: mWeb Chrome
android-mWeb.mov
iOS: Native
ios-native.mov
iOS: mWeb Safari
ios-safari.mov
MacOS: Chrome / Safari
macOS.mov