-
Notifications
You must be signed in to change notification settings - Fork 2
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
132 Add pop up message to CPE about outdated data #131
Conversation
✅ Deploy Preview for cp-platform ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
- created advisory modal with copy and inline styling - added the modal to three pages: - landing page - capital project map page - capital projects table data page - added functionality to dismiss/close the modal
fbc7f1c
to
63bd4d7
Compare
From the original ticket:
My interpretation of "normal" means that once users click "close" on the modal, then they can navigate to other pages without the modal returning. Under the current changes, navigating to another page reopens the modal. |
I agree. I also think there should be a "don't show this again" checkbox. You can check out how it was implemented in ZoLa: NYCPlanning/labs-zola#1197 |
We have a few options on how to approach this:
Regardless of the chosen approach, it would involve moving the state from the components to something more permanent. |
The ticket also states
Dismissing and not showing the modal again isn't mentioned in the requirements. It may be unwanted behavior. What if someone navigates away from the root page to We would need more info as to the desired behavior before working expanding the scope of the ticket. Maybe @TylerMatteo can chime in or has more information. If a dismiss and don't show the modal gain during the current session, perhaps a cookie lasting a few hours might be a good approach. Perhaps even the store approach but I would need help with that. |
…ge but will re-render on the map and table pages by design. otheise, we would need to track via local storage or cookies
@TangoYankee @TangoYankee and @TylerMatteo |
Description
New modal with advisory copy added to 3 CPE map pages
Tickets
Closes #132