Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Handle offline mode in Flagship app #2186

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Sep 19, 2024

We want cozy-home to be compatible with the new Flagship app's Offline mode

When hosted in a Flagship app's WebView we now want to use FlagshipLink instead of StackLink in cozy-client

This link will allow to redirect all queries to the Flagship app that will handle data access when offline but also when online

Related PR: cozy/cozy-client#1507
Related PR: cozy/cozy-flagship-app#1239
Related PR: cozy/cozy-libs#2562
Related PR: cozy/cozy-libs#2581
Related PR: cozy/cozy-libs#2585

### ✨ Features

* Add support for Offline mode in Flagship app

### 🐛 Bug Fixes

*

### 🔧 Tech

*

TODO:

Copy link

bundlemon bot commented Sep 19, 2024

BundleMon

Files updated (7)
Status Path Size Limits
vendors/home.(hash).js
1.5MB (+3.6KB +0.24%) 1.6MB
services/deleteAccounts/home.js
311.05KB (+1.25KB +0.4%) 500KB
services/myselfFromIdenties/home.js
235.5KB (+1.15KB +0.49%) 245KB
services/updateAccounts/home.js
462.48KB (+1.02KB +0.22%) 467KB
services/softDeleteOrRestoreAccounts/home.js
465.35KB (+974B +0.2%) 490KB
intents/home.(hash).js
25.6KB (+91B +0.35%) 35KB
app/home.(hash).js
47.3KB (-118B -0.24%) 50KB
Unchanged files (6)
Status Path Size Limits
services/polyfillFetch/home.js
97.38KB 99KB
vendors-home.(hash).(hash).min.css
38.77KB 40KB
services/attributesHelpers/home.js
15.22KB 16KB
app-home.(hash).min.css
1.78KB 15KB
intents/index.html
650B 1KB
intents-home.(hash).min.css
158B 6KB

Total files change +7.94KB +0.25%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 19, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 19, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 19, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 23, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 23, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 24, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 24, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
Ldoppea added a commit to cozy/cozy-client that referenced this pull request Sep 24, 2024
`fetchJSON()` calls are not compatible with offline mode unless we wrap
them in the `.query()` dsl

Recently we added a `fetchJSON()` call inside of cozy-home in order to
display the new grouped-by-category folders in the home's konnectors
section

So we want to move this call inside of the AppsRegistryCollection in
order to make it compatible with offline mode

Related PR: cozy/cozy-home#2186
In cozy/cozy-client#1460 we implemented a new `useSettings` hook

This hook can be used in `DefaultRedirectionSnackbar` in order to
simplify code and homogenize the way we access cozy-apps settings
`cozy-harvest-lib` has been upgraded to `30.0.1` in order to retrieve a
fix on accounts fetching that provide support for Offline mode

Related PR: cozy/cozy-libs#2585
`cozy-client` has been upgraded to `49.0.0` in order to retrieve the
Offline mode support

`cozy-intent` has been upgraded to `2.23.0` as it is the new minimal
version for `cozy-client` since `49.0.0`

Related PR: cozy/cozy-client#1507
`cozy-device-helper` has been upgraded to `3.1.0` in order to retrieve
the Offline mode support

Related PR: cozy/cozy-libs#2562
We want cozy-home to be compatible with the new Flagship app's Offline
mode

When hosted in a Flagship app's WebView we now want to use FlagshipLink
instead of StackLink in cozy-client

This link will allow to redirect all queries to the Flagship app that
will handle data access when offline but also when online

Related PR: cozy/cozy-client#1507
Related PR: cozy/cozy-flagship-app#1239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant