Skip to content

fix(design-data): pin structure-prefixed legacy keys and add regression test - #1544

Merged
GarthDB merged 3 commits into
feat/h890-foundation-drift-prfrom
fix/mra7-structure-legacy-keys
Oct 15, 2026
Merged

GarthDB merged 3 commits into
feat/h890-foundation-drift-prfrom
fix/mra7-structure-legacy-keys

Conversation

@GarthDB

@GarthDB GarthDB commented Oct 15, 2026

Copy link
Copy Markdown
Member

Description

Stack 3/3 (based on #1543). Follow-up to #1517 (mra7):

  • Adds explicit name.legacyKey pins to the five live records (banner-gap-horizontal, banner-gap-vertical, banner-padding-horizontal, banner-padding-vertical, list-gap-regular) so the names no longer depend on the structure field flag.
  • Adds structure_prefixed_legacy_keys_survive_convert_graph: legacy::convert_graph keeps the five original UUIDs and values on the live keys, and the old unprefixed keys stay distinct deprecated compat records with the same values.

Generated legacy output is unchanged.

Related Issue

Bead spectrum-design-data-mra7; follows #1517.

Motivation and Context

Review notes on #1517 asked for explicit pins and regression coverage of UUID identity.

How Has This Been Tested?

  • moon run sdk:codegen, moon run sdk:codegen-check: passed.
  • moon run design-data:validate: passed.
  • moon run design-data:legacy-output: passed, no diff.
  • moon run sdk:test: passed (1562 tests).
  • moon run sdk:lint, moon run sdk:fmt: passed.
  • moon run root:check-legacy-consumers: passed.
  • node tools/changeset-linter/src/cli.js check --fail-on-warnings: passed.

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • I have added a changeset.

@changeset-bot

changeset-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d08bae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@adobe/spectrum-design-data Patch
@adobe/design-data-wasm Patch
@adobe/spectrum-component-api-schemas Patch
@adobe/design-system-registry Patch
@adobe/design-data-agent-mcp Patch
@adobe/design-data-mcp Patch
markdown-generator Patch
@adobe/token-corpus-migrate Patch
@adobe/token-naming-audit Patch
s2-tokens-viewer Patch
@adobe/design-data Patch
@adobe/spectrum-design-data-mcp Patch
component-options-editor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🎨 Token Changes Report

Tokens Changed (0)

Original Branch: main


This comment was automatically generated by the token diff tool. 🤖

@github-actions

Copy link
Copy Markdown
Contributor

🧩 Component Schema Changes Report

No component schema changes detected.

This comment was automatically generated by the component schema diff tool. 🤖

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Run report for 6d08baea

Total time: 3m 40s | Comparison time: 8m 43s | Estimated savings: 5m 2s (57.8% faster)

Action Time Status Info
⬛️ SetupProto(0.57.4) 0ms Skipped
🟩 SyncWorkspace 13.8ms Passed
🟩 SyncProject(sdk) 0.5ms Passed
🟩 SyncProject(design-data-spec) 1ms Passed
🟩 SyncProject(design-data) 1.3ms Passed
🟩 SyncProject(component-schemas) 1.2ms Passed
⬛️ SetupToolchain(node:20.17.0) 898ms Skipped
⬛️ SetupToolchain(rust:1.88.0) 1.5s Skipped
⬛️ SetupToolchain(pnpm:10.17.1) 652.6ms Skipped
⬛️ SetupToolchain(javascript) 0ms Skipped
🟩 SetupEnvironment(javascript) 0.8ms Passed
⬛️ InstallDependencies(javascript) 0.1ms Skipped
⬛️ SetupEnvironment(javascript, sdk) 1ms Skipped
🟩 SetupEnvironment(rust, sdk) 170.6ms Passed
⬛️ InstallDependencies(rust, sdk) 3.4ms Skipped
🟩 RunTask(design-data:validate-registry) 292.6ms Passed
🟩 RunTask(sdk:fmt-check) 2.1s Passed
🟩 RunTask(component-schemas:test) 3.3s Passed
🟩 InstallDependencies(javascript, sdk) 6.4s Passed
🟩 RunTask(sdk:codegen-check) 178.1ms Passed
And 9 more...
Expanded report
Action Time Status Info
🟩 RunTask(sdk:lint) 1m Passed
🟩 RunTask(sdk:test-doc) 2m 2s Passed SLOW
🟩 RunTask(sdk:build) 2m 18s Passed SLOW
🟩 RunTask(design-data:legacy-output) 1.4s Passed
🟩 RunTask(design-data:roundtrip-verify) 2s Passed
🟩 RunTask(design-data:validate-dataset) 31.9s Passed
🟩 RunTask(design-data:validate) 28s Passed
🟩 RunTask(markdown-generator:generate) 1.7s Passed
🟩 RunTask(sdk:test) 3m 32s Passed SLOW
Changed files
.changeset/figma-modeless-layer-bare-names.md
.changeset/foundation-drift-bump-pr.md
.changeset/pin-structure-legacy-keys.md
.changeset/wasm-dataset-structure-legacy-keys.md
.github/actions/validate/README.md
.github/actions/validate/action.yml
packages/design-data/tokens/layout.tokens.json
sdk/cli/src/main.rs
sdk/cli/tests/cli_platform.rs
sdk/core/src/legacy.rs
sdk/plugins/figma/src/audit.rs
sdk/plugins/figma/src/import.rs
sdk/plugins/figma/src/import/diff.rs
sdk/plugins/figma/src/import/tests.rs
sdk/plugins/figma/src/mapping.rs
sdk/plugins/figma/src/mapping/convert.rs
sdk/plugins/figma/src/mapping/golden_tests.rs
sdk/plugins/figma/src/mapping/graph.rs
sdk/plugins/figma/src/mapping/modeless.rs
sdk/plugins/figma/src/mapping/payload.rs
sdk/plugins/figma/src/mapping/routing.rs
sdk/plugins/figma/src/mapping/tests.rs

@GarthDB
GarthDB added this pull request to stack #1545 October 15, 2026 21:47
@GarthDB
GarthDB force-pushed the fix/mra7-structure-legacy-keys branch from b27679c to f034a5e Compare October 15, 2026 21:48
@GarthDB
GarthDB force-pushed the fix/mra7-structure-legacy-keys branch from f034a5e to 2c820b6 Compare October 15, 2026 22:14
test and others added 3 commits October 15, 2026 16:17
…on test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GarthDB
GarthDB force-pushed the fix/mra7-structure-legacy-keys branch from 2c820b6 to 6d08bae Compare October 15, 2026 22:18
@GarthDB
GarthDB merged commit 1453add into main Oct 15, 2026
9 checks passed
@GarthDB
GarthDB deleted the fix/mra7-structure-legacy-keys branch October 15, 2026 22:30
@GarthDB GarthDB mentioned this pull request Oct 15, 2026
GarthDB pushed a commit that referenced this pull request Oct 15, 2026
…on test (#1544)

- Add `name.legacyKey` pins for five structure-prefixed layout tokens so they survive the legacy round trip.
- Add a regression test over the canonical corpus that fails if the corpus is missing.
- Add changesets for the data and WASM packages.
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