Skip to content

fix: Prevent discard notifications#92

Open
lebojo wants to merge 2 commits intomainfrom
fix/re-ask-for-notification
Open

fix: Prevent discard notifications#92
lebojo wants to merge 2 commits intomainfrom
fix/re-ask-for-notification

Conversation

@lebojo
Copy link
Copy Markdown
Member

@lebojo lebojo commented May 5, 2026

Fixed an edge case where users skipping the notification modal during migration were permanently unable to re-enable notifications.

Previously, if a user selected "Skip" during the migration flow, the notification modal would never appear again, and there was no option to activate notifications later in the Settings. This update forces the modal to display, ensuring that even if the user declines, they retain the ability to enable notifications via the Settings menu at a later time.

Copilot AI review requested due to automatic review settings May 5, 2026 08:35
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce “discard notifications” scenarios by tightening the notifications enablement flow: it adds animated UI feedback in Settings when notifications are enabled but not authorized, and removes the ability to skip the notifications permission step during onboarding.

Changes:

  • Animate the visibility of the notifications-authorization warning header in SettingsView.
  • Remove the “Later” action from the Onboarding notifications step, leaving only the authorization CTA.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
AuthenticatorFeatures/SettingsView/SettingsView.swift Adds opacity transition + animation tied to the notifications enabled toggle to animate the authorization warning header.
AuthenticatorFeatures/OnboardingView/OnboardingView.swift Removes the “Later” button from the notifications onboarding step, forcing users through the authorization CTA path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 89 to 93
.authListStyle()
.navigationTitle(AuthenticatorResourcesStrings.settingsTitle)
.sceneLifecycle(willEnterForeground: willEnterForeground)
.animation(.default, value: isNotificationsEnabled)
}
Comment thread AuthenticatorFeatures/OnboardingView/OnboardingView.swift
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.

2 participants