Closed MrFlashAccount closed 1 week ago
i guess the current plan is to fix the logout issue in this PR instead? i guess it depends on when this PR is expected to be ready
Yeah, I added a Dialog in this PR. @PabloBuchu would you like to take a look?
https://github.com/enso-org/enso/assets/2855109/5506db0c-4b93-4fca-b0a1-5b1c948104db
Reopening in offline shows empty cloud dashboard with bunch of errors "Failed to fetch". It should alaways land on local view
When I run npm run dev
in app/gui2 then disconnect I still can browser cloud / recent / trash with errors
This is not how it is supposed to work in my head. Maybe I broke something during the refactoring? Will take a look!
Two major issues:
https://github.com/enso-org/enso/assets/2855109/a578e568-6065-4151-bd7d-a7731bacda30
@PabloBuchu Hi! fixed both bugs.
Pull Request Description
Tl;dr
Closes: enso-org/cloud-v2#1283 This PR significantly reimplements Offline mode
Demo Presentation
https://github.com/enso-org/enso/assets/61194245/752d0423-9c0a-43ba-91e3-4a6688f77034
Context:
Offline mode is one of the core features of the dashboard. Unfortunately, after adding new features and a few refactoring, we lost the ability to work offline. This PR should bring this functionality back, with a few key differences:
This Change:
What does this change do in the larger context? Specific details to highlight for review:
<AuthProvider />
functionality, now it implemented on top of<Suspense />
and ReactQuery<Suspense />
component, which is aware of offline statusInviteUserDialog
to the new<Form />
component/users/me
could stuck into infinite refetchTest Plan:
This PR requires thorough QA on the login flow across the browser and IDE. All redirect logic must stay unchanged.
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR: