@abyss-project/commons-front-core 17.2.0 → 18.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.
- package/CHANGELOG.md +26 -1
- package/README.md +2 -1
- package/catalog/captures-plan.ts +120 -116
- package/catalog/catalog-entries.ts +149 -148
- package/catalog/pages/AppShell.tsx +18 -9
- package/catalog/pages/CookieConsent.tsx +54 -31
- package/catalog/pages/DeliveryHistory.tsx +66 -66
- package/catalog/pages/DeliverySubscriptions.tsx +110 -110
- package/catalog/pages/ScheduledTasks.tsx +117 -117
- package/catalog/pages/index.ts +166 -165
- package/catalog/playwright.ci.config.ts +4 -3
- package/catalog/specs/captures.spec.ts +145 -145
- package/catalog/specs/cookie-consent-modal.spec.ts +187 -0
- package/catalog/specs/responsive.spec.ts +106 -0
- package/catalog/specs/write-capture-index.ts +81 -81
- package/dist/CookieConsentSettings-B7HIIzyI.js +595 -0
- package/dist/{Surface-BUxzLLhb.js → Surface-dziv23sf.js} +60 -53
- package/dist/{Tabs-D7TDtprO.js → Tabs-_onUZBA-.js} +613 -591
- package/dist/components/business/CookieConsent/AbyssCookieConsentProvider.d.ts +11 -3
- package/dist/components/business/CookieConsent/CookieConsentBanner.d.ts +4 -3
- package/dist/components/business/CookieConsent/CookieConsentPreferences.d.ts +12 -0
- package/dist/components/business/CookieConsent/index.d.ts +2 -0
- package/dist/components/business/CookieConsent/use-banner-portal.d.ts +36 -0
- package/dist/components/inputs/NumberField/NumberField.d.ts +18 -2
- package/dist/components/layers/Toast/toast-clearance.d.ts +5 -0
- package/dist/components/structure/AccountMenu/AccountMenu.d.ts +2 -1
- package/dist/components/structure/AppShell/SpaceSwitcher.d.ts +4 -2
- package/dist/components/structure/AppShell/app-shell.types.d.ts +5 -1
- package/dist/components/structure/FilterBar/FilterBar.d.ts +7 -2
- package/dist/cookie-consent.js +26 -17
- package/dist/{design-theme-Bc2sMuUP.js → design-theme-B3C3z1gE.js} +1 -1
- package/dist/{editors-CGj-vsZu.js → editors-BhQlONOy.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/hooks/use-cookie-consent.hook.spec.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +4 -0
- package/dist/{index-DOrEPYZN.js → index-B6LMTOKG.js} +3 -3
- package/dist/{index-853Jaoqw.js → index-B6w5_TeJ.js} +3 -3
- package/dist/{index-BVsU-XEb.js → index-BBF-FvT6.js} +2 -2
- package/dist/{index-5lpeThh7.js → index-BGAZK8Vk.js} +2 -2
- package/dist/{index-DKMFAW5f.js → index-BGJobvxw.js} +1 -1
- package/dist/{index-DvrKcy8f.js → index-BTDlbjWW.js} +2 -2
- package/dist/{index-DrgdyC6J.js → index-BcjlG5TB.js} +2 -2
- package/dist/{index-CNfYiPB9.js → index-BeMiREqf.js} +2 -2
- package/dist/{index-YX_yu3BN.js → index-ByN6DcaL.js} +2 -2
- package/dist/{index-_3uQ1KPn.js → index-CJI1dJrw.js} +3 -3
- package/dist/{index-BISOeVc7.js → index-D1mQgWN3.js} +2 -2
- package/dist/{index-DykCZUJc.js → index-DLlWMDxB.js} +4 -4
- package/dist/{index-BS3QPrVM.js → index-DNd8NZnu.js} +4 -4
- package/dist/{index-CTsQY6zW.js → index-Dakpr4C1.js} +3 -3
- package/dist/{index-B4PJ4K6l.js → index-DkZAsKob.js} +2 -2
- package/dist/{index-CYmjv9TK.js → index-DprTO7yi.js} +4 -4
- package/dist/{index-a62vDo6s.js → index-N4BwXTyk.js} +2 -2
- package/dist/{index-DfnEQYyW.js → index-V4F4Sk7y.js} +2 -2
- package/dist/{index-DxZ1bG6u.js → index-y-TnfE6Z.js} +2 -2
- package/dist/{index-CONaN903.js → index-yFJTDKIX.js} +2 -2
- package/dist/{index-Bxpp4VC9.js → index-ytgNPz5f.js} +2 -2
- package/dist/index.js +3482 -3419
- package/dist/legacy.js +1728 -1707
- package/dist/translations/en.d.ts +2 -0
- package/dist/translations/fr.d.ts +2 -0
- package/dist/utils/cookie-consent-contract.d.ts +55 -0
- package/dist/utils/cookie-consent-contract.spec.d.ts +1 -0
- package/dist/utils/cookie-storage.utils.d.ts +1 -8
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CookieConsentSettings-DHpcYTa2.js +0 -505
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { ScheduledTasks } from '../../src/components/business/Deliveries/ScheduledTasks.component';
|
|
2
|
-
import type { ScheduledTasksProps } from '../../src/components/business/Deliveries/deliveries.types';
|
|
3
|
-
import {
|
|
4
|
-
page,
|
|
5
|
-
runStatus,
|
|
6
|
-
scheduledTask,
|
|
7
|
-
taskRun,
|
|
8
|
-
} from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
|
|
9
|
-
import { Example, LastEvent, Showcase, useEventLog } from '../frame';
|
|
10
|
-
|
|
11
|
-
const PERMISSIONS = {
|
|
12
|
-
canCreate: true,
|
|
13
|
-
canUpdate: true,
|
|
14
|
-
canDelete: true,
|
|
15
|
-
canRegenerateSecret: true,
|
|
16
|
-
canTrigger: true,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const POPULATED = [
|
|
20
|
-
scheduledTask(),
|
|
21
|
-
scheduledTask({
|
|
22
|
-
id: 'task-2',
|
|
23
|
-
name: 'Rapport hebdomadaire',
|
|
24
|
-
schedule: '@weekly',
|
|
25
|
-
isEnabled: false,
|
|
26
|
-
lastRunAt: null,
|
|
27
|
-
}),
|
|
28
|
-
scheduledTask({
|
|
29
|
-
id: 'task-3',
|
|
30
|
-
name: 'Synchronisation des factures',
|
|
31
|
-
schedule: '*/15 * * * *',
|
|
32
|
-
consecutiveFailures: 4,
|
|
33
|
-
}),
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
const RUNS = [
|
|
37
|
-
taskRun(),
|
|
38
|
-
taskRun({
|
|
39
|
-
id: 'run-2',
|
|
40
|
-
scheduledFor: new Date('2026-11-01T03:00:00Z'),
|
|
41
|
-
status: runStatus('FAILED'),
|
|
42
|
-
responseCode: 500,
|
|
43
|
-
durationMs: 1204,
|
|
44
|
-
}),
|
|
45
|
-
taskRun({
|
|
46
|
-
id: 'run-3',
|
|
47
|
-
scheduledFor: new Date('2026-10-31T03:00:00Z'),
|
|
48
|
-
status: runStatus('TIMED_OUT'),
|
|
49
|
-
responseCode: null,
|
|
50
|
-
durationMs: 30000,
|
|
51
|
-
}),
|
|
52
|
-
];
|
|
53
|
-
|
|
54
|
-
export const ScheduledTasksPage = () => {
|
|
55
|
-
const { log } = useEventLog();
|
|
56
|
-
const base = (list: ScheduledTasksProps['list']): ScheduledTasksProps => ({
|
|
57
|
-
list,
|
|
58
|
-
create: async (body) => {
|
|
59
|
-
log(`créer ${body.name}`);
|
|
60
|
-
return {
|
|
61
|
-
scheduledTask: scheduledTask({ id: 'task-new', isEnabled: false }),
|
|
62
|
-
secret: 'cron_catalog_new_do-not-use',
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
update: async (id, body) => {
|
|
66
|
-
log(`modifier ${id}`);
|
|
67
|
-
return scheduledTask({ id, ...body });
|
|
68
|
-
},
|
|
69
|
-
remove: async (id) => log(`supprimer ${id}`),
|
|
70
|
-
regenerateSecret: async (id) => {
|
|
71
|
-
log(`secret ${id}`);
|
|
72
|
-
return {
|
|
73
|
-
scheduledTask: scheduledTask({ id }),
|
|
74
|
-
secret: 'cron_catalog_regenerated_do-not-use',
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
trigger: async (id) => log(`lancer ${id}`),
|
|
78
|
-
listRuns: async () => page(RUNS),
|
|
79
|
-
permissions: PERMISSIONS,
|
|
80
|
-
flowUrl: 'https://flow.abyss.example/scheduled-tasks',
|
|
81
|
-
});
|
|
82
|
-
return (
|
|
83
|
-
<Showcase
|
|
84
|
-
family="Métier"
|
|
85
|
-
name="ScheduledTasks"
|
|
86
|
-
description="Les tâches planifiées d'un périmètre : liste, création et édition en panneau, « lancer maintenant », secret affiché une seule fois et historique des exécutions."
|
|
87
|
-
>
|
|
88
|
-
<Example title="Peuplé" maxWidth={1100}>
|
|
89
|
-
<ScheduledTasks {...base(async () => page(POPULATED))} />
|
|
90
|
-
</Example>
|
|
91
|
-
<Example title="Vide" maxWidth={1100}>
|
|
92
|
-
<ScheduledTasks {...base(async () => page([]))} />
|
|
93
|
-
</Example>
|
|
94
|
-
<Example title="En cours de chargement" maxWidth={1100}>
|
|
95
|
-
<ScheduledTasks {...base(() => new Promise(() => undefined))} />
|
|
96
|
-
</Example>
|
|
97
|
-
<Example title="Le chargement a échoué" maxWidth={1100}>
|
|
98
|
-
<ScheduledTasks
|
|
99
|
-
{...base(() => Promise.reject(new Error('Flow indisponible')))}
|
|
100
|
-
/>
|
|
101
|
-
</Example>
|
|
102
|
-
<Example title="Lecture seule" maxWidth={1100}>
|
|
103
|
-
<ScheduledTasks
|
|
104
|
-
{...base(async () => page(POPULATED))}
|
|
105
|
-
permissions={{
|
|
106
|
-
canCreate: false,
|
|
107
|
-
canUpdate: false,
|
|
108
|
-
canDelete: false,
|
|
109
|
-
canRegenerateSecret: false,
|
|
110
|
-
canTrigger: false,
|
|
111
|
-
}}
|
|
112
|
-
/>
|
|
113
|
-
</Example>
|
|
114
|
-
<LastEvent />
|
|
115
|
-
</Showcase>
|
|
116
|
-
);
|
|
117
|
-
};
|
|
1
|
+
import { ScheduledTasks } from '../../src/components/business/Deliveries/ScheduledTasks.component';
|
|
2
|
+
import type { ScheduledTasksProps } from '../../src/components/business/Deliveries/deliveries.types';
|
|
3
|
+
import {
|
|
4
|
+
page,
|
|
5
|
+
runStatus,
|
|
6
|
+
scheduledTask,
|
|
7
|
+
taskRun,
|
|
8
|
+
} from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
|
|
9
|
+
import { Example, LastEvent, Showcase, useEventLog } from '../frame';
|
|
10
|
+
|
|
11
|
+
const PERMISSIONS = {
|
|
12
|
+
canCreate: true,
|
|
13
|
+
canUpdate: true,
|
|
14
|
+
canDelete: true,
|
|
15
|
+
canRegenerateSecret: true,
|
|
16
|
+
canTrigger: true,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const POPULATED = [
|
|
20
|
+
scheduledTask(),
|
|
21
|
+
scheduledTask({
|
|
22
|
+
id: 'task-2',
|
|
23
|
+
name: 'Rapport hebdomadaire',
|
|
24
|
+
schedule: '@weekly',
|
|
25
|
+
isEnabled: false,
|
|
26
|
+
lastRunAt: null,
|
|
27
|
+
}),
|
|
28
|
+
scheduledTask({
|
|
29
|
+
id: 'task-3',
|
|
30
|
+
name: 'Synchronisation des factures',
|
|
31
|
+
schedule: '*/15 * * * *',
|
|
32
|
+
consecutiveFailures: 4,
|
|
33
|
+
}),
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const RUNS = [
|
|
37
|
+
taskRun(),
|
|
38
|
+
taskRun({
|
|
39
|
+
id: 'run-2',
|
|
40
|
+
scheduledFor: new Date('2026-11-01T03:00:00Z'),
|
|
41
|
+
status: runStatus('FAILED'),
|
|
42
|
+
responseCode: 500,
|
|
43
|
+
durationMs: 1204,
|
|
44
|
+
}),
|
|
45
|
+
taskRun({
|
|
46
|
+
id: 'run-3',
|
|
47
|
+
scheduledFor: new Date('2026-10-31T03:00:00Z'),
|
|
48
|
+
status: runStatus('TIMED_OUT'),
|
|
49
|
+
responseCode: null,
|
|
50
|
+
durationMs: 30000,
|
|
51
|
+
}),
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
export const ScheduledTasksPage = () => {
|
|
55
|
+
const { log } = useEventLog();
|
|
56
|
+
const base = (list: ScheduledTasksProps['list']): ScheduledTasksProps => ({
|
|
57
|
+
list,
|
|
58
|
+
create: async (body) => {
|
|
59
|
+
log(`créer ${body.name}`);
|
|
60
|
+
return {
|
|
61
|
+
scheduledTask: scheduledTask({ id: 'task-new', isEnabled: false }),
|
|
62
|
+
secret: 'cron_catalog_new_do-not-use',
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
update: async (id, body) => {
|
|
66
|
+
log(`modifier ${id}`);
|
|
67
|
+
return scheduledTask({ id, ...body });
|
|
68
|
+
},
|
|
69
|
+
remove: async (id) => log(`supprimer ${id}`),
|
|
70
|
+
regenerateSecret: async (id) => {
|
|
71
|
+
log(`secret ${id}`);
|
|
72
|
+
return {
|
|
73
|
+
scheduledTask: scheduledTask({ id }),
|
|
74
|
+
secret: 'cron_catalog_regenerated_do-not-use',
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
trigger: async (id) => log(`lancer ${id}`),
|
|
78
|
+
listRuns: async () => page(RUNS),
|
|
79
|
+
permissions: PERMISSIONS,
|
|
80
|
+
flowUrl: 'https://flow.abyss.example/scheduled-tasks',
|
|
81
|
+
});
|
|
82
|
+
return (
|
|
83
|
+
<Showcase
|
|
84
|
+
family="Métier"
|
|
85
|
+
name="ScheduledTasks"
|
|
86
|
+
description="Les tâches planifiées d'un périmètre : liste, création et édition en panneau, « lancer maintenant », secret affiché une seule fois et historique des exécutions."
|
|
87
|
+
>
|
|
88
|
+
<Example title="Peuplé" maxWidth={1100}>
|
|
89
|
+
<ScheduledTasks {...base(async () => page(POPULATED))} />
|
|
90
|
+
</Example>
|
|
91
|
+
<Example title="Vide" maxWidth={1100}>
|
|
92
|
+
<ScheduledTasks {...base(async () => page([]))} />
|
|
93
|
+
</Example>
|
|
94
|
+
<Example title="En cours de chargement" maxWidth={1100}>
|
|
95
|
+
<ScheduledTasks {...base(() => new Promise(() => undefined))} />
|
|
96
|
+
</Example>
|
|
97
|
+
<Example title="Le chargement a échoué" maxWidth={1100}>
|
|
98
|
+
<ScheduledTasks
|
|
99
|
+
{...base(() => Promise.reject(new Error('Flow indisponible')))}
|
|
100
|
+
/>
|
|
101
|
+
</Example>
|
|
102
|
+
<Example title="Lecture seule" maxWidth={1100}>
|
|
103
|
+
<ScheduledTasks
|
|
104
|
+
{...base(async () => page(POPULATED))}
|
|
105
|
+
permissions={{
|
|
106
|
+
canCreate: false,
|
|
107
|
+
canUpdate: false,
|
|
108
|
+
canDelete: false,
|
|
109
|
+
canRegenerateSecret: false,
|
|
110
|
+
canTrigger: false,
|
|
111
|
+
}}
|
|
112
|
+
/>
|
|
113
|
+
</Example>
|
|
114
|
+
<LastEvent />
|
|
115
|
+
</Showcase>
|
|
116
|
+
);
|
|
117
|
+
};
|
package/catalog/pages/index.ts
CHANGED
|
@@ -1,165 +1,166 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import { AccordionPage } from './Accordion';
|
|
3
|
-
import { AccountMenuPage } from './AccountMenu';
|
|
4
|
-
import { ActionBarPage } from './ActionBar';
|
|
5
|
-
import { AmbientBackgroundPage } from './AmbientBackground';
|
|
6
|
-
import { AnchoredPanelPage } from './AnchoredPanel';
|
|
7
|
-
import { AppShellPage } from './AppShell';
|
|
8
|
-
import { AvatarPage } from './Avatar';
|
|
9
|
-
import { BarChartPage } from './BarChart';
|
|
10
|
-
import { BottomSheetPage } from './BottomSheet';
|
|
11
|
-
import { BreadcrumbsPage } from './Breadcrumbs';
|
|
12
|
-
import { CalloutPage } from './Callout';
|
|
13
|
-
import { ChartThemePage } from './ChartTheme';
|
|
14
|
-
import { CloudImportPage } from './CloudImport';
|
|
15
|
-
import { ColorFieldPage } from './ColorField';
|
|
16
|
-
import { CommandPalettePage } from './CommandPalette';
|
|
17
|
-
import { ComboboxFieldPage } from './ComboboxField';
|
|
18
|
-
import { DeliveryHistoryPage } from './DeliveryHistory';
|
|
19
|
-
import { DeliverySubscriptionsPage } from './DeliverySubscriptions';
|
|
20
|
-
import { ScheduledTasksPage } from './ScheduledTasks';
|
|
21
|
-
import { ConfirmDialogPage } from './ConfirmDialog';
|
|
22
|
-
import { ConfirmDialogWarningPage } from './ConfirmDialogWarning';
|
|
23
|
-
import { ContextSelectorPage } from './ContextSelector';
|
|
24
|
-
import { CopyFieldPage } from './CopyField';
|
|
25
|
-
import { LineChartPage } from './LineChart';
|
|
26
|
-
import { PaginationPage } from './Pagination';
|
|
27
|
-
import { AvatarGroupPage } from './AvatarGroup';
|
|
28
|
-
import { TeamAvatarPage } from './TeamAvatar';
|
|
29
|
-
import { UserPickerPage } from './UserPicker';
|
|
30
|
-
import { CompanySearchFieldPage } from './CompanySearchField';
|
|
31
|
-
import { EntityImageFieldPage } from './EntityImageField';
|
|
32
|
-
import { DataTablePage } from './DataTable';
|
|
33
|
-
import { DateFieldPage } from './DateField';
|
|
34
|
-
import { DateRangeFieldPage } from './DateRangeField';
|
|
35
|
-
import { DrawerPage } from './Drawer';
|
|
36
|
-
import { DropZonePage } from './DropZone';
|
|
37
|
-
import { ExpressionSearchPage } from './ExpressionSearch';
|
|
38
|
-
import { FacetPanelPage } from './FacetPanel';
|
|
39
|
-
import { FilterBarPage } from './FilterBar';
|
|
40
|
-
import { FormFieldPage } from './FormField';
|
|
41
|
-
import { PasswordFieldPage } from './PasswordField';
|
|
42
|
-
import { ErrorBoundaryPage } from './ErrorBoundary';
|
|
43
|
-
import { CookieConsentPage } from './CookieConsent';
|
|
44
|
-
import { ImportButtonPage } from './ImportButton';
|
|
45
|
-
import { ImportFromCloudModalPage } from './ImportFromCloudModal';
|
|
46
|
-
import { InfectedDownloadModalPage } from './InfectedDownloadModal';
|
|
47
|
-
import { KeyValueListPage } from './KeyValueList';
|
|
48
|
-
import { MarkdownEditorPage } from './MarkdownEditor';
|
|
49
|
-
import { MenuPage } from './Menu';
|
|
50
|
-
import { MethodBadgePage } from './MethodBadge';
|
|
51
|
-
import { MobileShellPage } from './MobileShell';
|
|
52
|
-
import { ModalPage } from './Modal';
|
|
53
|
-
import { NotificationsMenuPage } from './NotificationsMenu';
|
|
54
|
-
import { NumberFieldPage } from './NumberField';
|
|
55
|
-
import { PageHeaderPage } from './PageHeader';
|
|
56
|
-
import { PdfEditorPage } from './PdfEditor';
|
|
57
|
-
import { PageStatePage } from './PageState';
|
|
58
|
-
import { PreviewDrawerPage } from './PreviewDrawer';
|
|
59
|
-
import { ProductTourPage } from './ProductTour';
|
|
60
|
-
import { QRCodeModalPage } from './QRCodeModal';
|
|
61
|
-
import { RichSelectPage } from './RichSelect';
|
|
62
|
-
import { RoleBadgePage } from './RoleBadge';
|
|
63
|
-
import { ScanBadgePage } from './ScanBadge';
|
|
64
|
-
import { SceneDesktopPage } from './SceneDesktop';
|
|
65
|
-
import { SceneMobilePage } from './SceneMobile';
|
|
66
|
-
import { SectionPage } from './Section';
|
|
67
|
-
import { SegmentedControlPage } from './SegmentedControl';
|
|
68
|
-
import { SettingsRowPage } from './SettingsRow';
|
|
69
|
-
import { SeverityBadgePage } from './SeverityBadge';
|
|
70
|
-
import { SparklinePage } from './Sparkline';
|
|
71
|
-
import { SplitViewPage } from './SplitView';
|
|
72
|
-
import { StatTilePage } from './StatTile';
|
|
73
|
-
import { StatusBadgePage } from './StatusBadge';
|
|
74
|
-
import { SurfacePage } from './Surface';
|
|
75
|
-
import { SwipeDeckPage } from './SwipeDeck';
|
|
76
|
-
import { TabsPage } from './Tabs';
|
|
77
|
-
import { ToastPage } from './Toast';
|
|
78
|
-
import { ToolbarPage } from './Toolbar';
|
|
79
|
-
import { ToolIconPage } from './ToolIcon';
|
|
80
|
-
import { UsageMeterPage } from './UsageMeter';
|
|
81
|
-
import { ValueMenuPage } from './ValueMenu';
|
|
82
|
-
|
|
83
|
-
/** Every catalog page, by the `component` URL parameter (`catalog-entries.ts`). */
|
|
84
|
-
export const CATALOG_PAGES: Record<string, ComponentType> = {
|
|
85
|
-
Accordion: AccordionPage,
|
|
86
|
-
AccountMenu: AccountMenuPage,
|
|
87
|
-
ActionBar: ActionBarPage,
|
|
88
|
-
AmbientBackground: AmbientBackgroundPage,
|
|
89
|
-
AnchoredPanel: AnchoredPanelPage,
|
|
90
|
-
AppShell: AppShellPage,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import { AccordionPage } from './Accordion';
|
|
3
|
+
import { AccountMenuPage } from './AccountMenu';
|
|
4
|
+
import { ActionBarPage } from './ActionBar';
|
|
5
|
+
import { AmbientBackgroundPage } from './AmbientBackground';
|
|
6
|
+
import { AnchoredPanelPage } from './AnchoredPanel';
|
|
7
|
+
import { AppShellNoSpacePage, AppShellPage } from './AppShell';
|
|
8
|
+
import { AvatarPage } from './Avatar';
|
|
9
|
+
import { BarChartPage } from './BarChart';
|
|
10
|
+
import { BottomSheetPage } from './BottomSheet';
|
|
11
|
+
import { BreadcrumbsPage } from './Breadcrumbs';
|
|
12
|
+
import { CalloutPage } from './Callout';
|
|
13
|
+
import { ChartThemePage } from './ChartTheme';
|
|
14
|
+
import { CloudImportPage } from './CloudImport';
|
|
15
|
+
import { ColorFieldPage } from './ColorField';
|
|
16
|
+
import { CommandPalettePage } from './CommandPalette';
|
|
17
|
+
import { ComboboxFieldPage } from './ComboboxField';
|
|
18
|
+
import { DeliveryHistoryPage } from './DeliveryHistory';
|
|
19
|
+
import { DeliverySubscriptionsPage } from './DeliverySubscriptions';
|
|
20
|
+
import { ScheduledTasksPage } from './ScheduledTasks';
|
|
21
|
+
import { ConfirmDialogPage } from './ConfirmDialog';
|
|
22
|
+
import { ConfirmDialogWarningPage } from './ConfirmDialogWarning';
|
|
23
|
+
import { ContextSelectorPage } from './ContextSelector';
|
|
24
|
+
import { CopyFieldPage } from './CopyField';
|
|
25
|
+
import { LineChartPage } from './LineChart';
|
|
26
|
+
import { PaginationPage } from './Pagination';
|
|
27
|
+
import { AvatarGroupPage } from './AvatarGroup';
|
|
28
|
+
import { TeamAvatarPage } from './TeamAvatar';
|
|
29
|
+
import { UserPickerPage } from './UserPicker';
|
|
30
|
+
import { CompanySearchFieldPage } from './CompanySearchField';
|
|
31
|
+
import { EntityImageFieldPage } from './EntityImageField';
|
|
32
|
+
import { DataTablePage } from './DataTable';
|
|
33
|
+
import { DateFieldPage } from './DateField';
|
|
34
|
+
import { DateRangeFieldPage } from './DateRangeField';
|
|
35
|
+
import { DrawerPage } from './Drawer';
|
|
36
|
+
import { DropZonePage } from './DropZone';
|
|
37
|
+
import { ExpressionSearchPage } from './ExpressionSearch';
|
|
38
|
+
import { FacetPanelPage } from './FacetPanel';
|
|
39
|
+
import { FilterBarPage } from './FilterBar';
|
|
40
|
+
import { FormFieldPage } from './FormField';
|
|
41
|
+
import { PasswordFieldPage } from './PasswordField';
|
|
42
|
+
import { ErrorBoundaryPage } from './ErrorBoundary';
|
|
43
|
+
import { CookieConsentPage } from './CookieConsent';
|
|
44
|
+
import { ImportButtonPage } from './ImportButton';
|
|
45
|
+
import { ImportFromCloudModalPage } from './ImportFromCloudModal';
|
|
46
|
+
import { InfectedDownloadModalPage } from './InfectedDownloadModal';
|
|
47
|
+
import { KeyValueListPage } from './KeyValueList';
|
|
48
|
+
import { MarkdownEditorPage } from './MarkdownEditor';
|
|
49
|
+
import { MenuPage } from './Menu';
|
|
50
|
+
import { MethodBadgePage } from './MethodBadge';
|
|
51
|
+
import { MobileShellPage } from './MobileShell';
|
|
52
|
+
import { ModalPage } from './Modal';
|
|
53
|
+
import { NotificationsMenuPage } from './NotificationsMenu';
|
|
54
|
+
import { NumberFieldPage } from './NumberField';
|
|
55
|
+
import { PageHeaderPage } from './PageHeader';
|
|
56
|
+
import { PdfEditorPage } from './PdfEditor';
|
|
57
|
+
import { PageStatePage } from './PageState';
|
|
58
|
+
import { PreviewDrawerPage } from './PreviewDrawer';
|
|
59
|
+
import { ProductTourPage } from './ProductTour';
|
|
60
|
+
import { QRCodeModalPage } from './QRCodeModal';
|
|
61
|
+
import { RichSelectPage } from './RichSelect';
|
|
62
|
+
import { RoleBadgePage } from './RoleBadge';
|
|
63
|
+
import { ScanBadgePage } from './ScanBadge';
|
|
64
|
+
import { SceneDesktopPage } from './SceneDesktop';
|
|
65
|
+
import { SceneMobilePage } from './SceneMobile';
|
|
66
|
+
import { SectionPage } from './Section';
|
|
67
|
+
import { SegmentedControlPage } from './SegmentedControl';
|
|
68
|
+
import { SettingsRowPage } from './SettingsRow';
|
|
69
|
+
import { SeverityBadgePage } from './SeverityBadge';
|
|
70
|
+
import { SparklinePage } from './Sparkline';
|
|
71
|
+
import { SplitViewPage } from './SplitView';
|
|
72
|
+
import { StatTilePage } from './StatTile';
|
|
73
|
+
import { StatusBadgePage } from './StatusBadge';
|
|
74
|
+
import { SurfacePage } from './Surface';
|
|
75
|
+
import { SwipeDeckPage } from './SwipeDeck';
|
|
76
|
+
import { TabsPage } from './Tabs';
|
|
77
|
+
import { ToastPage } from './Toast';
|
|
78
|
+
import { ToolbarPage } from './Toolbar';
|
|
79
|
+
import { ToolIconPage } from './ToolIcon';
|
|
80
|
+
import { UsageMeterPage } from './UsageMeter';
|
|
81
|
+
import { ValueMenuPage } from './ValueMenu';
|
|
82
|
+
|
|
83
|
+
/** Every catalog page, by the `component` URL parameter (`catalog-entries.ts`). */
|
|
84
|
+
export const CATALOG_PAGES: Record<string, ComponentType> = {
|
|
85
|
+
Accordion: AccordionPage,
|
|
86
|
+
AccountMenu: AccountMenuPage,
|
|
87
|
+
ActionBar: ActionBarPage,
|
|
88
|
+
AmbientBackground: AmbientBackgroundPage,
|
|
89
|
+
AnchoredPanel: AnchoredPanelPage,
|
|
90
|
+
AppShell: AppShellPage,
|
|
91
|
+
AppShellNoSpace: AppShellNoSpacePage,
|
|
92
|
+
Avatar: AvatarPage,
|
|
93
|
+
BarChart: BarChartPage,
|
|
94
|
+
BottomSheet: BottomSheetPage,
|
|
95
|
+
Breadcrumbs: BreadcrumbsPage,
|
|
96
|
+
Callout: CalloutPage,
|
|
97
|
+
ChartTheme: ChartThemePage,
|
|
98
|
+
CloudImport: CloudImportPage,
|
|
99
|
+
DeliveryHistory: DeliveryHistoryPage,
|
|
100
|
+
DeliverySubscriptions: DeliverySubscriptionsPage,
|
|
101
|
+
ScheduledTasks: ScheduledTasksPage,
|
|
102
|
+
ColorField: ColorFieldPage,
|
|
103
|
+
CommandPalette: CommandPalettePage,
|
|
104
|
+
ComboboxField: ComboboxFieldPage,
|
|
105
|
+
ConfirmDialog: ConfirmDialogPage,
|
|
106
|
+
ConfirmDialogWarning: ConfirmDialogWarningPage,
|
|
107
|
+
ContextSelector: ContextSelectorPage,
|
|
108
|
+
CopyField: CopyFieldPage,
|
|
109
|
+
LineChart: LineChartPage,
|
|
110
|
+
Pagination: PaginationPage,
|
|
111
|
+
AvatarGroup: AvatarGroupPage,
|
|
112
|
+
TeamAvatar: TeamAvatarPage,
|
|
113
|
+
UserPicker: UserPickerPage,
|
|
114
|
+
CompanySearchField: CompanySearchFieldPage,
|
|
115
|
+
EntityImageField: EntityImageFieldPage,
|
|
116
|
+
DataTable: DataTablePage,
|
|
117
|
+
DateField: DateFieldPage,
|
|
118
|
+
DateRangeField: DateRangeFieldPage,
|
|
119
|
+
Drawer: DrawerPage,
|
|
120
|
+
DropZone: DropZonePage,
|
|
121
|
+
ExpressionSearch: ExpressionSearchPage,
|
|
122
|
+
FacetPanel: FacetPanelPage,
|
|
123
|
+
FilterBar: FilterBarPage,
|
|
124
|
+
FormField: FormFieldPage,
|
|
125
|
+
PasswordField: PasswordFieldPage,
|
|
126
|
+
ErrorBoundary: ErrorBoundaryPage,
|
|
127
|
+
CookieConsent: CookieConsentPage,
|
|
128
|
+
ImportButton: ImportButtonPage,
|
|
129
|
+
ImportFromCloudModal: ImportFromCloudModalPage,
|
|
130
|
+
InfectedDownloadModal: InfectedDownloadModalPage,
|
|
131
|
+
KeyValueList: KeyValueListPage,
|
|
132
|
+
MarkdownEditor: MarkdownEditorPage,
|
|
133
|
+
Menu: MenuPage,
|
|
134
|
+
MethodBadge: MethodBadgePage,
|
|
135
|
+
MobileShell: MobileShellPage,
|
|
136
|
+
Modal: ModalPage,
|
|
137
|
+
NotificationsMenu: NotificationsMenuPage,
|
|
138
|
+
NumberField: NumberFieldPage,
|
|
139
|
+
PageHeader: PageHeaderPage,
|
|
140
|
+
PdfEditor: PdfEditorPage,
|
|
141
|
+
PageState: PageStatePage,
|
|
142
|
+
PreviewDrawer: PreviewDrawerPage,
|
|
143
|
+
ProductTour: ProductTourPage,
|
|
144
|
+
QRCodeModal: QRCodeModalPage,
|
|
145
|
+
RichSelect: RichSelectPage,
|
|
146
|
+
RoleBadge: RoleBadgePage,
|
|
147
|
+
ScanBadge: ScanBadgePage,
|
|
148
|
+
SceneDesktop: SceneDesktopPage,
|
|
149
|
+
SceneMobile: SceneMobilePage,
|
|
150
|
+
Section: SectionPage,
|
|
151
|
+
SegmentedControl: SegmentedControlPage,
|
|
152
|
+
SettingsRow: SettingsRowPage,
|
|
153
|
+
SeverityBadge: SeverityBadgePage,
|
|
154
|
+
Sparkline: SparklinePage,
|
|
155
|
+
SplitView: SplitViewPage,
|
|
156
|
+
StatTile: StatTilePage,
|
|
157
|
+
StatusBadge: StatusBadgePage,
|
|
158
|
+
Surface: SurfacePage,
|
|
159
|
+
SwipeDeck: SwipeDeckPage,
|
|
160
|
+
Tabs: TabsPage,
|
|
161
|
+
Toast: ToastPage,
|
|
162
|
+
Toolbar: ToolbarPage,
|
|
163
|
+
ToolIcon: ToolIconPage,
|
|
164
|
+
UsageMeter: UsageMeterPage,
|
|
165
|
+
ValueMenu: ValueMenuPage,
|
|
166
|
+
};
|
|
@@ -7,9 +7,10 @@ import { catalogPort } from './catalog-port';
|
|
|
7
7
|
// CI run of the catalog checks (`catalog:test:ci`, job `front-core-catalog`): the built catalog
|
|
8
8
|
// (`catalog-dist/`, built by the script just before) served by `vite preview`, instead of the dev
|
|
9
9
|
// server, which transforms every module on demand and makes a shared runner miss its timeouts.
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
10
|
+
// Every spec runs but the captures: responsive and mobile-shell (criteria 15 and 16), the specs of
|
|
11
|
+
// one component (expression-search-scroll, preview-drawer-trail) and cookie-consent-modal (#747).
|
|
12
|
+
// The captures are a human review, produced locally by `catalog:test`, so neither their spec nor the
|
|
13
|
+
// teardown that indexes them runs here.
|
|
13
14
|
const port = catalogPort();
|
|
14
15
|
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
15
16
|
|