harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Ensure that the newly-added doc is visible when the add-legal-doc modal is dismissed #1965

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

Follow-up to #1963

After a legal doc is added, the user may dismiss the search modal in four ways:

All of these ultimately trigger the same "close" event on the <Modal> component.

In any of these cases, the user's newly-added document will not appear automatically in the TOC, and it could seem like the action did not work. The document will be present when the page is refreshed.

Ideally:

If that is not readily possible: