Repository navigation
docs(design): backlog +2 — local reminder + L10n expansion to 10 locales - #8
Merged
Merged
Conversation
…on to 10 locales Two new §Backlog entries captured 2026-05-20: §通知與留存: - Local Notification for daily reminder via UNUserNotificationCenter. Covers permission timing, user-customizable time, timezone handling, silent hours, conditional 'only if daily unfinished', and escalation guardrails to avoid notification fatigue. §在地化: - Expand from 7 locales (v1 default per ai-translated-localization skill) to 10. Candidates: fr, de, pt-BR. Triggered by ASC storefront metrics; each locale requires full AI translation pass + ASC metadata + Game Center title localization + Privacy policy translation. ASCRegister CLI already handles new GC locales.
wei18
added a commit
that referenced
this pull request
May 22, 2026
User confirmed 2026-05-22: hybrid Code Reviewer gating. Insert Code Reviewer subagent between Senior Developer IMPL and Leader commit when diff > 50 lines OR touches Persistence / AppComposition / MonetizationCore / AdsAdMob / IAPStoreKit2 / Project.swift / PrivacyInfo.xcprivacy. Otherwise Leader's implicit review (read impl-notes + diff + focused build/test) is enough. Co-authored-by: Claude Opus 4.7 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 3, 2026
Skill CR (2026-06-03) found: - description: starts 'Default pattern…' not 'Use when…' (CSO rule) - Cross-ref to architect review file (missing — landed separately 8f8af17) - Multi-app CI_PRODUCT dispatch absent - Smoke-test scope ambiguity (source plist passes against literal $()) - No 'as!' anti-pattern warning - No Project.swift wiring example - No non-Tuist carve-out - No Iron Law disclosure - Migration playbook simplified without disclosure - Anti-pattern 2 vs Migration step 3 internal conflict (fatalError) - Outer .gitignore Tuist/*.xcconfig rule not explicit - Rationalization counters thin Full rewrite: 1. description leads with 'Use when…' + adds GADApplicationIdentifier / GADBannerUnitID / .p8 search keywords (~ 500 chars, under ceiling) 2. New 'Known testing gap' section discloses Iron Law violation 3. New 'Smoke test scope' section with ❌/✅ example showing source-plist trap + runtime-guard fix 4. New 'Multi-app dispatch' section with concrete CI_PRODUCT case-switch bash snippet 5. New 'Non-Tuist projects' carve-out 6. New 'Project.swift wiring' concrete snippet 7. New 'Verification checklist' (parallels apple-public-repo-security) 8. New 'Rationalizations table' with 6 explicit counters (memo + comment + private repo + small-app + 1-time + fatalError-grace) 9. Anti-pattern `as!` force-cast added (#5) 10. Anti-pattern Tuist clobbering unmanaged xcconfigs added (#8) 11. Anti-pattern #2 'fatalError forbidden long-term, allowed as transitional during xcconfig migration cycle' — resolves internal conflict with Migration step 3 12. Migration playbook disclosed as PR1's compressed reality, not Architect's 7-stage plan; cross-references architect review file 13. Cross-refs labelled REQUIRED / SIBLING CR's Critical #1 (broken architect-review cross-reference) addressed via 8f8af17 landing the file separately. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced Jun 3, 2026
wei18
added a commit
that referenced
this pull request
Jun 4, 2026
…#298 #7 #8) #7: on a loss, surface every mine, not just the detonated cell. No engine accessor needed — the actor snapshot already carries the full cells array with isMine populated once mines are placed, so the renderer paints still- hidden mines from cell.isMine when status == .lost. Detonated cell keeps the bold mineHit red; surfaced mines use the soft mine fill. Correctly- flagged mines keep their flag glyph. The Completion overlay (#292) sits on top via the outer overlay, so the revealed board shows behind it. #8 (partial): swap the mine glyph burst.fill -> xmark.octagon.fill for a clearer hazard read. The covered-vs-revealed contrast raise + raised-tile bevel are deferred — they churn the covered-board snapshot baseline, which the sandbox can't re-record (see impl-notes). Co-Authored-By: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 4, 2026
* feat(minesweeper): Mac side-rail 2-column board layout (refs #298 #6) Add a horizontalSizeClass == .regular branch to MinesweeperBoardView so the Mac/iPad detail pane no longer renders the iPhone vertical stack. Mirrors Sudoku's BoardView.macLayout: centered + size-capped board (600pt square) on the left, a 260pt control rail on the right carrying the status bar + Reveal/Flag toggle (MS has no digit pad). Outer width capped at 900pt and centered. Compact (iPhone) layout extracted unchanged; spacing literal 12 preserved verbatim so the recorded covered-board snapshots don't churn. New Mac layout uses theme.spacing tokens. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(minesweeper): reveal all mines on loss + clearer mine glyph (refs #298 #7 #8) #7: on a loss, surface every mine, not just the detonated cell. No engine accessor needed — the actor snapshot already carries the full cells array with isMine populated once mines are placed, so the renderer paints still- hidden mines from cell.isMine when status == .lost. Detonated cell keeps the bold mineHit red; surfaced mines use the soft mine fill. Correctly- flagged mines keep their flag glyph. The Completion overlay (#292) sits on top via the outer overlay, so the revealed board shows behind it. #8 (partial): swap the mine glyph burst.fill -> xmark.octagon.fill for a clearer hazard read. The covered-vs-revealed contrast raise + raised-tile bevel are deferred — they churn the covered-board snapshot baseline, which the sandbox can't re-record (see impl-notes). Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(minesweeper): VoiceOver labels + flag action on board cells (refs #298 #10) Mirror Sudoku's BoardCellView AX. Each cell collapses into one element with a "Row R, Column C, <state>" label (1-based, state covers hidden/flagged/ N/empty/mine incl. the lost-mine surfacing), the .isButton trait, and a named Flag/Unflag accessibilityAction so VoiceOver users can flag without the long-press / right-click accelerators (which VO can't reach). Flag action is inert on revealed cells and once the board is terminal. Threads zero-based row/column into MinesweeperCellButton from the grid. Co-Authored-By: Claude Opus 4.8 <[email protected]> * refactor(minesweeper): replace TimelineView ticker with .task(id:) loop (refs #298 #9) The status bar drove its 1 Hz elapsed refresh via a TimelineView whose nested .task re-fired on every timeline tick (a .task re-fire footgun). Replace with Sudoku BoardView's pattern: a single .task(id:) on the body owning a `while !Task.isCancelled { if playing { refresh }; sleep(1) }` loop, cancelled automatically on disappear, keyed on the VM identity so Retry restarts it. Status bar is now a plain HStack reading the @observable snapshot. Non-visible; correctness/perf only. Co-Authored-By: Claude Opus 4.8 <[email protected]> * refactor(minesweeper): board outer padding via theme spacing token (refs #298 #11) Migrate MinesweeperBoardView's outer .padding() to theme.spacing.medium (value-identical 16, no snapshot churn) and the new Mac layout to the spacing scale. The compact VStack(spacing: 12) literal is deferred — it's the only remaining spacing-scale literal and migrating it churns the covered-board snapshot baseline (sandbox can't re-record). Grid geometry constants (minCellSide, cellSpacing, cornerRadius) are tap-target/shape values, left as literals. Also seals the #298 impl-notes. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 4, 2026
…follow-up) The two #298-deferred cosmetics, done Leader-local (needs a snapshot re-record): - #8: covered cells get a raised-tile treatment (soft top highlight + thin lower edge, token-derived) so covered-vs-revealed reads as raised-vs-recessed — the classic Minesweeper affordance, fixing the flat/low-contrast look the #278 Designer critique flagged. Light + dark snapshot baselines re-recorded. - narrow `public import SwiftUI` → `internal` in MinesweeperCellButton (no public decls use it; pre-existing nit from the #292 extraction). Co-Authored-By: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 17, 2026
…es filed) (#542) Records this session's drivable-case sweep on the current sim: - pass: #5 rapid double-tap Leave, #28 zh-Hant strings (+ earlier #1/#2/#10/ #18/#25/#39 from #536 work) - fail: #22 Dynamic-Type header clip (#540), #34 timer accrues background time (#539) - pend w/ findings: #8 (near-win harness can't model home-return), #23 (digit-pad frames ≥44pt but glyphs render blank, #540), #29 (no tofu, but Purchases section unlocalized, #541) New issues: #539 (solve timer counts background time — leaderboard fairness), #540 (Dynamic Type AX3+ header/digit-pad breakage), #541 (Purchases/IAP section unlocalized; L10n gate misses catalog-less literals). Co-authored-by: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Sep 9, 2026
…luster (#1056) * wip(board): full-bleed Sudoku board + G4 two-group glass cluster scaffold Checkpoint of #1022 phase 1 (Sudoku). Not yet verified — snapshot baselines are deliberately NOT re-recorded; see the open question below. - GameShellUI: new `BoardControlCluster`, the shared G4 shape both games mirror. Two glass groups (edit / input), each its own `GlassEffectContainer` so the two can never blend into one background; system default spacing throughout per design.md §4.6. A single-group initializer exists for Minesweeper, which has no edit-group controls (it has no undo at all — see #1052). - BoardView: the blanket `.padding(theme.spacing.medium)` screen margin is off the body. `compactLayout` now pads only its chrome, leaving the board edge-to-edge (design.md §3.4); `macLayout` re-applies the same 16pt it used to inherit, since the Mac board sits in a capped detail column and full-bleed does not apply there. - BoardView: G4 unmounts whenever `modalOverlayPresentation != nil` — the one value that already drives every board modal, so completion, pause and leave-confirmation are all covered with no new observer, no preference key and no `.disabled()` on the shell (§4.3 scene exclusivity). - DigitPadView: rebuilt as the two groups, per-button glass, never on the container (§12 error #8). §4.7 coloring pass — the whole-grid pencil-mode wash is gone and Erase/Undo/Redo lost their accent ink, leaving exactly one colored control per group. The #855 F-5 disabled gray-out and the #797 on-accent-ink placement both survive. Measured full-bleed cell side at 393pt = 43.7pt (786px / 9 / 2), at or above design.md §3.4's 43.2pt — the table deducts a 4pt outer frame this board does not have. Open: `.buttonStyle(.glass)` renders fully transparent in the headless macOS snapshot renderer (the previous `.bordered` keys rendered visible backgrounds). Investigating whether explicit `.glassEffect()` — the other spelling §4.6 allows and #1029's B-7 verified — renders, before touching any baseline. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * refactor(board): split BoardView / DigitPadView layouts into sibling files #1022's G4 rework pushed both files past SwiftLint's 400-line file_length ceiling. Repo convention is to extract a `+Feature.swift` sibling rather than disable the rule, so: - `BoardView+Layout.swift` takes both size-class arrangements; BoardView.swift keeps the view's state, `body` and lifecycle. - `DigitPadView+Mac.swift` takes the Mac rail arrangement. `adProvider` / `adGate` / `theme` / `compactLayout` / `macLayout` drop to `internal` for the cross-file reads, matching the same convention the existing BoardView+AccessibilityHeader.swift split already established. Also corrects BoardView's file header: the "NO .glassEffect on the board" rule still holds for the GRID (design.md §3.4 keeps the content layer glass-free) but no longer describes the control cluster around it. `swift build` clean; `swiftlint --strict` clean on GameShellUI/BoardControlCluster.swift and all of SudokuUI/Board/. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(board): assert design.md §7 — G4 never covers an interactive cell §7's rule is a layout rule ("幾何不隨開關改變,必須以最壞情況(IC+RT)為設計基準"), so a screenshot at one width cannot establish it. `BoardControlClusterLayout` states the compact board screen's top-down band assignment — margin, header, full-bleed board square, flexible gap, cluster groups — as pure geometry, and the suite sweeps §3.4's three breakpoint widths against cluster heights from a lone edit row up past anything the `.xLarge` Dynamic Type cap can render, asserting at every point that no glass group's rect intersects any cell rect. Also pinned: the two groups are disjoint bands rather than one merged surface; a single-group cluster (Minesweeper, #1052) reports one group and not an empty second one; Minesweeper's non-square 16×16 / 16×30 boards obey the same rule; and a taller cluster shrinks the BOARD rather than encroaching on it, with the board clamped at zero so a flipped rect can never sneak past `intersects`. Nothing here samples the eight Reduce Motion × Increase Contrast × Reduce Transparency combinations: `bands(...)` takes no accessibility input because those switches change how glass is painted, and painting is not layout — so sampling them would be sampling one call eight times. Dynamic Type is the input that can genuinely grow the cluster, and that is what the sweeps vary. Deliberately takes the group heights as INPUTS rather than freezing a metrics table: fixing them here and rendering with `.frame(height:)` would make the numbers true by force and hide a real overflow behind a clip. GameShellKit 122/122 green; swiftlint --strict clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * feat(board): extract MinesweeperControlClusterView + full-bleed MS board Phase 2 of #1022 — Minesweeper's half, mirroring Sudoku's SHAPE rather than copying DigitPadView (the two games' controls genuinely differ). - `MinesweeperControlClusterView` is new and builds the same shared `GameShellUI.BoardControlCluster`, takes plain values plus closures like DigitPadView does, and keeps the mode toggle's full a11y contract (label / value / hint / identifier) and its #786 on-accent ink, which must sit on the label content because a prominent style resolves its own label ink (#797). - It ships ONE group. design.md §3.4 and #1022 both describe MS's cluster as "揭開/旗標模式切換 + undo", but Minesweeper has no undo at any layer — no `canUndo`, no `undo()`, and the scope comments in `MinesweeperSession` and `MinesweeperGameViewModel` say so outright; the engine's `moves` array is a forward-only replay log that state restore discards. The edit group is omitted rather than rendered empty or filled with a disabled placeholder, which would be a dead control. Undo is engine work, tracked as #1052. - The MS board goes full-bleed the same way Sudoku's did: the blanket `.padding(theme.spacing.medium)` leaves `body`, chrome pads itself, and `macLayout` re-applies the margin it used to inherit. - The cluster unmounts whenever `modalOverlayPresentation != nil`, off the same single value that already drives every board modal. - Tap-mode persistence moves into `toggleInteractionMode()` unchanged, still writing through the injected store (#796) rather than `.standard`. Sudoku's board now centres in its vertical band instead of sitting under the header. Removing the padding had left the two apps disagreeing on the same screen — MS's grid already centres in its fitted branch (#764) — and §3.4's ASCII shows breathing room above and below the board. `BoardControlClusterLayout` models the band accordingly; centring can only move the square away from the header, never past the band's bottom edge, so §7's rule is unaffected. Board baselines re-recorded, and they legitimately show the cluster's controls as bare glyphs with no key surfaces. That is NOT "the controls disappeared": Liquid Glass renders as nothing in this repo's NSHostingView capture path, while standard materials and `.bordered` render fine — measured both ways, see the PR body. The App Store `03-board` slots read from these same baselines, so that consequence is tracked separately as #1054; it is not fixed here. MinesweeperKit 409/409 green. SudokuKit Board|DigitPad batch back to its pre-existing 104 tests / 2 issues (the load-sensitive `BoardLeaveOrPauseStateTests` clock flake, which passes in isolation). GameShellKit 122/122 + 6 new §7 geometry tests. swiftlint --strict clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(board): pin full-bleed at design.md §3.4's three cell-size breakpoints The existing board matrix only ever renders 393pt, the middle row of §3.4's cell table. These add 320 (iPhone SE) and 430 (Pro Max) so a horizontal inset creeping back in is caught at the widths the table is actually about. Measured from the recorded baselines (board width in pt / resulting cell side, against §3.4's figure): 320 → 235.0 pt wide, 26.1 pt cells (table 35.1) — NOT full-bleed, see below 393 → 393.0 pt wide, 43.7 pt cells (table 43.2) — full-bleed 430 → 430.0 pt wide, 47.8 pt cells (table 47.3) — full-bleed At 393 and 430 the board is width-bound, so it spans the screen exactly and the cell side lands above the table (the table deducts a 4pt outer frame this board does not have — 附錄 B's "扣除外框"). At 320 it is HEIGHT-bound: the header plus the control cluster plus the margins leave only ~235pt of vertical room, so the square is capped by height and removing the horizontal inset buys nothing. That is a property of the cluster's height on a 568pt screen, not of this change — the same chrome dominated before #1022 — but it does mean §3.4's SE row is not reachable with G4 at its current size, and 26.1pt sits under the 28pt absolute floor §3.4 itself cites. Raised with the PM rather than silently recorded. The baselines show the cluster's controls as bare glyphs. That is the NSHostingView capture path's Liquid Glass blind spot (#1054), not missing controls; `testName` is forwarded through the helper so each baseline files under its own `@Test` rather than all three under the helper's name. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(design): correct §3.4's cell table and MS controls, defer §4.1's G3 row Four corrections #1022's implementation forced, each anchored to what the code actually does rather than what the spec assumed. §3.4 格徑表 — the "3.0 滿版" column is `(W − 4) / 9`: 附錄 B's "扣除外框" deducts a 4pt outer frame the board does not have (only 0.5pt per-cell hairlines). The real full-bleed side is `W / 9`, slightly LARGER than the table. Measured from the recorded baselines: 393 → 43.7pt and 430 → 47.8pt, both true full-bleed. §3.4 SE row — 320pt measures 26.1pt, not 35.1pt, because the board there is bound by HEIGHT, not width: header + G4 + margins leave ~235pt, so removing the horizontal inset buys nothing. The table's width-bound assumption never held on that device — the pre-3.0 "現況 32.0pt" figure was unreachable for the same reason — so this is a long-standing table error, not a #1022 regression. 26.1pt is under the 28pt absolute floor the section itself cites; the fix is a shorter cluster variant for short screens, tracked as #1055. §3.4 MS controls — the ASCII said "MS:揭開/旗標模式切換 + undo", but Minesweeper has no undo at any layer: no `canUndo`, no `undo()`, and both `MinesweeperSession` and `MinesweeperGameViewModel` say "no undo" in their scope comments. The engine's `moves` is a forward-only replay log that state restore discards. So MS ships ONE group and the edit group is not drawn at all — no disabled placeholder, because a dead control is worse than an absent one. Tracked as #1052. §4.1 — G3's row still says 刪除, but nothing has deleted it: #1022 left the header alone because the iPhone board is a `fullScreenCover` with no NavigationStack, so `.toolbar` draws nothing, and adding one would change BoardView's frame such that the in-place pause overlay stops covering the toolbar — the exact #763 guarantee #1019/#1038 paid to restore. Marked ⏳ with #1053 rather than left reading as done. §4.1 also gains the snapshot caveat: this repo's `NSHostingView` + `cacheDisplay` path renders standard materials and `.bordered` but draws Liquid Glass as nothing, so G4/G6 glass can only be verified on a simulator — and the App Store `03-board` slots read those same baselines (#1054, pre-submission blocker). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore(store): regenerate ASC 03-board frames — knowingly wrong, tracked by #1054 `scan:store_frame_drift` flags four changed baselines feeding the `03-board` slot for both apps across iphone-6.9 / ipad-13 / mac. Regenerating is the gate's prescribed fix, and it is the right one here even though the output is wrong: The regenerated frames show the board with NAKED, SURFACE-LESS CONTROLS — bare undo/redo/pencil/erase glyphs and bare digit keys with no backgrounds — because this repo's snapshot renderer draws Liquid Glass as nothing (measured both ways; see #1054). On device the same build renders the two glass groups correctly. Committing them anyway, deliberately. A stale frame depicting a design the app no longer has is the #1051 orphaned-baseline failure mode: it looks fine, so nobody investigates. A current frame we have measured, know is wrong, and have filed as a submission blocker is strictly safer — the artifact matches the app, and the "submit before it is fixed" risk is held by #1054 (labeled `pending`, referenced from the epic) rather than by anyone's memory. NOT using the gate's `frame-drift-verified` escape hatch. That hatch attests the baseline change does not alter any ASC frame; this one demonstrably does, so the trailer would be a false statement that happened to turn the gate green. 168 slots regenerated, 28 files changed, all matching their device ASC pixel size and RGB with no alpha. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(board): CR round 1 — blank-baseline guard, stale MS baselines, honest §7 anchor Two blockers and the must-fix list from the #1056 review. BLOCKER 2 — a baseline was committed with ZERO opaque pixels (`BoardViewDigitFirstTests/snapshotArmedDigit_iPhone_light`) and every gate stayed green: a blank capture matches a blank reference, the drift gate only fires on change, the orphan gate only proves a recording test exists. Root cause isolated with a throwaway probe, and it is narrower AND broader than the review's hypothesis: it is not `GlassEffectContainer` and not `.glassProminent` — it is **TINT**. Opaque-pixel counts through this exact capture path on a 300×200 ground: no glass at all 26800 .buttonStyle(.glass), untinted 26800 .buttonStyle(.glassProminent) 0 .buttonStyle(.glass) + .tint 0 .glassEffect(.regular.tint(_)) 0 .glassEffect(.regular.tint(_).interactive) 0 Any tinted glass blanks the WHOLE capture, background included. Untinted glass leaves the rest of the screen intact (the glass itself is still invisible — that is #1054's separate blind spot). On device the same build renders fine. Fixes: - `SnapshotBlankBaselineGuardTests` in BOTH apps — walks every committed baseline and fails on any with no opaque pixels. Content-agnostic, no per-fixture bookkeeping, and it would have caught this immediately. - `BoardViewDigitFirstTests` split by what this renderer can actually capture. The `isSameDigit` cell tint is ordinary board content, so it stays a pixel snapshot — now on `BoardCellView` directly, WITH an untinted control cell beside it, because one image proves nothing about a highlight (the pair differ in 98% of pixels, so the assertion has real discriminating power). The armed KEY's own highlight is uncapturable here and is verified on the simulator instead. Re-recording the old fixture would just re-commit a blank. BLOCKER 1 — three MS baselines were silently stale, not one. A full-suite re-record (never a filtered subset — a filter changes the execution set and order-dependent fixtures then bake a different state) found the iPad case the review named plus both Mac `snapshotFlagged_*`: 0.41% / 1.07% / 1.07% drift, every one a 224×104pt hit on the mode-toggle chip, every one inside `.tolerantImage`'s 5% budget. Sudoku is clean. `minesweeper/ipad-13/*` ASC frames regenerated (7 locales); the Mac ASC frame did NOT move despite its baseline drifting, because the drifted region sits outside the marketing crop — so the drift gate is not a proxy for baseline correctness. Class tracked as #1057. §7 suite — the review is right that it was self-consistent algebra: `boardSide` and the board band are the same quantity restated, so the non-overlap assertion could not fail. It now has an empirical anchor: real frames read off a running app with `idb ui describe-all`, asserted against the model. That immediately earned its keep — fed the measured chrome WITHOUT safe-area terms the model predicted a 402pt board where the device renders 392.5pt. Adding `safeAreaTop`/`safeAreaBottom` brings the cluster's top to the measured 539.0 exactly and the board within 4.5pt. The anchor also corrected a claim I had made from the same data: the cell PITCH is 43.61pt, not the 44.17pt `describe-all` reports as each cell's frame width — the hit rects are ~0.55pt wider than the pitch and overlap slightly. 43.61 clears §3.4's 43.2 but sits just UNDER the HIG 44pt default, exactly as §3.4's ruling anticipates. And on a real 402pt device the board spans 392.5, not 402: the layout applies no horizontal inset, but with real safe areas the square is still height-bound by ~9.5pt, so "full-bleed" describes the layout rule, not a guarantee of edge-to-edge on every device. Both are pinned by assertions now. Also in this batch: - M1: design.md §4.6 amended — each group gets its OWN `GlassEffectContainer`, with the B-7 reasoning (merging is proximity-driven, so one shared container makes "text and icons never share a background" depend on the gap between them; separate containers make it structural). - M2: `fullBleed_iPhoneSE_320` renamed `heightBound_iPhoneSE_320` (baseline follows) — a test named for a claim its own subject disproves is the contradiction §3.4 just had to be corrected for. `fullBleedCellSide`'s table comparison scoped to 393/430, where the board actually IS width-bound; at 320 `W/9 >= (W−4)/9` is true for every W and proved nothing. - M4-lite: `BoardControlClusterLayout` dropped to internal, header rewritten to claim only what it proves, and `stackSpacing * 3` replaced by a caller-supplied `stackGapCount` so it stops asserting a correspondence nothing checks. - M5: MS's dead `Spacer(minLength: 0)` deleted (the board already expands, so it resolved to zero height while still costing a stack gap); Sudoku's comment no longer describes a `Spacer` its stack does not have. - Cosmetic: `DigitPadView+Mac.swift`'s `}}`. GameShellKit 125/125, MinesweeperKit 410/410, SudokuKit Board|DigitPad|Snapshot 122/122. swiftlint --strict clean. Both store gates PASS. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(board): strict snapshots of the G4 cluster on its own, both apps The direct answer to CR B1: a glass restyle of one control drifted three Minesweeper board baselines by 0.41-1.07% and passed, because the whole-board suites use `.tolerantImage` (precision 0.95) for the antialiasing-heavy grid. Rendering the cluster ALONE gets strict comparison on the part that must not drift silently, without turning the board tests strict and flaky — `strict content / tolerant board` is already the repo's convention, and this is a content fixture. Chosen over region-masking inside the board snapshots: same targeting, far less machinery, and it lands where strict already belongs. Both apps, default (untinted) cluster state only. A tinted glass control blanks this entire capture path, so armed-digit / notes-on / flag-mode cannot be pixel-tested here at all and stay simulator-verified; `SnapshotBlankBaselineGuardTests` fails loudly if a future state change ever lands one of them in a fixture. Two fixtures were checked for discriminating power rather than assumed to have it, since a snapshot that cannot fail is worse than no snapshot: - Sudoku enabled vs history-disabled differ in 0.14% of pixels — the #855 F-5 gray-out is genuinely captured. - That case is COMPACT deliberately. The conditional ink #855 installed lives only in the compact row; the Mac rail leaves disabled styling to the system and renders byte-identical enabled vs disabled through this path, so a regular-class variant would have asserted nothing. Whether the rail dims on a real Mac is not answerable here — #1039 owns macOS interaction. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(test): re-record two Sudoku baselines that were still depicting the old design I got these wrong once and want the reasoning on the record, because the way I dismissed them is a trap anyone re-recording under a tolerant comparator will hit. `BoardViewBannerTests/snapshotAdsEnabledUnloadedSlot_iPhone_light` and `BoardViewTests/snapshotEmpty_Mac_light` were never re-recorded in this PR (`git log origin/main..HEAD -- <file>` is empty for both). They still showed the PRE-#1022 board: 16pt inset and `.bordered` key fills. A full-suite re-record produces something 35.91% / 17.12% different. My first sweep DID flag both, and I dismissed them as artifacts of my own harness on the grounds that "they pass against HEAD, so HEAD must be correct." That inference is invalid, and here is why: `.tolerantImage` is `.image(precision: 0.95, perceptualPrecision: 0.95)`. The perceptual term means a pixel counts as matching when its delta is small — and these boards are a low-contrast cream/white/light-grey palette, so an ENTIRE layout and styling change is composed almost entirely of small per-pixel deltas. A visibly different design passes. So under a tolerant comparator, "the suite is green" says nothing about whether a baseline matches the code. Staleness can only be established by re-recording and diffing. The magnitude heuristic I proposed earlier — that ~1% is real drift and 36% means the measurement is broken — was exactly backwards here: the large number was the honest signal and I explained it away. Sweep redone properly, deleting and re-recording EVERY baseline in both apps from a full-suite run and treating any difference as real: - Sudoku: these 2, now fixed. Nothing else. - Minesweeper: 0 remaining (the 3 fixed earlier were the whole set). Neither of these two feeds an ASC slot, so no marketing frame moved. SudokuKit 412/412, MinesweeperKit 412/412, both store gates PASS. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(board): CR round 2 — real dark coverage where it exists, delete where it can't NEW-1: two of the six strict cluster tests were asserting nothing. Diagnosed before fixing, and the cause is neither of the two the review offered. The dark variants were not byte-identical — they differ in 1469 / 6615 pixels — but every one of those differences is alpha ≤7 antialiasing residue. Visually identical, so the finding stands; my first measurement said "1469 differ" and was the same over-literal reading that nearly buried the stale baselines last round, just pointing the other way. The real cause is fixture SCOPE, not a broken colorScheme injection and not a capture-path limit. This path DOES flip theme-token ink (`Color(light:dark:)` resolves through SwiftUI's `\.colorScheme`); it does NOT flip system default label colours, which resolve from the AppKit drawing appearance `cacheDisplay` never applies. Measured on these exact fixtures: compact light vs dark 5998 VISIBLE differing px, ink (20,22,25) → (239,239,242) rail light vs dark 0 visible MS light vs dark 0 visible The compact row carries always-on theme ink (#855 F-5's conditional icon colours), so its dark variant is real coverage — ADDED, it did not exist before. The rail and MS fixtures contain no theme ink in any state this path can capture: their only `foregroundStyle` uses sit in the PROMINENT branches (armed digit / notes-on / flag mode), prominent means tinted, and tinted glass blanks the whole capture. No capturable state of those views can carry a dark-mode signal, so both dark tests are DELETED rather than left advertising coverage they never had. Dark appearance there is simulator-verified. M2 residual, and I got this wrong once more before getting it right. The first replacement compared `side > tableFigure` and I wrote a comment claiming a re-introduced 16pt inset would fail it. That was false: `fullBleedCellSide` is a pure function of screen width and knows nothing about the app's layout, so it could not fail either. Deleted. The table comparison now lives on the MEASURED device geometry — `#expect(cells[0].width > 43.2)` plus an upper bound below the HIG 44 default — where it is a statement about the board the device actually rendered rather than a rearrangement of W/9. The surviving pure-function test is renamed `fullBleedCellSideIsWidthOverColumns` and its doc comment says outright that it is an identity and cannot catch an inset regression. §3.4 backs the upper bound: it predicts this device class does NOT reach 44 ("仍未達,差距 3.9→0.8pt"), only Pro Max does ("首次跨過"). GameShellKit 124/124, MinesweeperKit 411/411, SudokuKit Board|DigitPad|Snapshot|Cluster 126/126. swiftlint --strict clean on every file touched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(board): correct a code comment anchored to the same false premise Sibling of the PR-body correction, found by auditing my own claims against `main` instead of against the current head — the habit that would have caught the original mistake. The comment introduced in 7d303e4 read "No `Spacer` here: `boardGrid` already expands into the slack…", which presupposes a `Spacer` existed on this stack and was removed. It never did on `main`: the compact stack has no `Spacer` before or after this PR, and the one deleted in round 1 was added by this PR's own cluster extraction in 01c6965. A future reader would have taken the comment as the aftermath of a real removal. Rewritten to say what is actually true — this stack never had one, here is why it should not gain one — with the intra-PR history noted explicitly so the comment cannot be misread the same way again. Audited the PR body's other net-change claims against `main` at the same time; all three verified as real deltas rather than intra-PR artifacts: - MS mode toggle moved below the banner: main `boardGrid / modeToggle / bannerSlot` → `boardGrid / bannerSlot / controlCluster`. Real. - Sudoku board centres in its band: `.frame(maxHeight: .infinity)` + `.layoutPriority(1)` are absent on main. Real. - MS Reveal was `.borderedProminent` + accent tint on main. Real. MinesweeperKit 411/411; swiftlint --strict clean; comment-only change. 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.
Two new
§Backlogentries captured 2026-05-20.§通知與留存 — Local notification for daily reminder. UNUserNotificationCenter-based; needs design for permission timing, user-customizable time, timezone, silent hours, conditional 'only if daily unfinished', escalation guardrails.
§在地化 — Expand from 7 locales to 10. Candidates: fr / de / pt-BR. ASCRegister CLI already handles new GC locales; trigger on ASC storefront metrics.
🤖 Generated with Claude Code