Skip to content

fix: improve legacy-to-MMDS replacement mapping and dashboard fallback - #121

Merged
georgewrmarshall merged 3 commits into
mainfrom
fix/legacy-replacement-mapping
Aug 20, 2026
Merged

fix: improve legacy-to-MMDS replacement mapping and dashboard fallback#121
georgewrmarshall merged 3 commits into
mainfrom
fix/legacy-replacement-mapping

Conversation

@AndyMBridges

@AndyMBridges AndyMBridges commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes missing MMDS replacement values in the team legacy backlog (e.g. Skeleton, Avatar, ButtonLink showing despite having deprecation guidance).

Pipeline / mapper

  • Improve component-mapper to handle multi-replacement @deprecated tags (Avatar variants, ButtonLink → TextButton/Button) and to prefer MMDS package targets over intermediate components-temp paths (Skeleton).
  • Add legacyReplacements to metrics *-data.json so each legacy component carries display labels, option lists, and fallback guidance.

Dashboard

  • Team legacy backlog reads legacyReplacements and shows linked MMDS targets, multi-option replacements, or deprecation guidance when no mapping exists.
  • Team migration % sums MMDS usage across all valid replacement options (important for Avatar).

Metrics scope

  • Code-only PR — no regenerated metrics artifacts. Production keeps the current weekly report on main until the next scheduled metrics run applies the new mappings.

Test plan

  • yarn test __tests__/component-mapper.test.js --watchman=false
  • cd dashboard && npm run build
  • After merge, confirm the next weekly metrics PR includes legacyReplacements and improved backlog mappings

Parse multi-replacement deprecation tags (Avatar, ButtonLink, Skeleton),
emit legacyReplacements in metrics output, and surface mapped targets or
guidance in the team legacy backlog. Regenerate 2026-08-14 metrics.

Co-authored-by: Cursor <cursoragent@cursor.com>
AndyMBridges and others added 2 commits August 14, 2026 09:11
Keep production metrics unchanged on main; mapping improvements will apply
on the next weekly metrics run.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@georgewrmarshall
georgewrmarshall merged commit 2e00b6a into main Aug 20, 2026
2 checks passed
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.

3 participants