Repository navigation
aiops: theme-screenshot - Make a theme screenshot.png from the site's logo - #4017
Conversation
… from the site's logo Renders a 1200 x 900 screenshot with Puppeteer: the logo centred on a radial gradient in the theme.json colours, a divider, an industry line and the year. The logo comes from a file or a live site (custom logo, header logo, og:image). Closes GIT-2764 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Linear review: risk level 2 of 4
|
|
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 27 minutes. 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. |
📋 Changelog Quality Validation
Status✅ Validation PASSED - No new failures introduced by this PR. No action required. |
|
This pull request is merged. |
AI Operations Pull Request
Linked issues
Closes #4010
Linear: GIT-2764
Branched from
develop. It does not touch thesite-to-design-tokensstack (#4011 to #4016) and can merge on its own.AI Operation Summary
Adds the
theme-screenshotskill. Generated block themes had noscreenshot.png, so Appearance > Themes showed a blank card and Theme Check flagged it (scaffold end-to-end test, finding F4). It replaces the scaffold'sscreenshot.png.mdplaceholder (BTS-46).The skill makes a 1200 x 900
screenshot.pngin the KWV and Southern Destinations style: the logo centred on a soft radial gradient in the theme's colours, a thin divider, an industry line in spaced capitals, and "WordPress block theme · ".Operation Details
og:image. It reads one public http(s) page and one image.theme.jsonpalette (base,contrast, and the first brand, primary or cta 600 or 500 step as the accent), with--base,--contrastand--accentoverrides. Mode is light, dark or auto (a light logo gets the dark background).tsp-themetheme.json: the custom logo was found (an SVG), the mode came out light, and the image was viewed and compared with the KWV and SD references before this PR. The output is not committed.Generated Changes
skills/theme-screenshot/:SKILL.md,agents/openai.yaml, andscripts/(make-theme-screenshot.ts,lib/logo.ts,lib/palette.ts,lib/template.ts,lib/colour.ts) with__tests__/,jest.config.cjsandtsconfig.json.test:theme-screenshottopackage.json, and aCHANGELOG.mdentry.Verification
tsx, tests beside the scripts, side effects injectable, no.shtsc --noEmitclean; ESLint no errorstsp-themepaletteChangelog
Added
screenshot.pngfrom the site's logo, the theme.json palette and an industry line, rendered with Puppeteer. (#4010)Automation Governance
🤖 Generated with Claude Code
🤖 Generated with Claude Code