Repository navigation
[Payment due @Pujan92] MenuItem: migrate static feature benefits - #105723
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@arosiclair 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] |
Declare static benefits at each caller through FeatureList.Item.\nKeep the existing row layout and caller actions unchanged.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@carlosmiceli 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-11-05.at.18.26.21.mov |
|
🎯 @Pujan92, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
mountiny
left a comment
There was a problem hiding this comment.
Thank you! Looks good to me
|
🚧 roryabraham 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/roryabraham in version: 9.5.34-0 🚀
|
|
No help site update needed — this PR refactors existing benefit components without changing user-facing features, workflows, labels, or availability, and makes no existing article sentence incorrect. |
|
No FullStory changes needed — this PR only refactors existing benefit rows into compound MenuItem components, preserving content, visibility conditions, and actions without adding new screens or user-facing functionality. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.5.34-1 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Migrate illustrated benefit rows to the compound
MenuItemcomponents and expose them asFeatureList.Item, implemented in its ownFeatureListItem.tsxfile. Callers now declare each benefit directly in JSX instead of passing static configuration arrays.Update all seven callers: both card empty states, travel benefits, domain SAML/member benefits, and the two travel screens with no benefit rows. Keep the text, full-color illustrations, spacing, section content, and CTA/footer behavior unchanged. Preserve lazy-illustration filtering and the UK/EU cashback condition, and remove the redundant icon-width helper.
Expand the tests to render the actual callers and cover their conditional benefits, translations, accessibility, and existing actions.
Fixed Issues
For #96202
For #105531
PROPOSAL: N/A
Tests
AI retested the composition follow-up in desktop Chromium and a 390px-wide window: both card pages, USD/GBP conditional benefits, travel benefits, keyboard/noninteraction, offline recovery, a dark-theme sample, and German wrapping. No card enrollment, booking, payment, or domain verification was performed.
/workspaces/and the next/. On the same app host, open/travel?policyID=<that workspace ID>in the address bar.Actual-caller component tests cover both domain benefit pages, lazy-asset absence, the two empty travel layouts, and CTA permission/action branches. Those states are not prerequisites for the manual flow and are not claimed as live domain/provider tests.
Offline tests
QA Steps
Open https://staging.new.expensify.com/, sign in normally, and follow Tests and Offline tests from workspace creation onward. Do not connect or issue a card, book travel, or verify a domain. Report a missing QA feature/permission as a blocked check rather than using an undefined prepared fixture. This follow-up's staging and native/Safari execution remains pending.
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.AI Tests
Composition follow-up:
9c38ae00649517202858bf7786a371f21368b6ca. The browser-tested staged tree is identical to this signed commit's tree; a post-commit full reload also verified the composed rows.FeatureListTest,WorkspaceCardFeatureListTest,DomainFeatureListTest,TravelFeatureListTest,WorkspaceCompanyCardPageEmptyStateTest,MyTripsPageTest, andMenuItemAccessibilityTest.npm run lint-changed, fullnpm run typecheck, React Compiler compliance, spelling, and formatting scoped to the 15 changed files passed.The original migration was tested at
60052714ed489207465932fd038d8cc4891a8321with 20 tests; its evidence is retained below separately from the new composition evidence.Screenshots/Videos
Android: Native
Not tested.
Android: mWeb Chrome
Not tested.
iOS: Native
Not tested.
iOS: mWeb Safari
Not tested.
MacOS: Chrome / Safari
Tested in Chromium only; Safari and screen-reader testing are still needed. Narrow captures are from a resized desktop browser, not a mobile device.
Original migration evidence — before:
29329424a2e7c9fd73c1f026d018c2a885d0aa7e; after:60052714ed489207465932fd038d8cc4891a8321. Same owned fixture, viewport, theme and locale per pair; no native or Safari evidence is implied.Post-authentication read-only inspection recording: 34.467 seconds, 1440×1000. Includes both consumers, all six benefit hover/click checks and focus skipping; no login or setup CTA activation.
final-readonly-inspection.webm
Composition follow-up —
9c38ae00649517202858bf7786a371f21368b6caFresh captures from the new compound component; narrow images are responsive desktop Chromium, not mobile-device certification.
27.3-second after-auth recording of both card pages, six read-only benefit clicks, and keyboard skipping. No setup CTA was activated in this recording:
composed-benefits.webm