Skip to content

feat: store screenshot pipeline with localized captions - #52

Merged
spin311 merged 4 commits into
masterfrom
feat/store-screenshots
Nov 14, 2026
Merged

spin311 merged 4 commits into
masterfrom
feat/store-screenshots

Conversation

@spin311

@spin311 spin311 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds store-assets/, a pipeline for the Chrome Web Store screenshots, in the same style as Free Game Claimer's. These are the images now uploaded to the dashboard: 3 English screenshots replaced the 5 old global ones, plus 3 per language.

  • tools/capture.mjs --locale <name> [--dist <build>] captures the popup with Chrome running in that language (macOS -AppleLanguages wrapper). tools/render.mjs --locale <name|all> renders 1-main, 2-progress and 3-settings with translated captions.
  • Captions for en, zh_CN, zh_TW, pt_BR, es (es_419 copies es), fr and vi.
  • Trademark guards:
    • Rendering fails if captions, the tab title or the address bar mention Microsoft or Bing; the frame shows a neutral new tab.
    • Capture fails if the popup shows any image other than the extension's coin logo and Free Game Claimer's icon.
  • Commits the 24 uploaded PNGs (store-assets/chrome/<locale>/, 2.6 MB). Its own package.json pins Playwright 1.64.1. wxt/ is untouched.
  • Localized captures need the i18n build from feat: translate the popup and store name into 7 languages #51. Until feat: translate the popup and store name into 7 languages #51 is merged, pass --dist pointing at a build of feat/i18n; the README shows how.

Test plan

  • Regenerated en and fr from the repo copy (with --dist at a feat/i18n build): same as the uploaded images except for anti-aliasing
  • Trademark guards are implemented but were not exercised with a failing input (a caption containing "Bing", an unexpected image)
  • Linux and Windows capture route documented but untested

store-assets/ builds the store images the way Free Game Claimer's do: the real
popup captured at 2x from the built extension (tools/capture.mjs, with the
background stripped so nothing searches), laid out under its toolbar button in
a plain browser window with a headline, a subline and callouts (source/,
tools/render.mjs), and saved as 1280x800 RGB PNGs (tools/finalize.py).

Three images: the popup, a run in progress and the search settings. The
browser frame is a neutral new tab with an empty address bar. Chrome runs in
the locale's UI language (-AppleLanguages on macOS, --lang elsewhere) and the
capture checks it took. Renders fail if a callout leaves the image or overlaps
the popup, or if the frame or captions name Microsoft or Bing; captures fail
on any popup image other than the coin logo and Free Game Claimer's icon.
…rademark rules

Covers building the i18n branch (PR #51, feat/i18n, not merged yet) and
pointing the capture at it with --dist.
The images uploaded to the Chrome Web Store: en, zh_CN, zh_TW, pt_BR, es,
es_419 (a copy of es), fr and vi, three each.
@spin311
spin311 merged commit faf179b into master Nov 14, 2026
2 checks passed
@spin311
spin311 deleted the feat/store-screenshots branch November 14, 2026 18:24
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.

1 participant