Skip to content

Conversation

@victorialee13
Copy link

Summary

Improves the sign-out flow by showing a notification when the user signs out of their Google Account.
This update uses the global openSnackbar action to display a top-right toast message including the user's name or email (when available).
The logout notification appears before the session is cleared to ensure it is always visible to the user.

Test Plan

Manually signed it with test account and clicked 'Sign out'.
Dropdown menu closes and Snackbar appear top right corner
Message shows one of three choices

  1. account name
  2. account email
  3. 'your account' as fallback
    After 800ms delay, session clears through clearSession() and redirects to /.

Issues

Closes #1183

@alexespejo alexespejo self-requested a review November 19, 2025 07:25
Copy link
Collaborator

@alexespejo alexespejo left a comment

Choose a reason for hiding this comment

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

Congrats on your first PR!!

This looks like a solid start! This is a smaller change so it's not too big but in the future if you can provide screen shots in the PR that would be good 🙂

When it comes to user signin notifications we typically use dialogs or popups like this to inform them:
image

We create an AlertDialog component for this particular instance

@victorialee13
Copy link
Author

Summary
Changes Snackbar Notification which notifies users they have been signed out to instead using the AlertDialong Component

Test Plan
Manually signed it with test account and clicked 'Sign out'.

Screenshot 2025-11-26 135427

Closes #1183

@victorialee13 victorialee13 force-pushed the issue-1183-fix-oauth-alert branch from ed2dc4c to edb48d7 Compare December 18, 2025 23:47
Copy link
Collaborator

@alexespejo alexespejo left a comment

Choose a reason for hiding this comment

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

My fault, I gave bad instructions that are too overkill.

Revert the commits related to the suggested change.

The flow should be:

"Hit logout" -> invalidates session -> display alert -> "user hits close" -> reload the page

*the current issue is if you hit logout the user HAS to hit "close" in order to be properly invalidated without being dependent on the user input

@victorialee13 victorialee13 force-pushed the issue-1183-fix-oauth-alert branch from edb48d7 to 67cde9e Compare December 24, 2025 04:51
Copy link
Collaborator

@alexespejo alexespejo left a comment

Choose a reason for hiding this comment

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

Resolve the merge conflicts so the deployment can run

@victorialee13 victorialee13 force-pushed the issue-1183-fix-oauth-alert branch from 4751641 to 67cde9e Compare December 24, 2025 07:31
Copy link
Collaborator

@alexespejo alexespejo 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 for the most part. Remove the small changes and you're good to go!

Copy link
Collaborator

@alexespejo alexespejo left a comment

Choose a reason for hiding this comment

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

LGTM

@alexespejo alexespejo requested a review from brelieu05 January 14, 2026 02:09
Copy link
Contributor

@brelieu05 brelieu05 left a comment

Choose a reason for hiding this comment

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

lgtm

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.

OAuth Alert on logout

4 participants