Repository navigation
MenuItem decomposition - migratable batch - #103973
roryabraham merged 11 commits into
Conversation
…the composable API Moves 64 legacy MenuItem / MenuItemWithTopDescription rows in 38 files to presets or MenuItem.Root composition. No new API.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…position-migratable-batch # Conflicts: # src/components/DynamicForm/components/DynamicFormFieldRow.tsx # src/components/MenuItem/presets/MenuItemField.tsx # src/pages/ProfilePage.tsx # src/pages/workspace/expensifyCard/DynamicWorkspaceExpensifyCardDetailsPage.tsx # src/pages/workspace/rules/ExpenseReportRulesSection.tsx
dylanexpensify
left a comment
There was a problem hiding this comment.
Performance related, product input not required
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
|
@war-in conflicts |
…omposition-migratable-batch # Conflicts: # src/components/Search/FilterDropdowns/SearchFooterPopup.tsx # src/pages/DynamicReportDetailsPage/ReportDetailsMenuMarkAsIncompleteItem.tsx # src/pages/iou/request/step/IOURequestEditReportCommon.tsx # src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx # src/pages/workspace/accounting/campfire/advanced/CampfireAdvancedPage.tsx
|
@Pujan92 done! |
|
@MelvinBot review |
Code reviewI found no bugs in the code. I compared each of the 64 migrated rows against its legacy props. Chevrons, red dots, press handlers, read-only rows, copy-to-clipboard, offline wrappers, sentry labels and the anonymous-user guard all behave as before. Nothing else uses the removed These small visual differences are worth checking against
What I checked
I reviewed the code only. I didn't run the app or the tests. |
|
Reassure failure is unrelated, not going to block merge on it. |
|
🚧 roryabraham 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/roryabraham in version: 9.5.27-0 🚀
|
|
No help site update needed. This PR moves existing menu rows to the new |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.27-2 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Migrates 64 legacy
MenuItem/MenuItemWithTopDescriptionrows in 38 files to the composable API (presets orMenuItem.Root). No new API. Rowstyleoverrides are replaced by fixing the parent layout:ProfilePagerows leaveavatarSectionWrapper, Rules/Invoicing useMenuItemSectionRoot, outer margins move to wrapper Views.Fixed Issues
$ #100159
PROPOSAL:
Tests
Open any user's profile (e.g. click an avatar in a chat, or Settings > Profile > view your public profile)
Hover the status, email/phone, display name, pronouns and local time rows, and long-press / right-click the email row
Verify that the rows line up with the page edges as before, the email row offers "Copy to clipboard", and the display name row is pressable (with a chevron) only when the member has no display name set
Open a workspace > Workflows / Rules (expense report rules section) and Invoices (invoicing details section), and an accounting connection (Campfire, Xero, NetSuite, QuickBooks Online, Sage Intacct or Certinia) > Export / Advanced
Press each migrated field row (e.g. "Auto-approve reports under", "Company name", export rows), then go back
Verify that each row shows the same label, value, chevron and red dot (when a setting has an error) as on
main, opens the same page, and that read-only rows (e.g. preferred exporter) have no chevron and do nothing on pressOpen a chat > report details and check the Settings, Members, Invite, Leave, Private notes, Mark as incomplete and Track expense rows; then open an expense > More > Split
Press each row, and on the split page press "Add split" and "Make splits even"
Verify that every row navigates or acts as before, the Members row shows the member count before the chevron, and the split rows add a split and evenly redistribute the amounts
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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