@abyss-project/commons-front-core 20.5.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +18 -0
  3. package/catalog/pages/CookieConsent.tsx +1 -1
  4. package/catalog/pages/DeliveryHistory.tsx +142 -142
  5. package/catalog/pages/MobileShell.tsx +75 -39
  6. package/catalog/pages/Tabs.tsx +24 -0
  7. package/catalog/specs/captures.spec.ts +156 -156
  8. package/catalog/specs/cookie-consent-modal.spec.ts +1 -1
  9. package/catalog/specs/mobile-shell.spec.ts +28 -0
  10. package/catalog/specs/write-capture-index.ts +82 -82
  11. package/dist/{CookieConsentSettings-BBfIxpPu.js → CookieConsentSettings-BzeQZ5tD.js} +223 -224
  12. package/dist/{Surface-D3XLL_3t.js → Surface-t4XKtudZ.js} +320 -715
  13. package/dist/Tabs-DXgqVX6V.js +5276 -0
  14. package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +14 -45
  15. package/dist/components/business/AbyssProjectLinkField/AbyssProjectLinkField.d.ts +48 -0
  16. package/dist/components/business/CookieConsent/containing-block.d.ts +1 -1
  17. package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +7 -2
  18. package/dist/components/business/Deliveries/deliveries.logic.d.ts +31 -0
  19. package/dist/components/business/Deliveries/deliveries.types.d.ts +24 -0
  20. package/dist/components/business/Deliveries/use-missed-run-count.hook.d.ts +8 -0
  21. package/dist/components/business/Deliveries/use-missed-runs.hook.d.ts +13 -0
  22. package/dist/components/business/Deliveries/use-previous-page-edge.hook.d.ts +22 -0
  23. package/dist/components/business/PendingInvitations/PendingInvitations.d.ts +28 -0
  24. package/dist/components/business/index.d.ts +2 -0
  25. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +2 -2
  26. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +2 -2
  27. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +3 -3
  28. package/dist/components/inputs/date-localization.d.ts +3 -3
  29. package/dist/components/layers/Modal/Modal.d.ts +1 -1
  30. package/dist/components/meaning/Avatar/Avatar.d.ts +2 -0
  31. package/dist/components/mobile/ActionBar/ActionBar.d.ts +2 -1
  32. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +8 -2
  33. package/dist/components/mobile/MobileShell/MobileShell.d.ts +2 -1
  34. package/dist/components/mobile/MobileShell/MobileShellActionBar.d.ts +7 -0
  35. package/dist/components/mobile/MobileShell/MobileShellPageFrame.d.ts +13 -0
  36. package/dist/components/mobile/index.d.ts +1 -0
  37. package/dist/components/mobile/mobile-layout.d.ts +8 -0
  38. package/dist/components/mobile/test-support/mobile-test-harness.d.ts +5 -0
  39. package/dist/components/structure/AppShell/AppShell.d.ts +2 -2
  40. package/dist/components/structure/test-support/structure-test-harness.d.ts +1 -3
  41. package/dist/cookie-consent.js +2 -2
  42. package/dist/demo/DemoBanner/DemoBanner.d.ts +1 -1
  43. package/dist/{editors-C9ezTyVX.js → editors-Dt29L0Ux.js} +4074 -4063
  44. package/dist/editors.js +1 -1
  45. package/dist/hooks/use-rich-intl.hook.d.ts +52 -438
  46. package/dist/hooks/use-scroll-overflow-cue.hook.d.ts +8 -2
  47. package/dist/{index-jXwg-vPK.js → index-3hRPEDk5.js} +4 -4
  48. package/dist/{index-PIhlmbry.js → index-BHKOZzg1.js} +1 -1
  49. package/dist/{index-C21JZxdV.js → index-BYWSBoej.js} +3 -3
  50. package/dist/{index-BmWT-YnY.js → index-BYWcX6y7.js} +2 -2
  51. package/dist/{index-CYPRhUy3.js → index-BaS25rA-.js} +2 -2
  52. package/dist/{index-DilASatl.js → index-BczDLUpv.js} +2 -2
  53. package/dist/{index-DTDA_bq_.js → index-Bh0e5MGQ.js} +2 -2
  54. package/dist/{index-CuHChI1V.js → index-C3iToWR_.js} +4 -4
  55. package/dist/{index-B1LrM7Gs.js → index-CNem7pV2.js} +2 -2
  56. package/dist/{index-DrEPqLmj.js → index-Cs5brR68.js} +3 -3
  57. package/dist/{index-av4SSfbk.js → index-D0E9e2bc.js} +2 -2
  58. package/dist/{index-D23exlxA.js → index-D2yo-g20.js} +4 -4
  59. package/dist/{index-owJAgGXX.js → index-DGizXlGr.js} +3 -3
  60. package/dist/{index-C1-1xoEz.js → index-DLZ2_Fhk.js} +3 -3
  61. package/dist/{index-BKCtYW42.js → index-DbBqHu3d.js} +2 -2
  62. package/dist/{index-DYlHW9pm.js → index-Deq0UIQ5.js} +2 -2
  63. package/dist/{index-DpLOnTAQ.js → index-Dg0a5ekJ.js} +2 -2
  64. package/dist/{index-1hcOcpTI.js → index-DvcQvaXv.js} +2 -2
  65. package/dist/{index-grnEwsvE.js → index-ETHoxvZf.js} +2 -2
  66. package/dist/{index-COZaHoYW.js → index-na4ea52T.js} +2 -2
  67. package/dist/{index-BRNbXIRg.js → index-vX7Ua1iM.js} +2 -2
  68. package/dist/index.js +47045 -19954
  69. package/dist/theme/design-media.d.ts +4 -4
  70. package/dist/theme/design-theme.d.ts +1 -5
  71. package/dist/theme/index.d.ts +0 -1
  72. package/dist/translations/en.d.ts +18 -219
  73. package/dist/translations/fr.d.ts +18 -219
  74. package/dist/utils/file.utils.d.ts +2 -2
  75. package/dist/utils/index.d.ts +1 -1
  76. package/dist/utils/notification-target.utils.d.ts +49 -0
  77. package/package.json +8 -16
  78. package/vite.config.ts +6 -8
  79. package/dist/Tabs-B9vRDAXt.js +0 -1991
  80. package/dist/clsx-OuTLNxxd.js +0 -16
  81. package/dist/design-theme-enTIAR9e.js +0 -27703
  82. package/dist/index-C27b790L.js +0 -3304
  83. package/dist/legacy/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +0 -24
  84. package/dist/legacy/components/Avatars/OrganizationAvatar/index.d.ts +0 -2
  85. package/dist/legacy/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +0 -29
  86. package/dist/legacy/components/Avatars/ProjectAvatar/index.d.ts +0 -2
  87. package/dist/legacy/components/Avatars/UserAvatar/UserAvatar.component.d.ts +0 -25
  88. package/dist/legacy/components/Avatars/UserAvatar/constant.d.ts +0 -8
  89. package/dist/legacy/components/Avatars/UserAvatar/index.d.ts +0 -3
  90. package/dist/legacy/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +0 -18
  91. package/dist/legacy/components/Avatars/UserAvatarList/index.d.ts +0 -2
  92. package/dist/legacy/components/Avatars/index.d.ts +0 -4
  93. package/dist/legacy/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +0 -30
  94. package/dist/legacy/components/Banking/AccountTransactions/index.d.ts +0 -2
  95. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +0 -12
  96. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/index.d.ts +0 -1
  97. package/dist/legacy/components/Banking/Inputs/index.d.ts +0 -1
  98. package/dist/legacy/components/Banking/index.d.ts +0 -1
  99. package/dist/legacy/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +0 -36
  100. package/dist/legacy/components/Cards/InternalProjectCard/index.d.ts +0 -2
  101. package/dist/legacy/components/Cards/ProjectCard/ProjectCard.component.d.ts +0 -28
  102. package/dist/legacy/components/Cards/ProjectCard/index.d.ts +0 -2
  103. package/dist/legacy/components/Cards/index.d.ts +0 -2
  104. package/dist/legacy/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +0 -21
  105. package/dist/legacy/components/Charts/AbyssBarChart/index.d.ts +0 -1
  106. package/dist/legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +0 -14
  107. package/dist/legacy/components/Charts/AbyssCashFlowChart/index.d.ts +0 -1
  108. package/dist/legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +0 -33
  109. package/dist/legacy/components/Charts/AbyssLineChart/index.d.ts +0 -1
  110. package/dist/legacy/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +0 -18
  111. package/dist/legacy/components/Charts/AbyssPieChart/index.d.ts +0 -1
  112. package/dist/legacy/components/Charts/index.d.ts +0 -4
  113. package/dist/legacy/components/Charts/useNivoTheme.d.ts +0 -65
  114. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +0 -7
  115. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/index.d.ts +0 -1
  116. package/dist/legacy/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +0 -7
  117. package/dist/legacy/components/Chips/LogTypeChip/index.d.ts +0 -1
  118. package/dist/legacy/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +0 -7
  119. package/dist/legacy/components/Chips/ProjectStatusChip/index.d.ts +0 -1
  120. package/dist/legacy/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +0 -6
  121. package/dist/legacy/components/Chips/WebhookResponseCodeChip/index.d.ts +0 -1
  122. package/dist/legacy/components/Chips/index.d.ts +0 -4
  123. package/dist/legacy/components/CommandPalette/AbyssCommandPalette.d.ts +0 -12
  124. package/dist/legacy/components/CommandPalette/index.d.ts +0 -3
  125. package/dist/legacy/components/CommandPalette/types.d.ts +0 -104
  126. package/dist/legacy/components/CommandPalette/useCommandPaletteHotkey.d.ts +0 -10
  127. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +0 -13
  128. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts +0 -1
  129. package/dist/legacy/components/CompanySearchAutocomplete/index.d.ts +0 -2
  130. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.d.ts +0 -70
  131. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +0 -1
  132. package/dist/legacy/components/Data/AbyssTable/AbyssTableCards.component.d.ts +0 -25
  133. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.d.ts +0 -147
  134. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.spec.d.ts +0 -1
  135. package/dist/legacy/components/Data/AbyssTable/index.d.ts +0 -2
  136. package/dist/legacy/components/Data/index.d.ts +0 -1
  137. package/dist/legacy/components/InfoBox/InfoBox.component.d.ts +0 -6
  138. package/dist/legacy/components/InfoBox/index.d.ts +0 -1
  139. package/dist/legacy/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +0 -4
  140. package/dist/legacy/components/Inputs/AbyssDatePicker/index.d.ts +0 -1
  141. package/dist/legacy/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +0 -4
  142. package/dist/legacy/components/Inputs/AbyssDateTimePicker/index.d.ts +0 -1
  143. package/dist/legacy/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +0 -35
  144. package/dist/legacy/components/Inputs/AbyssNumberField/format.d.ts +0 -35
  145. package/dist/legacy/components/Inputs/AbyssNumberField/format.spec.d.ts +0 -1
  146. package/dist/legacy/components/Inputs/AbyssNumberField/index.d.ts +0 -2
  147. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +0 -21
  148. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/index.d.ts +0 -2
  149. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +0 -1
  150. package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +0 -18
  151. package/dist/legacy/components/Inputs/AbyssSelectOrganization/index.d.ts +0 -2
  152. package/dist/legacy/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +0 -18
  153. package/dist/legacy/components/Inputs/AbyssSelectProject/index.d.ts +0 -2
  154. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.d.ts +0 -17
  155. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.spec.d.ts +0 -1
  156. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.d.ts +0 -14
  157. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.spec.d.ts +0 -1
  158. package/dist/legacy/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +0 -18
  159. package/dist/legacy/components/Inputs/CloudImport/index.d.ts +0 -3
  160. package/dist/legacy/components/Inputs/ColorPalette/ColorPalette.component.d.ts +0 -23
  161. package/dist/legacy/components/Inputs/ColorPalette/index.d.ts +0 -1
  162. package/dist/legacy/components/Inputs/ColorPicker/ColorPicker.component.d.ts +0 -19
  163. package/dist/legacy/components/Inputs/ColorPicker/index.d.ts +0 -1
  164. package/dist/legacy/components/Inputs/ContextSelector/ContextSelector.component.d.ts +0 -68
  165. package/dist/legacy/components/Inputs/ContextSelector/index.d.ts +0 -2
  166. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +0 -60
  167. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +0 -1
  168. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +0 -1
  169. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +0 -1
  170. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -69
  171. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +0 -1
  172. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +0 -1
  173. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +0 -15
  174. package/dist/legacy/components/Inputs/DatePeriodPicker/index.d.ts +0 -2
  175. package/dist/legacy/components/Inputs/DropZone/DropZone.component.d.ts +0 -27
  176. package/dist/legacy/components/Inputs/DropZone/DropZone.component.spec.d.ts +0 -1
  177. package/dist/legacy/components/Inputs/DropZone/index.d.ts +0 -1
  178. package/dist/legacy/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +0 -22
  179. package/dist/legacy/components/Inputs/LanguageFlagLabel/index.d.ts +0 -2
  180. package/dist/legacy/components/Inputs/LanguageFlagLabel/language-flags.d.ts +0 -12
  181. package/dist/legacy/components/Inputs/PasswordInput/PasswordInput.component.d.ts +0 -41
  182. package/dist/legacy/components/Inputs/PasswordInput/index.d.ts +0 -1
  183. package/dist/legacy/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -8
  184. package/dist/legacy/components/Inputs/ProjectCategoryBadge/index.d.ts +0 -1
  185. package/dist/legacy/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -39
  186. package/dist/legacy/components/Inputs/ProjectLinkSelector/index.d.ts +0 -2
  187. package/dist/legacy/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  188. package/dist/legacy/components/Inputs/ProjectTagChip/index.d.ts +0 -1
  189. package/dist/legacy/components/Inputs/index.d.ts +0 -17
  190. package/dist/legacy/components/Invitations/AbyssPendingInvitations.component.d.ts +0 -18
  191. package/dist/legacy/components/Invitations/index.d.ts +0 -2
  192. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +0 -11
  193. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +0 -1
  194. package/dist/legacy/components/Layouts/AbyssBillingPlan/index.d.ts +0 -1
  195. package/dist/legacy/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +0 -13
  196. package/dist/legacy/components/Layouts/AbyssDashboardLayout/index.d.ts +0 -1
  197. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +0 -32
  198. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +0 -1
  199. package/dist/legacy/components/Layouts/AbyssFamilyBanner/index.d.ts +0 -2
  200. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +0 -14
  201. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.spec.d.ts +0 -1
  202. package/dist/legacy/components/Layouts/AbyssHeader/index.d.ts +0 -1
  203. package/dist/legacy/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +0 -25
  204. package/dist/legacy/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +0 -27
  205. package/dist/legacy/components/Layouts/AbyssLayoutProvider/index.d.ts +0 -3
  206. package/dist/legacy/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +0 -3
  207. package/dist/legacy/components/Layouts/AbyssLoadingScreen/index.d.ts +0 -1
  208. package/dist/legacy/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +0 -8
  209. package/dist/legacy/components/Layouts/AbyssSearchBar/index.d.ts +0 -1
  210. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +0 -35
  211. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +0 -9
  212. package/dist/legacy/components/Layouts/AbyssSidebar/index.d.ts +0 -3
  213. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +0 -8
  214. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +0 -1
  215. package/dist/legacy/components/Layouts/AbyssThemeToggle/index.d.ts +0 -1
  216. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +0 -19
  217. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +0 -11
  218. package/dist/legacy/components/Layouts/DashboardLayout/index.d.ts +0 -2
  219. package/dist/legacy/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +0 -7
  220. package/dist/legacy/components/Layouts/LoadingLayout/index.d.ts +0 -1
  221. package/dist/legacy/components/Layouts/MainLayout/MainLayout.layout.d.ts +0 -9
  222. package/dist/legacy/components/Layouts/MainLayout/index.d.ts +0 -1
  223. package/dist/legacy/components/Layouts/index.d.ts +0 -12
  224. package/dist/legacy/components/Modals/AbyssModal/AbyssModal.component.d.ts +0 -18
  225. package/dist/legacy/components/Modals/AbyssModal/index.d.ts +0 -1
  226. package/dist/legacy/components/Modals/ConfirmModal/ConfirmModal.d.ts +0 -22
  227. package/dist/legacy/components/Modals/ConfirmModal/index.d.ts +0 -2
  228. package/dist/legacy/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +0 -15
  229. package/dist/legacy/components/Modals/ImportFromCloudModal/index.d.ts +0 -1
  230. package/dist/legacy/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +0 -12
  231. package/dist/legacy/components/Modals/QRCodeModal/index.d.ts +0 -1
  232. package/dist/legacy/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -12
  233. package/dist/legacy/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -38
  234. package/dist/legacy/components/Modals/UserSettingsModal/index.d.ts +0 -2
  235. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +0 -1
  236. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.links.spec.d.ts +0 -1
  237. package/dist/legacy/components/Modals/index.d.ts +0 -6
  238. package/dist/legacy/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +0 -53
  239. package/dist/legacy/components/QuotaGauge/bubble-placement.d.ts +0 -47
  240. package/dist/legacy/components/QuotaGauge/bubble-placement.spec.d.ts +0 -1
  241. package/dist/legacy/components/QuotaGauge/gauge-highlight.spec.d.ts +0 -1
  242. package/dist/legacy/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +0 -1
  243. package/dist/legacy/components/QuotaGauge/gauge-segments.d.ts +0 -80
  244. package/dist/legacy/components/QuotaGauge/gauge-segments.spec.d.ts +0 -1
  245. package/dist/legacy/components/QuotaGauge/index.d.ts +0 -6
  246. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +0 -83
  247. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +0 -1
  248. package/dist/legacy/components/QuotaOffer/index.d.ts +0 -4
  249. package/dist/legacy/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +0 -1
  250. package/dist/legacy/components/QuotaReached/QuotaReachedDialog.component.d.ts +0 -15
  251. package/dist/legacy/components/QuotaReached/index.d.ts +0 -3
  252. package/dist/legacy/components/QuotaReached/quota-service-meta.d.ts +0 -31
  253. package/dist/legacy/components/Spotlight/InternalProjectCard/InternalProjectCard.component.d.ts +0 -15
  254. package/dist/legacy/components/Spotlight/InternalProjectCard/index.d.ts +0 -1
  255. package/dist/legacy/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +0 -20
  256. package/dist/legacy/components/Spotlight/ProjectCard/index.d.ts +0 -1
  257. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -7
  258. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/index.d.ts +0 -1
  259. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -10
  260. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +0 -1
  261. package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +0 -2
  262. package/dist/legacy/components/Spotlight/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  263. package/dist/legacy/components/Spotlight/ProjectTagChip/index.d.ts +0 -1
  264. package/dist/legacy/components/Spotlight/index.d.ts +0 -5
  265. package/dist/legacy/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +0 -12
  266. package/dist/legacy/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +0 -39
  267. package/dist/legacy/components/Utils/AbyssDrawer/index.d.ts +0 -2
  268. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +0 -10
  269. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.spec.d.ts +0 -1
  270. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +0 -11
  271. package/dist/legacy/components/Utils/AbyssErrorPage/index.d.ts +0 -3
  272. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +0 -6
  273. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +0 -1
  274. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/index.d.ts +0 -1
  275. package/dist/legacy/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +0 -11
  276. package/dist/legacy/components/Utils/AbyssHeaderTitle/index.d.ts +0 -1
  277. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +0 -43
  278. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +0 -1
  279. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +0 -15
  280. package/dist/legacy/components/Utils/AbyssLayoutMenu/index.d.ts +0 -3
  281. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +0 -36
  282. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.spec.d.ts +0 -1
  283. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +0 -30
  284. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +0 -1
  285. package/dist/legacy/components/Utils/AbyssLayoutNotifications/index.d.ts +0 -4
  286. package/dist/legacy/components/Utils/ImportButton/ImportButton.component.d.ts +0 -19
  287. package/dist/legacy/components/Utils/ImportButton/index.d.ts +0 -2
  288. package/dist/legacy/components/Utils/WaterParticles/WaterParticles.component.d.ts +0 -14
  289. package/dist/legacy/components/Utils/WaterParticles/index.d.ts +0 -1
  290. package/dist/legacy/components/Utils/index.d.ts +0 -10
  291. package/dist/legacy/components/aria-labels-i18n.spec.d.ts +0 -1
  292. package/dist/legacy/components/commons-labels-i18n.spec.d.ts +0 -1
  293. package/dist/legacy/components/index.d.ts +0 -18
  294. package/dist/legacy/components/theme-mode-colors.spec.d.ts +0 -1
  295. package/dist/legacy/fonts.css +0 -7
  296. package/dist/legacy/hooks/confirm-modal/confirm-modal.context.d.ts +0 -10
  297. package/dist/legacy/hooks/confirm-modal/index.d.ts +0 -1
  298. package/dist/legacy/hooks/index.d.ts +0 -1
  299. package/dist/legacy/index.d.ts +0 -4
  300. package/dist/legacy/legacy-editors-removed.spec.d.ts +0 -1
  301. package/dist/legacy/legacy-support-removed.spec.d.ts +0 -1
  302. package/dist/legacy/legacy-under-new-theme.spec.d.ts +0 -1
  303. package/dist/legacy/theme/augmentation.d.ts +0 -84
  304. package/dist/legacy/theme/components/buttons.d.ts +0 -35
  305. package/dist/legacy/theme/components/data-display.d.ts +0 -4
  306. package/dist/legacy/theme/components/index.d.ts +0 -2
  307. package/dist/legacy/theme/components/inputs.d.ts +0 -4
  308. package/dist/legacy/theme/components/inputs.spec.d.ts +0 -1
  309. package/dist/legacy/theme/components/navigation.d.ts +0 -4
  310. package/dist/legacy/theme/components/surfaces.d.ts +0 -4
  311. package/dist/legacy/theme/core-breakpoints-under-legacy-theme.spec.d.ts +0 -1
  312. package/dist/legacy/theme/create-theme.d.ts +0 -9
  313. package/dist/legacy/theme/create-theme.spec.d.ts +0 -1
  314. package/dist/legacy/theme/disabled-contrast.spec.d.ts +0 -1
  315. package/dist/legacy/theme/index.d.ts +0 -23
  316. package/dist/legacy/theme/legacy-tokens.d.ts +0 -3
  317. package/dist/legacy/theme/new-components-under-legacy-theme.spec.d.ts +0 -1
  318. package/dist/legacy/theme/palettes/common.d.ts +0 -74
  319. package/dist/legacy/theme/palettes/dark.d.ts +0 -67
  320. package/dist/legacy/theme/palettes/light.d.ts +0 -67
  321. package/dist/legacy/theme/tokens/animations.d.ts +0 -33
  322. package/dist/legacy/theme/tokens/borders.d.ts +0 -14
  323. package/dist/legacy/theme/tokens/colors.d.ts +0 -129
  324. package/dist/legacy/theme/tokens/shadows.d.ts +0 -53
  325. package/dist/legacy/theme/tokens/transitions.d.ts +0 -25
  326. package/dist/legacy/theme/tokens/typography.d.ts +0 -99
  327. package/dist/legacy/utils/billing-colors.utils.d.ts +0 -7
  328. package/dist/legacy/utils/color.utils.d.ts +0 -11
  329. package/dist/legacy/utils/file.utils.d.ts +0 -2
  330. package/dist/legacy/utils/index.d.ts +0 -3
  331. package/dist/legacy.d.ts +0 -2
  332. package/dist/legacy.js +0 -16282
  333. package/dist/theme/DesignCssVariables.d.ts +0 -12
  334. package/dist/theme/DesignCssVariables.spec.d.ts +0 -1
  335. package/dist/utils/share-notification.utils.d.ts +0 -10
  336. /package/dist/{legacy/components/Cards/project-card-date.spec.d.ts → components/business/AbyssProjectLinkField/AbyssProjectLinkField.spec.d.ts} +0 -0
  337. /package/dist/{legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts → components/business/PendingInvitations/PendingInvitations.spec.d.ts} +0 -0
  338. /package/dist/{legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts → components/mobile/MobileShell/MobileShellActionBar.spec.d.ts} +0 -0
  339. /package/dist/{legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts → utils/notification-target.utils.spec.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog — @abyss-project/commons-front-core
2
2
 
3
+ ## 21.0.0
4
+
5
+ Card #286 (sous-projet 6, closing of the design system).
6
+
7
+ Breaking:
8
+
9
+ - `legacy/` is removed, with the `./legacy` and `./legacy/fonts.css` entries of `exports` and `typesVersions`: `createAbyssTheme`, `theme.abyss`, the `Abyss*` components and the Lexend font are gone. The dependency `@fontsource-variable/lexend` is dropped. An application still on `/legacy` (Odyssey, pinned to `^20.1.0`) stays on 20.
10
+ - `DesignCssVariables` is removed from the root (it served a host still under the legacy provider; none is left).
11
+ - Translation blocks only the legacy components read are removed (FR and EN): `abyss-banking`, `company-search-autocomplete`, `inputs`, `quota-phrase`, `commons.scope`, `notifications.sound`, `project.spotlight`, `quota-gauge.segment`, `table.details`. Blocks an application or the core still reads stay.
12
+ - `handleShareNotificationNavigation` (`utils/share-notification.utils`) is removed: `notificationTargetOf` (below) gives the destination of a notification without navigating.
13
+ - `@abyss-project/main` 36.1.0 exact, as dependency and peer (the workspace pin is frozen at publication); dependency `@abyss-project/storage` `^6.0.0`; peer `@abyss-project/flow` `^2.0.0`. New dependency `@formatjs/icu-messageformat-parser` (the parser react-intl already brings, kept external: one copy per app).
14
+ - `InfectedDownloadWarningModal`: `infected-download-warning-modal` now marks the body of the window (the file name and the phrase to type back); the title, `infected-download-cancel` and `infected-download-confirm` are outside it, in the header and the footer: a host that looked them up inside it must look them up in the page or the dialog.
15
+
16
+ Added:
17
+
18
+ - `AVATAR_SMALL_SIZE` (`meaning/Avatar`, 24 px), next to `AVATAR_DEFAULT_SIZE`: the side of an avatar inside a field row or a list option. `AbyssProjectLinkField` takes it instead of a spacing step.
19
+ - `MobileShellActionBar({ actions })`: the action bar of a page of a `MobileShell`. Inside the shell it is portalled into a slot of the page frame, sticky against the tab bar even on a short page, full width, without a second bottom inset; outside a shell it renders an `ActionBar` in place. `MobileShell` now wraps its `children` in that frame (a flex column whose page grows to the height of the content area), with or without a bar. A page of the shell is therefore a flex item of a column that only has a minimum height: a `height: 100%` set by the page no longer resolves, take `flex: 1` (or `minHeight: 100%`).
20
+ - `PendingInvitations` (`components/business`): the invitations of a user to a content of a service, accept and decline per invitation (busy per row, a failure handed back to the host). Each invitation carries its `serviceName`. New keys `pending-invitations.*` (FR and EN); exported types `PendingInvitation`, `PendingInvitationsProps`.
21
+ - `AbyssProjectLinkField` (`components/business`): the organization and project picker that links a content to a project (own projects and shared ones). New keys `project-link-field.*` (FR and EN); exported types `AbyssProjectLinkFieldProps`, `AbyssProjectLinkOrganization`, `AbyssProjectLinkProject`, `AbyssProjectLinkProjects`.
22
+ - `utils/notification-target.utils`: `notificationTargetOf(notification, { invitationsPath, serviceTarget? })` (a shared content leads to its `contentUrl`, an invitation to `invitationsPath`, anything else to the host's `serviceTarget`), `isInvitationNotificationContentType(contentType)`, `notificationLinkOf(link)`, `fillsEveryMessageArgument(message, values)`, `messageArgumentNames(message)`. Against the copies they replace in the applications:
23
+ - only `http:` and `https:` links are followed (a `javascript:` URL no longer becomes a link); a URL of the current origin becomes its route, another origin stays absolute, a root-relative `/x` is a route;
24
+ - the main front no longer navigates while its notifications list renders: a content shared from another origin used to send the page away as soon as the list loaded;
25
+ - the arguments of a message are read from the tree of `@formatjs/icu-messageformat-parser`, the parser react-intl formats with (`plural`, `select`, `selectordinal` branches, `number`/`date`/`time` styles, rich text tags): a one-word branch such as `other {fichiers}` is no longer taken for an argument, a tag name such as `b` in `<b>{name}</b>` is not one either while the arguments inside the tag are; a message the parser refuses is never filled.
26
+
27
+ Changed:
28
+
29
+ - `InfectedDownloadWarningModal` (opened by `useInfectedDownloadGuard`, API unchanged) is drawn on the core's `Modal` instead of the legacy `AbyssModal`: the title and the warning sit in the modal header, which gains its close button; « Annuler » is an outlined button; the window takes the `bg.surface` of the tokens (no gradient nor tinted border); below 768 px it opens as a bottom sheet. The file label is the ICU key `infected-download.file-label` (FR `Fichier : {name}`, with the non-breaking space before the colon, EN `File: {name}`), the name in bold. Statuses, the phrase to type back and the other keys are unchanged; the test ids moved, see Breaking.
30
+ - Touch-target and label overrides that only served an application under the legacy theme are removed (`FilterBar`, `PageState`, `Callout`, `DataTableMobile`, `DateRangeField`, `CookieConsent*`, `RichSelect`, `FormField`, `ComboboxField`, `Menu`): under `AbyssThemeProvider` the theme draws the same 44 px targets, labels and surfaces. A host on another MUI theme would lose them.
31
+ - `NotificationsMenu` below 768 px: the bottom sheet has a « Fermer » button (EN « Close »), new key `ds.structure.notifications-menu.close`.
32
+ - `MobileShell` header: the back and actions columns never shrink below their content (a long title is cut between them) and are spaced by 16 px; the toasts sit above the tab bar, safe area included (`useElementToastClearance` on the tab bar).
33
+ - `ScheduledTasks`, runs of a task: new optional `listMissedRuns(id, { from?, to? })`, the runs that were due and never started for the window of the runs on screen (from the oldest to the newest run of the page, open at the top of the first page and at the bottom of the last one, the period filter bounding them). They are drawn among the runs at their scheduled time as « Run manqué » (EN « Missed run », the `highlight` tone), with no duration, no code and no detail, only while no outcome or request id filter narrows the list; a task with missed runs and no run shows them instead of the empty state; a failed read says so above the list and keeps the runs. Without the binding, nothing changes. New keys `deliveries.run-status.missed` and `deliveries.tasks.runs.missed-failed` (FR and EN); new exported types `ScheduledTaskMissedRun`, `ScheduledTaskMissedRunsQuery`. New optional `countMissedRuns(id, { from?, to? }): Promise<number>`: how many missed runs the task has in the period of the filters, whatever the page; while the missed runs are drawn the footer's total is Flow's count of runs plus that number (Flow's alone without it, while it is read, when it fails, or under an outcome or request id filter).
34
+ - `ActionBar` in the content of a `MobileShell` (card #286, sous-projet 5): its bottom edge no longer adds `env(safe-area-inset-bottom)`, which the shell's tab bar right under it already carries (the inset counted twice and left a dead band under the buttons). `MobileShell` tells it through an internal context; an `ActionBar` on a screen of its own keeps the inset.
35
+ - `BottomSheet`: new optional `footer`, kept in sight under the scrolling content. `Modal` below 768 px puts its `actions` there: the main action of a long sheet (filters, a form) is no longer below the fold (card #286, sous-projet 5).
36
+ - `Tabs`: the fade at the end of the row is as wide as the tabs left beyond it, 32 px at most (it was always 32 px). A row that overflows by 20 px (the four tabs of a Reflex service on a phone) no longer fades the end of a tab that is still shown. New hook `useScrollHiddenBeyondEnd(ref, axis, content?)` (distance left beyond the end, in px); `useScrollOverflowCue` is unchanged.
37
+
3
38
  ## 20.5.0
4
39
 
5
40
  Card #792 (P5 L3c, after the final review: Monitor's tasks, webhooks and history pages carried two titles).
@@ -26,6 +61,10 @@ Also card #798, merged on develop before this release:
26
61
 
27
62
  - `InvoiceDetailView`: the unit printed next to a line quantity is read from the host's `billing.unit.*` entry with the quantity as `count`, so a host whose entries are ICU plural messages shows « 1 invocation » / « 1 250 invocations » instead of the raw message. A host whose entries are plain strings is unaffected: the extra value is ignored.
28
63
 
64
+ Card #680 (a scan that could not run).
65
+
66
+ - `ScanBadge`: the error verdict reads « Analyse impossible » (EN « Scan failed », unchanged) instead of « Analyse en erreur ». The `ds.meaning.scan.error` key is the single source of the label; a host with its own copy of the text (`ds-storage-files.scan.error` in the main front) follows.
67
+
29
68
  ## 20.3.0
30
69
 
31
70
  Card #788 (toasts above the fixed bottom bars).
package/README.md CHANGED
@@ -97,6 +97,24 @@ export const buildRumOptions = () =>
97
97
 
98
98
  `ABYSS_MAIN_RUM_SESSION_ROUTE` (`/org/:orgId/project/:projectId/application/:applicationId/monitor/rum/sessions/:sessionId`) est la seule source du chemin de la page d'une session dans le front d'abyss-main, qui le monte. `abyssMainRumSessionPath({ orgId, projectId, applicationId }, sessionId, t?)` le remplit (id de session encodé) et ajoute `?t=` en secondes entières, jamais négatif.
99
99
 
100
+ ## Notifications
101
+
102
+ Les hooks de notifications des fronts (`use-<app>-notifications`) remplissent les `NotificationItem` de `NotificationsMenu` avec deux utilitaires communs (`src/utils/notification-target.utils.ts`).
103
+
104
+ ### Destination : `notificationTargetOf(notification, { invitationsPath, serviceTarget? })`
105
+
106
+ Donne le `href` d'une notification (`{ contentType?, data? }`), sans jamais naviguer :
107
+
108
+ - **contenu partagé** (`CONTENT_SHARED`) : son `data.contentUrl`, en route de l'application quand il pointe vers l'origine courante, en adresse absolue sinon ; aucune destination quand il manque ou n'est pas une adresse web ;
109
+ - **invitation** (`isInvitationNotificationContentType` : `INVITATION_CONTENT_SHARE`, `INVITATION_ORG_MEMBER`, `INVITATION_PROJECT_ACCESS`) : `invitationsPath`, une route de l'application (front principal) ou l'adresse absolue de la page des invitations du front principal (satellites) ;
110
+ - **toute autre** : `serviceTarget(notification)`, le routage propre à l'application (projet, formulaire, connexion bancaire…) ; aucune destination sans lui.
111
+
112
+ `notificationLinkOf(link)` est la règle des liens portés : une route (`/chemin`) reste telle quelle, une adresse `http(s)` de l'origine courante devient sa route, une adresse d'une autre origine reste absolue ; tout le reste (`javascript:`, `mailto:`, `//hôte`, chemin relatif, texte quelconque) ne mène nulle part, un champ stocké en base ne décide ni d'exécuter du code ni de quitter le web.
113
+
114
+ ### Texte du catalogue : `fillsEveryMessageArgument(message, values)`
115
+
116
+ Vrai quand `values` (propriétés propres) remplit chaque argument du message ICU : sinon le texte afficherait `{nom}`, et le hook retombe sur le texte que la notification porte. Les arguments sont ceux que lit ICU (`{nom}`, `{n, number, …}`, `{n, plural, …}` et les arguments de ses branches) : le texte d'une branche (`other {fichiers}`) n'en est pas un, les accolades entre apostrophes (`'{'`) non plus. Un message mal formé n'est jamais rempli. `messageArgumentNames(message)` rend l'ensemble de ces noms, `undefined` pour un message mal formé.
117
+
100
118
  ## Changements visibles
101
119
 
102
120
  ### 10.1.0
@@ -21,7 +21,7 @@ enum SurfaceEffect {
21
21
  }
22
22
 
23
23
  const SURFACE_STYLES: Record<SurfaceEffect, Record<string, string>> = {
24
- // The legacy theme's dialog paper (frosted glass).
24
+ // A frosted-glass dialog paper, as a host theme may draw one.
25
25
  [SurfaceEffect.BackdropFilter]: { backdropFilter: 'blur(12px)' },
26
26
  [SurfaceEffect.Filter]: { filter: 'drop-shadow(0 2px 4px rgba(0,0,0,0.3))' },
27
27
  };
@@ -1,142 +1,142 @@
1
- import { DeliveryHistory } from '../../src/components/business/Deliveries/DeliveryHistory.component';
2
- import type {
3
- DeliveryArchiveActions,
4
- DeliveryHistoryProps,
5
- } from '../../src/components/business/Deliveries/deliveries.types';
6
- import {
7
- archivedDay,
8
- archivedDelivery,
9
- daysAgo,
10
- delivery,
11
- deliveryStatus,
12
- failedDelivery,
13
- page,
14
- rehydratedDelivery,
15
- rehydrationJob,
16
- subscription,
17
- } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
18
- import { Example, LastEvent, Showcase, useEventLog } from '../frame';
19
-
20
- const POPULATED = [
21
- delivery(),
22
- failedDelivery(),
23
- delivery({
24
- id: 'delivery-3',
25
- eventKey: 'event-3',
26
- deliveryId: 'sub-1:event-3',
27
- status: deliveryStatus('RETRYING'),
28
- attemptCount: 2,
29
- lastResponseCode: 502,
30
- lastResponseBody: null,
31
- lastError: 'HTTP 502',
32
- deliveredAt: null,
33
- nextAttemptAt: new Date('2026-11-03T10:15:00Z'),
34
- }),
35
- ];
36
-
37
- /** Past 30 days: one row archived, one brought back online. */
38
- const WITH_ARCHIVE = [...POPULATED, archivedDelivery(), rehydratedDelivery()];
39
-
40
- const ARCHIVE_JOB = rehydrationJob({
41
- rangeStart: daysAgo(41),
42
- rangeEnd: daysAgo(39),
43
- effectiveExpiresAt: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000),
44
- });
45
-
46
- export const DeliveryHistoryPage = () => {
47
- const { log } = useEventLog();
48
- const archive: DeliveryArchiveActions = {
49
- listDays: async () => [
50
- archivedDay({ dayValue: '2026-09-20' }),
51
- archivedDay({ dayValue: '2026-09-21', rowCount: 42 }),
52
- ],
53
- listRehydrations: async () => ({ jobs: [ARCHIVE_JOB], truncated: false }),
54
- estimate: async () => ({
55
- admittedDays: ['2026-09-20'],
56
- archiveBytes: 3 * 1024 * 1024,
57
- expectedRows: 128,
58
- skippedDays: [],
59
- maxLeaseDays: 30,
60
- }),
61
- rehydrate: async (body) => {
62
- log(`remettre en ligne ${body.rangeStart} - ${body.rangeEnd}`);
63
- return { job: ARCHIVE_JOB, skippedDays: [] };
64
- },
65
- extend: async (jobId) => {
66
- log(`prolonger ${jobId}`);
67
- return ARCHIVE_JOB;
68
- },
69
- release: async (jobId) => {
70
- log(`libérer ${jobId}`);
71
- return ARCHIVE_JOB;
72
- },
73
- purge: async (body) => {
74
- log(`supprimer de l'archive ${body.from} - ${body.to}`);
75
- return { purgedDays: [body.from], deletedRows: 0, releasedJobs: 0 };
76
- },
77
- };
78
- const base = (list: DeliveryHistoryProps['list']): DeliveryHistoryProps => ({
79
- list,
80
- get: async (id) => WITH_ARCHIVE.find((row) => row.id === id) ?? delivery(),
81
- replayDelivery: async (id) => log(`rejouer ${id}`),
82
- canReplay: true,
83
- archive,
84
- canManageArchive: true,
85
- canPurgeArchive: true,
86
- getSubscription: async () =>
87
- subscription({
88
- url: 'https://ops.example.com/webhooks/abyss/monitor-events/production',
89
- eventTypes: ['MONITOR_EVENT', 'MONITOR_SENTINEL'],
90
- }),
91
- flowUrl: 'https://flow.abyss.example/deliveries',
92
- });
93
- return (
94
- <Showcase
95
- family="Métier"
96
- name="DeliveryHistory"
97
- description="L'historique des livraisons d'un abonnement (URL et événements sous le titre) : filtre de statut, détail en panneau (données de l'événement, en-têtes envoyés, réponse, déroulé), rejeu d'une livraison terminée (refusé au-delà de 30 jours) et section Archive : jours archivés, remises en ligne, suppression."
98
- >
99
- <Example title="Peuplé" maxWidth={1100}>
100
- <DeliveryHistory {...base(async () => page(POPULATED))} />
101
- </Example>
102
- <Example
103
- title="Avec une livraison archivée et une remise en ligne"
104
- maxWidth={1100}
105
- >
106
- <DeliveryHistory {...base(async () => page(WITH_ARCHIVE))} />
107
- </Example>
108
- <Example title="Archive en lecture seule" maxWidth={1100}>
109
- <DeliveryHistory
110
- {...base(async () => page(WITH_ARCHIVE))}
111
- canManageArchive={false}
112
- canPurgeArchive={false}
113
- />
114
- </Example>
115
- <Example title="Vide" maxWidth={1100}>
116
- <DeliveryHistory {...base(async () => page([]))} />
117
- </Example>
118
- <Example title="En cours de chargement" maxWidth={1100}>
119
- <DeliveryHistory {...base(() => new Promise(() => undefined))} />
120
- </Example>
121
- <Example title="Le chargement a échoué" maxWidth={1100}>
122
- <DeliveryHistory
123
- {...base(() => Promise.reject(new Error('Flow indisponible')))}
124
- />
125
- </Example>
126
- <Example title="Sans abonnement ni lien vers Flow" maxWidth={1100}>
127
- <DeliveryHistory
128
- {...base(async () => page(POPULATED))}
129
- getSubscription={undefined}
130
- flowUrl={undefined}
131
- />
132
- </Example>
133
- <Example title="Sans droit de rejeu" maxWidth={1100}>
134
- <DeliveryHistory
135
- {...base(async () => page(POPULATED))}
136
- canReplay={false}
137
- />
138
- </Example>
139
- <LastEvent />
140
- </Showcase>
141
- );
142
- };
1
+ import { DeliveryHistory } from '../../src/components/business/Deliveries/DeliveryHistory.component';
2
+ import type {
3
+ DeliveryArchiveActions,
4
+ DeliveryHistoryProps,
5
+ } from '../../src/components/business/Deliveries/deliveries.types';
6
+ import {
7
+ archivedDay,
8
+ archivedDelivery,
9
+ daysAgo,
10
+ delivery,
11
+ deliveryStatus,
12
+ failedDelivery,
13
+ page,
14
+ rehydratedDelivery,
15
+ rehydrationJob,
16
+ subscription,
17
+ } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
18
+ import { Example, LastEvent, Showcase, useEventLog } from '../frame';
19
+
20
+ const POPULATED = [
21
+ delivery(),
22
+ failedDelivery(),
23
+ delivery({
24
+ id: 'delivery-3',
25
+ eventKey: 'event-3',
26
+ deliveryId: 'sub-1:event-3',
27
+ status: deliveryStatus('RETRYING'),
28
+ attemptCount: 2,
29
+ lastResponseCode: 502,
30
+ lastResponseBody: null,
31
+ lastError: 'HTTP 502',
32
+ deliveredAt: null,
33
+ nextAttemptAt: new Date('2026-11-03T10:15:00Z'),
34
+ }),
35
+ ];
36
+
37
+ /** Past 30 days: one row archived, one brought back online. */
38
+ const WITH_ARCHIVE = [...POPULATED, archivedDelivery(), rehydratedDelivery()];
39
+
40
+ const ARCHIVE_JOB = rehydrationJob({
41
+ rangeStart: daysAgo(41),
42
+ rangeEnd: daysAgo(39),
43
+ effectiveExpiresAt: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000),
44
+ });
45
+
46
+ export const DeliveryHistoryPage = () => {
47
+ const { log } = useEventLog();
48
+ const archive: DeliveryArchiveActions = {
49
+ listDays: async () => [
50
+ archivedDay({ dayValue: '2026-09-20' }),
51
+ archivedDay({ dayValue: '2026-09-21', rowCount: 42 }),
52
+ ],
53
+ listRehydrations: async () => ({ jobs: [ARCHIVE_JOB], truncated: false }),
54
+ estimate: async () => ({
55
+ admittedDays: ['2026-09-20'],
56
+ archiveBytes: 3 * 1024 * 1024,
57
+ expectedRows: 128,
58
+ skippedDays: [],
59
+ maxLeaseDays: 30,
60
+ }),
61
+ rehydrate: async (body) => {
62
+ log(`remettre en ligne ${body.rangeStart} - ${body.rangeEnd}`);
63
+ return { job: ARCHIVE_JOB, skippedDays: [] };
64
+ },
65
+ extend: async (jobId) => {
66
+ log(`prolonger ${jobId}`);
67
+ return ARCHIVE_JOB;
68
+ },
69
+ release: async (jobId) => {
70
+ log(`libérer ${jobId}`);
71
+ return ARCHIVE_JOB;
72
+ },
73
+ purge: async (body) => {
74
+ log(`supprimer de l'archive ${body.from} - ${body.to}`);
75
+ return { purgedDays: [body.from], deletedRows: 0, releasedJobs: 0 };
76
+ },
77
+ };
78
+ const base = (list: DeliveryHistoryProps['list']): DeliveryHistoryProps => ({
79
+ list,
80
+ get: async (id) => WITH_ARCHIVE.find((row) => row.id === id) ?? delivery(),
81
+ replayDelivery: async (id) => log(`rejouer ${id}`),
82
+ canReplay: true,
83
+ archive,
84
+ canManageArchive: true,
85
+ canPurgeArchive: true,
86
+ getSubscription: async () =>
87
+ subscription({
88
+ url: 'https://ops.example.com/webhooks/abyss/monitor-events/production',
89
+ eventTypes: ['MONITOR_EVENT', 'MONITOR_SENTINEL'],
90
+ }),
91
+ flowUrl: 'https://flow.abyss.example/deliveries',
92
+ });
93
+ return (
94
+ <Showcase
95
+ family="Métier"
96
+ name="DeliveryHistory"
97
+ description="L'historique des livraisons d'un abonnement (URL et événements sous le titre) : filtre de statut, détail en panneau (données de l'événement, en-têtes envoyés, réponse, déroulé), rejeu d'une livraison terminée (refusé au-delà de 30 jours) et section Archive : jours archivés, remises en ligne, suppression."
98
+ >
99
+ <Example title="Peuplé" maxWidth={1100}>
100
+ <DeliveryHistory {...base(async () => page(POPULATED))} />
101
+ </Example>
102
+ <Example
103
+ title="Avec une livraison archivée et une remise en ligne"
104
+ maxWidth={1100}
105
+ >
106
+ <DeliveryHistory {...base(async () => page(WITH_ARCHIVE))} />
107
+ </Example>
108
+ <Example title="Archive en lecture seule" maxWidth={1100}>
109
+ <DeliveryHistory
110
+ {...base(async () => page(WITH_ARCHIVE))}
111
+ canManageArchive={false}
112
+ canPurgeArchive={false}
113
+ />
114
+ </Example>
115
+ <Example title="Vide" maxWidth={1100}>
116
+ <DeliveryHistory {...base(async () => page([]))} />
117
+ </Example>
118
+ <Example title="En cours de chargement" maxWidth={1100}>
119
+ <DeliveryHistory {...base(() => new Promise(() => undefined))} />
120
+ </Example>
121
+ <Example title="Le chargement a échoué" maxWidth={1100}>
122
+ <DeliveryHistory
123
+ {...base(() => Promise.reject(new Error('Flow indisponible')))}
124
+ />
125
+ </Example>
126
+ <Example title="Sans abonnement ni lien vers Flow" maxWidth={1100}>
127
+ <DeliveryHistory
128
+ {...base(async () => page(POPULATED))}
129
+ getSubscription={undefined}
130
+ flowUrl={undefined}
131
+ />
132
+ </Example>
133
+ <Example title="Sans droit de rejeu" maxWidth={1100}>
134
+ <DeliveryHistory
135
+ {...base(async () => page(POPULATED))}
136
+ canReplay={false}
137
+ />
138
+ </Example>
139
+ <LastEvent />
140
+ </Showcase>
141
+ );
142
+ };
@@ -10,6 +10,7 @@ import CelebrationOutlined from '@mui/icons-material/CelebrationOutlined';
10
10
  import HomeOutlined from '@mui/icons-material/HomeOutlined';
11
11
  import SearchRounded from '@mui/icons-material/SearchRounded';
12
12
  import { MobileShell } from '../../src/components/mobile/MobileShell/MobileShell';
13
+ import { MobileShellActionBar } from '../../src/components/mobile/MobileShell/MobileShellActionBar';
13
14
  import { BottomSheet } from '../../src/components/mobile/BottomSheet/BottomSheet';
14
15
  import { Section } from '../../src/components/structure/Section/Section';
15
16
  import { KeyValueList } from '../../src/components/data/KeyValueList/KeyValueList';
@@ -74,7 +75,10 @@ const BIRTHDAYS = [
74
75
  },
75
76
  ];
76
77
 
77
- /** The Memories app frame: large title, back, four tabs around the central "add a photo" action. */
78
+ /**
79
+ * The Memories app frame: large title, back, four tabs around the central "add a photo" action.
80
+ * The « Événements » tab is a short page with its action bar, held against the tab bar.
81
+ */
78
82
  export const MobileShellPage = () => {
79
83
  const { log } = useEventLog();
80
84
  const [tab, setTab] = useState('home');
@@ -103,48 +107,80 @@ export const MobileShellPage = () => {
103
107
  }}
104
108
  onRefresh={async () => log('actualiser')}
105
109
  >
106
- <Content>
107
- <Section
108
- title="Séminaire Acme 2026"
109
- actions={
110
- <StatusBadge tone={StatusTone.Danger} label="En cours" dot />
111
- }
112
- >
113
- <KeyValueList
114
- items={[
115
- { id: 'media', label: 'Médias', value: '248', mono: true },
110
+ {tab === 'events' ? (
111
+ <Content>
112
+ <Section title="Événements" count={1}>
113
+ <TouchList
114
+ items={[
115
+ {
116
+ id: 'acme',
117
+ title: 'Séminaire Acme 2026',
118
+ subtitle: '248 médias',
119
+ },
120
+ ]}
121
+ onOpen={(id) => log(`ouvrir ${id}`)}
122
+ />
123
+ </Section>
124
+ <LastEvent />
125
+ <MobileShellActionBar
126
+ actions={[
116
127
  {
117
- id: 'contributors',
118
- label: 'Contributeurs',
119
- value: '31',
120
- mono: true,
128
+ id: 'create',
129
+ label: 'Créer un événement',
130
+ onPress: () => log('créer un événement'),
121
131
  },
122
- { id: 'moderation', label: 'À modérer', value: '6', mono: true },
123
132
  ]}
124
133
  />
125
- <Button variant="contained" onClick={() => setSheetOpen(true)}>
126
- Options de l&apos;événement
127
- </Button>
128
- </Section>
129
- <Section title="Prochains anniversaires" count={BIRTHDAYS.length}>
130
- <TouchList
131
- items={BIRTHDAYS.map((birthday) => ({
132
- id: birthday.id,
133
- leading: <Initials>{birthday.initials}</Initials>,
134
- title: birthday.name,
135
- subtitle: birthday.detail,
136
- trailing: (
137
- <StatusBadge
138
- tone={StatusTone.Highlight}
139
- label={birthday.when}
140
- />
141
- ),
142
- }))}
143
- onOpen={(id) => log(`ouvrir ${id}`)}
144
- />
145
- </Section>
146
- <LastEvent />
147
- </Content>
134
+ </Content>
135
+ ) : (
136
+ <Content>
137
+ <Section
138
+ title="Séminaire Acme 2026"
139
+ actions={
140
+ <StatusBadge tone={StatusTone.Danger} label="En cours" dot />
141
+ }
142
+ >
143
+ <KeyValueList
144
+ items={[
145
+ { id: 'media', label: 'Médias', value: '248', mono: true },
146
+ {
147
+ id: 'contributors',
148
+ label: 'Contributeurs',
149
+ value: '31',
150
+ mono: true,
151
+ },
152
+ {
153
+ id: 'moderation',
154
+ label: 'À modérer',
155
+ value: '6',
156
+ mono: true,
157
+ },
158
+ ]}
159
+ />
160
+ <Button variant="contained" onClick={() => setSheetOpen(true)}>
161
+ Options de l&apos;événement
162
+ </Button>
163
+ </Section>
164
+ <Section title="Prochains anniversaires" count={BIRTHDAYS.length}>
165
+ <TouchList
166
+ items={BIRTHDAYS.map((birthday) => ({
167
+ id: birthday.id,
168
+ leading: <Initials>{birthday.initials}</Initials>,
169
+ title: birthday.name,
170
+ subtitle: birthday.detail,
171
+ trailing: (
172
+ <StatusBadge
173
+ tone={StatusTone.Highlight}
174
+ label={birthday.when}
175
+ />
176
+ ),
177
+ }))}
178
+ onOpen={(id) => log(`ouvrir ${id}`)}
179
+ />
180
+ </Section>
181
+ <LastEvent />
182
+ </Content>
183
+ )}
148
184
  <BottomSheet
149
185
  open={sheetOpen}
150
186
  onClose={() => {
@@ -23,6 +23,17 @@ const ACCOUNT_TABS: TabItem[] = [
23
23
  },
24
24
  ];
25
25
 
26
+ const SERVICE_TABS: TabItem[] = [
27
+ { value: 'routes', label: 'Routes', to: '/service/routes' },
28
+ { value: 'versions', label: 'Versions', to: '/service/versions' },
29
+ { value: 'deployments', label: 'Déploiements', to: '/service/deploiements' },
30
+ {
31
+ value: 'configuration',
32
+ label: 'Configuration',
33
+ to: '/service/configuration',
34
+ },
35
+ ];
36
+
26
37
  const BILLING_TABS: TabItem[] = [
27
38
  { value: 'overview', label: 'Vue d’ensemble' },
28
39
  { value: 'subscription', label: 'Abonnement' },
@@ -36,6 +47,7 @@ export const TabsPage = () => {
36
47
  const { log } = useEventLog();
37
48
  const [account, setAccount] = useState('billing');
38
49
  const [billing, setBilling] = useState('overview');
50
+ const [service, setService] = useState('routes');
39
51
  return (
40
52
  <Showcase
41
53
  family="Structure"
@@ -54,6 +66,18 @@ export const TabsPage = () => {
54
66
  }}
55
67
  />
56
68
  </Example>
69
+ <Example title="Onglets d'un service (primaire, quatre onglets sur un téléphone)">
70
+ <Tabs
71
+ aria-label="Service"
72
+ variant={TabsVariant.Primary}
73
+ items={SERVICE_TABS}
74
+ value={service}
75
+ onChange={(next) => {
76
+ setService(next);
77
+ log(`onglet ${next}`);
78
+ }}
79
+ />
80
+ </Example>
57
81
  <Example title="Sous-navigation de la facturation (secondaire, boutons)">
58
82
  <Tabs
59
83
  aria-label="Facturation"