enso/app/ide-desktop/lib/dashboard/src
Sergei Garin 37cc980082
Offline Mode Support (#10317)
#### Tl;dr
Closes: enso-org/cloud-v2#1283
This PR significantly reimplements Offline mode

<details><summary>Demo Presentation</summary>
<p>


https://github.com/enso-org/enso/assets/61194245/752d0423-9c0a-43ba-91e3-4a6688f77034


</p>
</details>

---

#### 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:
1. We require users to sign in before using the dashboard even in local mode.
2. Once a user is logged in, we allow him to work with local files
3. If a user closes the dashboard, and then open it, he can continue using it in offline mode


#### This Change:
What does this change do in the larger context? Specific details to highlight for review:
1. Reimplements `<AuthProvider />` functionality, now it implemented on top of `<Suspense />` and ReactQuery
2. Reimplements Backend module flow, now remote backend is always created, You no longer need to check if the RemoteBackend is present
3. Introduces new `<Suspense />` component, which is aware of offline status
4. Introduce new offline-related hooks
5. Add a banner to the form if it's unable to submit it offline
6. Refactor `InviteUserDialog` to the new `<Form />` component
7. Fixes redirect bug when the app doesn't redirect a user to the dashboard after logging in
8. Fixes strange behavior when `/users/me` could stuck into infinite refetch
9. Redesign the Cloud table for offline mode.
10. Adds blocking UI dialog when a user clicks "log out" button

#### Test Plan:
This PR requires thorough QA on the login flow across the browser and IDE. All redirect logic must stay unchanged.

---
2024-06-21 07:14:40 +00:00
..
authentication Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
components Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
configurations Rename Connector to Datalinks (#9948) 2024-05-20 08:45:55 +00:00
data Rename Connector to Datalinks (#9948) 2024-05-20 08:45:55 +00:00
events Update dashboard to design v122 (Part 1) (#9896) 2024-06-12 10:20:07 +00:00
hooks Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
layouts Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
modals Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
pages Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
providers Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
services Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
text Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
utilities Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
App.tsx Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
appUtils.tsx Initial Support for paywalls (#10202) 2024-06-16 13:57:17 +00:00
entrypoint.ts Expose cloud event logging endpoint to GUI and render GUI editor as react component. (#9951) 2024-05-27 17:32:42 +00:00
index.tsx Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
reactQueryClient.ts Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
ReactQueryDevtools.tsx Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
tailwind.css Offline Mode Support (#10317) 2024-06-21 07:14:40 +00:00
TestAppRunner.tsx Expose cloud event logging endpoint to GUI and render GUI editor as react component. (#9951) 2024-05-27 17:32:42 +00:00