@checkstack/gitops-frontend 0.4.3 → 0.4.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/gitops-frontend
2
2
 
3
+ ## 0.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - f23f3c9: Gate decorative motion and blur effects behind
8
+ `usePerformance().isLowPower` on a focused set of high-traffic plugin
9
+ pages (Dashboard, Dependency map, System node, Notification bell,
10
+ Announcement banner / cards, Anomaly field overrides editor, SLO
11
+ attribution chart, Catalog droppable group). Hover scales, backdrop
12
+ blurs, `animate-pulse`/`animate-ping` accents, and entry transitions
13
+ now drop to static states on low-power devices; functional UX
14
+ transitions (Drawer/Dialog open-close, colour transitions) are left
15
+ alone.
16
+
17
+ Standardise the post-mutation error-toast voice on plugin pages by
18
+ migrating multi-clause `toast.error(extractErrorMessage(error, "Failed
19
+ to X"))` call sites onto the `toastError(toast, "Failed to X", error)`
20
+ helper from `@checkstack/ui`. The helper applies the canonical
21
+ `"action: message"` prefix and 100-character truncation in one place,
22
+ and the now-orphaned `extractErrorMessage` imports are dropped from
23
+ the affected files. No business logic or component APIs changed.
24
+
25
+ - Updated dependencies [f23f3c9]
26
+ - Updated dependencies [f23f3c9]
27
+ - Updated dependencies [f23f3c9]
28
+ - Updated dependencies [f23f3c9]
29
+ - @checkstack/common@0.11.0
30
+ - @checkstack/frontend-api@0.5.2
31
+ - @checkstack/ui@1.10.0
32
+ - @checkstack/gitops-common@0.4.1
33
+ - @checkstack/tips-frontend@0.2.5
34
+
35
+ ## 0.4.4
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [a06b899]
40
+ - @checkstack/ui@1.9.0
41
+ - @checkstack/tips-frontend@0.2.4
42
+
3
43
  ## 0.4.3
4
44
 
5
45
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/gitops-frontend",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.tsx",
@@ -16,8 +16,8 @@
16
16
  "@checkstack/common": "0.10.0",
17
17
  "@checkstack/frontend-api": "0.5.1",
18
18
  "@checkstack/gitops-common": "0.4.0",
19
- "@checkstack/tips-frontend": "0.2.2",
20
- "@checkstack/ui": "1.8.2",
19
+ "@checkstack/tips-frontend": "0.2.4",
20
+ "@checkstack/ui": "1.9.0",
21
21
  "lucide-react": "^0.344.0",
22
22
  "react": "^18.2.0",
23
23
  "react-router-dom": "^6.22.0"
@@ -21,6 +21,7 @@ import {
21
21
  ConfirmationModal,
22
22
  Badge,
23
23
  useToast,
24
+ toastError,
24
25
  } from "@checkstack/ui";
25
26
  import {
26
27
  Plus,
@@ -30,7 +31,6 @@ import {
30
31
  Github,
31
32
  GitlabIcon,
32
33
  } from "lucide-react";
33
- import { extractErrorMessage } from "@checkstack/common";
34
34
  import { ProviderEditor } from "./ProviderEditor";
35
35
 
36
36
  const formatInterval = (seconds: number) => {
@@ -82,7 +82,7 @@ export const ProviderList = () => {
82
82
  void refetch();
83
83
  },
84
84
  onError: (error) => {
85
- toast.error(extractErrorMessage(error, "Failed to create provider"));
85
+ toastError(toast, "Failed to create provider", error);
86
86
  },
87
87
  });
88
88
 
@@ -94,7 +94,7 @@ export const ProviderList = () => {
94
94
  void refetch();
95
95
  },
96
96
  onError: (error) => {
97
- toast.error(extractErrorMessage(error, "Failed to update provider"));
97
+ toastError(toast, "Failed to update provider", error);
98
98
  },
99
99
  });
100
100
 
@@ -105,7 +105,7 @@ export const ProviderList = () => {
105
105
  void refetch();
106
106
  },
107
107
  onError: (error) => {
108
- toast.error(extractErrorMessage(error, "Failed to delete provider"));
108
+ toastError(toast, "Failed to delete provider", error);
109
109
  },
110
110
  });
111
111
 
@@ -115,7 +115,7 @@ export const ProviderList = () => {
115
115
  void refetch();
116
116
  },
117
117
  onError: (error) => {
118
- toast.error(extractErrorMessage(error, "Failed to trigger sync"));
118
+ toastError(toast, "Failed to trigger sync", error);
119
119
  },
120
120
  });
121
121
 
@@ -16,9 +16,9 @@ import {
16
16
  ConfirmationModal,
17
17
  useToast,
18
18
  Badge,
19
+ toastError,
19
20
  } from "@checkstack/ui";
20
21
  import { Plus, RotateCw, Trash2, KeyRound, ChevronDown, ChevronRight } from "lucide-react";
21
- import { extractErrorMessage } from "@checkstack/common";
22
22
  import { SecretEditor } from "./SecretEditor";
23
23
  import { SecretRotateDialog } from "./SecretRotateDialog";
24
24
 
@@ -97,7 +97,7 @@ export const SecretList = () => {
97
97
  void refetch();
98
98
  },
99
99
  onError: (error) => {
100
- toast.error(extractErrorMessage(error, "Failed to create secret"));
100
+ toastError(toast, "Failed to create secret", error);
101
101
  },
102
102
  });
103
103
 
@@ -108,7 +108,7 @@ export const SecretList = () => {
108
108
  void refetch();
109
109
  },
110
110
  onError: (error) => {
111
- toast.error(extractErrorMessage(error, "Failed to rotate secret"));
111
+ toastError(toast, "Failed to rotate secret", error);
112
112
  },
113
113
  });
114
114
 
@@ -119,7 +119,7 @@ export const SecretList = () => {
119
119
  void refetch();
120
120
  },
121
121
  onError: (error) => {
122
- toast.error(extractErrorMessage(error, "Failed to delete secret"));
122
+ toastError(toast, "Failed to delete secret", error);
123
123
  },
124
124
  });
125
125