Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 2FA/otp Reminder Notification #5445

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Fix 2FA/otp Reminder Notification #5445

merged 1 commit into from
Feb 10, 2025

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Feb 7, 2025

  • Isolate the modals to their own file
  • Create a hook to ensure changes to otp disk settings are picked up by
    the NotificationService
  • Pull all logic for otp reminder notification state into NotificationService

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

One cleanup needed.

const { notifState, accountNotifDismissInfo } = useAccountSettings()
const { lastChecked, dontAsk } = useOtpSettings()
Copy link
Contributor

Choose a reason for hiding this comment

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

The variable names are pretty generic, and this component deals with a lot of unrelated stuff. We should make it clear that they pertain to OTP, specifically. I would either do:

const optSettings = useOtpSettings()

... optSettings.dontAsk ...

Or I would do:

const { lastChecked: otpLastChecked, dontAsk: otpDontAsk } = useOtpSettings()

Either way is fine.

- Isolate the modals to their own file
- Create a hook to ensure changes to otp disk settings are picked up by
  the `NotificationService`
- Pull all logic for otp reminder notification state into `NotificationService`
@Jon-edge Jon-edge enabled auto-merge February 10, 2025 23:07
@Jon-edge Jon-edge merged commit d6c5916 into develop Feb 10, 2025
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/2fa-notif branch February 10, 2025 23:16
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