Repository navigation
Show domain/workspace as feed-name subtitle in Spend page feed filter - #97657
Conversation
Co-authored-by: Manan <mananjadhav@users.noreply.github.com>
Co-authored-by: Manan <mananjadhav@users.noreply.github.com>
Co-authored-by: Manan <mananjadhav@users.noreply.github.com>
|
Fixed the failing check by pushing 6597d0f. Failing check: Root cause: This PR adds a Fix: Added Note: I couldn't run the jest suite locally in this environment (test execution is sandboxed here), so the fix is verified against the exact CI failure output rather than a local run — the re-run of |
Co-authored-by: Manan <mananjadhav@users.noreply.github.com>
|
Fixed the remaining What failed: After my earlier test fix, Fix: Replaced each All meaningful checks now pass — Note: test/lint execution is sandboxed in this environment, so I verified against CI rather than a local run — the green |
|
The real failure is already fixed. My earlier commit 6597d0f turned The only remaining red check is PR Author Checklist / checklist, which just needs the author to tick the boxes in the PR description (I can't complete that one — it's a human sign-off). No code fix is needed. |
|
Reviewing the PR. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ 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". |
| policies: OnyxCollection<Policy> | undefined, | ||
| domains: OnyxCollection<Domain> | undefined, | ||
| ): string | undefined { | ||
| const preferredPolicy = feedData && 'preferredPolicy' in feedData ? feedData.preferredPolicy : undefined; |
There was a problem hiding this comment.
@MelvinBot If preferredPolicy is set but the policy isn’t in the collection yet (still loading / not available), we fall through to the domain name.
That can briefly show a domain subtitle on a workspace-level feed until policies hydrate. Just wanted to confirm.
There was a problem hiding this comment.
Confirmed — that's the intended graceful fallback, and I've left it as-is.
getCompanyFeedSubtitle only falls through to the domain when preferredPolicy is set but its policy isn't in the collection yet. In that window the domain is still a valid disambiguator (not empty or wrong text), and because useFilterFeedData subscribes to the policy collection via useOnyx, the row re-renders with the origin workspace name the moment policies hydrate. Since policies are core data loaded at app start, this transient state is typically not visible in practice.
|
The two failing checks aren't code/CI failures — they're the checklist gates that need a human to complete them, so there's nothing for me to push a fix for. Every actual code check (Bun tests, ESLint, Oxfmt, typecheck, all What's failing:
To clear them:
Note the PR body also still has the |
|
Overall the code changes are good. Adding the test steps in the next comment and then completing the Reviewer checklist. |
TestsPrecondition: Use an account with at least two company card feeds of the same type that do not have custom nicknames, ideally including both a workspace-level feed.
Offline testsNA QA StepsSame as Tests. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb-workspace-name-card-feed.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #97279 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@marcaaron This PR is raised by MelvinBot. I've reviewed the PR along with the checklist. Can you help updating the PR author checklist with test steps from the comment #97657 (comment) |
|
@mananjadhav 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] |
|
MelvinBot has made 6 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR. Next steps: A human should review the recent commits and resolve the conflicting CI errors manually. |
|
@chuckdries 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] |
|
MelvinBot has made 6 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR. Next steps: A human should review the recent commits and resolve the conflicting CI errors manually. |
|
Done — conflicts resolved and review feedback addressed in Conflicts: Merged latest Review comments: Applied all 5
Your These are comment-only + test-file changes with no functional impact, so I left verification to CI. Nothing user-facing changed, so no fresh app test was warranted (and the existing manual test screenshots on the PR still hold). |
|
@codex Review. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ 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". |
|
The revised changes look fine. @marcaaron @chuckdries Can one of you take a look at the PR. |
chuckdries
left a comment
There was a problem hiding this comment.
Nice, looks good to me
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective
|
Are we good to merge this @chuckdries ? |
|
Yep |
|
🚧 chuckdries has triggered a test Expensify/App build. You can view the workflow run 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. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/chuckdries in version: 9.4.60-0 🚀
|
Help site review — no changes requiredI reviewed the changes in this PR against Why: This is a display-only refinement to the existing Feed filter on the Spend page. It adds a domain/workspace supporting line beneath each feed name so two same-type feeds without custom nicknames can be told apart. It does not:
The subtitle is self-explanatory in the UI and requires no user instructions. Help articles that reference the Feed filter (checked, all still accurate)
None of these document the visual format of individual feed entries, so the added subtitle line does not contradict or omit anything in them. If you'd still like the disambiguation behavior called out somewhere (e.g., a short note in the Spend page Filters section), let me know and I'll open a draft PR. @mananjadhav, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
Deploy Blocker #99401 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.4.60-2 🚀
Bundle Size Analysis (Sentry): |




Explanation of Change
The feed names in the Spend page feed filter were derived only from each feed's custom nickname or its generic bank/card-type label, so two feeds of the same type with no custom nickname resolved to the identical string with no way to tell them apart.
This PR adds a domain/workspace supporting line beneath each feed name in that filter, so same-type feeds can be distinguished at a glance:
preferredPolicy(the workspace where the feed was originally configured, even when shared to multiple workspaces); domain-level feeds fall back to the domain backing the feed's fund viagetDomainByFundID.getExpensifyCardFeedDescription, the same origin resolver used by the workspace Expensify Card feed selector.Implementation:
CardFeedUtils:CardFeedForDisplaygains an optionalsubtitle;getCardFeedsForDisplay/getExpensifyCardFeedsForDisplayoptionally acceptpolicies,domains, andexpensifyCardSettingsand populatesubtitle(a newgetCompanyFeedSubtitlehelper handles the company-feed case).SearchUIUtils.getFeedOptionsthreads those collections through and mapssubtitle→alternateText.MultiSelectgains an optionalalternateTextper item and renders it as a second line.useFilterFeedDataloads the policy, domain, and Expensify Card settings collections and passes them in.Fixed Issues
$ #97279
PROPOSAL: #97279 (comment)
Tests
Precondition: Use an account with at least two company card feeds of the same type that do not have custom nicknames, ideally including both a workspace-level feed.
alternateText)preferredPolicy), verify the second line is the domain name (e.g.acme.com)Offline tests
NA
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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