Closed jnm closed 2 years ago
Another one to test: https://kobo.humanitarianresponse.info/#/account-settings shows an infinite loading spinner, with no informational modal, but it does include the "LOG IN" button
Another infinite loading spinner:
Note to self: see if previous PR in this area has some useful knowledge: https://github.com/kobotoolbox/kpi/pull/3255
Done on beta
Description
After a short discussion this seems to be the plan:
Generally we have three types of routes here:
For case 1 we should just display the UI we have
For case 2 we should immediately redirect to login page (ideally without user noticing - not sure now if possible)
For case 3 we would display a modal with some helpful message and some buttons:
Before we have all required data (like whether user is logged, does they have required permissions, and also permissions configuration) to know what to display, we should show only a spinner (no application)
Additional details
When trying to access the
edit
route anonymously, we tell people to "try reloading the page", and then display an infinite loading spinner without any "LOG IN" button:For the
landing
route, we still say "try reloading the page" (incorrect advice) and display an infinite spinner, but we do show the "LOG IN" button, and clicking that does let the user authenticate and be redirected to the place where they were trying to go originally.Requests:
Some internal discussion is now at https://chat.kobotoolbox.org/#narrow/stream/7-UX.2FUI/topic/404.20.3E.3E.20sign.20in.20to.20see.20resource