Skip to content

fix(ui-scripts): fixed a shallow merge bug in generatesemantics.ts#2558

Closed
adamlobler wants to merge 1 commit into
masterfrom
fix-semantic-token-generation
Closed

fix(ui-scripts): fixed a shallow merge bug in generatesemantics.ts#2558
adamlobler wants to merge 1 commit into
masterfrom
fix-semantic-token-generation

Conversation

@adamlobler
Copy link
Copy Markdown
Collaborator

mergeSemanticSets used a shallow spread. Every semantic JSON file wraps its contents under a single top-level "semantic" key, so when color and layout files were merged, the layout's semantic object silently overwrote the color one. The deep merge now recursively combines both instead.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-15 12:13 UTC

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

Visual regression report

No changes.

Status Count
Unchanged 32
Changed 0
New 0
Removed 0

📊 View full report

Baselines come from the visual-baselines branch. They refresh on every merge to master.

github-actions Bot pushed a commit that referenced this pull request May 14, 2026
@adamlobler adamlobler requested a review from HerrTopi May 14, 2026 11:40
Comment thread packages/ui-scripts/lib/build/buildThemes/generateSemantics.ts
@matyasf matyasf force-pushed the fix-semantic-token-generation branch from 665abbe to 3f13143 Compare May 15, 2026 07:22
…at was dropping color tokens when building themes
@matyasf matyasf force-pushed the fix-semantic-token-generation branch from 3f13143 to 0846820 Compare May 15, 2026 07:33
@adamlobler
Copy link
Copy Markdown
Collaborator Author

@HerrTopi will take over this issue. I close this PR.

@adamlobler adamlobler closed this May 15, 2026
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.

2 participants