Skip to content

Remind unverified sessions with a banner once a week (PSG-892) #7694

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

Merged
merged 6 commits into from
Dec 3, 2022

Conversation

onurays
Copy link
Contributor

@onurays onurays commented Dec 2, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Currently, we never remind users about their unverified sessions once the alert banner is dismissed. We want to remind users to review unverified sessions in a certain period.

Motivation and context

When we detect a new login on another device, we are showing a "New Login" banner on verified devices. If the user dismisses it we need to show "Review your logins" banners to the user. If the user dismisses this banner too, then we don't show a banner for a while (1 week in current config).

Screenshots / GIFs

Tests

  • Set Config.SHOW_UNVERIFIED_SESSIONS_ALERT_AFTER_MILLIS = 60_000 for test purposes
  • Have a verified session
  • Login from another session
  • See "New login" banner appears in verified device
  • Dismiss the banner
  • See "Review your logins" banner
  • Dismiss the banner
  • Wait 1 minute and see the banner again

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@onurays onurays requested review from a team and jmartinesp and removed request for a team December 2, 2022 15:59
@ElementBot
Copy link

Warnings
⚠️

Please add a changelog. See instructions here

Generated by 🚫 dangerJS against 4050975

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM!

<string name="review_logins">Review where you’re logged in</string>
<!-- TODO TO BE REMOVED -->
<string name="verify_other_sessions">Verify all your sessions to ensure your account &amp; messages are safe</string>

Choose a reason for hiding this comment

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

  • 🚫 The resource R.string.review_logins appears to be unused

<string name="verify_other_sessions">Verify all your sessions to ensure your account &amp; messages are safe</string>
<string name="review_unverified_sessions_title">You have unverified sessions</string>
<string name="review_unverified_sessions_description">Review to ensure your account is safe</string>

Choose a reason for hiding this comment

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

  • 🚫 The resource R.string.verify_other_sessions appears to be unused

@ElementBot
Copy link

Warnings
⚠️ Please add a reviewer to your PR.

Generated by 🚫 dangerJS against 980d59a

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

36.0% 36.0% Coverage
2.8% 2.8% Duplication

@onurays onurays merged commit 34d29dc into develop Dec 3, 2022
@onurays onurays deleted the feature/ons/unverified_sessions_alert branch December 3, 2022 11:23
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.

3 participants