Repository navigation
feat(store): macOS screenshots + completion/settings caption accuracy fixes - #984
Merged
Merged
Conversation
…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]>
…stale Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
APP_DESKTOParm (2880×1800, 16:10) tobuild-ascspec-screenshots.py— copy-left / app-window-right layout with real Mac chrome, data-drivenSLOTS["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 inenonly, pending copy approval below).04-completion(both apps) and Sudoku05-settingson iPhone/iPad — no other already-uploaded slot changes a pixel:04-completionclaimed 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-sidedetect_content_bbox()crop, capped at 1:1 scale.05-settingsclaimed "Zero tracking. No third-party SDKs." — directly contradictsPrivacyInfo.xcprivacy(NSPrivacyTracking = true, 8 AdMob domains). Rewritten to claim only what's true and visible.appVersion; live app unaffected. Fixed + re-recorded 7 Settings baselines.05-settingsslot (it never has).New English strings awaiting approval (do NOT translate yet)
All held to
enonly viaPENDING_TRANSLATION_SLOTS— the other 6 locales per slot still show the pre-fix (or absent) copy until this is approved and run throughai-translated-localization.04-completion04-completion05-settings06-stats(new, mac-only)Test plan
swift test --package-path Packages/SudokuKit --filter SettingsViewTests— 15/15 pass, deterministic on re-run.swiftlint lint --stricton 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 statusconfirms only04-completion(both apps) + Sudoku05-settingschanged on iPhone/iPad — every other already-uploaded slot untouched.🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 5 (1M context) [email protected]