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

CRDCDH-619 Switch from Session Storage to Cookies #220

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

amattu2
Copy link
Member

@amattu2 amattu2 commented Nov 21, 2023

Overview

This PR adds the missing sessionStorage data sync functionality that Bento apps have implemented. The mission functionality causes the Government Warning Banner to appear on every new tab you open, instead of just the first one opened.

Change Details (Specifics)

  • Sync session storage data between open tabs using window storage event listener
  • Copied approach from Bento public/js/session.js

Related Ticket(s)

https://tracker.nci.nih.gov/browse/CRDCDH-619
https://tracker.nci.nih.gov/browse/CRDCDH-144

@amattu2 amattu2 added this to the MVP-2.0.0 (M2) milestone Nov 21, 2023
@amattu2 amattu2 added 📝 Change Requested This PR has requested changes 🚧 Do Not Merge This PR is not ready for merging labels Nov 22, 2023
@amattu2 amattu2 removed 📝 Change Requested This PR has requested changes 🚧 Do Not Merge This PR is not ready for merging labels Nov 22, 2023
Copy link
Contributor

@mtangmt mtangmt left a comment

Choose a reason for hiding this comment

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

LGTM. Works as intended on local.

@mtangmt mtangmt merged commit 9a95c8d into mvp-2 Nov 22, 2023
1 check passed
@mtangmt mtangmt deleted the amattu2/CRDCDH-619-V2 branch November 22, 2023 20:03
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