Repository navigation
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b609d94a0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
JakubKorytko
left a comment
There was a problem hiding this comment.
two small ones, worth re-visiting after base PR is merged and the diff is clean
1b609d9 to
2c36afc
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@bernhardoj 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] |
dylanexpensify
left a comment
There was a problem hiding this comment.
Product input not required
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c36afcc59
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
2c36afc to
c64911f
Compare
|
@MelvinBot review |
|
I reviewed What I checked
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c64911f2bb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…t guards and migration guide
c64911f to
c7aea7f
Compare
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@bernhardoj ready for review. I'm aware of the conflicts with seatbelt and I'll resolve them after your review / right before the merge. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
…mber-with-symbol-form # Conflicts: # config/oxlint/oxlint.seatbelt.tsv
…mber-with-symbol-form # Conflicts: # config/oxlint/oxlint.seatbelt.tsv
|
🚧 mountiny 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/mountiny in version: 9.5.37-0 🚀
|
|
No help site update needed — this PR only adds developer lint guards, deprecation annotations, migration guidance, type organization, and tests; it introduces no user-facing changes or beta releases and makes no existing article inaccurate. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.5.37-1 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Following the introduction and semantic separation of
KeypadAmountEditor(full-screen layout) andAmountFormField(inline field), the legacyNumberWithSymbolForm,MoneyRequestAmountInput, and related primitives (TextInputWithSymbol,SymbolButton,CONST.TEXT_INPUT_SYMBOL_POSITION) are obsolete and scheduled for migration.This PR establishes lint guards to prevent new usages while existing call sites are migrated across dedicated follow-up PRs, updates seatbelt ratchets, formalizes deprecations with JSDoc annotations, and adds comprehensive technical migration guidance.
Key changes in this PR:
restrictedImportPatternsinoxlint.config.mtsprohibiting default imports ofNumberWithSymbolFormandMoneyRequestAmountInput. Baselined existing call sites inconfig/oxlint/oxlint.seatbelt.tsvto keep CI green while strictly forbidding any new import additions.@deprecatedJSDoc tags pointing developers toAmountFormField,KeypadAmountEditor, and the migration guide across:src/components/NumberWithSymbolForm.tsx&NumberWithSymbolFormRefsrc/components/MoneyRequestAmountInput.tsx&MoneyRequestAmountInputPropssrc/components/SymbolButton.tsx&SymbolButtonPropssrc/components/TextInputWithSymbol/(BaseTextInputWithSymbol, platform variants, and types)src/CONST/index.ts(TEXT_INPUT_SYMBOL_POSITION)contributingGuides/NUMBER_WITH_SYMBOL_FORM_MIGRATION.mdas a stable engineering reference detailing:KeypadAmountEditorvsAmountFormField) and deliberate landscape behavior parity.updateNumber).useDiscardChangesConfirmation) using render-time mirror state resets (previousSync) to satisfy React Compiler'src/set-state-in-effectwithout reading refs in render.submitBehavior,sentryLabel) and per-caller incremental prop additions, alongside a default-differences matrix for pad-without-pad callers (AmountFormField.Input).AmountField), and standalone vsFormProviderintegration.MoneyRequestAmountInputwrapper sync rules, blur formatting, and signed magnitude business validation considerations (isAmountInvalid).AmountFormas theFormProvideradapter: its current routing (17 of 20 usages already renderAmountFormField, covering alldisplayAsTextInputusages including the currency-button variant and one standalone usage outsideFormProvider, while 3 still reachNumberWithSymbolFormthrough the pad path, which lint does not flag), migration of the pad path inside the adapter with behavior parity, and a follow-up split into separate inline and pad adapters replacing thedisplayAsTextInputmode switch.AmountFormreference insrc/components/AmountFormField/index.tsxto the inline (displayAsTextInput) adapter path and linked the migration guide.AmountFormFieldPropstosrc/components/AmountFormField/types.tsand exported it from there. It is intentionally not re-exported from@components/AmountFormFieldyet to satisfyknipunused-export checks until the first consumer migrates.tests/unit/components/useAmountEditingControllerTest.tsby strictly typing test helper options and verifying thatupdateNumbersets the canonical value and moves the caret to the end without firingonInputChange, while intentionally bypassing validation constraints (decimals,maxLength,allowNegative).Fixed Issues
$ #98172
PROPOSAL: #97970
Tests
import NumberWithSymbolForm from '@components/NumberWithSymbolForm';to an unratcheted file (e.g.src/pages/home/HomePage.tsx) and runnpm run lint-changed.no-restricted-importserror and a@typescript-eslint/no-deprecatederror, both referencingcontributingGuides/NUMBER_WITH_SYMBOL_FORM_MIGRATION.md.Offline tests
N/A
QA Steps
N/A
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.