Skip to content

feat(store): macOS screenshots + completion/settings caption accuracy fixes - #984

Merged
wei18 merged 6 commits into
mainfrom
worktree-agent-a019513bb6042f702
Aug 4, 2026
Merged

wei18 merged 6 commits into
mainfrom
worktree-agent-a019513bb6042f702

Conversation

@wei18

@wei18 wei18 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds the macOS APP_DESKTOP arm (2880×1800, 16:10) to build-ascspec-screenshots.py — copy-left / app-window-right layout with real Mac chrome, data-driven SLOTS["mac"] reusing existing translated copy by slot name. 30/42 frames generated now (Sudoku Board/Home, Minesweeper Board/Home fully translated; Sudoku Settings + Minesweeper Stats generated in en only, pending copy approval below).
  • Fixes 3 caption-accuracy/data defects found while auditing frames for this work, scoped to only 04-completion (both apps) and Sudoku 05-settings on iPhone/iPad — no other already-uploaded slot changes a pixel:
    1. 04-completion claimed a "ranked" leaderboard slice deleted in refactor(completion): delete dead leaderboard-zone state machine (both apps hardcode .hidden) #698 (never rendered since v2.6) — rewritten to only claim what's visible. Same fixture had real dead space above a bottom-anchored card; fixed with a new 4-side detect_content_bbox() crop, capped at 1:1 scale.
    2. Sudoku 05-settings claimed "Zero tracking. No third-party SDKs." — directly contradicts PrivacyInfo.xcprivacy (NSPrivacyTracking = true, 8 AdMob domains). Rewritten to claim only what's true and visible.
    3. Sudoku Settings snapshot fixture showed "Version 1.0.0" (shipping is 2.6.0) — test host never passed appVersion; live app unaffected. Fixed + re-recorded 7 Settings baselines.
  • Corrects two stale doc/comment claims: a "Leaderboard screen" slot that no longer exists in the generator, and a comment claiming Minesweeper has a 05-settings slot (it never has).

New English strings awaiting approval (do NOT translate yet)

All held to en only via PENDING_TRANSLATION_SLOTS — the other 6 locales per slot still show the pre-fix (or absent) copy until this is approved and run through ai-translated-localization.

Slot Headline Subhead / chip
Sudoku 04-completion Solved. (unchanged) "One scoring attempt per puzzle. Your time and mistake count, right here." · chip: "Your time and mistake count"
Minesweeper 04-completion Cleared. (unchanged) "One attempt per board. Your solve time, right here." · chip: "Your solve time"
Sudoku 05-settings "Seven languages, fully localized." "One purchase removes ads for good. Game Center built in."
Minesweeper 06-stats (new, mac-only) "Every best time, saved." "Daily and practice results, synced with iCloud."

Test plan

  • swift test --package-path Packages/SudokuKit --filter SettingsViewTests — 15/15 pass, deterministic on re-run.
  • swiftlint lint --strict on the changed Swift file — 0 violations.
  • python3 scripts/build-ascspec-screenshots.py --verify-only — 168 slots checked (full existing + new tree), 0 failures, all RGB/no-alpha at exact device pixel size.
  • git status confirms only 04-completion (both apps) + Sudoku 05-settings changed on iPhone/iPad — every other already-uploaded slot untouched.
  • Visually inspected at full resolution: all 6 mac slots (en), 4 completion fixes, 2 settings fixes, plus a cross-locale sweep (ja/ko/zh-Hant/th/es) on the narrowest-copy-column mac slots for collision/clipping/tofu — none found.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) [email protected]

wei18 and others added 6 commits August 4, 2026 00:35
…gs claim accuracy

Adds the macOS arm (2880x1800, 16:10) to build-ascspec-screenshots.py: a
copy-left/window-right layout (Mac chrome, never-upscale content crop) for
Sudoku Board/Home/Settings and Minesweeper Board/Home/Stats, data-driven via
the same SLOTS/COPY tables as the iPhone/iPad arms so slot names double as
the copy lookup key.

While auditing captions against their frames for this work, found and fixed
three defects, scoped narrowly so no already-uploaded iPhone/iPad slot other
than 04-completion changes a pixel:

- 04-completion (both apps, iPhone+iPad): subhead/chip claimed a "ranked"
  leaderboard slice that was deleted in #698 and has never rendered since
  v2.6. Rewritten to name only what the card shows (time, mistake count).
  Same fixture had real dead space above a bottom-anchored card that
  detect_content_bottom() (vertical-only) couldn't reach; added
  detect_content_bbox() (4-side) and a crop_all_sides path, capped at 1:1
  scale, used only for this slot.
- Sudoku 05-settings (iPhone+iPad+mac): "Zero tracking. No third-party
  SDKs." directly contradicted PrivacyInfo.xcprivacy (NSPrivacyTracking =
  true, 8 declared AdMob domains). Rewritten to sell only true, visible
  claims (languages, ads-removal purchase, Game Center) with zero
  privacy/tracking claim.
- Sudoku Settings snapshot fixture showed "Version 1.0.0" (shipping is
  2.6.0) because the test host never passed appVersion; live app is
  unaffected (reads CFBundleShortVersionString from Bundle.main). Fixed
  the fixture and re-recorded the 7 affected Settings baselines.

New/rewritten English copy is held to `en` only pending approval and an
ai-translated-localization pass (PENDING_TRANSLATION_SLOTS) — 30/42 mac
frames and all 4 completion/2 settings fixes are generated; the other 6
locales per pending slot are untouched until translated.

Also corrects two stale doc/comment claims caught in the same sweep: a
"Leaderboard screen" slot that no longer exists in the generator, and a
comment claiming Minesweeper has a 05-settings slot (it never has).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…nding l10n

The ja mac Settings screenshot showed 「一」 overdrawn by a stray circle:
`_mac_wrap_text`'s grapheme fallback orphaned the headline's trailing 「。」
onto its own line, and `build_mac_asc_image`'s line-stacking measured ink
bbox height (near-zero for a punctuation-only line), so the subhead block
started too high and the orphaned 。 overlapped 一.

- `_apply_kinsoku()`: a line may never start with closing punctuation
  (。、.,!?…」』)】》〉!?,.;:) — pull the offending character(s) back
  onto the previous line, letting it overflow by that character's own
  advance. Wired into `_mac_wrap_text` only; the iPhone/iPad `wrap_text`
  path is untouched (no current iPhone/iPad headline/subhead hits this
  edge case, and touching it would reflow ja "02-daily", outside this
  fix's allowed scope).
- `build_mac_asc_image` line stacking now advances by a fixed per-font
  metric (`font.getmetrics()` ascent+descent) instead of a per-line ink
  bbox, so a low-ink line can no longer collapse into the next line.
- Minesweeper mac th "06-stats" headline still broke mid-word
  (บันทึกเวลาที่ดีที่สุ|ดทุกครั้ง) after the kinsoku fix — Thai carries no
  spaces, so the wrapper's word-split never had a break point. Rephrased
  to "เวลาที่ดีที่สุด บันทึกไว้ทุกครั้ง" (space at the natural phrase
  boundary, mirroring the two-clause "Every best time, saved.").

Also completes the ai-translated-localization pass predecessor work-in-
progress had reached: sudoku "04-completion"/"05-settings" and minesweeper
"04-completion"/"06-stats" now carry accuracy-fixed copy (no false
ranking/tracking claims) across all 7 locales; PENDING_TRANSLATION_SLOTS
is now empty. Full regen: 168/168 verified. iOS-frame scope confirmed
unchanged outside "04-completion" + Sudoku "05-settings".

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The PNG-transcription recovery of the copy table reverted the en settings
subhead to "built in.", reintroducing the orphaned-word wrap the wording
change existed to fix. Caught by a byte-exact spot-check against the
pre-accident greps; 10 of 11 strings matched, this one did not.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The three numbers were cited across 29 comment/doc sites but no such
issues exist; every annotation describes work done in this PR itself, so
they now cite the PR number. #982 references verified real and kept.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CR blocker on #984: the CALLOUTS table still carried the pre-rewrite
"timed & ranked" chip text in the 6 non-en locales, and the present keys
meant the en fallback never fired, so 24 completion frames rendered the
false claim the PR exists to remove. All 12 strings now use the rewritten
wording, vocabulary lifted verbatim from the same slot's already-approved
COPY subhead translations.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@wei18
wei18 merged commit cc28436 into main Aug 4, 2026
5 checks passed
@wei18
wei18 deleted the worktree-agent-a019513bb6042f702 branch August 4, 2026 08:19
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