@checkstack/dependency-frontend 0.5.4 → 0.5.5

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 CHANGED
@@ -1,5 +1,45 @@
1
1
  # @checkstack/dependency-frontend
2
2
 
3
+ ## 0.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 56e7c75: Hide navigation, actions and links that the current user cannot use, so anonymous
8
+ and read-only users no longer see entries that lead to "Access Denied" or to
9
+ actions the server would reject.
10
+
11
+ - **Sidebar**: a nav entry can now declare a dynamic `nav.isVisible({ accessRules, isAuthenticated })` predicate (in addition to the static `accessRule`). A group whose every entry is filtered out is no longer rendered. The filtering/grouping logic is extracted to a pure, unit-tested helper.
12
+ - **Infrastructure**: its sidebar entry is shown only when the user can READ at least one contributed tab (queue, cache, …), instead of always (it previously had no static rule because tabs are contributed at runtime).
13
+ - **Notification Settings**: hidden from anonymous users - notifications are per-user, so an anonymous visitor can't have any.
14
+ - **Anomaly Mute / Suppress**: the "Mute" / "Mute all" controls (a per-user preference) are hidden from anonymous visitors; the "Suppress" control is gated on `anomalyAccess.feed.manage`. Both were previously always visible.
15
+ - **Dashboard**: the "Open Catalog" actions (which open the manage-only Catalog config page) are hidden from users without `catalogAccess.system.manage`, and the "View catalog" link is gated on `catalogAccess.system.read`.
16
+ - **Dashboard status signals**: the per-system status rows contributed by plugins (`SystemSignalsSlot`) now render as a LINK only when the user can open the target, and as plain text otherwise. `SystemSignal` gains an optional `accessRule`; the healthcheck, anomaly, and dependency fillers set it for their gated targets (check-history / assignments / dependency-map). Signals pointing at ungated pages (incident / maintenance / SLO detail) stay links.
17
+ - **Plugin Manager**: the "Install plugin" button (which opens the install-gated page) is hidden from users with only `plugin` view access.
18
+ - **Satellites**: the page is entirely manage-gated, but its route/sidebar entry was gated on `read`, so read-only users saw the nav item and hit "Access Denied" on click. The route and nav entry now require `satellite.manage`.
19
+
20
+ The `@checkstack/ai-backend` bump is only the regenerated bundled docs index
21
+ (the frontend routing guide gained the `nav.isVisible` section); no code change.
22
+
23
+ **BREAKING (`@checkstack/frontend-api`):** the `AccessApi` interface gains a
24
+ required `useIsAuthenticated()` method. Custom `AccessApi` implementations must
25
+ add it (it returns `{ loading, isAuthenticated }`). The built-in auth
26
+ implementation and the no-auth fallback already do. `NavEntry` also gains an
27
+ optional `isVisible` predicate (purely additive).
28
+
29
+ - Updated dependencies [460ffd6]
30
+ - Updated dependencies [56e7c75]
31
+ - Updated dependencies [56e7c75]
32
+ - @checkstack/dashboard-frontend@0.8.5
33
+ - @checkstack/frontend-api@0.9.0
34
+ - @checkstack/catalog-common@2.3.4
35
+ - @checkstack/ui@1.15.1
36
+ - @checkstack/common@0.15.0
37
+ - @checkstack/dependency-common@1.2.4
38
+ - @checkstack/gitops-common@0.6.3
39
+ - @checkstack/healthcheck-common@1.5.4
40
+ - @checkstack/gitops-frontend@0.5.5
41
+ - @checkstack/signal-frontend@0.2.4
42
+
3
43
  ## 0.5.4
4
44
 
5
45
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/dependency-frontend",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.tsx",
@@ -13,16 +13,16 @@
13
13
  "lint:code": "eslint . --max-warnings 0"
14
14
  },
15
15
  "dependencies": {
16
- "@checkstack/catalog-common": "2.3.3",
17
- "@checkstack/common": "0.14.1",
18
- "@checkstack/dashboard-frontend": "0.8.4",
19
- "@checkstack/dependency-common": "1.2.3",
20
- "@checkstack/frontend-api": "0.8.0",
21
- "@checkstack/gitops-common": "0.6.2",
22
- "@checkstack/gitops-frontend": "0.5.4",
23
- "@checkstack/healthcheck-common": "1.5.3",
24
- "@checkstack/signal-frontend": "0.2.3",
25
- "@checkstack/ui": "1.15.0",
16
+ "@checkstack/catalog-common": "2.3.4",
17
+ "@checkstack/common": "0.15.0",
18
+ "@checkstack/dashboard-frontend": "0.8.5",
19
+ "@checkstack/dependency-common": "1.2.4",
20
+ "@checkstack/frontend-api": "0.9.0",
21
+ "@checkstack/gitops-common": "0.6.3",
22
+ "@checkstack/gitops-frontend": "0.5.5",
23
+ "@checkstack/healthcheck-common": "1.5.4",
24
+ "@checkstack/signal-frontend": "0.2.4",
25
+ "@checkstack/ui": "1.15.1",
26
26
  "@xyflow/react": "^12.11.0",
27
27
  "lucide-react": "^1.17.0",
28
28
  "react": "19.2.7",
@@ -32,6 +32,6 @@
32
32
  "typescript": "^5.0.0",
33
33
  "@types/react": "^19.0.0",
34
34
  "@checkstack/tsconfig": "0.0.7",
35
- "@checkstack/scripts": "0.6.0"
35
+ "@checkstack/scripts": "0.6.1"
36
36
  }
37
37
  }
@@ -9,6 +9,7 @@ import {
9
9
  import {
10
10
  DependencyApi,
11
11
  dependencyRoutes,
12
+ dependencyAccess,
12
13
  type DerivedState,
13
14
  } from "@checkstack/dependency-common";
14
15
 
@@ -63,6 +64,8 @@ export const DependencySignalsFiller: React.FC<Props> = ({
63
64
  ? `${upstreamCount} upstream ${upstreamCount === 1 ? "system" : "systems"} affected`
64
65
  : undefined,
65
66
  href: resolveRoute(dependencyRoutes.routes.map),
67
+ // The dependency map is gated; render as text for users without access.
68
+ accessRule: dependencyAccess.dependency.read,
66
69
  iconName: "GitBranch",
67
70
  };
68
71
  result[systemId] = [signal];