that-website icon indicating copy to clipboard operation
that-website copied to clipboard

Poor experience on page refresh during session submission

Open brettski opened this issue 5 years ago • 2 comments

This is turning out to be a major issue in the site. As the site has refreshed when I just get to the Session Details page, which means after I fill in the fields the submission fails as there is no session id to submit. I don't have the exact repro for this page refresh, but it did happen as the page loaded and caused a bad experience as if I had filled in all the fields I would need to start a new form and fill in again.

.

Issue: While filling out a new session, a page refresh, or requesting the current page again (GET) loses the current data and the information about the session submitted. The form/page remains. When a user fills in this page and clicks continue the site hangs.

Steps to reproduce:

  1. Login
  2. Click 'Learn More', then 'Become a Counselor', then 'Get Started'
  3. Accept counselor agreement if needed
  4. Use default types (Professionals, Regular Session), click Continue
  5. Add in a Title, Short description, Full Description, Primary, secondary, Target Audience
  6. Click continue
  7. On additional info page, fill in pre req
  8. Click refresh or GET url (press enter while in address bar)
  9. The page reloads and data is gone.
  10. filling in data and submitting again

What is observed

The site hangs, not continuing

What should happen

Ultimately the data should remain in the fields so the user may continue. Basically, for now, this condition needs to be handled better. Perhaps direction the user to the "My submitted sessions" page so they can click and continue where they left off.

other information

When the Continue button is clicked after the refresh on the Additional info page there is a console error of: Error: Error: Network error: Response not successful: Received status code 400 And response (from network panel):

{"errors":[{"message":"Variable \"$sessionId\" of required type \"ID!\" was not provided.","locations":[{"line":1,"column":24}],"extensions":{"code":"INTERNAL_SERVER_ERROR"}}]}

So the session id is being lost and the page is loading without this information. Perhaps a check when entering this page that the id exists or go somewhere else?

** Please note that this happens on any of the session submission pages **

brettski avatar Jan 07 '20 01:01 brettski

This is not critical, though still an issue. The site doesn't crash but puts you back to the first screen and starts another session create. now you have +2 sessions.

brettski avatar Jan 13 '20 21:01 brettski

In the short term, we may be able to add text to each of the submission pages telling the user that if they hit refresh in their browser, they will be taken out of the process and will need to Edit the one they were working on.

mcookWI avatar Jan 14 '20 19:01 mcookWI