Repository navigation
fix: site-tokens - Record redirects in the crawl and skip pages that land on the same URL - #4022
Conversation
…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>
…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>
…67-site-tokens-crawl-redirects
…2765-site-tokens-action-text-pairing
…git-2766-site-tokens-spacing-min-order
…67-site-tokens-crawl-redirects
…git-2766-site-tokens-spacing-min-order
…2765-site-tokens-action-text-pairing
|
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 22 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. |
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
|
This pull request is merged. |
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
5a4edf8
into
chore/git-2763-site-tokens-setup-notes
Bugfix Pull Request
Linked issues
Fixes #4020
Linear: GIT-2767
Context
site-to-design-tokenscrawler. Found in scaffold end-to-end test run 2 (finding N7). Stacked on chore: site-tokens - Say which dependencies and browser the scripts need #4016; only the last commits are this PR's change.Reproduction
/,/tours/and/accommodation/on www.thesafaripartners.com. 2) Readsite-styles.json./tours/and/accommodation/redirect to/. Got three captures of the home page and no warning.Root Cause
Fix Summary
PageHandle.finalUrl(Puppeteer'spage.url()) is recorded on each capture that redirected, andSiteStyles.redirectslists every redirect.SKILL.mdandreferences/crawling.mdexplain the warning and what to do.Verification
SiteCrawler, noredirectskey when none happen, CLI warnings, proposer decisions. 121 Jest tests pass, coverage above thresholds,tsc --noEmitclean, no new ESLint warnings/tours/redirects to/(left out), and found two redirects nobody knew about:/destination/botswana/makgadikgadi-pans-national-park/to/destination/botswana/, and/contact/to/about-us/Risk & Rollback
site-styles.json; older files still work.Changelog
Fixed
site-to-design-tokensrecords where each page landed, warns about redirects, and leaves out pages that land on one already captured. (Fixes fix: site-tokens - Record redirects in the crawl and skip pages that land on the same URL #4020)🤖 Generated with Claude Code