Repository navigation
Migrate three legacy top-description rows to MenuItem composition - #106776
Conversation
Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis 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. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
🤖 Web test steps verification results: ❌ fail Blocked on dev NewDot web by mandatory email security-code verification during bank setup; no banking information was entered or submitted. Unverified checks below reflect testing blockers, not confirmed product failures.
view run · no recording available |
dylanexpensify
left a comment
There was a problem hiding this comment.
Product input not required for this PR.
|
@MelvinBot fix oxfmt fail check and merge main |
| <MenuItem.FieldName>{translate('iou.amount')}</MenuItem.FieldName> | ||
| <MenuItem.FieldValue style={styles.moneyRequestConfirmationAmount}>{formattedAmount}</MenuItem.FieldValue> | ||
| </MenuItem.Content> | ||
| {(canOpenAmountPage || (shouldDisplayFieldError && amountIsMissing)) && ( |
There was a problem hiding this comment.
| {(canOpenAmountPage || (shouldDisplayFieldError && amountIsMissing)) && ( | |
| {(canOpenAmountPage || shouldShowAmountMissingError) && ( |
@MelvinBot we can use shouldShowAmountMissingError in all places
There was a problem hiding this comment.
| sentryLabel={CONST.SENTRY_LABEL.REQUEST_CONFIRMATION_LIST.AMOUNT_FIELD} | ||
| /> | ||
| > | ||
| <MenuItem.Row> |
There was a problem hiding this comment.
@MelvinBot can't we simplify with <MenuItemField.Row?
There was a problem hiding this comment.
There was a problem hiding this comment.
Not without losing the amount’s custom typography. MenuItemField.Row creates its value internally without a style override, while this amount row needs moneyRequestConfirmationAmount.
The error indicator and chevron would work as children; typography is the blocker. I left the explicit composition unchanged to preserve the appearance without expanding the shared API.
Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
|
Pushed eb2c485: merged Local formatting, lint, typecheck, spelling, Storybook smoke test, and all 39,680 Jest tests passed. React Compiler checking remains blocked by the CI base-reference configuration. The new Oxfmt CI check is running. The PR remains open. |
|
|
Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
|
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
|
✋ 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.5.40-0 🚀
|
|
No help site update needed — this PR refactors existing components without changing user-facing workflows or labels, removing beta gates, or making existing article instructions incorrect. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.5.40-1 🚀
Bundle Size Analysis (Sentry): |



Explanation of Change
Migrate three remaining top-description rows to
MenuItem.Rootcomposition using only existing field, chevron, brick-road indicator and help-text leaves. This removes the legacy configuration API at these call sites without expanding the shared API.Update existing regression tests, add coverage for permanent read-only versus temporary disabled picker rows, and remove the corresponding deprecated-usage lint allowances. This is a partial Phase 6 migration, not completion of the parent issue.
AI Tests
Review follow-up: reused the existing
shouldShowAmountMissingErrorpredicate in all four remaining equivalent checks, with no behavior change. Passed full lint, changed-file lint, typecheck (on retry), spelling, Oxfmt, direct React Compiler check for the updated component, Storybook smoke test, and full Jest suite (2,384 suites, 39,680 tests, 160 snapshots; 1 suite and 146 tests skipped). AI code review found no violations. Changed-file lint/spelling initially needed deeper Git history; both passed after fetching it. React Compilercheck-changedstill cannot resolve the empty CI base reference (origin/); the direct file check passed. No new manual UI tests were run for this predicate-only refactor.2026-11-14 update: merged
maininto the PR branch without conflicts and applied Oxfmt's JSX formatting to the three migrated components. Passed full lint, changed-file lint, typecheck, spelling, Storybook smoke test, and the full Jest suite (2,384 suites, 39,680 tests, 160 snapshots; 1 suite and 146 tests skipped). Re-runningnpm run fmtproduced no diff. AI code review found no violations. The matrix's Prettier script remains unavailable; Oxfmt is the repository formatter. React Compilercheck-changedremains blocked by an empty CI base reference (origin/). No new manual UI verification was performed for this formatting-only update.Created on an upstream branch and assigned to
Pujan92because MelvinBot cannot push to the contributor's fork. To copy the branch into that fork:check-changedcommand could not resolve its CI base reference; direct file checks passed instead.prettiernpm script.Fixed Issues
$ #105531
PROPOSAL: #105531 (comment)
Tests
// TODO: The human co-author must fill out the manual tests performed. Automated results and the blocked web attempt are recorded under AI Tests above.
Offline tests
// TODO: The human co-author must record offline tests performed. Expected offline checks are included in QA step 7 below.
QA Steps
These are QA instructions, not a claim that manual verification passed; the automated web attempt was blocked by a blank app page.
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
Blocked web verification: the handed-off app session rendered no UI.