Enterprise-CMCS / eAPD

CMS (Centers for Medicare and Medicaid Services) eAPD - Modernizing the APD experience
https://eapd.cms.gov
Other
58 stars 25 forks source link

[Feature] Handle users opening link to locked APD #4659

Open thetif opened 1 year ago

thetif commented 1 year ago

Description and related issues

  1. Currently, if you use a link for a page in the APD, if you are logged in, you are directly to that page and if you are not logged in you must sign in first then you are directed.
  2. In this design, once you get to the page, I anticipate a gradual transition or immediate change to the page hidden by the modal. The call to action on the modal is to go to the dashboard.

I am not sure if it will be possible to temporarily display the APD with a modal over it. If it is not, immediately redirect them to the dashboard and put the modal up over it.

Mockups or link to Figma

Design ticket #4016 https://www.figma.com/file/hJpKHKU6fz5J0Z7fisSwa2/eAPD-MMIS-2022?node-id=4948%3A21306&t=DIsa46YJTEhYdXNE-1

Behind the scene changes

Frontend only

Acceptance criteria

Testing criteria

Given When Then Covered
a link to an unlocked APD a logged out user clicks it the system takes them to the log in page and after successfully logging in, they are redirected to the APD (and locks it--completed another ticket)
a link to an unlocked APD a logged in user clicks it the system takes them to the APD (and locks it--completed in another ticket)
a link to a locked APD a logged out user clicks it the system takes them to the log in page and after successfully logging in, they are redirected to the dashboard and shown a locked message
a link to a locked APD a logged in user clicks it the system redirects them to the dashboard and shows them a locked message