Skip to content

chore(store): repoint 01-home ASC slot to the Progress tab after HOME retirement (#1040) - #1044

Merged
wei18 merged 1 commit into
mainfrom
session/wary-jay-319r
Aug 27, 2026
Merged

wei18 merged 1 commit into
mainfrom
session/wary-jay-319r

Conversation

@wei18

@wei18 wei18 commented Aug 27, 2026

Copy link
Copy Markdown
Owner

What

PR #1038 retired the HOME route and re-pointed the six 01-home store slots at the Today-tab baselines, which (a) duplicated 02-daily (same DailyHub card set), (b) left the copy describing the deleted Home mode-cards, and (c) shipped an empty-state fixture (all-missed week strip, "Best —" ×3). This PR reworks the slot per #1040.

Subject decision

01-home → Progress tab (StatsView). Practice hub is a picker + one CTA card (Sudoku has iPhone-only snapshots, MS none); Stats already had populated iPhone/iPad/Mac baselines in both apps and its numbers grid is the only tab that visibly differs from 02-daily. PM-approved on the issue.

Changes

  • scripts/build-ascspec-screenshots.py: six Slot("01-home", …) (iPhone/iPad/Mac × Sudoku/MS) now point at new store-only Stats fixtures; COPY["01-home"] rewritten for both apps in all 7 locales to describe the Stats grid (best/average per difficulty, iCloud sync) — no streak / ranking / Game Center claim.
  • StatsViewTests / MinesweeperStatsTests: storeRecords / makeStoreSeededStore() fixtures with all six tiles populated (no —), plus snapshotStoreIPhoneLight / snapshotStoreIPadLight / snapshotMacLightStore. 6 new baselines recorded; zero existing baselines touched (seededRecords still exercises the — placeholder).
  • mise-tasks/store/screenshots: six 01-home MAP rows re-pointed (store:screenshots list → 23/23 [ok]).
  • docs/app-store/screenshot-strategy.md: Shot 1 table renamed to Progress tab (Stats) with the new copy; iPad panel-fill numbers re-measured with the script's own detect_content_bbox (tolerance 12): 01-home 90.0% (both apps), 02-daily 96.9%.
  • docs/app-store/screenshots-ascspec/: regenerated — exactly 42 PNGs changed (2 apps × 3 devices × 7 locales, all 01-home.png); no other slot moved.

Deviations

  • No snapshotMacLightWithResume fixture. The resume pill lives only in GameAppKit.TodayTabHost.resumeHeader; a Stats-based 01-home cannot carry it, and after this PR no store slot consumes the Today-tab fixtures, so a new Today baseline would be dead weight. PM amended acceptance item 3 on the issue to "01-home fixtures fully populated, no — tiles, in all 3 devices × 2 apps".
  • CJK headlines (sudoku zh-Hant/zh-Hans/ja, minesweeper ja) were shortened to fit one line: wrap_text() treats a pure-CJK string as one word and, when it overflows, falls back to per-character wrapping that strands the final full stop on its own line. The compositor is untouched (follow-up candidate).

Eyeballed at full res

  • docs/app-store/screenshots-ascspec/sudoku/iphone-6.9/en/01-home.png — headline/subhead correct; Daily Easy 48 / 1:58 / 2:25, Medium 31 / 3:45 / 4:30, Hard 14 / 6:30 / 7:35; Practice grid below; no —, no clipping.
  • docs/app-store/screenshots-ascspec/minesweeper/iphone-6.9/en/01-home.png — Beginner 24 / 0:52 / 1:38, Intermediate 16 / 2:25 / 3:25, Expert 9 / 5:10 / 6:10; no —, no clipping.
  • docs/app-store/screenshots-ascspec/sudoku/iphone-6.9/zh-Hant/01-home.png — 「每次解題,都被記錄。」single line, no tofu, no stranded full stop.

Gates

  • mise run scan:store_frame_drift --base origin/main → PASS
  • mise run scan:l10n → PASS (2 catalogs, 7 locales complete)
  • swift test --filter StatsViewTests 14/14, --filter MinesweeperStatsTests 15/15
  • swiftlint --strict clean on both test files; pre-commit gitleaks/hygiene/swiftlint green

Out of scope (follow-ups noted, not touched)

closes #1040
part of #1014

🤖 Generated with Claude Code

… retirement (#1040)

PR #1038 retired the HOME route and re-pointed the six 01-home store
slots at the Today-tab baselines, which (a) duplicated 02-daily (same
DailyHub card set), (b) left the copy describing the deleted Home
mode-cards, and (c) shipped an empty-state fixture (all-missed week
strip, "Best —" x3).

- Slot("01-home") x6 (iPhone/iPad/Mac x Sudoku/MS) now point at new
  store-only Stats fixtures: snapshotStoreIPhoneLight /
  snapshotStoreIPadLight / snapshotMacLightStore in StatsViewTests and
  MinesweeperStatsTests. All six tiles populated (no "—"); existing
  seededRecords baselines untouched. 6 new baselines recorded.
- COPY["01-home"] rewritten for both apps in all 7 locales to describe
  the Stats grid (best/average per difficulty, iCloud sync) — no
  streak / ranking / Game Center claim. CJK headlines kept single-line
  (wrap_text() splits pure-CJK strings per character and strands the
  final full stop otherwise).
- mise-tasks/store/screenshots MAP: six 01-home rows re-pointed.
- docs/app-store/screenshot-strategy.md: Shot 1 table renamed to
  Progress tab (Stats) with the new copy; iPad panel-fill numbers
  re-measured with detect_content_bbox (01-home 90.0%, 02-daily 96.9%).
- Regenerated docs/app-store/screenshots-ascspec: exactly 42 PNGs
  changed (2 apps x 3 devices x 7 locales, all 01-home.png).

Resume pill: lives only in TodayTabHost.resumeHeader, so a Stats-based
01-home cannot carry it; no snapshotMacLightWithResume fixture added
(PM-approved deviation, acceptance item 3 amended on the issue).

Gates: scan:store_frame_drift --base origin/main PASS; scan:l10n PASS;
swiftlint --strict clean on both test files.

Co-Authored-By: Claude <[email protected]>
@wei18

wei18 commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

T6 ACCEPT

Fresh-context acceptance of PR #1044 (issue #1040), verified against head 94a611c in a throwaway detached worktree. All items A-H checked directly against git show/git diff on the head SHA, not disk.

A. Diff scope ✅ — git diff --name-only main...94a611c3 | wc -l = 59. Breakdown: 42x docs/app-store/screenshots-ascspec/**/01-home.png (status M, confirmed via git diff --name-status), 12 NEW __Snapshots__ files (6 png+6 txt, all status A — zero existing snapshot baselines touched, confirmed git diff --stat main...94a611c3 -- '**/__Snapshots__/**' shows only additions), + 5 other files (script, mise-task, doc, StatsViewTests.swift, MinesweeperStatsTests.swift). 42+12+5=59.

B. Slot repointing ✅ — all six Slot("01-home", ...) entries in scripts/build-ascspec-screenshots.py now reference StatsViewTests/MinesweeperStatsTests fixtures (iPhone/iPad/Mac x 2 apps), vs TodayTabViewTests/MinesweeperTodayTabViewTests on main. Both apps' COPY["01-home"] dicts rewritten for all 7 locales; "Race the clock" line only survives as a removed-code comment reference (line 119), not in any live COPY entry.

C. Tests ✅ — ran in throwaway worktree at head: swift test --package-path Packages/SudokuKit --filter StatsViewTests = 14/14 pass; swift test --package-path Packages/MinesweeperKit --filter MinesweeperStatsTests = 15/15 pass. No record-mode flag used, so this validates against the committed baselines as claimed.

D. Fixture plausibility ✅ — Sudoku storeRecords: all 6 avg=total/count divide exactly (e.g. daily-hard 6286/14=449), avg>best in every row, daily counts (48/31/14) > practice counts (22/15/8), hard slower than easy in both best and avg. Minesweeper makeStoreSeededStore: same pattern, all 6 rows exact (e.g. daily-beginner 1632/24=68=1:08 matching inline comment), avg>best, daily>practice, expert slower than beginner. No zero/empty values anywhere.

E. Gates ✅ — python3 -c \"import ast; ast.parse(...)\" on build-ascspec-screenshots.py = OK; bash -n mise-tasks/store/screenshots = OK. mise run scan:store_frame_drift could not run locally (untrusted .mise.toml in the throwaway worktree, no mise trust per instructions) — confirmed instead via gh pr checks 1044: "ASC frame drift proxy gate (#1001)" = pass, "L10n catalogs complete" = pass, all 6 CI checks green.

F. Eyeball ✅ — extracted and viewed sudoku/ipad-13/en/01-home.png and minesweeper/mac/ja/01-home.png from the head commit. Both: fully populated tiles (no em-dash placeholders), no tofu, no clipped content, panel reads as a real player's stats. Minor observation (not a defect): the ja headline wraps to 2 lines on the Mac frame (narrower left column) rather than 1 — but the closing 。 stays attached to 残る, i.e. no orphaned/stranded punctuation, which was the actual documented risk (wrap_text() per-character fallback). The PR's own single-line claim was scoped to the zh-Hant iPhone shot, not this one.

G. Doc/script consistency ✅ (partial) — docs/app-store/screenshot-strategy.md Shot 1 section confirmed retitled "Progress tab (Stats)" and its panel-fill section states iPad 01-home" ~90.0% (both apps, identical grid layout) matching the PR body. Did NOT independently re-derive the 90.0% figure: detect_content_bbox()" has no CLI flag exposing this measurement, and the Mac/iPad frame backgrounds are per-row gradients (not a flat color), so a naive re-application wouldn't replicate whatever one-off methodology produced the number — attempting it risked a misleading false mismatch rather than a real check. Stating skipped rather than fabricating a re-derivation.

H. PR/issue hygiene ✅ — PR body ends closes #1040 then part of #1014 then the 🤖 footer, in that order. gh issue view 1040 and gh issue view 1014 both resolve (OPEN). The disclosed deviation ("no snapshotMacLightWithResume fixture") matches an explicit PM acceptance-amendment comment on #1040 dated 2026-08-27, which re-scopes acceptance item 3 to "01-home fixtures fully populated, no — tiles, in all 3 devices x 2 apps" — exactly what this PR delivers.

Also ran swiftlint lint --strict --quiet on both modified test files directly (mise-installed 0.57.1 binary) — zero output, confirming the PR's "swiftlint --strict clean" claim.

No blocking findings. Recommend merge.

@wei18
wei18 merged commit e1b7324 into main Aug 27, 2026
6 checks passed
@wei18
wei18 deleted the session/wary-jay-319r branch August 27, 2026 03:58
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.

chore(store): rework the 01-home ASC screenshot slot after HOME retirement (#1020 follow-up)

1 participant