@camunda/ccma-saas-frontend 0.0.39 → 0.0.40
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/lib/esm/components/c4-create-cluster/c4-create-cluster.js +4 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +43 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +3 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +1 -1
- package/package.json +4 -4
|
@@ -351,13 +351,15 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
351
351
|
possiblyVersionOrDockerPath: foundGeneration.version,
|
|
352
352
|
operator: VersionCheckOperator.GreaterThanOrEqual,
|
|
353
353
|
versionToCompareTo: '8.8.0-alpha8',
|
|
354
|
-
trueForSnapshot:
|
|
354
|
+
trueForSnapshot: 'compare',
|
|
355
|
+
trueOnInvalidVersion: false,
|
|
355
356
|
}) &&
|
|
356
357
|
checkVersion({
|
|
357
358
|
possiblyVersionOrDockerPath: foundGeneration.version,
|
|
358
359
|
operator: VersionCheckOperator.LessThan,
|
|
359
360
|
versionToCompareTo: '8.10.0',
|
|
360
|
-
trueForSnapshot:
|
|
361
|
+
trueForSnapshot: 'compare',
|
|
362
|
+
trueOnInvalidVersion: false,
|
|
361
363
|
}));
|
|
362
364
|
}
|
|
363
365
|
catch (_error) {
|
|
@@ -301,3 +301,46 @@ describe('C4CreateCluster older generations toggle', () => {
|
|
|
301
301
|
expect(screen.getByLabelText('Camunda 8.2+gen5')).toBeInTheDocument();
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
|
+
function buildChannelsWithVersion(version) {
|
|
305
|
+
return [
|
|
306
|
+
{
|
|
307
|
+
title: 'Stable',
|
|
308
|
+
description: 'Stable channel',
|
|
309
|
+
uuid: 'stable',
|
|
310
|
+
default: true,
|
|
311
|
+
generations: [
|
|
312
|
+
{
|
|
313
|
+
title: `Camunda ${version}`,
|
|
314
|
+
uuid: `gen-${version}`,
|
|
315
|
+
default: true,
|
|
316
|
+
version: `camunda:${version}`,
|
|
317
|
+
classification: 'channel',
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
];
|
|
322
|
+
}
|
|
323
|
+
function buildPropsWithTasklistToggle(channels) {
|
|
324
|
+
return {
|
|
325
|
+
...buildProps(channels),
|
|
326
|
+
tasklistModeToggle: {
|
|
327
|
+
enabled: true,
|
|
328
|
+
title: 'Tasklist version',
|
|
329
|
+
tasklistApiVersionDocs: 'https://docs.example.com',
|
|
330
|
+
},
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
describe('C4CreateCluster Tasklist mode selector visibility', () => {
|
|
334
|
+
it('shows the Tasklist mode selector for 8.9-SNAPSHOT (within [8.8, 8.10))', () => {
|
|
335
|
+
render(_jsx(C4CreateCluster, { ...buildPropsWithTasklistToggle(buildChannelsWithVersion('8.9-SNAPSHOT')) }));
|
|
336
|
+
expect(screen.getByRole('group', { name: /select tasklist version/i })).toBeInTheDocument();
|
|
337
|
+
});
|
|
338
|
+
it('hides the Tasklist mode selector for 8.10-SNAPSHOT (at or above 8.10)', () => {
|
|
339
|
+
render(_jsx(C4CreateCluster, { ...buildPropsWithTasklistToggle(buildChannelsWithVersion('8.10-SNAPSHOT')) }));
|
|
340
|
+
expect(screen.queryByRole('group', { name: /select tasklist version/i })).not.toBeInTheDocument();
|
|
341
|
+
});
|
|
342
|
+
it('hides the Tasklist mode selector for bare SNAPSHOT (trueOnInvalidVersion: false)', () => {
|
|
343
|
+
render(_jsx(C4CreateCluster, { ...buildPropsWithTasklistToggle(buildChannelsWithVersion('SNAPSHOT')) }));
|
|
344
|
+
expect(screen.queryByRole('group', { name: /select tasklist version/i })).not.toBeInTheDocument();
|
|
345
|
+
});
|
|
346
|
+
});
|
|
@@ -135,14 +135,14 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
135
135
|
}) &&
|
|
136
136
|
checkVersion({
|
|
137
137
|
possiblyVersionOrDockerPath: targetZeebe,
|
|
138
|
-
trueForSnapshot:
|
|
138
|
+
trueForSnapshot: 'compare',
|
|
139
139
|
trueOnInvalidVersion: false,
|
|
140
140
|
operator: VersionCheckOperator.LessThan,
|
|
141
141
|
versionToCompareTo: '8.9.0-alpha1',
|
|
142
142
|
}) &&
|
|
143
143
|
checkVersion({
|
|
144
144
|
possiblyVersionOrDockerPath: currentZeebe,
|
|
145
|
-
trueForSnapshot:
|
|
145
|
+
trueForSnapshot: 'compare',
|
|
146
146
|
trueOnInvalidVersion: false,
|
|
147
147
|
operator: VersionCheckOperator.LessThan,
|
|
148
148
|
versionToCompareTo: '8.8.0-alpha1',
|
|
@@ -179,7 +179,7 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
179
179
|
});
|
|
180
180
|
const currentGenerationNot810Yet = checkVersion({
|
|
181
181
|
possiblyVersionOrDockerPath: currentZeebe,
|
|
182
|
-
trueForSnapshot:
|
|
182
|
+
trueForSnapshot: 'compare',
|
|
183
183
|
trueOnInvalidVersion: false,
|
|
184
184
|
operator: VersionCheckOperator.LessThan,
|
|
185
185
|
versionToCompareTo: '8.10.0',
|
|
@@ -91,7 +91,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
91
91
|
return (checkClusterVersion('8.8.0-alpha2') &&
|
|
92
92
|
checkVersion({
|
|
93
93
|
possiblyVersionOrDockerPath: props.cluster.generation.versions.zeebe,
|
|
94
|
-
trueForSnapshot:
|
|
94
|
+
trueForSnapshot: 'compare',
|
|
95
95
|
operator: VersionCheckOperator.LessThan,
|
|
96
96
|
versionToCompareTo: '8.10.0',
|
|
97
97
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"rimraf": "6.1.3",
|
|
51
51
|
"storybook": "10.3.5",
|
|
52
52
|
"styled-components": "6.4.0",
|
|
53
|
-
"@camunda/camunda-composite-components": "0.23.
|
|
53
|
+
"@camunda/camunda-composite-components": "0.23.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@camunda/c4-connectors": "1.x",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"mobx-react-lite": "4.1.1",
|
|
71
71
|
"mobx-state-tree": "7.2.0",
|
|
72
72
|
"semver": "7.7.4",
|
|
73
|
-
"@camunda/ccma-api": "0.0.
|
|
74
|
-
"@camunda/ccma-shared-types": "0.0.
|
|
73
|
+
"@camunda/ccma-api": "0.0.5",
|
|
74
|
+
"@camunda/ccma-shared-types": "0.0.5"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"clean": "rimraf lib/",
|