Skip to content

Refactor NotificationToggleBox to handle permission changes on focus … - #768

Open
WouterAms wants to merge 1 commit into
mainfrom
bug/AM-1406-switch-toggled-niet-na-terugkomst-in-app-bij-permissies-updaten-in-instellingen
Open

WouterAms wants to merge 1 commit into
mainfrom
bug/AM-1406-switch-toggled-niet-na-terugkomst-in-app-bij-permissies-updaten-in-instellingen

Conversation

@WouterAms

@WouterAms WouterAms commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

…and press events

Changes

Refactors NotificationToggleBox to retry notification permission handling when the screen regains focus after opening permission instructions.

Changes:

  • Distinguishes switch presses from focus-triggered retries.
  • Tracks pending retries and clears them after permission checks or errors.
  • Connects retry handling to the navigation focus lifecycle.
File Description
src/​components/​features/​NotificationToggleBox.tsx Adds focus-based permission retries and separate handling for switch presses.

Test instructions

Other notes

@WouterAms
WouterAms requested review from a team and a balanced review from Copilot November 13, 2026 14:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the notification-permission retry changes.

No open issues 🎉

What changed in this PR

Refactors NotificationToggleBox to retry notification permission handling when the screen regains focus after opening permission instructions.

Changes:

  • Distinguishes switch presses from focus-triggered retries.
  • Tracks pending retries and clears them after permission checks or errors.
  • Connects retry handling to the navigation focus lifecycle.
File Description
src/​components/​features/​NotificationToggleBox.tsx Adds focus-based permission retries and separate handling for switch presses.

Review effort: Balanced

@github-actions github-actions Bot added the Copilot ready All Copilot comments are resolved label Nov 13, 2026
@WouterAms
WouterAms enabled auto-merge November 13, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Copilot ready All Copilot comments are resolved

Development

Successfully merging this pull request may close these issues.

2 participants