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-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v111.7.0
Choose a base ref
...
head repository: cozy/cozy-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Aug 19, 2024

  1. Copy the full SHA
    d6728f8 View commit details
  2. chore(release): 111.8.0 [skip ci]

    # [111.8.0](v111.7.0...v111.8.0) (2024-08-19)
    
    ### Features
    
    * **MobileStepper:** Add cozy design to MUI export ([d6728f8](d6728f8))
    semantic-release-bot committed Aug 19, 2024
    Copy the full SHA
    af077e4 View commit details

Commits on Aug 28, 2024

  1. Copy the full SHA
    2e462b3 View commit details
  2. chore(release): 111.8.1 [skip ci]

    ## [111.8.1](v111.8.0...v111.8.1) (2024-08-28)
    
    ### Bug Fixes
    
    * **Alert:** Right action margin wasn't correct ([2e462b3](2e462b3))
    semantic-release-bot committed Aug 28, 2024
    Copy the full SHA
    5e10f1a View commit details
  3. chore: Ignore branches with tag

    `skip ci` seems to be ignored...
    JF-Cozy committed Aug 28, 2024
    Copy the full SHA
    97882fe View commit details

Commits on Sep 5, 2024

  1. Copy the full SHA
    366def6 View commit details
  2. Copy the full SHA
    67eaa1a View commit details
  3. Copy the full SHA
    15142cc View commit details
  4. chore(release): 111.9.0 [skip ci]

    # [111.9.0](v111.8.1...v111.9.0) (2024-09-05)
    
    ### Features
    
    * Add markdwon component ([366def6](366def6))
    semantic-release-bot committed Sep 5, 2024
    Copy the full SHA
    e41567e View commit details
  5. Copy the full SHA
    5e2d483 View commit details
  6. chore: Fix som lint warning

    JF-Cozy committed Sep 5, 2024
    Copy the full SHA
    60c5aad View commit details
  7. chore: Disable travis CI

    JF-Cozy committed Sep 5, 2024
    Copy the full SHA
    434d35b View commit details

Commits on Sep 16, 2024

  1. Copy the full SHA
    5c08ef7 View commit details
  2. Copy the full SHA
    2445e51 View commit details
  3. Copy the full SHA
    67e17f2 View commit details
  4. Copy the full SHA
    4898612 View commit details
  5. Copy the full SHA
    8a18c13 View commit details
  6. Copy the full SHA
    5a13cfa View commit details
  7. chore(release): 111.10.0 [skip ci]

    # [111.10.0](v111.9.0...v111.10.0) (2024-09-16)
    
    ### Features
    
    * Add secret in GA deploy script ([67e17f2](67e17f2))
    * **Badge:** Add `success`, `warning`, `info` colors ([2445e51](2445e51))
    * Revert adding token, seems not to be the problem ([4898612](4898612))
    * Try to use GITHUB_TOKEN to deploy ([8a18c13](8a18c13))
    * Update deploy config to avoid Protected branch update failed error ([5a13cfa](5a13cfa))
    semantic-release-bot committed Sep 16, 2024
    Copy the full SHA
    1f5deb0 View commit details

Commits on Sep 18, 2024

  1. Copy the full SHA
    72b6e21 View commit details
  2. chore(release): 111.11.0 [skip ci]

    # [111.11.0](v111.10.0...v111.11.0) (2024-09-18)
    
    ### Features
    
    * Expose `fileToArrayBuffer` from ActionsMenu actions helpers ([72b6e21](72b6e21))
    semantic-release-bot committed Sep 18, 2024
    Copy the full SHA
    e2241f6 View commit details

Commits on Sep 23, 2024

  1. Copy the full SHA
    67e67cd View commit details
  2. chore(release): 111.12.0 [skip ci]

    # [111.12.0](v111.11.0...v111.12.0) (2024-09-23)
    
    ### Features
    
    * Remove `ui.darkmode.enabled` flag condition ([67e67cd](67e67cd))
    semantic-release-bot committed Sep 23, 2024
    Copy the full SHA
    6496a61 View commit details

Commits on Sep 25, 2024

  1. Copy the full SHA
    3b53853 View commit details
  2. Copy the full SHA
    be077bb View commit details
  3. Copy the full SHA
    b58109d View commit details
  4. Copy the full SHA
    09f2bd0 View commit details
  5. fix(I18n): Allow multiple locales extensions in apps by isolating state

    Before this commit, we used a global variable to avoid rendering too often. However, this had the disadvantage that the effects of the hook were only applicable once. Now, each application has its own state, so it's possible to extend the locales of an application several times.
    cballevre committed Sep 25, 2024
    Copy the full SHA
    2bf2645 View commit details
  6. fix(AppTile): Show favorite label also desktop

    The text is shortened at the same time to fit into a small space
    cballevre committed Sep 25, 2024
    Copy the full SHA
    6477abe View commit details
  7. fix(AppTile): Display the name of the developer instead custom property

    The properties are adapted only once in the app that consumes the component, to be less specific.
    
    This is a revert of a part of the PR : #2680
    cballevre committed Sep 25, 2024
    Copy the full SHA
    ff428f8 View commit details
  8. chore(release): 111.13.0 [skip ci]

    # [111.13.0](v111.12.0...v111.13.0) (2024-09-25)
    
    ### Bug Fixes
    
    * **AppTile:** Display the name of the developer instead custom property ([ff428f8](ff428f8))
    * **AppTile:** Show favorite label also desktop ([6477abe](6477abe))
    * **I18n:** Allow multiple locales extensions in apps by isolating state ([2bf2645](2bf2645))
    
    ### Features
    
    * **AppSections:** Rename shortcuts section to additional apps ([3b53853](3b53853))
    semantic-release-bot committed Sep 25, 2024
    Copy the full SHA
    0fe4b1a View commit details

Commits on Oct 3, 2024

  1. feat(BottomSheet): Add hasMinHeightOffset prop

    To include the offset in the min height value
    JF-Cozy committed Oct 3, 2024
    Copy the full SHA
    0e1af92 View commit details
  2. Copy the full SHA
    13f8450 View commit details
  3. feat(CozyDialogs): Add full size

    to be able to open a dialog totally fullscreen in conjunction with
    `fullScreen` prop
    JF-Cozy committed Oct 3, 2024
    Copy the full SHA
    d141068 View commit details
  4. Copy the full SHA
    424ffac View commit details
  5. feat(CozyDialogs): We can now propagates props to inner components

    such divider, dialogActions and dialogContent
    JF-Cozy committed Oct 3, 2024
    Copy the full SHA
    01d9d48 View commit details
  6. Copy the full SHA
    038555f View commit details
  7. chore(release): 111.14.0 [skip ci]

    # [111.14.0](v111.13.0...v111.14.0) (2024-10-03)
    
    ### Features
    
    * **BottomSheet:** Add `hasMinHeightOffset` prop ([0e1af92](0e1af92))
    * **CozyDialogs:** Add `full` size ([d141068](d141068))
    * **CozyDialogs:** We can now propagates props to inner components ([01d9d48](01d9d48))
    * **SearchBar:** Add `auto` size and possibility to control it in the app ([038555f](038555f))
    * **SearchBar:** Add multiple props to improve component management ([13f8450](13f8450))
    semantic-release-bot committed Oct 3, 2024
    Copy the full SHA
    1403985 View commit details

Commits on Oct 9, 2024

  1. feat(Icon): Add stop

    JF-Cozy committed Oct 9, 2024
    Copy the full SHA
    f975a5d View commit details
  2. chore(release): 111.15.0 [skip ci]

    # [111.15.0](v111.14.0...v111.15.0) (2024-10-09)
    
    ### Features
    
    * **Icon:** Add `stop` ([f975a5d](f975a5d))
    semantic-release-bot committed Oct 9, 2024
    Copy the full SHA
    46d59c5 View commit details
  3. Copy the full SHA
    64c6c5e View commit details
  4. chore(release): 111.15.1 [skip ci]

    ## [111.15.1](v111.15.0...v111.15.1) (2024-10-09)
    
    ### Bug Fixes
    
    * Show additional apps only when there ones ([64c6c5e](64c6c5e))
    semantic-release-bot committed Oct 9, 2024
    Copy the full SHA
    fb1b26c View commit details
  5. Copy the full SHA
    f452eca View commit details
  6. Copy the full SHA
    2a61aed View commit details
  7. chore(release): 111.15.2 [skip ci]

    ## [111.15.2](v111.15.1...v111.15.2) (2024-10-09)
    
    ### Bug Fixes
    
    * **BottomSheet:** Add safe area and flagship app height to compute toolbar height ([f452eca](f452eca))
    semantic-release-bot committed Oct 9, 2024
    Copy the full SHA
    49ef21b View commit details

Commits on Oct 10, 2024

  1. Copy the full SHA
    c1eeb5d View commit details
  2. chore(release): 111.16.0 [skip ci]

    # [111.16.0](v111.15.2...v111.16.0) (2024-10-10)
    
    ### Features
    
    * **Icon:** Add `img` tag and `.png` file support ([c1eeb5d](c1eeb5d))
    semantic-release-bot committed Oct 10, 2024
    Copy the full SHA
    cf2abe6 View commit details

Commits on Oct 14, 2024

  1. Copy the full SHA
    b5dd59c View commit details
  2. Copy the full SHA
    eed43c7 View commit details
  3. Copy the full SHA
    33d58b3 View commit details
Showing with 4,343 additions and 15,836 deletions.
  1. +1 −2 .bundlemonrc
  2. +14 −0 .github/actions/build_argos_desktop_cache/action.yml
  3. +14 −0 .github/actions/build_argos_kss_cache/action.yml
  4. +14 −0 .github/actions/build_argos_mobile_cache/action.yml
  5. +18 −0 .github/actions/build_cache/action.yml
  6. +18 −0 .github/actions/build_cache_read/action.yml
  7. +20 −0 .github/actions/setup_argos/action.yml
  8. +21 −0 .github/actions/setup_modules/action.yml
  9. +99 −35 .github/workflows/deploy.yml
  10. +1 −1 .nvmrc
  11. +0 −212 .travis.yml
  12. +401 −0 CHANGELOG.md
  13. +1 −0 assets/icons/illus/file-type-server.svg
  14. +1 −0 assets/icons/ui/cloud-plus-outlined.svg
  15. +1 −0 assets/icons/ui/folder-open.svg
  16. +1 −0 assets/icons/ui/number.svg
  17. +1 −0 assets/icons/ui/server.svg
  18. +1 −0 assets/icons/ui/stop.svg
  19. +1 −0 assets/icons/ui/tab.svg
  20. +1 −0 assets/icons/ui/text.svg
  21. +1 −1 docs/README.md
  22. +1 −1 docs/components/DemoProvider.jsx
  23. +1 −1 docs/dev.md
  24. +7 −3 docs/styleguide.config.js
  25. +2 −6 jest.config.js
  26. +13 −22 package.json
  27. +1 −1 react/ActionsBar/Readme.md
  28. +66 −0 react/ActionsMenu/Actions/addToFavorites.js
  29. +55 −0 react/ActionsMenu/Actions/copyToClipboard.js
  30. +42 −0 react/ActionsMenu/Actions/download.js
  31. +41 −0 react/ActionsMenu/Actions/editAttribute.js
  32. +1 −1 react/ActionsMenu/Actions/helpers.js
  33. +6 −0 react/ActionsMenu/Actions/index.js
  34. +19 −0 react/ActionsMenu/Actions/locales/en.json
  35. +19 −0 react/ActionsMenu/Actions/locales/fr.json
  36. +66 −0 react/ActionsMenu/Actions/removeFromFavorites.js
  37. +52 −0 react/ActionsMenu/Actions/viewInDrive.js
  38. +2 −2 react/ActionsMenu/Readme.md
  39. +12 −1 react/Alert/Readme.md
  40. +63 −75 react/AppIcon/test/AppIcon.spec.js
  41. +0 −49 react/AppIcon/test/__snapshots__/AppIcon.spec.js.snap
  42. +3 −31 react/AppLinker/Readme.md
  43. +0 −25 react/AppLinker/__snapshots__/index.deprecated.spec.jsx.snap
  44. +0 −12 react/AppLinker/__snapshots__/index.spec.jsx.snap
  45. +0 −13 react/AppLinker/expiringMemoize.js
  46. +0 −162 react/AppLinker/index.deprecated.spec.jsx
  47. +8 −144 react/AppLinker/index.jsx
  48. +1 −94 react/AppLinker/index.spec.jsx
  49. +0 −14 react/AppLinker/native.config.js
  50. +8 −8 react/AppSections/Sections.jsx
  51. +0 −1,853 react/AppSections/__snapshots__/index.spec.jsx.snap
  52. +5 −2 react/AppSections/categories.js
  53. +94 −7 react/AppSections/categories.spec.js
  54. +10 −19 react/AppSections/components/AppsSection.spec.jsx
  55. +0 −41 react/AppSections/components/__snapshots__/AppsSection.spec.jsx.snap
  56. +4 −4 react/AppSections/generateI18nConfig.ts
  57. +98 −77 react/AppSections/index.spec.jsx
  58. +2 −2 react/AppSections/locales/en.json
  59. +2 −2 react/AppSections/locales/fr.json
  60. +3 −8 react/AppTile/index.jsx
  61. +1 −1 react/AppTile/locales/fr.json
  62. +20 −8 react/Badge/Readme.md
  63. +18 −1 react/Badge/index.jsx
  64. +1 −1 react/BarContextProvider/index.spec.jsx
  65. +5 −1 react/BottomSheet/BottomSheet.jsx
  66. +2 −0 react/BottomSheet/README.md
  67. +7 −1 react/BottomSheet/helpers.js
  68. +26 −14 react/BottomSheet/helpers.spec.js
  69. +34 −5 react/Buttons/Readme.md
  70. +28 −53 react/ContactsList/ContactRow.spec.js
  71. +0 −69 react/ContactsList/__snapshots__/ContactRow.spec.js.snap
  72. +2 −2 react/ContactsListModal/ContactsListModal.jsx
  73. +7 −3 react/CozyDialogs/ConfirmDialog.jsx
  74. +7 −3 react/CozyDialogs/Dialog.jsx
  75. +4 −1 react/CozyDialogs/FixedActionsDialog.jsx
  76. +5 −2 react/CozyDialogs/FixedDialog.jsx
  77. +7 −3 react/CozyDialogs/IllustrationDialog.jsx
  78. +21 −1 react/CozyDialogs/Readme.md
  79. +1 −1 react/CozyDialogs/dialogPropTypes.js
  80. +4 −1 react/CozyDialogs/useCozyDialog.js
  81. +3 −3 react/DateMonthPicker/index.jsx
  82. +17 −45 react/DateMonthPicker/index.spec.jsx
  83. +207 −0 react/DatePicker/Readme.md
  84. +16 −0 react/DatePicker/helpers.js
  85. +71 −0 react/DatePicker/helpers.spec.js
  86. +289 −0 react/DatePicker/index.jsx
  87. +8 −0 react/DatePicker/locales/en.json
  88. +8 −0 react/DatePicker/locales/fr.json
  89. +10 −0 react/DatePicker/locales/withOwnLocales.jsx
  90. +1 −1 react/Dialog/DialogEffects.spec.tsx
  91. +8 −2 react/Dialog/index.jsx
  92. +28 −5 react/Field/index.spec.js
  93. +9 −4 react/Figure/Figure.spec.jsx
  94. +289 −225 react/Figure/__snapshots__/Figure.spec.jsx.snap
  95. +66 −3 react/FileImageLoader/Readme.md
  96. +3 −3 react/FileImageLoader/index.jsx
  97. +1 −1 react/FileImageLoader/index.spec.jsx
  98. +0 −86 react/FileInput/__snapshots__/index.spec.jsx.snap
  99. +1 −0 react/FileInput/index.jsx
  100. +16 −38 react/FileInput/index.spec.jsx
  101. +1 −1 react/FilePicker/FilePickerBodyItem.jsx
  102. +20 −2 react/Icon/Readme.md
  103. +17 −2 react/Icon/index.jsx
  104. +20 −0 react/IconButton/Readme.md
  105. +12 −0 react/Icons/CloudPlusOutlined.jsx
  106. +23 −0 react/Icons/FileTypeServer.jsx
  107. +12 −0 react/Icons/FolderOpen.jsx
  108. +16 −0 react/Icons/Number.jsx
  109. +16 −0 react/Icons/Server.jsx
  110. +12 −0 react/Icons/Stop.jsx
  111. +16 −0 react/Icons/Tab.jsx
  112. +16 −0 react/Icons/Text.jsx
  113. +0 −11 react/Input/__snapshots__/index.spec.jsx.snap
  114. +0 −12 react/Input/index.spec.jsx
  115. +1 −1 react/ListItem/ListItemFile/SecondaryText.jsx
  116. +71 −0 react/Markdown/Readme.md
  117. +32 −0 react/Markdown/index.jsx
  118. +43 −0 react/MobileStepper/Readme.md
  119. +1 −1 react/MuiCozyTheme/helpers.js
  120. +38 −3 react/MuiCozyTheme/overrides/makeLightNormalOverrides.js
  121. +29 −13 react/NestedSelect/NestedSelect.jsx
  122. +1 −8 react/NestedSelect/NestedSelect.md
  123. +15 −12 react/NestedSelect/NestedSelect.spec.jsx
  124. +4 −1 react/NestedSelect/styles.styl
  125. +3 −6 react/Paywall/Paywall.jsx
  126. +3 −5 react/Paywall/Paywall.spec.jsx
  127. +3 −3 react/Paywall/Readme.md
  128. +90 −41 react/Popup/index.spec.jsx
  129. +14 −0 react/QualificationIconStack/Readme.md
  130. +132 −0 react/QualificationIconStack/index.jsx
  131. +28 −0 react/QualificationModal/Readme.md
  132. +63 −0 react/QualificationModal/helpers.js
  133. +61 −0 react/QualificationModal/helpers.spec.js
  134. +71 −0 react/QualificationModal/index.jsx
  135. +6 −0 react/QualificationModal/locales/en.json
  136. +6 −0 react/QualificationModal/locales/fr.json
  137. +4 −1 react/{Viewer/locales/index.js → QualificationModal/locales/index.jsx}
  138. +56 −3 react/SearchBar/Readme.md
  139. +116 −28 react/SearchBar/index.jsx
  140. +1 −1 react/SearchBar/locales/en.json
  141. +1 −1 react/SearchBar/locales/fr.json
  142. +11 −4 react/SelectBox/test/SelectBox.spec.js
  143. +2 −4 react/ShortcutTile/index.tsx
  144. +4 −3 react/Skeletons/ListItemSkeleton.jsx
  145. +12 −3 react/Skeletons/Readme.md
  146. +53 −13 react/SquareAppIcon/Readme.md
  147. +5 −2 react/SquareAppIcon/index.jsx
  148. +10 −0 react/Typography/index.jsx
  149. +0 −29 react/Viewer/Footer/BottomSheetContent.jsx
  150. +0 −67 react/Viewer/Footer/DownloadButton.jsx
  151. +0 −22 react/Viewer/Footer/FooterActionButtons.jsx
  152. +0 −30 react/Viewer/Footer/FooterActionButtons.spec.jsx
  153. +0 −99 react/Viewer/Footer/FooterContent.jsx
  154. +0 −95 react/Viewer/Footer/ForwardButton.jsx
  155. +0 −87 react/Viewer/Footer/ForwardButton.spec.jsx
  156. +0 −24 react/Viewer/Footer/ForwardOrDownloadButton.jsx
  157. +0 −60 react/Viewer/Footer/Sharing.jsx
  158. +0 −107 react/Viewer/Footer/helpers.js
  159. +0 −77 react/Viewer/Footer/helpers.spec.js
  160. +0 −28 react/Viewer/NoViewer/DownloadButton.jsx
  161. +0 −46 react/Viewer/NoViewer/FileIcon.jsx
  162. +0 −29 react/Viewer/NoViewer/NoViewer.jsx
  163. +0 −44 react/Viewer/NoViewer/NoViewer.spec.jsx
  164. +0 −82 react/Viewer/NoViewer/__snapshots__/NoViewer.spec.jsx.snap
  165. +0 −1 react/Viewer/NoViewer/index.jsx
  166. +0 −66 react/Viewer/Panel/ActionMenuDesktop.jsx
  167. +0 −74 react/Viewer/Panel/ActionMenuMobile.jsx
  168. +0 −104 react/Viewer/Panel/ActionMenuWrapper.jsx
  169. +0 −62 react/Viewer/Panel/Certifications.jsx
  170. +0 −49 react/Viewer/Panel/PanelContent.jsx
  171. +0 −114 react/Viewer/Panel/Qualification.jsx
  172. +0 −85 react/Viewer/Panel/QualificationListItemContact.jsx
  173. +0 −77 react/Viewer/Panel/QualificationListItemDate.jsx
  174. +0 −68 react/Viewer/Panel/QualificationListItemInformation.jsx
  175. +0 −73 react/Viewer/Panel/QualificationListItemInformation.spec.jsx
  176. +0 −61 react/Viewer/Panel/QualificationListItemOther.jsx
  177. +0 −30 react/Viewer/Panel/QualificationListItemText.jsx
  178. +0 −56 react/Viewer/Panel/getPanelBlocks.jsx
  179. +0 −79 react/Viewer/Panel/getPanelBlocks.spec.jsx
  180. +0 −13 react/Viewer/Panel/styles.styl
  181. +0 −352 react/Viewer/Readme.md
  182. +0 −134 react/Viewer/Viewer.jsx
  183. +0 −169 react/Viewer/ViewerContainer.jsx
  184. +0 −3 react/Viewer/ViewerExposer.js
  185. +0 −69 react/Viewer/ViewerInformationsWrapper.jsx
  186. +0 −63 react/Viewer/ViewerInformationsWrapper.spec.jsx
  187. +0 −55 react/Viewer/ViewerWithCustomPanelAndFooter.jsx
  188. +0 −21 react/Viewer/ViewersByFile/AudioViewer.jsx
  189. +0 −39 react/Viewer/ViewersByFile/AudioViewer.spec.jsx
  190. +0 −46 react/Viewer/ViewersByFile/BlankPaperViewer.jsx
  191. +0 −330 react/Viewer/ViewersByFile/ImageViewer.jsx
  192. +0 −70 react/Viewer/ViewersByFile/ImageViewer.spec.jsx
  193. +0 −17 react/Viewer/ViewersByFile/NoNetworkViewer.jsx
  194. +0 −28 react/Viewer/ViewersByFile/OnlyOfficeViewer.jsx
  195. +0 −210 react/Viewer/ViewersByFile/PdfJsViewer.jsx
  196. +0 −160 react/Viewer/ViewersByFile/PdfJsViewer.spec.jsx
  197. +0 −106 react/Viewer/ViewersByFile/PdfMobileViewer.jsx
  198. +0 −76 react/Viewer/ViewersByFile/PdfMobileViewer.spec.jsx
  199. +0 −38 react/Viewer/ViewersByFile/ShortcutViewer.jsx
  200. +0 −32 react/Viewer/ViewersByFile/ShortcutViewer.spec.jsx
  201. +0 −126 react/Viewer/ViewersByFile/TextViewer.jsx
  202. +0 −118 react/Viewer/ViewersByFile/TextViewer.spec.jsx
  203. +0 −13 react/Viewer/ViewersByFile/VideoViewer.jsx
  204. +0 −39 react/Viewer/ViewersByFile/VideoViewer.spec.jsx
  205. +0 −43 react/Viewer/ViewersByFile/__snapshots__/AudioViewer.spec.jsx.snap
  206. +0 −57 react/Viewer/ViewersByFile/__snapshots__/ShortcutViewer.spec.jsx.snap
  207. +0 −100 react/Viewer/ViewersByFile/__snapshots__/TextViewer.spec.jsx.snap
  208. +0 −19 react/Viewer/ViewersByFile/__snapshots__/VideoViewer.spec.jsx.snap
  209. +0 −87 react/Viewer/ViewersByFile/styles.styl
  210. +0 −10 react/Viewer/assets/IlluGenericNewPage.svg
  211. +0 −86 react/Viewer/components/ExpirationAlert.jsx
  212. +0 −40 react/Viewer/components/ExpirationAnnotation.jsx
  213. +0 −13 react/Viewer/components/Footer.jsx
  214. +0 −26 react/Viewer/components/InformationPanel.jsx
  215. +0 −39 react/Viewer/components/Navigation.jsx
  216. +0 −26 react/Viewer/components/PdfToolbarButton.jsx
  217. +0 −90 react/Viewer/components/PrintButton.jsx
  218. +0 −111 react/Viewer/components/Toolbar.jsx
  219. +0 −11 react/Viewer/components/ToolbarButtons.jsx
  220. +0 −61 react/Viewer/components/ToolbarFilePath.jsx
  221. +0 −112 react/Viewer/components/ViewerByFile.jsx
  222. +0 −100 react/Viewer/components/ViewerByFile.spec.jsx
  223. +0 −190 react/Viewer/components/ViewerControls.jsx
  224. +0 −54 react/Viewer/components/ViewerControls.spec.jsx
  225. +0 −17 react/Viewer/components/ViewerSpinner.jsx
  226. +0 −93 react/Viewer/components/styles.styl
  227. +0 −90 react/Viewer/docs/DemoProvider.jsx
  228. +0 −131 react/Viewer/helpers.js
  229. +0 −136 react/Viewer/helpers.spec.js
  230. +0 −93 react/Viewer/hoc/withFileUrl.jsx
  231. +0 −4 react/Viewer/hoc/withViewerLocales.jsx
  232. +0 −26 react/Viewer/hooks/useReferencedContactName.jsx
  233. +0 −12 react/Viewer/index.jsx
  234. +0 −66 react/Viewer/locales/en.json
  235. +0 −66 react/Viewer/locales/fr.json
  236. +0 −12 react/Viewer/proptypes.js
  237. +0 −35 react/Viewer/providers/ActionMenuProvider.jsx
  238. +0 −20 react/Viewer/queries.js
  239. +0 −22 react/Viewer/styles.styl
  240. +0 −6 react/Viewer/vars.styl
  241. +0 −3,711 react/__snapshots__/examples.spec.jsx.snap
  242. +0 −157 react/deprecated/ActionMenu/__snapshots__/index.spec.jsx.snap
  243. +0 −115 react/deprecated/ActionMenu/index.spec.jsx
  244. +0 −88 react/deprecated/Alerter/__snapshots__/alerter.spec.js.snap
  245. +0 −78 react/deprecated/Alerter/alerter.spec.js
  246. +0 −71 react/deprecated/InfosCarrousel/index.spec.jsx
  247. +0 −70 react/deprecated/Modal/index.spec.jsx
  248. +1 −1 react/deprecated/ViewStack/example.jsx
  249. +0 −64 react/deprecated/ViewStack/index.spec.jsx
  250. +0 −67 react/examples.spec.jsx
  251. +140 −0 react/hooks/useClientErrors.jsx
  252. +94 −0 react/hooks/useClientErrors.spec.jsx
  253. +6 −3 react/index.js
  254. +1 −6 react/providers/CozyTheme/DumbCozyTheme.jsx
  255. +3 −9 react/providers/DemoProvider.jsx
  256. 0 react/{Viewer/providers/EncryptedProvider.jsx → providers/Encrypted/index.jsx}
  257. +36 −9 react/providers/I18n/format.jsx
  258. +12 −0 react/providers/I18n/format.spec.jsx
  259. +2 −1 react/providers/I18n/index.jsx
  260. +14 −6 react/providers/I18n/index.spec.jsx
  261. +1 −32 react/providers/I18n/translation.jsx
  262. +37 −0 react/providers/I18n/useExtendI18n.jsx
  263. +4 −4 react/providers/I18n/withLocales.spec.jsx
  264. +1 −1 stylus/components/table.styl
  265. +8 −8 stylus/utilities/border.styl
  266. +4 −4 stylus/utilities/overflow.styl
  267. +3 −7 test/jestsetup.js
  268. +0 −85 test/testFromStyleguidist.js
  269. +217 −1,180 yarn.lock
3 changes: 1 addition & 2 deletions .bundlemonrc
Original file line number Diff line number Diff line change
@@ -10,8 +10,7 @@
"maxPercentIncrease": 10
},
{
"path": "transpiled/react/stylesheet.css",
"maxPercentIncrease": 10
"path": "transpiled/react/stylesheet.css"
}
],
"groups": [
14 changes: 14 additions & 0 deletions .github/actions/build_argos_desktop_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Cache Argos desktop"

runs:
using: "composite"
steps:
- name: Cache Argos desktop
id: cache-argos-desktop
uses: actions/cache@v4
env:
cache-name: cache-argos-desktop
with:
path: |
${{ github.workspace }}/screenshots/reactDesktop
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
14 changes: 14 additions & 0 deletions .github/actions/build_argos_kss_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Cache Argos kss"

runs:
using: "composite"
steps:
- name: Cache Argos kss
id: cache-argos-kss
uses: actions/cache@v4
env:
cache-name: cache-argos-kss
with:
path: |
${{ github.workspace }}/screenshots/kss
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
14 changes: 14 additions & 0 deletions .github/actions/build_argos_mobile_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Cache Argos mobile"

runs:
using: "composite"
steps:
- name: Cache Argos mobile
id: cache-argos-mobile
uses: actions/cache@v4
env:
cache-name: cache-argos-mobile
with:
path: |
${{ github.workspace }}/screenshots/reactMobile
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
18 changes: 18 additions & 0 deletions .github/actions/build_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Cache builds"

runs:
using: "composite"
steps:
- name: Cache builds
id: cache-builds
uses: actions/cache@v4
env:
cache-name: cache-builds
with:
path: |
${{ github.workspace }}/react/Icon/icons-sprites.js
${{ github.workspace }}/react/palette.js
${{ github.workspace }}/transpiled
${{ github.workspace }}/dist
${{ github.workspace }}/build
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
18 changes: 18 additions & 0 deletions .github/actions/build_cache_read/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Read builds cache"

runs:
using: "composite"
steps:
- name: Read builds cache
id: cache-builds-read
uses: actions/cache/restore@v4
env:
cache-name: cache-builds
with:
path: |
${{ github.workspace }}/react/Icon/icons-sprites.js
${{ github.workspace }}/react/palette.js
${{ github.workspace }}/transpiled
${{ github.workspace }}/dist
${{ github.workspace }}/build
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }}
20 changes: 20 additions & 0 deletions .github/actions/setup_argos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Setup Argos"

runs:
using: "composite"
steps:
- uses: ./.github/actions/setup_modules
- name: Cache puppeteer
id: cache-node-modules-puppeteer
uses: actions/cache@v4
env:
cache-name: cache-node-modules-puppeteer
with:
path: |
${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
- name: Argos - Prepare env
if: ${{ steps.cache-node-modules-puppeteer.outputs.cache-hit != 'true' }}
shell: bash
run: |
yarn add puppeteer@"22.15.0" --dev --exact
21 changes: 21 additions & 0 deletions .github/actions/setup_modules/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Setup modules"

runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
- name: Install packages
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
shell: bash
run: yarn install --frozen-lockfile
134 changes: 99 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -8,45 +8,109 @@ env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_modules
prepareArgos:
needs: [install]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
build:
needs: [install]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
- uses: ./.github/actions/setup_modules
- uses: ./.github/actions/build_cache
- name: Lint
run: yarn lint
- name: Generate Sprite and Palette
run: yarn makeSpriteAndPalette
- name: Build JS
run: yarn build
- name: Build CSS
run: yarn build:css:all
- name: Build docs
run: |
yarn build:doc:react
yarn build:doc:kss
test:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_modules
- uses: ./.github/actions/build_cache_read
- name: BundleMon
uses: lironer/bundlemon-action@v1
- name: Tests
run: yarn test
argosDesktop:
needs: [prepareArgos, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_desktop_cache
- name: Argos - Create desktop screenshots
run: |
mkdir -p ./screenshots
yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
argosMobile:
needs: [prepareArgos, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_mobile_cache
- name: Argos - Create mobile screenshots
run: |
mkdir -p ./screenshots
yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
argosKss:
needs: [prepareArgos, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_kss_cache
- name: Argos - Create kss screenshots
run: |
mkdir -p ./screenshots
yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
argosUpload:
needs: [argosDesktop, argosMobile, argosKss]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_argos_desktop_cache
- uses: ./.github/actions/build_argos_mobile_cache
- uses: ./.github/actions/build_argos_kss_cache
- name: Argos - Upload all screenshots
run: |
UUID=$(uuidgen)
yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
deploy:
needs: [argosUpload, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
node-version-file: '.nvmrc'
# - name: Install packages
# run: yarn install --frozen-lockfile
# - name: Lint
# run: yarn lint
# - name: Build JS/CSS/DOCS
# run: yarn build:all
# - name: Tests without snapshots
# run: yarn test:noSnapshots
# - name: Tests snapshots
# run: yarn test:snapshots
# # - name: Bundlemon
# # run: yarn bundlemon
# - name: Argos - Prepare env
# run: |
# yarn add puppeteer@"21.11.0" --dev --exact
# mkdir ./screenshots
# - name: Argos - Create desktop screenshots
# run: yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
# - name: Argos - Create mobile screenshots
# run: yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
# - name: Argos - Create kss screenshots
# run: yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
# - name: Argos - Upload all screenshots
# run: |
# UUID=$(uuidgen)
# yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
# yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
# yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
# - name: Deploy
# if: ${{ github.ref_name == 'master' }}
# run: |
# yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git
# yarn semantic-release
persist-credentials: false
- uses: ./.github/actions/setup_modules
- uses: ./.github/actions/build_cache_read
- name: Deploy
if: ${{ github.ref_name == 'master' }}
run: yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git && yarn semantic-release
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.3
20
Loading