MenuItem decomposition - titleStyle migration - #101225
roryabraham merged 11 commits into
Conversation
…em` & `styles.flex1`
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
# Conflicts: # src/pages/workspace/fields/CreateFieldsPage.tsx # src/pages/workspace/fields/FieldsValueSettingsPage.tsx
# Conflicts: # src/components/MoneyRequestConfirmationList/sections/PerDiemFields.tsx # src/stories/MenuItemComparison.stories.tsx
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
| <View style={[styles.p4, styles.flexRow, styles.flexWrap, styles.gap4]}> | ||
| <SectionHeading title="Phase 4 — title styles">numberOfLinesTitle became numberOfLines on the text leaves.</SectionHeading> | ||
|
|
||
| <Card |
There was a problem hiding this comment.
hmmm not sure what's going on with Card, but I assume it's been discussed somewhere and is a temporary state of affairs
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 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.4.90-0 🚀
|
|
🤖 No help site changes are required — no draft PR created. This PR is an internal component refactor. It migrates Why I concluded no docs impactI checked the diff against the three things that would force a
I searched If you'd like a docs update anyway for something I read as purely presentational — for example if the List values wrapping is meant to be called out in the Report fields article — reply with @war-in, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |




Explanation of Change
Adds
numberOfLinestoMenuItem.Title/FieldValueandnumberOfLinesValueto theMenuItemFieldpreset, then migrates every callsite that only needednumberOfLinesTitleor title/row styles that turned out to be no-ops (styles.flex1on the title,styles.moneyRequestMenuItemon the row). Adds a Phase 4 section to the comparison story.Fixed Issues
$ #100159
PROPOSAL:
Tests
npm run storybook) and open Components/MenuItemComparisonOffline tests
N/A
QA Steps
Same as tests (1-12, 13 & 14 are dev only)
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