Skip to content

fix: site-tokens - Export the palette ramps in the LightSpeed order - #4035

Merged
ZaredRogers merged 4 commits into
fix/git-2772-figma-tokens-layout-widthsfrom
fix/git-2773-site-tokens-palette-order
Nov 11, 2026
Merged

ZaredRogers merged 4 commits into
fix/git-2772-figma-tokens-layout-widthsfrom
fix/git-2773-site-tokens-palette-order

Conversation

@ZaredRogers

@ZaredRogers ZaredRogers commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bugfix Pull Request

This repository enforces changelog, release, and label automation for all PRs and issues.
See the organisation-wide Automation Governance & Release Strategy for required rules.

Linked issues

Fixes #4031

Linear: GIT-2773

Context

Reproduction

  • Steps: 1) Export the TSP run 2 proposal. 2) Run the figma-to-block-theme mapper, which keeps the Figma order.
  • Expected vs Actual: Expected base, contrast, neutral, primary, brand, cta. Got base, contrast, brand, primary, cta, neutral.

Root Cause

  • The export looped over the families as brand, primary, cta, neutral.

Fix Summary

  • The ramps are created as neutral, primary, brand, cta. SKILL.md and target-structure.md list them in that order.

Verification

  • Tests added/updated to cover the bug: the Colour collection's family order. 122 Jest tests pass, tsc --noEmit clean
  • Manual verification: TSP palette now runs base, contrast, neutral, primary, brand, cta, then the status colours
  • Negative/edge cases checked: variable counts and names are unchanged

Risk & Rollback

  • Risk level: Low.
  • Rollback plan: Revert this PR.

Changelog

Fixed

🤖 Generated with Claude Code

The export created brand, primary, cta, neutral, and figma-to-block-theme
keeps the Figma order, so the theme palette was out of convention.
Create neutral, primary, brand, cta instead.

Refs GIT-2773

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

GIT-2773

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ce00aa6 and 6ac7772.

Files selected for processing: 12

  • CHANGELOG.md
  • package.json
  • skills/site-to-design-tokens/SKILL.md
  • skills/site-to-design-tokens/references/target-structure.md
  • skills/site-to-design-tokens/scripts/__tests__/write-token-export.test.ts
  • skills/site-to-design-tokens/scripts/write-token-export.ts
  • skills/theme-orphaned-refs/SKILL.md
  • skills/theme-orphaned-refs/scripts/__tests__/find-orphaned-presets.test.ts
  • skills/theme-orphaned-refs/scripts/find-orphaned-presets.ts
  • skills/theme-orphaned-refs/scripts/find_orphaned_presets.py
  • skills/theme-orphaned-refs/scripts/jest.config.cjs
  • skills/theme-orphaned-refs/scripts/tsconfig.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@github-actions

Copy link
Copy Markdown
Contributor

PR Template Routing

Branch Type: fix
Scope: git-2773-site-tokens-palette-order
Template: pr_bug.md
Labels Applied: type:bug

This PR was automatically routed based on the branch naming strategy.

…resets

The scan walked node_modules, vendor, build and .agents, so on a
scaffold-generated theme it took over 2 minutes and its report was
almost all false hits. Skip those folders (with --exclude for more),
add border-radius to the preset types, suggest the nearest step for
bare numeric ladders, and add unit tests.

Refs GIT-2774

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eScript

Agent tooling is TypeScript with Jest tests beside the script. Replace
find_orphaned_presets.py and its unittest tests with
find-orphaned-presets.ts (registry loader, slug suggester and scanner
classes, file system injected) and Jest tests at 80% thresholds. Add
npm run test:theme-orphaned-refs. Behaviour matches the previous commit.

Refs GIT-2774

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@krugazul
krugazul added this pull request to stack #4043 November 11, 2026 07:32
@mergify

mergify Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 2 of 2 protections blocking · waiting on ⛓️ dependency

Protection Waiting on
🔴 ⛓️ Depends-On Requirements ⛓️ dependency
🔴 🚦 Auto-queue —

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of `Depends-On` in the body of the pull request

🔴 🚦 Auto-queue

This rule is failing.

When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.

  • author~=^(dependabot\[bot\]|app/dependabot)$

@ZaredRogers
ZaredRogers removed this pull request from stack #4043 November 11, 2026 08:28
…-skip-dependencies

fix: orphaned-refs - Skip dependency, build and agent folders when scanning a theme
@ZaredRogers
ZaredRogers merged commit f2c273a into fix/git-2772-figma-tokens-layout-widths Nov 11, 2026
1 check passed
@ZaredRogers
ZaredRogers deleted the fix/git-2773-site-tokens-palette-order branch November 11, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants