Skip to content

fix: prefer MMDS exact matches over intermediate component-library paths - #114

Draft
AndyMBridges wants to merge 1 commit into
mainfrom
fix/prefer-mmds-exact-match
Draft

fix: prefer MMDS exact matches over intermediate component-library paths#114
AndyMBridges wants to merge 1 commit into
mainfrom
fix/prefer-mmds-exact-match

Conversation

@AndyMBridges

Copy link
Copy Markdown
Contributor

Summary

  • Prefer exact @metamask/design-system-* name matches before intermediate component-library / components-temp deprecation hints in the config mapper
  • Remap mobile Skeleton to @metamask/design-system-react-native (was incorrectly ComponentsTemp)
  • Remap extension ModalHeader, ModalContent, and FormTextField to @metamask/design-system-react for the same reason

Why

Legacy deprecation messages sometimes point at in-repo stepping-stone paths even when MMDS already ships the component. That left dashboard “MMDS replacement” blank for components like mobile Skeleton despite the package existing.

Test plan

  • node -e / unit check: mapping Skeleton with a components-temp deprecation message and reactNative: ['Skeleton'] returns @metamask/design-system-react-native
  • yarn sync-config:skip-update keeps the corrected replacements (does not regress to component-library)
  • After next metrics regen, mobile remaining-legacy table shows Skeleton → MMDS Skeleton

Made with Cursor

Deprecation messages sometimes point at in-repo components-temp first even
when the same component already exists in @MetaMask/design-system-*. Check
exact MMDS names before those intermediate hints so Skeleton (and similar
cases) map to the real MMDS package.

Co-authored-by: Cursor <cursoragent@cursor.com>
@AndyMBridges
AndyMBridges marked this pull request as draft August 6, 2026 09:20
@AndyMBridges
AndyMBridges removed the request for review from georgewrmarshall August 6, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant