Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

User must confirm that they want to clear the session data as part of a destructive action #246

Closed
2 tasks done
poorgeek opened this issue Feb 24, 2015 · 2 comments
Closed
2 tasks done

Comments

@poorgeek
Copy link
Contributor

As a user
I want to be notified of when I am about to perform an action that will clear my session data
So that I can confirm whether I want the action to continue

Acceptance Criteria

  • User receives a confirmation notice that they are about to clear their session data when:
    • Refreshing the current browser tab
    • Selecting the first step in the wizard navigation; after they are on to step 2+
    • Selecting the "Back" button from the Syntactical and Validity summary
    • Selecting the 'Start over' button during the Validation summary (Step 5)

Tasks

  • Spike: Identify an Angular module that provides an accessible modal dialog
  • Add confirmation modals
@poorgeek
Copy link
Contributor Author

Currently Capital Framework doesn't have a modal pattern, but they are interested in having one. That said, it might be easier to utilize an existing Angular module like ngDialog for doing what we want and then working within cf to define how a modal should look and function (e.g. CSS, interactions, ARIA, etc...). If we do use ngDialog, we need to make sure likeastore/ngDialog#166 has been merged.

@cladana cladana added this to the 07 Security and QA Testing milestone Feb 27, 2015
@cladana cladana added the ready label Mar 4, 2015
@poorgeek poorgeek self-assigned this Mar 13, 2015
@poorgeek poorgeek reopened this Mar 16, 2015
@pkaplan pkaplan modified the milestones: 08 CFPB / Contractor Feedback, 07 Security and QA Testing Mar 16, 2015
@poorgeek
Copy link
Contributor Author

It was discovered during development that in order to hook to the onbeforeunload event, which is fired just before browser refresh, we have to use the browser's own confirmation dialog for this and not our custom one. So the same language used in the conformation dialog is also used on browser dialog, but with different buttons.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants