-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat(form-v2): show emergency contact popup in workspace page #4125
Conversation
…t modal from showing in chromatic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with some suggestions
<EmergencyContactModal | ||
onClose={() => setHasSeenEmergencyContact(true)} | ||
isOpen={isEmergencyContactModalOpen} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not the correct place to put this, since the modal will probably be instantiated in the admin header (when it is complete) (and it is also now when i realize that is why this feature is not in the app yet)
Add a TODO i guess, to move the auto-instantiation of the modal into the admin header when that is done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha. and this is because we want it to appear whenever an admin logs in, not just the workspace page right? will create this as a separate issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue #4153
* feat: add modal to workspacepage * test: add ViewedEmergencyContactDecorator to prevent emergency contact modal from showing in chromatic * fix: return null if user does not exist
Problem
Emergency contact modal does not pop up on the workspace page
Working towards #4110
Somewhat blocked by #4006
Solution
Emergency contact modal pops up on the workspace page if the user does not have an existing emergency contact. This appears after the rollout announcement modal.
Breaking Changes
Features:
TODO: Clear
emergencyContactKey
in local storage upon logout, when the logout button is implemented (related to Issue [React] Admin Header component #4006 )Before & After Screenshots
AFTER:
Tests