Repository navigation
chore: site-tokens - Say which dependencies and browser the scripts need - #4016
Conversation
Add a Before you start section: npm ci in the .github checkout, and npx puppeteer browsers install chrome if the launch fails (npm 11 blocks Puppeteer's install script). site-to-figma-components has the same note; figma-to-block-theme only needs npm ci. Fixes GIT-2763 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou'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 17 seconds. View limit details
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. |
|
This pull request is merged. |
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
…-2763-site-tokens-setup-notes
…-2763-site-tokens-setup-notes
…-2763-site-tokens-setup-notes
…-2763-site-tokens-setup-notes
…ready captured On live TSP, /tours/, /accommodation/ and every accommodation page redirect to the home page, so runs 1 and 2 captured the home page four times without noticing. The crawler now keeps each page's final URL, warns about redirects, leaves out duplicates, and the proposal lists them as reviewer decisions. Refs GIT-2767. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its fill On live TSP the primary action took its fill from #6a6d5b buttons (white text) but its text from the 112 light #f7f3f1 buttons with brown text, which gave 1.01:1. Button text is now grouped by fill, and each action's text comes from the buttons whose fill matches its background. Refs GIT-2765. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-2763-site-tokens-setup-notes
…67-site-tokens-crawl-redirects
…2765-site-tokens-action-text-pairing
On live TSP, Gigantic (90) was 70px on desktop but 24px on mobile, below every step from 40 up. A step's mobile value is now raised to the one before it, and the change is listed for the reviewer. Refs GIT-2766. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-2763-site-tokens-setup-notes
…67-site-tokens-crawl-redirects
…2765-site-tokens-action-text-pairing
…git-2766-site-tokens-spacing-min-order
…-2763-site-tokens-setup-notes
…67-site-tokens-crawl-redirects
…git-2766-site-tokens-spacing-min-order
…2765-site-tokens-action-text-pairing
The declared CSS stack starts with the live site's own @font-face name (moret, argesta_displayregular), which the theme's fontFace entries don't declare, so the fonts would not load. Keep the stack's fallbacks and lead with the family name instead. Refs GIT-2770 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The monospace variable is named Monospace and its declared stack starts with ui-monospace, so the name check failed and the mapper wrote "Monospace, sans-serif". A generic family names no font of its own, so keep its declared stack, and fall back to monospace for that role. Refs GIT-2771 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Layout collection's --wp--custom--layout--content-size and wide-size variables landed in settings.custom.layout with no unit, and settings.layout was never set, so the theme kept the scaffold's widths. Map them, and core's --wp--style--global-- names, to contentSize and wideSize in px. Refs GIT-2772 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…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>
Merge Protections🔴 2 of 2 protections blocking · waiting on ⛓️ dependency
🔴 ⛓️ Depends-On RequirementsWaiting for
This rule is failing.Requirement based on the presence of `Depends-On` in the body of the pull request
🔴 🚦 Auto-queueThis rule is failing.When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
…-skip-dependencies fix: orphaned-refs - Skip dependency, build and agent folders when scanning a theme
…alette-order fix: site-tokens - Export the palette ramps in the LightSpeed order
…layout-widths fix: figma-tokens - Map content and wide width to settings.layout
…monospace-stack fix: figma-tokens - Keep the declared system monospace stack
…font-stacks fix: figma-tokens - Build font stacks from the clean family name, not the raw @font-face name
…pacing-min-order fix: site-tokens - Keep spacing minimums in order
…ction-text-pairing fix: site-tokens - Pair the primary button text with the fill of the same buttons
…rawl-redirects fix: site-tokens - Record redirects in the crawl and skip pages that land on the same URL
99826cf
into
fix/git-2762-site-tokens-action-colours
Chore Pull Request
Linked issues
Closes #4009
Linear: GIT-2763
Stacked on #4015.
Summary
The crawlers need
tsxand Puppeteer, which only exist afternpm ci, and npm 11 skips Puppeteer's install script so its browser is not downloaded.SKILL.mdsaid nothing about either (scaffold end-to-end test, finding S7).Changes
site-to-design-tokens/SKILL.md: new "Before you start" section. Runnpm ciin the.githubcheckout. If the launch fails, runnpx puppeteer browsers install chrome.site-to-figma-components/SKILL.md: same section, because its crawler also uses Puppeteer.figma-to-block-theme/SKILL.md: a short note to runnpm cifortsx. It uses no browser, so no Puppeteer step.Impact / Compatibility
Verification
Risk & Rollback
Changelog
Added
Changed
site-to-design-tokensandsite-to-figma-componentsnow say to runnpm ciand, if the browser fails to launch,npx puppeteer browsers install chrome(npm 11 skips Puppeteer's download).figma-to-block-themenotes thenpm cistep. (#4009)Fixed
Removed
Checklist (Global DoD / PR)
🤖 Generated with Claude Code