Implement way to catch a user navigating away from an APD but still inside the application. Navigating to /print will NOT be considered navigating away from an APD. It should capture the id of the APD the user is leaving.
You can model this off of LATEST_ACTIVITY and setLatestActivity. There is a listener on the Root.js file and something similar could probably be used for this.
Acceptance criteria
[ ] create redux action for user navigating away from an APD
[ ] call this action when a user navigates away from an APD
Testing criteria
Given
When
Then
Covered
a user inside a locked APD
the user navigates to the APD List-State Dashboard /
call the leave APD action
a user inside a locked APD
the user navigates to adding an APD /apd/new
call the leave APD action
a user inside a locked APD
the user navigates to /apd/:apdId where apdId is different than the locked APD
call the leave APD action
a user inside a locked APD
the user navigates to a /print/:apdId where apdId is different than the locked APD
call the leave APD action
a user inside a locked APD
the user navigates to any of the login pages /login/*
call the leave APD action
a user inside a locked APD
the user navigates to the State Admin panel /state-admin
call the leave APD action
a user inside a locked APD
the user navigates to the Manage Account page /manage-account
call the leave APD action
a user inside a locked APD
the user navigates to the Switch State Affiliation page /select-affiliation
call the leave APD action
a user inside a locked APD
the user navigates to the State Admin Certification page /delegate-state-admin
call the leave APD action
a user inside a locked APD
the user navigates to any page within the same APD /apd/:apdId
standard APD actions, lock is still maintained on APD
a user inside a locked APD
the user navigates to the print page for the same APD /print/:apdId
the standard print action occurs, lock is still maintained on APD
Description and related issues
Implement way to catch a user navigating away from an APD but still inside the application. Navigating to /print will NOT be considered navigating away from an APD. It should capture the id of the APD the user is leaving.
You can model this off of LATEST_ACTIVITY and setLatestActivity. There is a listener on the Root.js file and something similar could probably be used for this.
Acceptance criteria
Testing criteria
/
/apd/new
/apd/:apdId
where apdId is different than the locked APD/print/:apdId
where apdId is different than the locked APD/login/*
/state-admin
/manage-account
/select-affiliation
/delegate-state-admin
/apd/:apdId
/print/:apdId