Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cozy-flags@2.11.0
Choose a base ref
...
head repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cozy-flags@2.12.0
Choose a head ref

Commits on Feb 2, 2023

  1. Copy the full SHA
    56b9cfd View commit details
  2. [skip ci] Publish

     - cozy-mespapiers-lib@18.1.1
     - cozy-sharing@6.0.1
     - cozy-playgrounds@1.23.1
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    4db89ba View commit details
  3. fix: Pass flowProps.konnector to LaunchTriggerCard in Mes Papiers

    Otherwise `useFlowState(flow).konnector` is `undefined`.
    PolariTOON committed Feb 2, 2023
    Copy the full SHA
    dfdbefb View commit details
  4. Copy the full SHA
    ee7c550 View commit details
  5. Copy the full SHA
    f989e7c View commit details
  6. Copy the full SHA
    16beedc View commit details
  7. Copy the full SHA
    ea3f6f7 View commit details
  8. Copy the full SHA
    0c3b815 View commit details
  9. Copy the full SHA
    8306e1d View commit details
  10. feat: Add a withDescription prop to LaunchTriggerAlert

    When set to `true`, it:
    - forces the alert to be in a `block` state,
    - puts actions at the bottom end,
    - and keeps the three dots menu at the top right
    PolariTOON committed Feb 2, 2023
    Copy the full SHA
    d8c947c View commit details
  11. feat: Display an error message in LaunchTriggerAlert

    When `withDescription` is set to `true`
    and the connector is in error.
    PolariTOON committed Feb 2, 2023
    Copy the full SHA
    00d9964 View commit details
  12. feat: Display a maintenance message in LaunchTriggerAlert

    When `withDescription` is set to `true`
    and the connector is in maintenance.
    PolariTOON committed Feb 2, 2023
    Copy the full SHA
    8bb35d0 View commit details
  13. Copy the full SHA
    c08ce9a View commit details
  14. Copy the full SHA
    bcf7d91 View commit details
  15. Copy the full SHA
    61ff378 View commit details
  16. chore: Add Jest config for *.styl files in Harvest

    This is needed for tests that indirectly import components
    from Cozy UI that use `*.styl` files.
    PolariTOON committed Feb 2, 2023
    Copy the full SHA
    656f226 View commit details
  17. [skip ci] Publish

     - cozy-harvest-lib@12.8.0
     - cozy-mespapiers-lib@18.2.0
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    d5c3fdf View commit details
  18. Copy the full SHA
    bb11971 View commit details
  19. [skip ci] Publish

     - cozy-harvest-lib@12.8.1
     - cozy-mespapiers-lib@18.2.1
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    955056e View commit details
  20. Copy the full SHA
    505beff View commit details
  21. Copy the full SHA
    c2cd00d View commit details
  22. Copy the full SHA
    4d616e5 View commit details
  23. Copy the full SHA
    b3a7ca9 View commit details
  24. fix(harvest): Routes for /config with LaunchTriggerAlert was incorrect

    BREAKING CHANGE: `konnectorRoot` must be the route to the connector, not the account in it. You have to change something like `konnectorRoot="/harvest/connectorName/accounts/accountId"` in something like `konnectorRoot="/harvest/connectorName"`
    JF-Cozy committed Feb 2, 2023
    Copy the full SHA
    c67f5a6 View commit details
  25. [skip ci] Publish

     - cozy-harvest-lib@13.0.0
     - cozy-mespapiers-lib@18.2.2
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    2468b9c View commit details
  26. feat(mespapiers): Upgrade cozy-harvest-lib to 13.0.0 and cozy-ui 80.2.1

    BREAKING CHANGE: `cozy-harvest-lib` must be `>=13.0.0` and `cozy-ui` must be `>=80.2.1`
    JF-Cozy committed Feb 2, 2023
    Copy the full SHA
    dca72cd View commit details
  27. Copy the full SHA
    7efd037 View commit details
  28. Copy the full SHA
    c5dc2d1 View commit details
  29. feat(mespapiers): Use identifier and accounts to get trigger instead of

    sourceAccount. The sourceAccount changes during a deco/reco of a
    connector. But in this case the cozyMetadata.sourceAccount of a file
    is not updated, so it is not a reliable source. You have to use the
    sourceAccountIdentifier coupled with the connector slug to get the
    right trigger. This is what we do here.
    JF-Cozy committed Feb 2, 2023
    Copy the full SHA
    3c29138 View commit details
  30. chore: Update codeowners

    JF-Cozy committed Feb 2, 2023
    Copy the full SHA
    219c012 View commit details
  31. [skip ci] Publish

     - cozy-mespapiers-lib@19.0.0
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    c56a74a View commit details
  32. fix(harvest-lib): Redirection when close EditAccountModal

    With the new synchronization banner,
    closing the edit modal must redirect to the configuration modal
    Merkur39 committed Feb 2, 2023
    Copy the full SHA
    3b0dc42 View commit details
  33. [skip ci] Publish

     - cozy-harvest-lib@13.0.1
     - cozy-mespapiers-lib@19.0.1
    Cozy Bot committed Feb 2, 2023
    Copy the full SHA
    7b24af5 View commit details

Commits on Feb 3, 2023

  1. fix(harvest): Move variables before use

    And we make sure to use the boolean value
    Merkur39 authored and PolariTOON committed Feb 3, 2023
    Copy the full SHA
    1aea052 View commit details
  2. feat(harvest): Add a maintenance message as a suffix

    Except for the case of disconnected and unknown
    Merkur39 authored and PolariTOON committed Feb 3, 2023
    Copy the full SHA
    fad4f45 View commit details
  3. feat: The sync button must redirect to the connection modal

    if the connector is in error
    Merkur39 authored and PolariTOON committed Feb 3, 2023
    Copy the full SHA
    20ac4f8 View commit details
  4. [skip ci] Publish

     - cozy-harvest-lib@13.1.0
     - cozy-mespapiers-lib@19.0.2
    Cozy Bot committed Feb 3, 2023
    Copy the full SHA
    ddd16c7 View commit details
  5. feat: Update cozy-harvest-lib to 13.1.0 in cozy-mespapiers-lib

    BREAKING CHANGE: `cozy-harvest-lib` must be `>=13.1.0`
    PolariTOON committed Feb 3, 2023
    Copy the full SHA
    62c9176 View commit details
  6. [skip ci] Publish

     - cozy-mespapiers-lib@20.0.0
    Cozy Bot committed Feb 3, 2023
    Copy the full SHA
    0bb473d View commit details

Commits on Feb 6, 2023

  1. fix(SharingBanner): Add custom previewPath

    By default, previewPath is /preview but we needed to be /preview/ into cozy-notes. That's why, we can add previewPath to SharingBanner
    cballevre committed Feb 6, 2023
    Copy the full SHA
    4221243 View commit details
  2. [skip ci] Publish

     - cozy-mespapiers-lib@20.0.1
     - cozy-sharing@6.0.2
     - cozy-playgrounds@1.23.2
    Cozy Bot committed Feb 6, 2023
    Copy the full SHA
    0bcbe0e View commit details
  3. Copy the full SHA
    d163530 View commit details
  4. Copy the full SHA
    79b67b4 View commit details
  5. [skip ci] Publish

     - cozy-mespapiers-lib@20.0.2
    Cozy Bot committed Feb 6, 2023
    Copy the full SHA
    5635dd5 View commit details

Commits on Feb 7, 2023

  1. docs(mespapiers): Add a doc to help the creation

    of a new paper configuration,
    and move Suggestions order section in a separate file
    Merkur39 committed Feb 7, 2023
    Copy the full SHA
    9900133 View commit details
  2. [skip ci] Publish

     - cozy-mespapiers-lib@20.0.3
    Cozy Bot committed Feb 7, 2023
    Copy the full SHA
    99026cf View commit details

Commits on Feb 8, 2023

  1. Copy the full SHA
    94c9e19 View commit details
  2. feat: Add triggers realtime to ConnectionFlow

    With this commit, ConnectionFlow knows to update
    its trigger when it is created or deleted
    Merkur39 committed Feb 8, 2023
    Copy the full SHA
    b46616e View commit details
  3. test: Update other tests following the addition of realtime

    on `io.cozy.triggers` in `ConnectionFlow`
    Merkur39 committed Feb 8, 2023
    Copy the full SHA
    b38be74 View commit details
  4. test: Add tests for handleTriggerCreated & handleTriggerDeleted method

    And add missing attributes to fixtures
    Merkur39 committed Feb 8, 2023
    Copy the full SHA
    bacbcab View commit details
Showing 462 changed files with 14,156 additions and 3,145 deletions.
4 changes: 2 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
* @acezard

# Based on the Paper of the Technical maintainers of 2022
packages/cozy-harvest-lib @doubleface
packages/cozy-harvest-lib @doubleface @Merkur39 @JF-Cozy
packages/cozy-doctypes/ @doubleface
packages/cozy-flags/ @acezard @Ldoppea
packages/cozy-app-publish/ @acezard @doubleface
@@ -13,4 +13,4 @@ packages/eslint-config-cozy-app/ @acezard
packages/renovate-config-cozy/ @doubleface
packages/renovate-config-cozy-libs/ @doubleface
packages/cozy-sharing/ @Ldoppea @acezard
packages/cozy-mespapiers-lib/ @Merkur39 @JF-Cozy @PolariTOON
packages/cozy-mespapiers-lib/ @Merkur39 @JF-Cozy
22 changes: 22 additions & 0 deletions packages/cozy-ci/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.5.2](https://github.com/cozy/cozy-libs/compare/cozy-ci@0.5.1...cozy-ci@0.5.2) (2023-02-10)


### Bug Fixes

* **cozy-ci:** Use token instead password into .transifexrc ([f3739e8](https://github.com/cozy/cozy-libs/commit/f3739e875a19baba2c3032baa5c938397a7ed7b2))





## 0.5.1 (2023-02-08)


### Bug Fixes

* Migrate transifex from client to cli ([d88f57d](https://github.com/cozy/cozy-libs/commit/d88f57db1d2eb3458b64a230c4947c4b1d0f4699))





# 0.5.0 (2023-01-31)


6 changes: 2 additions & 4 deletions packages/cozy-ci/README.md
Original file line number Diff line number Diff line change
@@ -16,9 +16,7 @@ Requires a file named `.transifexrc.tpl` at the root of the project. The usual c

```
[https://www.transifex.com]
hostname = https://www.transifex.com
username = cozy
token =
rest_hostname = https://rest.api.transifex.com
```

Also requires an env var named `TX_PASSWD` which contains the password/token for the account referenced in the `.transifexrc.tpl` file.
Also requires an env var named `TX_TOKEN` which contains the token for your transifex accound in the `.transifexrc.tpl` file.
2 changes: 1 addition & 1 deletion packages/cozy-ci/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-ci",
"version": "0.5.0",
"version": "0.5.2",
"description": "Utility scripts for Cozy Cloud CI integration",
"license": "MIT",
"bin": {
5 changes: 2 additions & 3 deletions packages/cozy-ci/transifex.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash

curl -fsSL https://bootstrap.pypa.io/get-pip.py | python - --user
pip install --user transifex-client==0.12.5
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
install -m0644 .transifexrc.tpl ~/.transifexrc
echo "password = $TX_PASSWD" >> ~/.transifexrc
echo "token = $TX_TOKEN" >> ~/.transifexrc
24 changes: 24 additions & 0 deletions packages/cozy-codemods/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.20.3](https://github.com/cozy/cozy-libs/compare/@cozy/codemods@1.20.2...@cozy/codemods@1.20.3) (2023-03-06)

**Note:** Version bump only for package @cozy/codemods





## [1.20.2](https://github.com/cozy/cozy-libs/compare/@cozy/codemods@1.20.1...@cozy/codemods@1.20.2) (2023-03-02)

**Note:** Version bump only for package @cozy/codemods





## 1.20.1 (2023-02-11)

**Note:** Version bump only for package @cozy/codemods





# 1.20.0 (2023-01-31)


4 changes: 2 additions & 2 deletions packages/cozy-codemods/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cozy/codemods",
"version": "1.20.0",
"version": "1.20.3",
"description": "Codeshifts used inside Cozies",
"main": "index.js",
"repository": "https://github.com/cozy/cozy-libs",
@@ -26,7 +26,7 @@
"jscodeshift": "^0.11.0"
},
"devDependencies": {
"eslint-config-cozy-app": "^5.4.0",
"eslint-config-cozy-app": "^6.1.0",
"jest": "26.6.3",
"jsdoc-to-markdown": "5.0.3"
}
30 changes: 30 additions & 0 deletions packages/cozy-doctypes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.88.2](https://github.com/cozy/cozy-libs/compare/cozy-doctypes@1.88.1...cozy-doctypes@1.88.2) (2023-03-21)

**Note:** Version bump only for package cozy-doctypes





## 1.88.1 (2023-03-16)


### Bug Fixes

* Remove deprecated usage of CC ([88ae9f5](https://github.com/cozy/cozy-libs/commit/88ae9f50bf97ea9b74e243f59ed48e644ac9f366))





# 1.88.0 (2023-02-08)


### Features

* Update label-slugs.js file ([a17b551](https://github.com/cozy/cozy-libs/commit/a17b5511b80a3c81bb7766893be5551a69d89953))





# 1.87.0 (2023-01-31)


4 changes: 2 additions & 2 deletions packages/cozy-doctypes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-doctypes",
"version": "1.87.0",
"version": "1.88.2",
"description": "Definitions for Cozy models",
"main": "src/index.js",
"browser": "dist/index.js",
@@ -21,7 +21,7 @@
"btoa": "1.2.1",
"cozy-client": "13.21.0",
"cozy-client-js": "0.19.0",
"cozy-flags": "^2.11.0",
"cozy-flags": "^2.12.0",
"cozy-stack-client": "13.20.2",
"eslint-plugin-node": "10.0.0",
"fs-extra": "8.1.0",
3 changes: 2 additions & 1 deletion packages/cozy-doctypes/src/Document.js
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ const get = require('lodash/get')
const { parallelMap } = require('./utils')
const CozyClient = require('cozy-client/dist/CozyClient').default
const Q = require('cozy-client/dist/queries/dsl').Q

const log = require('cozy-logger').namespace('Document')
const querystring = require('querystring')

@@ -172,7 +173,7 @@ class Document {
throw new Error('doctype is not defined')
}

const resp = await this.cozyClient.collection(this.doctype).get(id)
const resp = await this.cozyClient.query(Q(this.doctype).getById(id))
return resp.data
}

10 changes: 8 additions & 2 deletions packages/cozy-doctypes/src/File.spec.js
Original file line number Diff line number Diff line change
@@ -37,7 +37,10 @@ describe('File model', () => {
getSpy.mockImplementation(() =>
Promise.resolve({
data: {
path: parentDirPath
path: parentDirPath,
_type: 'io.cozy.files',
id: '1',
_id: 1
}
})
)
@@ -259,7 +262,10 @@ describe('File model', () => {
getSpy.mockImplementation(() =>
Promise.resolve({
data: {
path: '/GrandParent/Parent'
path: '/GrandParent/Parent',
_type: 'io.cozy.files',
id: '1',
_id: '1'
}
})
)
5 changes: 4 additions & 1 deletion packages/cozy-doctypes/src/Folder.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { Q } = require('cozy-client/dist/queries/dsl')
const Application = require('./Application')
const CozyFile = require('./File')

@@ -21,7 +22,9 @@ class CozyFolder extends CozyFile {
}
])

const { data: dirInfos } = await collection.get(dirId)
const { data: dirInfos } = await this.cozyClient.query(
Q(CozyFile.doctype).getById(dirId)
)

return dirInfos
}
8 changes: 4 additions & 4 deletions packages/cozy-doctypes/src/banking/BankAccount.spec.js
Original file line number Diff line number Diff line change
@@ -183,14 +183,14 @@ describe('deleteDuplicateBankAccountsWithNoOperations', () => {

describe('incoherences', () => {
const incoherent = {
institutionLabel: "Caisse d'épargne",
institutionLabel: "Caisse d'Épargne Particuliers",
cozyMetadata: {
createdByApp: 'boursorama'
}
}

const coherent = {
institutionLabel: "Caisse d'épargne",
institutionLabel: "Caisse d'Épargne Particuliers",
cozyMetadata: {
createdByApp: 'caissedepargne1'
}
@@ -204,11 +204,11 @@ describe('incoherences', () => {
}

const noMetadata = {
institutionLabel: "Caisse d'épargne"
institutionLabel: "Caisse d'Épargne Particuliers"
}

const noCreatedByApp = {
institutionLabel: "Caisse d'épargne",
institutionLabel: "Caisse d'Épargne Particuliers",
cozyMetadata: {}
}

Loading