Skip to content

[SG-36018] Wildcard V2: <Typography /> Manual migration, Revert usage of Typography.XXXXX namespace

Administrator requested to merge contractors/SG-36018 into main

Created by: gitstart-sourcegraph

Description

Manual migration required to update our code to use the Wildcard component. See Wildcard V2 - Planned work for more context

Note: Before doing this, we should check if there is scope for a codemod to automate this migration. If so, the codemod should be implemented and ran before starting work on this issue.

Ref

SG Issue GitStart Issue

Acceptance criteria

  • All incorrect usage of the previous pattern has been updated to use the Wildcard component

Time estimate

  • Pull requests with ~450 lines changed should take 2-3 hours at maximum. Ping the reviewer in the spec pull request if time-consuming changes are required.

  • Split the work into multiple pull requests if the total diff is bigger than 450 lines of code.

Implementation Detail

  • Replace all Typography.XXX with XXX
  • Replace Typography imports by regex with all available Text components
  • Run eslint --fix to remove unused imports appeared because of the step 2.

Test Plan

Ensure there are no UI changes on both storybook and application

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading