i-VRESSE / haddock3-webapp

Web app which is front-end for bartender and wraps workflow builder with haddock3 catalog
Apache License 2.0
1 stars 0 forks source link

Save builder content in indexedDB #131

Closed dmijatovic closed 3 months ago

dmijatovic commented 4 months ago

Save builder content

Closes #12

It saves "unfinished" workflow definitions to indexedDB, in "builder" objectStore, when user navigates away from builder page. When users visits builder page it is been asked if he want to load "unfinished" workflow definitions. If answer is OK the data is loaded.

What is implemented?

How to test?

To do

After testing we should remove console.logs.

sverhoeven commented 4 months ago

If you submit a workflow (which redirects to /jobs/9) and go back to the builder page it asks to load the just submitted workflow again.

I would expect that when you submit the workflow then the workflow is finished and the indexeddb is cleared.

Can we treat leaving to page after submit differently? Maybe use the formMethod==POST in https://remix.run/docs/en/main/hooks/use-navigation hook.

github-actions[bot] commented 3 months ago

Please delete the images belonging to this Pull Request as they are no longer useful.

Goto versions page of each image, find version called pr-131, filter on tagged versions by clicking "N tagged" button in table header, click on ... button and select Delete version.