Skip to content

fix(store): recompose portrait screenshot panels to kill the dead gradient band - #997

Merged
wei18 merged 1 commit into
mainfrom
fix/store-985-995-portrait-panel-fill
Aug 10, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/store-985-995-portrait-panel-fill

Conversation

@wei18

@wei18 wei18 commented Aug 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Recomposes the portrait (iPhone/iPad) App Store screenshot frames to kill
    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_sides slots (04-completion, 02b-rank) now top-anchor at the
    same 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.
  • Regenerating from the current baselines also picks up the fix(store): live 01-home screenshots predate the #989 Leaderboard-card chevron change #995 drift:
    01-home's Leaderboard row icon (↗ → chevron.right, feat(gamecenter): shared Daily Rank screen (part of #983) #989) was already
    correct in the snapshot baseline, just stale in the committed ASC-spec PNGs.
  • docs/app-store/screenshot-strategy.md gets a new section documenting the
    geometry decision (what changed, what didn't, and why the two iPad
    Home/Daily slots stay under the 60% aim rather than being forced).
  • macOS (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 regenerating
    with 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)

slot panel before → after gap-above before → after
01-home 47.1% → 48.8% 22.5% → 20.5%
02-daily 40.6% → 42.0% 26.0% → 24.0%
02b-rank 35.6% → 35.6% 39.8% → 22.2%
03-board 76.6% → 79.2% 22.6% → 20.6%
04-completion 15.2% → 15.2% 50.0% → 22.5%
05-settings 49.7% → 51.4% 27.4% → 25.4%

Sudoku / iPad-13 (en)

slot panel before → after gap-above before → after
01-home 19.1% → 19.8% 29.4% → 27.3%
02-daily 13.4% → 13.9% 36.9% → 35.0%
02b-rank 35.3% → 35.3% 43.8% → 30.2%
03-board 70.6% → 72.6% 29.4% → 27.4%
04-completion 15.4% → 15.4% 53.6% → 30.0%
05-settings 31.8% → 32.8% 36.6% → 34.6%

Minesweeper / iPhone-6.9 (en)

slot panel before → after gap-above before → after
01-home 47.1% → 48.7% 22.6% → 20.6%
02-daily 40.6% → 42.0% 25.9% → 23.9%
02b-rank 35.7% → 35.6% 39.9% → 22.5%
03-board 77.4% → 79.4% 22.6% → 20.6%
04-completion 25.2% → 25.2% 44.2% → 20.9%

Minesweeper / iPad-13 (en)

slot panel before → after gap-above before → after
01-home 19.1% → 19.8% 29.4% → 27.4%
02-daily 15.1% → 15.6% 34.4% → 32.5%
02b-rank 35.5% → 35.5% 43.9% → 30.6%
03-board 43.2% → 44.5% 29.4% → 27.4%
04-completion 17.4% → 17.4% 51.3% → 27.5%

Reading the table: the crop_all_sides slots' gap-above dropped from a
40-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-rank composite a small, native-resolution
floating card (not a full device screenshot), already capped at
min(1.0, screen_w / content_w) — never upscaled past 1:1 — so there is no
more legitimate room to grow without blowing the art up. 01-home/
02-daily on iPad stay under 60% for the same never-upscale reason: their
real content already spans ~93-97% of the baseline's own width at native
resolution (measured via detect_content_bbox), so there's no unused width
to zoom into. Every other slot (both devices, both apps) gained 1-3 points
of panel-fill from the margin trim, and 03-board was already the strongest
slot (70-79%) both before and after.

Frames opened + reviewed at full resolution

  • Sudoku iPhone en: 01-home, 02-daily, 02b-rank, 03-board,
    04-completion, 05-settings — panel dominates, gap consistent, no
    text/panel collision, no canvas-edge clipping. 01-home's Leaderboard row
    shows chevron.right (confirms the fix(store): live 01-home screenshots predate the #989 Leaderboard-card chevron change #995 regen).
  • Minesweeper iPhone en: 01-home, 02-daily, 02b-rank,
    03-board, 04-completion — same. 01-home's Leaderboard row also now
    shows chevron.right. 03-board's "Flag suspected mines" chip and
    04-completion's "Your solve time" chip both land clear of content.
  • ja/th/zh-Hant on the two longest-caption slots (Sudoku
    05-settings, 2-line headline + 2-line subhead in all three; Sudoku
    02b-rank, 2-line subhead in all three): no orphaned leading punctuation
    (kinsoku holds), no clipping, no overlap with the panel.
  • iPad: Sudoku 03-board (chip "Catches mistakes instantly" clear of
    grid) and 04-completion (card top-anchored, same fix as iPhone).
  • Callout chips re-verified: 03-board (both apps) and
    04-completion (both apps) chip/leader-line geometry is unaffected in
    kind by this change (chip anchors are still derived from
    SCREEN_MARGIN/screen_w/paste_y at generation time, so they moved
    with the panel automatically) — confirmed no collision in every frame
    opened above, including the two iPad chip slots.

Proof macOS is unchanged

$ git status --porcelain -- docs/app-store/screenshots-ascspec | grep "/mac/"
(no output)

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-home bytes this PR's script does —
proving build_mac_asc_image itself is untouched. That pre-existing drift
was left at HEAD (not committed) to keep this PR in scope; flagging it for a
separate look.

Scope check

$ git status --porcelain -- 'docs/app-store' 'scripts' \
    | grep -v "^ M docs/app-store/screenshots-ascspec/.*/\(iphone-6\.9\|ipad-13\)/" \
    | grep -v "^ M scripts/build-ascspec-screenshots.py"
(no output — only scripts/build-ascspec-screenshots.py, the strategy doc,
 and portrait iphone-6.9/ipad-13 PNGs changed)

Verify tail

$ python3 scripts/build-ascspec-screenshots.py --verify-only
...
Total: 210 slots processed  |  Generated: 210  |  Skipped: 0  |  Failures: 0

All generated PNGs match their device ASC pixel size, RGB (no alpha). Spec: ✓

Test plan

  • Full regen (python3 scripts/build-ascspec-screenshots.py) — 210/210 OK
  • --verify-only — 210/210 verified, RGB no-alpha, correct dims per device
  • Panel-fill / gap-above re-measured for every portrait slot, both apps,
    both devices (tables above)
  • Visually reviewed 11 en iPhone frames (both apps) + 6 longest-caption
    locale frames + 2 iPad frames at full resolution
  • macOS output confirmed byte-identical (git status clean on /mac/)
  • User-owned: re-run the ASC screenshot-ordering PATCH after merge
    (fix(asc): ASCRegister screenshot upload silently corrupts display order on partial re-upload #987) and re-upload

🤖 Generated with Claude Code

…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]>
@wei18
wei18 merged commit 60ec4df into main Aug 10, 2026
10 checks passed
@wei18
wei18 deleted the fix/store-985-995-portrait-panel-fill branch August 10, 2026 04:27
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]>
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.

fix(store): live 01-home screenshots predate the #989 Leaderboard-card chevron change

1 participant