usdigitalresponse / usdr-gost

USDR-hosted grants management tools
http://grants.usdigitalresponse.org
Apache License 2.0
30 stars 21 forks source link

Apply back behavior to modals #2695

Open ClaireValdivia opened 7 months ago

ClaireValdivia commented 7 months ago

Why is this issue important?

This issue is to build upon the work done in #2575 which enables back behavior in more places in grant finder. This issue is to add "back" functionality to places where modal/pop-up windows show in the app to ensure consistency with how back behavior works in other places of grant finder.

Current State

If you are on the Users page and you click "add," the modal opens. If you click back on the browser when the modal is open, it will bring you to the page you were on before the Users page. This applies to all the modals described below.

Expected State

Users Tab

Team Tab

Browse Grants Tab

Implementation Plan

The following functions need to be added...

Relevant Code Snippets

No response

ClaireValdivia commented 7 months ago

@caitlinwinner need to discuss - what happens when you go back to a modal that has been submitted? For add user/team, should it just show as a blank version?

and what do we expect for going back to new search? should it always be a fresh/blank new search? and for edit search - confirm that it should go back to edit for the search you were on, but reflect what has been applied to the search (i.e. save as if you click on edit the search)?