Skip to content

NumberForm cleanup: remove NumberWithSymbolForm, stories and eslint seatbelt #98178

Open

Description

@mountiny

Sub-issue of #97970.
Migration plan: jmgraa comment.

Final issue. Once every direct and indirect consumer has migrated, delete the deprecated component and everything that only exists to support it.

Scope

  • Step: 6 of the migration plan
  • Scope: deletions only, no new behaviour

Files

  • src/components/NumberWithSymbolForm.tsx — delete, including NumberWithSymbolFormProps and NumberWithSymbolFormRef
  • src/stories/NumberWithSymbolForm.stories.tsx — delete. This story is removed in cleanup, not migrated. Add a NumberForm story in its place so the composition stays documented in Storybook.
  • config/eslint/eslint.config.mjs — remove the no-restricted-imports guard added in #98172, it has nothing left to guard
  • config/eslint/eslint.seatbelt.tsv — remove the guard baseline rows from #98172, and the two grandfathered rows at lines 275-276 that key @typescript-eslint/no-unsafe-type-assertion and react-hooks/set-state-in-effect to the deleted file
  • tests/ui/NumberWithSymbolFormTest.tsx — the characterization tests from #98168. Either delete them with the component, or port the assertions that still describe wanted behaviour onto NumberForm. Prefer porting.

Pre-flight check

Run this before starting. It must return nothing:

git grep -n "NumberWithSymbolForm" -- src tests config

If it returns anything other than the files listed above, a migration batch was missed and this issue is still blocked.

Also remove

  • Any compatibility shim left in place by the adapter from #98171
  • Any prop that only existed for the old API and has no consumer: onChangeAmount, selection, rightHandSideComponent, prefixStyle, shouldAllowFocusInLandscapeMode and the currencyButtonLabel / onCurrencyButtonPress pair

Out of scope

  • Any behaviour change. If something needs fixing, file it separately.

Acceptance criteria

  • git grep NumberWithSymbolForm over src, tests and config returns nothing
  • The no-restricted-imports guard and all related seatbelt rows are gone
  • A NumberForm story replaces the deleted one
  • Characterization test assertions are either ported to NumberForm or consciously dropped, with the reason in the PR
  • Full test suite and lint pass
  • Verify that no errors appear in the JS console

Dependencies

Issue OwnerCurrent Issue Owner: @bernhardoj

Activity

  1. added
    Skip Payment
    on Aug 10, 2026
  2. melvin-bot commented on Oct 22, 2026

    @melvin-bot

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MonthlySkip PaymentTask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions