Repository navigation
fix(store): recompose portrait screenshot panels to kill the dead gradient band - #997
Merged
Merged
Conversation
…dient band Trim the portrait side margin (0.045→0.030 of canvas width) so the width-fill device panel uses more of the frame, and top-anchor the two crop_all_sides slots (04-completion, 02b-rank) at the same fixed gap every other slot uses instead of centering them in the leftover canvas below the copy block — that centering was the actual cause of their 40-53% "gap above panel", the worst offender in the pre-fix set. Non-crop_all_sides scale is unchanged; iPad Home/Daily stay under the 60% aim by design (native content already spans ~93-97% of baseline width, so hitting 60% would require upscaling past 1:1). Regenerating from the current baselines also picks up the #995 chevron.right drift (01-home's Leaderboard row) that was already correct in the snapshot-baseline source, just stale in the committed ASC-spec PNGs. macOS (build_mac_asc_image) is untouched — verified byte-identical. Closes #985 Closes #995 Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 10, 2026
Closed
This was referenced Aug 10, 2026
wei18
added a commit
that referenced
this pull request
Aug 11, 2026
…ard change (#1000) The mac `01-home` App Store frames were last generated in #986 (2026-08-04), one day before #989 (2026-08-05) rewrote the Home leaderboard card. The portrait frames picked the change up when #997 regenerated all 154 of them; the mac set was never rebuilt, so it kept rendering the pre-#989 UI. Regenerating with the unmodified `scripts/build-ascspec-screenshots.py` produces a deterministic, locale-invariant delta in both apps: - Sudoku (21x22 px at 1942,993 / 268 px): the Leaderboard row's trailing glyph changed from the outward-jump arrow to `chevron.right`. #989 turned that card from a Game-Center-modal side-effect into a real push route to the shared Daily Rank screen, so it now uses the same push chevron as every other row (`GameShellUI/Home/HomeScreen.swift:66-75`). - Minesweeper (637x40 px at 1319,908 / 2020 px): the same glyph change plus the subtitle, which #989 moved from "Best times" to "Global / friends" (`MinesweeperAppComposition/Live.swift:141`). The committed frames are the stale side: the snapshot baselines that feed the generator changed in #989, after the frames were built. The regenerated frames match the shipped app. Verified: regeneration is byte-deterministic across runs; the delta is identical in all 7 locales; every locale's PNG opened and inspected, with real Thai / CJK glyphs and no caption reflow. closes #998 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
wei18
added a commit
that referenced
this pull request
Aug 12, 2026
…record Review finding on this branch. The `## Daily Rank slot — 02b-rank` section was removed cleanly, but the following section — the record of the #997 portrait panel-fill pass — still named `02b-rank` twice as a live `crop_all_sides` member, which it no longer is (membership is now `{"04-completion"}`). Rewriting those two lines to omit the slot would have falsified the record: `02b-rank` genuinely was in that set when the pass ran, and the measurements quoted are the measurements that were taken. So they are annotated rather than edited — the history stays true and the reader learns the slot is gone, which is how the generator's own `IOS_GAP_TRIM` comment handles the same situation. part of #983 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
wei18
added a commit
that referenced
this pull request
Aug 12, 2026
…ily Rank stub (#1009) * refactor(gamecenter): remove the app-owned Daily Rank screen (part 1 of the native-GC revert) Checkpoint commit — production code, routes and tests only. The screenshot pipeline and review-note updates land in the follow-up commit on this branch. Home's Leaderboard card goes back to presenting Apple's native Game Center dashboard as a side-effect, reverting the UI direction of #989. Root cause this removes: `LiveGameCenterClient.friendsAuthorizationStatus()` was hardcoded to `.notDetermined` and `requestFriendsAuthorization()` hardcoded to `throw .friendsAccessDenied` — never implemented against GameKit. The ViewModel called the latter behind `try?`, swallowing the throw and re-rendering the identical screen, so the "Allow Friends Access" button did nothing for every user, always. Every test injected a fake client, so the logic tested green while the only production conformer was inert. The old path was dormant, not deleted: `presentLeaderboard: { GameCenterDashboard.present() }` was still wired in both apps and unreachable only because every mode carried a `route`. Dropping `route: .dailyRank` restores it, so this is a revert rather than a rewrite. Removed: GameAppKit's DailyRank view/view-model/models/state-views, Minesweeper's `LiveRouteFactory+DailyRank`, the `dailyRank` route case in both apps, and the 28 committed DailyRankViewTests snapshot baselines. `HomeMode.trailingSymbolName` returns to the pre-#989 shape (`arrow.up.forward` for Leaderboard, chevron for the rest, as at 439ee8d). Home view-model tests were rewritten rather than deleted: the authenticated/unauthenticated/unknown/restricted matrix is preserved, with the expected outcome flipped from "pushes .dailyRank" back to "fires the presentLeaderboard side-effect". The subtitle stays "Global / friends" — it predates #983 and accurately describes Apple's dashboard, which carries a global/friends toggle. Deliberately NOT in scope: `fetchLeaderboardSlice`, `friendsAuthorizationStatus`, `requestFriendsAuthorization`, `LeaderboardSliceService` and `LeaderboardScope.friendsAllTime` remain. Removing them is a protocol-shape change across 7+ conformers and lands separately. part of #983 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(store): drop the 02b-rank screenshot slot and its dead review-note copy (part 2 of the native-GC revert) Follow-up to c297d11 (part 1, production code): the app-owned Daily Rank screen it removed also fed a store-screenshot slot and two ASC review-note sections that no longer describe anything the app does. Screenshot pipeline (scripts/build-ascspec-screenshots.py): - Delete the six 02b-rank Slot() rows (iphone-6.9/ipad-13/mac × sudoku/ minesweeper), the two per-app COPY caption dicts, the IOS_GAP_TRIM/ MAC_GAP_TRIM entries and their now-orphaned rationale comments, and 02b-rank's membership in the crop_all_sides set. - Delete all 42 committed docs/app-store/screenshots-ascspec/**/02b-rank.png baselines. - Re-record the 8 Sudoku HomeViewTests + 6 Minesweeper MinesweeperHomeSnapshotTests baselines: c297d11's HomeMode.trailingSymbolName revert (arrow.up.forward for Leaderboard, chevron for everything else) changes every Home render, so all 14 baselines that include the Leaderboard row were stale against `swift test` until re-recorded here. - Regenerate all 168 ASC screenshot slots from the refreshed baselines; 42 of the 168 `01-home.png` outputs changed pixels (the Leaderboard row's trailing glyph). `mise-tasks/scan/store_frame_drift` passes clean. Docs: - screenshot-strategy.md: remove the "Daily Rank slot — 02b-rank" section. - Both v2.6 review-information.md files: rewrite "WHAT MAKES THIS APP DIFFERENT" and "GAME CENTER" to describe what the app actually does now — the Home Leaderboard card opens Apple's native Game Center dashboard (GKAccessPoint / GKGameCenterViewController) — instead of the removed app-owned Daily Rank screen (World/Friends toggle, "Your Rank" row, "Allow Friends Access" state). Both stay well under the 4000-char ASC cap (Sudoku 3068, Minesweeper 3528). Deliberately NOT in scope (per c297d11): fetchLeaderboardSlice, friendsAuthorizationStatus, requestFriendsAuthorization, LeaderboardSliceService, LeaderboardScope.friendsAllTime. part of #983 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore(gameappkit): drop the now-unused GameCenterTesting test dependency Review finding on this branch. `GameAppKitTests` depended on the `GameCenterTesting` product solely for `DailyRankViewModelTests` and `GatedLeaderboardGameCenter`, both deleted by the Daily Rank removal. Zero files in the target reference `FakeGameCenterClient` or `GameCenterTesting` any more. The comment was the sharper problem: it still read "FakeGameCenterClient — the same fake seam SudokuUITests / MinesweeperUITests use", which describes those other targets accurately but is false for this one, so it read as a justified dependency. It had already misled one reader into reporting the dependency as still needed. `GameCenterClient` (the protocol) stays — GameRootViewModelTests, GameRootViewModelLeaveTests, TerminalPersistJoinTests and UITestSignedOutGameCenterClientTests all declare inline test doubles against it. The replacement comment says which files need it and why the Testing product went away, so the next reader does not have to re-derive it. Verified: swift test --package-path Packages/GameAppKit -> 58/58 passed. part of #983 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(store): mark the two stale 02b-rank references in the #997 pass record Review finding on this branch. The `## Daily Rank slot — 02b-rank` section was removed cleanly, but the following section — the record of the #997 portrait panel-fill pass — still named `02b-rank` twice as a live `crop_all_sides` member, which it no longer is (membership is now `{"04-completion"}`). Rewriting those two lines to omit the slot would have falsified the record: `02b-rank` genuinely was in that set when the pass ran, and the measurements quoted are the measurements that were taken. So they are annotated rather than edited — the history stays true and the reader learns the slot is gone, which is how the generator's own `IOS_GAP_TRIM` comment handles the same situation. part of #983 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- 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
the dead-gradient-band problem the ASO audit flagged as the single biggest
conversion lever: side margin trimmed 0.045→0.030 of canvas width (more
panel, same width-fill scale formula every slot already used), and the two
crop_all_sidesslots (04-completion,02b-rank) now top-anchor at thesame fixed gap every other slot uses instead of centering the card in the
leftover canvas below the copy block — that centering was the actual cause
of their 40-53% "gap above panel", the worst offenders in the pre-fix set.
01-home's Leaderboard row icon (↗ →chevron.right, feat(gamecenter): shared Daily Rank screen (part of #983) #989) was alreadycorrect in the snapshot baseline, just stale in the committed ASC-spec PNGs.
docs/app-store/screenshot-strategy.mdgets a new section documenting thegeometry decision (what changed, what didn't, and why the two iPad
Home/Daily slots stay under the 60% aim rather than being forced).
build_mac_asc_image) is untouched — verified byte-identical(see Verification below); the pre-existing, unrelated drift on mac
01-home(both apps, all 7 locales — reproduces even when regeneratingwith the ORIGINAL unmodified script, i.e. predates this PR) was left at
HEAD, not committed, to keep this diff in scope.
Part of #985
Closes #995
Ops follow-up (not done here): the uploader must re-run the ordering
PATCH after these land — #987.
Measurement — full-width run of panel-colour pixels across the centre
60% of each row (immune to the corner app-icon badge and white headline
text, which fool naive row-brightness metrics)
Sudoku / iPhone-6.9 (
en)Sudoku / iPad-13 (
en)Minesweeper / iPhone-6.9 (
en)Minesweeper / iPad-13 (
en)Reading the table: the
crop_all_sidesslots' gap-above dropped from a40-53% outlier down into the same 20-35% band every other slot sits in —
that's the fix. Their panel-fill % is unchanged and stays below the 60% aim
by design:
04-completion/02b-rankcomposite a small, native-resolutionfloating card (not a full device screenshot), already capped at
min(1.0, screen_w / content_w)— never upscaled past 1:1 — so there is nomore legitimate room to grow without blowing the art up.
01-home/02-dailyon iPad stay under 60% for the same never-upscale reason: theirreal content already spans ~93-97% of the baseline's own width at native
resolution (measured via
detect_content_bbox), so there's no unused widthto zoom into. Every other slot (both devices, both apps) gained 1-3 points
of panel-fill from the margin trim, and
03-boardwas already the strongestslot (70-79%) both before and after.
Frames opened + reviewed at full resolution
en:01-home,02-daily,02b-rank,03-board,04-completion,05-settings— panel dominates, gap consistent, notext/panel collision, no canvas-edge clipping.
01-home's Leaderboard rowshows
chevron.right(confirms the fix(store): live 01-home screenshots predate the #989 Leaderboard-card chevron change #995 regen).en:01-home,02-daily,02b-rank,03-board,04-completion— same.01-home's Leaderboard row also nowshows
chevron.right.03-board's "Flag suspected mines" chip and04-completion's "Your solve time" chip both land clear of content.ja/th/zh-Hanton the two longest-caption slots (Sudoku05-settings, 2-line headline + 2-line subhead in all three; Sudoku02b-rank, 2-line subhead in all three): no orphaned leading punctuation(kinsoku holds), no clipping, no overlap with the panel.
03-board(chip "Catches mistakes instantly" clear ofgrid) and
04-completion(card top-anchored, same fix as iPhone).03-board(both apps) and04-completion(both apps) chip/leader-line geometry is unaffected inkind by this change (chip anchors are still derived from
SCREEN_MARGIN/screen_w/paste_yat generation time, so they movedwith the panel automatically) — confirmed no collision in every frame
opened above, including the two iPad chip slots.
Proof macOS is unchanged
Also verified the drift is real but pre-existing and unrelated: running
the original, unmodified script against the current baselines reproduces
the identical (also-uncommitted) mac
01-homebytes this PR's script does —proving
build_mac_asc_imageitself is untouched. That pre-existing driftwas left at HEAD (not committed) to keep this PR in scope; flagging it for a
separate look.
Scope check
Verify tail
Test plan
python3 scripts/build-ascspec-screenshots.py) — 210/210 OK--verify-only— 210/210 verified, RGB no-alpha, correct dims per deviceboth devices (tables above)
eniPhone frames (both apps) + 6 longest-captionlocale frames + 2 iPad frames at full resolution
git statusclean on/mac/)(fix(asc): ASCRegister screenshot upload silently corrupts display order on partial re-upload #987) and re-upload
🤖 Generated with Claude Code