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 #660

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Commits on Sep 24, 2024

  1. feat: Upgrade cozy-client and cozy-intent

    `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
    Ldoppea committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    d926767 View commit details
    Browse the repository at this point in the history
  2. feat: Upgrade cozy-device-helper

    `cozy-device-helper` has been upgraded to `3.1.0` in order to retrieve
    the Offline mode support
    
    Related PR: cozy/cozy-libs#2562
    Ldoppea committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    c1a02f1 View commit details
    Browse the repository at this point in the history
  3. feat: Upgrade cozy-harvest-lib

    `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
    Ldoppea committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    f01f4f6 View commit details
    Browse the repository at this point in the history
  4. feat: Upgrade cozy-viewer

    `cozy-viewer` has been upgraded to `2.0.0` in order to retrieve changes
    on how files are downloaded in order to handle Offline mode
    
    Related PR: cozy/cozy-libs#2581
    Ldoppea committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    9bac2e6 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. feat: Upgrade cozy-bar

    `cozy-bar` has been upgraded to `15.0.1` in order to retrieve a fix
    related to Offline mode
    
    Related PR: cozy/cozy-bar#852
    Ldoppea committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    60a0038 View commit details
    Browse the repository at this point in the history
  2. feat: Handle offline mode in Flagship app

    We want mespapiers 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
    Ldoppea committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9a796c6 View commit details
    Browse the repository at this point in the history
  3. fix: Make queries compatible with Offline mode

    Previous query was not compatible with CozyPouchLink
    Ldoppea committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    665ba1a View commit details
    Browse the repository at this point in the history
  4. feat: Download files offline

    In cozy/cozy-client#1518 we implemented a new `downloadFile()` that
    allow to download files as before in a browser, but will download files
    through cozy-intent when hosted in the Flagship app
    
    This commit will replace the old way to download files with the new one
    using `downloadFile()`
    Ldoppea committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    2d4b5d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    93c6ddc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b9f6ad3 View commit details
    Browse the repository at this point in the history
  7. fix: Make HasManyBills class compatible with offline

    When offline, the PouchDB result does not contain a `referenced_by`
    attribute if no relationship exists on the document. So we want to
    optional chain this attribute to prevent any exception thrown
    
    Related Commit: cozy/cozy-ui@e3eeb6e
    Ldoppea committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    908326d View commit details
    Browse the repository at this point in the history