Repository navigation
Description
Sub-issue of #97970.
Migration plan: jmgraa comment.
Fourth migration batch. Four leaf call sites that need NumberForm with Input and only the children they actually use. This is the batch that exercises the displayAsTextInput path, which has no coverage on main.
Scope
- Step: 5 of the migration plan, simple text and unit inputs
- Shape: plain input, no number pad
- Scope: 4 files, plus 1 test comment update
Files
src/pages/iou/request/step/IOURequestStepHours.tsx:165— direct render, ref type at:81. Unit suffixhrs.src/pages/workspace/taxes/WorkspaceCreateTaxValuePage.tsx:75— direct render,isSymbolPressable={false}src/components/MoneyRequestConfirmationList/sections/TaxFields.tsx:163— direct render,displayAsTextInput, ref type at:54src/components/MoneyRequestConfirmationList/sections/AmountField.tsx:312— direct render,displayAsTextInputwith bothshouldShowFlipButtonandshouldShowCurrencyButtontests/ui/IOURequestStepHoursTest.tsx:158,184— comment update only. It mentionsNumberWithSymbolFormin two comments but does not import it. Update the comments so they name the composition.
AmountField is the hard one
src/components/MoneyRequestConfirmationList/sections/AmountField.tsx is the only call site in the codebase that uses the displayAsTextInput right hand side buttons. It is therefore the only real test of the NumberForm.FlipButton and NumberForm.CurrencyButton primitives from #98170 in that layout. Migrate it last within this batch and give it its own verification note in the PR.
In the old component that path resolved its trailing button through onTrailingDropdownPress = onCurrencyButtonPress ?? onSymbolButtonPress at line 243, and negated through the internal handleFlipPress rather than the caller supplied toggleNegative. Confirm the new primitives reproduce both.
Coverage note
Neither AmountField nor TaxFields renders in any test today. tests/ui/SubmitDetailsPageTest.tsx mocks @components/MoneyRequestConfirmationList entirely, so the confirmation list subtree never mounts. Manual verification is the only check for these two, unless this PR adds a test.
Out of scope
Acceptance criteria
- All 4 files render the
NumberFormcomposition with only the children they need - No file in this batch imports
NumberWithSymbolForm -
AmountField.tsxreproduces the trailing button and the negation behaviour of the olddisplayAsTextInputpath, with the verification stated in the PR -
WorkspaceCreateTaxValuePage.tsxkeeps its non pressable symbol -
tests/ui/IOURequestStepHoursTest.tsxpasses and its comments name the composition - The seatbelt rows for all 4 files are removed
- Manual pass over the hours step, tax value creation, and the confirmation list amount and tax fields
- Verify that no errors appear in the JS console
Activity
melvin-bot commentedon Sep 2, 2026
This issue has not been updated in over 15 days. @mountiny, @bernhardoj eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
expensify-chore-bot commentedon Nov 17, 2026
@mountiny, @bernhardoj, this Monthly task hasn't been acted upon in 6 weeks; closing.
If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.