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

[Feature] Track navigating away from the APD within the app #4655

Open
2 tasks
thetif opened this issue Mar 30, 2023 · 2 comments
Open
2 tasks

[Feature] Track navigating away from the APD within the app #4655

thetif opened this issue Mar 30, 2023 · 2 comments
Assignees
Labels
Development Issues for the dev team resolve medium

Comments

@thetif
Copy link
Contributor

thetif commented Mar 30, 2023

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

  • 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
@thetif thetif added the Development Issues for the dev team resolve label Mar 30, 2023
@thetif thetif changed the title [Feature] Track navigating away from APD [Feature] Track navigating away from APD within the app Mar 31, 2023
@thetif thetif changed the title [Feature] Track navigating away from APD within the app [Feature] Track navigating away from the APD within the app Mar 31, 2023
@thetif thetif added the medium label Mar 31, 2023
@mirano-darren
Copy link
Contributor

What happens if the user has the APD open in one tab, then opens another tab and navigates to a page not related to the locked APD?

@stephanieboydcms
Copy link

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development Issues for the dev team resolve medium
Projects
None yet
Development

No branches or pull requests

5 participants