@checkstack/cache-frontend 0.3.4 → 0.3.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,37 @@
1
1
  # @checkstack/cache-frontend
2
2
 
3
+ ## 0.3.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/cache-common@0.4.1
33
+ - @checkstack/infrastructure-common@0.3.2
34
+
3
35
  ## 0.3.4
4
36
 
5
37
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/cache-frontend",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "@checkstack/common": "0.10.0",
26
26
  "@checkstack/frontend-api": "0.5.1",
27
27
  "@checkstack/infrastructure-common": "0.3.1",
28
- "@checkstack/ui": "1.8.3",
28
+ "@checkstack/ui": "1.9.0",
29
29
  "lucide-react": "^0.468.0",
30
30
  "react": "^18.3.1"
31
31
  },
@@ -16,9 +16,9 @@ import {
16
16
  CardTitle,
17
17
  PluginConfigForm,
18
18
  useToast,
19
+ toastError,
19
20
  } from "@checkstack/ui";
20
21
  import { AlertTriangle, Save, Info, HardDrive } from "lucide-react";
21
- import { extractErrorMessage } from "@checkstack/common";
22
22
 
23
23
  /**
24
24
  * Cache configuration tab component.
@@ -57,8 +57,7 @@ export const CacheConfigTab = ({ canUpdate }: { canUpdate: boolean }) => {
57
57
  toast.success("Cache configuration saved successfully!");
58
58
  refetchConfig();
59
59
  } catch (error) {
60
- const message = extractErrorMessage(error);
61
- toast.error(`Failed to save cache configuration: ${message}`);
60
+ toastError(toast, "Failed to save cache configuration", error);
62
61
  }
63
62
  };
64
63