@camunda/camunda-composite-components 0.13.0 → 0.13.1-rc.2

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.
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.12.0",
7
+ "version": "0.13.1-rc.1",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",
@@ -141,7 +141,12 @@ export const C3NavigationAppBar = ({ app: appProps, appBar, forwardRef, navbar,
141
141
  }
142
142
  else {
143
143
  const hasAppReadPermission = activeOrg?.permissions?.cluster?.[app]?.read;
144
- const clustersToRender = clusters?.filter(({ status, endpoints }) => status[app] === "Healthy" && endpoints[app] && hasAppReadPermission);
144
+ const clustersToRender = clusters?.filter(({ status, endpoints, generation }) => status[app] === "Healthy" &&
145
+ endpoints[app] &&
146
+ // either the user has appreadpermissions on this app
147
+ (hasAppReadPermission ||
148
+ // OR this is a 8.7+ cluster - in this case we also allow rendering this item
149
+ [1, 2, 3, 4, 5, 6].every((pre7Minor) => !generation.name.includes(`8.${pre7Minor}`))));
145
150
  if (clustersToRender?.length === 1) {
146
151
  if (currentApp !== app)
147
152
  element.href = clustersToRender?.[0].endpoints[app];
@@ -48,5 +48,8 @@ export type Cluster = {
48
48
  labels?: {
49
49
  camunda: string[];
50
50
  };
51
+ generation: {
52
+ name: string;
53
+ };
51
54
  };
52
55
  export {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/camunda-cloud/camunda-composite-components.git"
6
6
  },
7
- "version": "0.13.0",
7
+ "version": "0.13.1-rc.2",
8
8
  "scripts": {
9
9
  "clean": "rimraf lib/",
10
10
  "build": "yarn clean && tsc",