Skip to content

fix(settings): host reminder sheets at screen root so the primer survives its status re-poll - #948

Merged
wei18 merged 2 commits into
mainfrom
fix/940-primer-sheet-host
Jul 23, 2026
Merged

wei18 merged 2 commits into
mainfrom
fix/940-primer-sheet-host

Conversation

@wei18

@wei18 wei18 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

What

The daily-reminder primer sheet self-dismissed ~1s after presenting: both it and the denied-explainer were .sheet modifiers on ReminderSettingsSection's Section — a presentation host nested inside the Settings List. The tap-time async permission-status write swaps that Section's switch model.status row content mid-presentation; List row-diffing duplicates the presentation host, UIKit rejects the second present ("already presenting"), and the primer is torn down. Reproduced 4/4 on device + sim. Distinct from #909's model-caching bug (which stays intact).

Both sheets now attach at the SettingsScreen root — a stable host outside any List row — still driven by the same ReminderSettingsModel instance via SettingsScreenReminderConfig. Adds a locale-independent reminders.primer.sheet anchor and an E2E regression guard (open primer, wait 3s past the old teardown window, assert still present), invoked in both apps. #929 scenePhase re-poll and the sheet detents are preserved.

Verification

  • SettingsKit 51/51, GameAppKit 50/50 green; fix(settings): keep the daily-reminder primer model stable so its sheet survives first tap #918 same-instance identity tests still pass in both apps.
  • E2E: mise run test:ui all — Sudoku 14/14, Minesweeper 10/10, including test_reminderPrimerPersistsPastStatusRepoll on both.
  • Dual code review APPROVED (0 blockers; 2 cosmetics fixed).
  • Fresh-context acceptance ACCEPT 6/6: independent E2E run + sim 4/4 (primer stays ≥5s every attempt) + log-stream confirms the UIKit "already presenting" error is absent post-fix.

Shared SettingsUI — verified on both Sudoku and Minesweeper.

Closes #940

🤖 Generated with Claude Code

wei18 and others added 2 commits July 23, 2026 16:49
…ives its status re-poll

The daily-reminder primer sheet self-dismissed ~1s after presenting: both
it and the denied-explainer were `.sheet` modifiers on ReminderSettingsSection's
`Section`, a presentation host nested inside the Settings List. The tap-time
async permission-status write swaps that Section's `switch model.status` row
content mid-presentation; List row diffing duplicates the host, UIKit rejects
the second present ("already presenting") and tears the primer down.
Reproduced 4/4 on device + sim; distinct from #909's model-caching bug (intact).

Both sheets now attach at the SettingsScreen root — a stable host outside any
List row — still driven by the same ReminderSettingsModel via
SettingsScreenReminderConfig. Adds a locale-independent `reminders.primer.sheet`
anchor and an E2E regression guard (open primer, wait 3s past the old teardown
window, assert still present). scenePhase re-poll (#929) and detents preserved.

Closes #940

Co-Authored-By: Claude Fable 5 <[email protected]>
…ry line

Round-1 review cosmetics: the comment overstated the AudioSettingsSection
precedent (that wraps a non-optional model); reworded to describe the actual
optional-nil behavior. Also detached the reminders.primer.sheet anchor from
the "icon tile" phrase in the element inventory.

Part of #940.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 23, 2026 08:50
@wei18
wei18 merged commit 91fbe8a into main Jul 23, 2026
5 checks passed
@wei18
wei18 deleted the fix/940-primer-sheet-host branch July 23, 2026 08:51
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(settings): daily-reminder primer sheet torn down ~1s after present by duplicate presentation attempt (sheet hosted inside List section)

1 participant