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

jd/implements automatic logout modal #440

Merged
merged 14 commits into from
Mar 20, 2025

Conversation

johanna-skylight
Copy link
Collaborator

@johanna-skylight johanna-skylight commented Mar 18, 2025

PULL REQUEST

Summary

This work implements the SessionTimeout component which takes care of tracking authenticated user's idle periods and triggers an automatic sign-out.

It also handles the logic to prompt the user with a modal which gives the opportunity to stay signed in or sign out on the spot.

Screenshot 2025-03-17 at 11 41 27 AM

Related Issue

Fixes QUE-201

Additional Information

In order to test the idle time you need to make sure that no mouse event is triggered or the timer will reset. Like seriously even moving the mouse counts. You could just adjust the idle time for a shorter period in your local IDLE_TIMEOUT_MSEC in the SessionTimeout file.

Checklist

  • Descriptive Pull Request title
  • Link to relevant issues
  • Provide necessary context for design reviewers
  • Ensure test coverage is above agreed upon threshold
  • Update documentation

Copy link

linear bot commented Mar 18, 2025

Copy link

github-actions bot commented Mar 18, 2025

Coverage report for ./query-connector

St.
Category Percentage Covered / Total
🟡 Statements
62.96% (+0.51% 🔼)
1610/2557
🔴 Branches
53.16% (+0.56% 🔼)
454/854
🟡 Functions
63.99% (+0.61% 🔼)
343/536
🟡 Lines
62.94% (+0.55% 🔼)
1505/2391
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / sessionTimeout.tsx
94.87% 100% 100% 100%

Test suite run success

156 tests passing in 20 suites.

Report generated by 🧪jest coverage report action from 4e69954

@johanna-skylight johanna-skylight marked this pull request as ready for review March 18, 2025 16:54
@johanna-skylight johanna-skylight changed the title Jb/session mgt logout modal jd/session mgt logout modal Mar 18, 2025
@johanna-skylight johanna-skylight requested a review from mikang March 18, 2025 17:01
Copy link
Collaborator

@robertandremitchell robertandremitchell left a comment

Choose a reason for hiding this comment

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

looks good to me! no issues testing with modified times.

Copy link
Member

@nickclyde nickclyde left a comment

Choose a reason for hiding this comment

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

Thanks for this Johanna! One note - before you merge, can you change the pull request title to be a little more descriptive? Since we do squash merges by default, the PR title is what gets shown in the commit history of main, and it's helpful to be able to quickly identify commits!

@johanna-skylight johanna-skylight changed the title jd/session mgt logout modal jd/implements automatic logout modal Mar 19, 2025
@johanna-skylight
Copy link
Collaborator Author

I have addressed UI/UX feedback and Michelle gave thumbs up.
Screenshot 2025-03-20 at 9 29 24 AM

@johanna-skylight johanna-skylight merged commit f92527a into main Mar 20, 2025
12 checks passed
@johanna-skylight johanna-skylight deleted the jb/session_mgt_logout_modal branch March 20, 2025 13:51
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.

4 participants