OluwadareLab / Robin

1 stars 0 forks source link

[User Story] upload page cookies to keep track when user leaves without submitting #8

Open mattieFM opened 3 months ago

mattieFM commented 3 months ago

Overview: If a user leaves the upload page or accidently reloads or loses connection they should not have to reenter all their info

Story: As a user, when uploading my data to the upload page, when I have to reload the page or get disconnected for any reason then when I come back to the page my data should still be there

Good path: Given: the user has filled out some of the upload form When: 1: the user reloads the page 2: the data should still be there

Dev Notes (Mattie): I implmented about half of this solution inside of the oneStepUploadPage: https://github.com/OluwadareLab/Robin/blob/e2a6a426def367b7c09c45bb0f718894f9fd6ae3/src/pages/OneStepJobPage.tsx#L57 most of the cookie side of things is done, but the components themselves seem to not read inital state from the props pased, it looks like they only pass their values back up to the prop callbacks rather than 2 way.