Repository navigation
[Internal QA] Fix From filter showing Account Managers on customer accounts - #88921
neil-marcellini merged 50 commits into
Conversation
|
@Krishna2323 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] |
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: 25f62cef64
ℹ️ 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".
| searchContext: CONST.SEARCH_SELECTOR.SEARCH_CONTEXT_GENERAL, | ||
| initialSelected: initialSelectedOptions, | ||
| excludeLogins: CONST.EXPENSIFY_EMAILS_OBJECT, | ||
| excludeFromSuggestionsOnly: expensifyTeamExclusions, |
There was a problem hiding this comment.
Restrict Expensify-team exclusions to From popup
excludeFromSuggestionsOnly is now always applied in UserSelectPopup, but this popup is shared by ASSIGNEE, ATTENDEE, TO, and FROM in useSearchFiltersBar.tsx (cases around lines 354-357). On wide-screen Reports filters, this change hides @expensify.com/@team.expensify.com people from all those dropdowns instead of only From, which is a regression from the intended behavior. Because includeUserToInvite is false here, users also lose the manual fallback path in these popups.
Useful? React with 👍 / 👎.
…ount-managers # Conflicts: # src/components/Search/FilterDropdowns/UserSelectPopup.tsx # src/components/Search/SearchFiltersParticipantsSelector.tsx
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ 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". |
…ount-managers # Conflicts: # android/app/build.gradle # ios/NewExpensify/Info.plist # ios/NotificationServiceExtension/Info.plist # ios/ShareViewController/Info.plist # package-lock.json # package.json # src/components/Search/FilterComponents/UserSelector.tsx # src/components/Search/index.tsx # src/pages/workspace/WorkspacesListPage.tsx
neil-marcellini
left a comment
There was a problem hiding this comment.
Great work, I'm happy with it!
|
@allgandalf we need to fix merge conflicts. I will also work on getting a contributor plus to review it. |
|
Will review today. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_safari.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
Krishna2323
left a comment
There was a problem hiding this comment.
LGTM and works well!
@allgandalf please resolve the conflicts when you get a chance. Thanks!
…ount-managers # Conflicts: # src/components/Search/FilterComponents/UserSelector.tsx # tests/unit/PolicyUtilsTest.ts
|
Brought to Slack to coordinate timing so that we can get merge conflicts fixed and get the PR merged before new conflicts pop up |
…ount-managers # Conflicts: # src/hooks/useAutocompleteSuggestions.ts # src/libs/OptionsListUtils/index.ts
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @neil-marcellini 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.3.91-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR is an internal bug fix: it soft-excludes Expensify-team logins (current/former Account Managers and Guides on It does not add, rename, or change any documented feature, workflow, label, or terminology, so nothing under Why no docs update is needed
Since no documentation update is needed, I did not create a draft help site PR. @allgandalf, please confirm you agree no help site changes are required. If you believe a docs update is warranted, reply with the specifics and I'll create the draft PR. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.3.94-0 🚀
Bundle Size Analysis (Sentry): |
Help site review: no docs changes requiredI reviewed the changes in this PR against Why: This is an internal bug fix that soft-excludes Expensify team members (current/former AMs and Guides, i.e. What I checkedThe only help article that documents these filters is
Neither statement describes who populates the suggestion list, and both remain accurate after this fix. Users can still type any email/name manually because the search bar accepts free text, so no documented operator behavior changes. I also checked
|
|
This seems to be working on staging |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.94-0 🚀
|
Explanation of Change
the From filter on Reports was leaking current and former AMs because hidden AMs are written into customer
policy.employeeListwithrole: admin, and the filter pulled options from hydrated personal details with no Expensify-team filtering. addedgetExpensifyTeamExclusionsinPolicyUtilsthat soft-excludes@expensify.com/@team.expensify.comlogins from search filter suggestions, mirroring the ruleWorkspaceMembersPagealready uses: skip the filter when the current user is themselves Expensify staff, and preserve Expensify-team members of any Expensify-owned policy the current user belongs to. applied to all user filters (TO, FROM, ASSIGNEE, ATTENDEE) plus inlinefrom:autocomplete.Fixed Issues
$ #83879
PROPOSAL:
Tests
Precondition:
Or run the following CLI command in local VM:
Verify that you don't see any AM or guides in the filter list
Before the fix:
After the Fix:
Offline tests
N/A
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 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.