@camunda/ccma-saas-frontend 0.3.0 → 0.3.1

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.
@@ -8,7 +8,7 @@ export declare enum StatusColor {
8
8
  SUSPENDED = "var(--cds-icon-secondary)"
9
9
  }
10
10
  export type ClusterStatus = 'healthy' | 'unhealthy' | 'creating' | 'updating' | 'waitingForInput' | 'suspended' | 'resuming' | 'maintenance' | 'restoring';
11
- export declare const normalizeClusterStatus: (status: string | undefined) => ClusterStatus | undefined;
11
+ export declare const normalizeClusterStatus: (status: string | undefined | null) => ClusterStatus | undefined;
12
12
  export interface ApplicationTileProps {
13
13
  name: string;
14
14
  status?: ClusterStatus;
@@ -55,7 +55,7 @@ export type { C4ClusterDetailsSecureConnectivityProps, C4ClusterDetailsSecureCon
55
55
  export { C4ClusterList } from './components/c4-cluster-list/c4-cluster-list';
56
56
  export type { C4ClusterListProps, ClusterListItem, ClusterListNotification, ClusterListPermissions, ClusterListUrls, } from './components/c4-cluster-list/c4-cluster-list.types';
57
57
  export type { ApplicationsProps, ApplicationTileProps, ClusterStatus, } from './components/c4-cluster-overview/applications';
58
- export { ClusterStatusElement } from './components/c4-cluster-overview/applications';
58
+ export { ClusterStatusElement, normalizeClusterStatus, } from './components/c4-cluster-overview/applications';
59
59
  export { C4ClusterOverview, C4IconAndTextElement, getClusterLoadConfig, } from './components/c4-cluster-overview/c4-cluster-overview';
60
60
  export type { C4ClusterOverviewProps, RbaNotificationProps, } from './components/c4-cluster-overview/c4-cluster-overview.types';
61
61
  export type { ClusterDetailsGenerationUpdateProps, ClusterDetailsProps, } from './components/c4-cluster-overview/cluster-details';
package/lib/esm/index.js CHANGED
@@ -31,7 +31,7 @@ export { C4ClusterDetailsHotBackupsRestore } from './components/c4-cluster-detai
31
31
  export { C4ClusterDetailsIpWhitelist } from './components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js';
32
32
  export { C4ClusterDetailsSecureConnectivity } from './components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js';
33
33
  export { C4ClusterList } from './components/c4-cluster-list/c4-cluster-list.js';
34
- export { ClusterStatusElement } from './components/c4-cluster-overview/applications.js';
34
+ export { ClusterStatusElement, normalizeClusterStatus, } from './components/c4-cluster-overview/applications.js';
35
35
  export { C4ClusterOverview, C4IconAndTextElement, getClusterLoadConfig, } from './components/c4-cluster-overview/c4-cluster-overview.js';
36
36
  export { C4ClusterSettings } from './components/c4-cluster-settings/c4-cluster-settings.js';
37
37
  export { C4ClusterTagSelector } from './components/c4-cluster-tag-selector/c4-cluster-tag-selector.js';
@@ -25,7 +25,8 @@ export const C4ConnectorManagementExecutablesTablePage = observer(({ orgId, clus
25
25
  if (!isProviderReady) {
26
26
  return _jsx("p", { children: "Loading..." });
27
27
  }
28
- return (_jsx(Provider, { children: _jsx(C4ExecutablesTable, { connectorId: connectorId, showRestartButton: checkClusterVersion('8.10.0-alpha3'), operateBaseUrl: operateBaseUrl ?? undefined, onClick: (connectorInstanceId) => {
28
+ const show810Alpha3Features = checkClusterVersion('8.10.0-alpha3');
29
+ return (_jsx(Provider, { children: _jsx(C4ExecutablesTable, { connectorId: connectorId, showRestartButton: show810Alpha3Features, showMetrics: show810Alpha3Features, operateBaseUrl: operateBaseUrl ?? undefined, onClick: (connectorInstanceId) => {
29
30
  sendNavigate(onNavigate, {
30
31
  kind: 'connectorExecutableDetails',
31
32
  orgId,
@@ -14,7 +14,7 @@ function sendNavigate(onNavigate, event) {
14
14
  onNavigate?.(event);
15
15
  }
16
16
  export const C4ConnectorManagementOutboundDetailsPage = observer(({ orgId, clusterId, connectorType, onNavigate, }) => {
17
- const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider } = useConnectorManagementRuntime({ orgId, clusterId });
17
+ const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider, checkClusterVersion, } = useConnectorManagementRuntime({ orgId, clusterId });
18
18
  const content = useMemo(() => {
19
19
  if (isLoading) {
20
20
  return _jsx("p", { children: "Loading..." });
@@ -25,8 +25,15 @@ export const C4ConnectorManagementOutboundDetailsPage = observer(({ orgId, clust
25
25
  if (!isProviderReady) {
26
26
  return _jsx("p", { children: "Loading..." });
27
27
  }
28
- return (_jsx(Provider, { children: _jsx(C4OutboundConnectorDetails, { connectorType: connectorType }) }));
29
- }, [Provider, connectorType, connectorsUrl, isLoading, isProviderReady]);
28
+ return (_jsx(Provider, { children: _jsx(C4OutboundConnectorDetails, { connectorType: connectorType, showMetrics: checkClusterVersion('8.10.0-alpha3') }) }));
29
+ }, [
30
+ Provider,
31
+ checkClusterVersion,
32
+ connectorType,
33
+ connectorsUrl,
34
+ isLoading,
35
+ isProviderReady,
36
+ ]);
30
37
  return (_jsx(C4PageTemplate, { header: {
31
38
  title: connectorType,
32
39
  }, loading: isLoading, breadcrumbs: {
@@ -52,7 +52,7 @@ export const C4ConnectorManagementPage = observer(({ orgId, clusterId, activeTab
52
52
  });
53
53
  } }) }));
54
54
  }
55
- return (_jsx(Provider, { children: _jsx(C4ConnectorsHome, { selectedIndex: activeTab === 'outbound' ? 1 : 0, onTabChange: (index) => {
55
+ return (_jsx(Provider, { children: _jsx(C4ConnectorsHome, { showMetrics: true, selectedIndex: activeTab === 'outbound' ? 1 : 0, onTabChange: (index) => {
56
56
  sendNavigate(onNavigate, {
57
57
  kind: 'tabChange',
58
58
  orgId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/ccma-saas-frontend",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Camunda Composite Components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
@@ -23,7 +23,7 @@
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
25
  "devDependencies": {
26
- "@camunda/c4-connectors": "1.8.0",
26
+ "@camunda/c4-connectors": "1.10.1",
27
27
  "@playwright/test": "1.61.0",
28
28
  "@camunda/c4-identity": "0.0.44",
29
29
  "@camunda/design-system": "0.21.1",