Repository navigation
fix(settings): host reminder sheets at screen root so the primer survives its status re-poll - #948
Merged
Merged
Conversation
…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]>
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.
What
The daily-reminder primer sheet self-dismissed ~1s after presenting: both it and the denied-explainer were
.sheetmodifiers onReminderSettingsSection'sSection— a presentation host nested inside the Settings List. The tap-time async permission-status write swaps that Section'sswitch model.statusrow 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
SettingsScreenroot — a stable host outside any List row — still driven by the sameReminderSettingsModelinstance viaSettingsScreenReminderConfig. Adds a locale-independentreminders.primer.sheetanchor and an E2E regression guard (open primer, wait 3s past the old teardown window, assert still present), invoked in both apps.#929scenePhase re-poll and the sheet detents are preserved.Verification
mise run test:ui all— Sudoku 14/14, Minesweeper 10/10, includingtest_reminderPrimerPersistsPastStatusRepollon both.Shared SettingsUI — verified on both Sudoku and Minesweeper.
Closes #940
🤖 Generated with Claude Code