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: Open cozy-app when offline only if it supports Offline mode #1244

Open
wants to merge 1 commit into
base: feat/offline_error_screen
Choose a base branch
from

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Sep 13, 2024

When offline, we want to open coz-apps only when they declare to be compatible with Offline mode

Cozy-app can declare this by setting offline_support: true in their manifest.webapp file

Non compatible cozy-app won't be opened when the Flagship app is offline, and instead an error message will be displayed

)
const isOffflineCompatitble = await isOfflineCompatible(fqdn, slug)

if (!isOffflineCompatitble && slug !== 'home') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the special case for home ?

@Ldoppea Ldoppea force-pushed the feat/open_only_compatible_apps branch 3 times, most recently from 40f24ca to 35e7c9a Compare September 24, 2024 11:23
@Ldoppea Ldoppea changed the base branch from feat/make_offline_readonly to feat/offline_error_screen September 24, 2024 11:23
@Ldoppea Ldoppea force-pushed the feat/open_only_compatible_apps branch from 35e7c9a to 8e624d4 Compare September 24, 2024 15:42
When offline, we want to open coz-apps only when they declare to be
compatible with Offline mode

Cozy-app can declare this by setting `offline_support: true` in their
manifest.webapp file

Non compatible cozy-app won't be opened when the Flagship app is
offline, and instead an error message will be displayed
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.

2 participants