@checkstack/cache-frontend 0.3.4 → 0.3.6

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,56 @@
1
1
  # @checkstack/cache-frontend
2
2
 
3
+ ## 0.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e2d6f25]
8
+ - Updated dependencies [41c77f4]
9
+ - Updated dependencies [41c77f4]
10
+ - Updated dependencies [41c77f4]
11
+ - Updated dependencies [41c77f4]
12
+ - Updated dependencies [4832e33]
13
+ - Updated dependencies [6d52276]
14
+ - Updated dependencies [35bc682]
15
+ - Updated dependencies [c39ee69]
16
+ - @checkstack/frontend-api@0.6.0
17
+ - @checkstack/ui@1.11.0
18
+ - @checkstack/common@0.12.0
19
+ - @checkstack/infrastructure-common@0.3.3
20
+ - @checkstack/cache-common@0.4.2
21
+
22
+ ## 0.3.5
23
+
24
+ ### Patch Changes
25
+
26
+ - f23f3c9: Gate decorative motion and blur effects behind
27
+ `usePerformance().isLowPower` on a focused set of high-traffic plugin
28
+ pages (Dashboard, Dependency map, System node, Notification bell,
29
+ Announcement banner / cards, Anomaly field overrides editor, SLO
30
+ attribution chart, Catalog droppable group). Hover scales, backdrop
31
+ blurs, `animate-pulse`/`animate-ping` accents, and entry transitions
32
+ now drop to static states on low-power devices; functional UX
33
+ transitions (Drawer/Dialog open-close, colour transitions) are left
34
+ alone.
35
+
36
+ Standardise the post-mutation error-toast voice on plugin pages by
37
+ migrating multi-clause `toast.error(extractErrorMessage(error, "Failed
38
+ to X"))` call sites onto the `toastError(toast, "Failed to X", error)`
39
+ helper from `@checkstack/ui`. The helper applies the canonical
40
+ `"action: message"` prefix and 100-character truncation in one place,
41
+ and the now-orphaned `extractErrorMessage` imports are dropped from
42
+ the affected files. No business logic or component APIs changed.
43
+
44
+ - Updated dependencies [f23f3c9]
45
+ - Updated dependencies [f23f3c9]
46
+ - Updated dependencies [f23f3c9]
47
+ - Updated dependencies [f23f3c9]
48
+ - @checkstack/common@0.11.0
49
+ - @checkstack/frontend-api@0.5.2
50
+ - @checkstack/ui@1.10.0
51
+ - @checkstack/cache-common@0.4.1
52
+ - @checkstack/infrastructure-common@0.3.2
53
+
3
54
  ## 0.3.4
4
55
 
5
56
  ### 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.6",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,11 +21,11 @@
21
21
  "lint:code": "eslint . --max-warnings 0"
22
22
  },
23
23
  "dependencies": {
24
- "@checkstack/cache-common": "0.4.0",
25
- "@checkstack/common": "0.10.0",
26
- "@checkstack/frontend-api": "0.5.1",
27
- "@checkstack/infrastructure-common": "0.3.1",
28
- "@checkstack/ui": "1.8.3",
24
+ "@checkstack/cache-common": "0.4.1",
25
+ "@checkstack/common": "0.11.0",
26
+ "@checkstack/frontend-api": "0.5.2",
27
+ "@checkstack/infrastructure-common": "0.3.2",
28
+ "@checkstack/ui": "1.10.0",
29
29
  "lucide-react": "^0.468.0",
30
30
  "react": "^18.3.1"
31
31
  },
@@ -33,6 +33,6 @@
33
33
  "@types/react": "^18.3.18",
34
34
  "typescript": "^5.7.2",
35
35
  "@checkstack/tsconfig": "0.0.7",
36
- "@checkstack/scripts": "0.3.2"
36
+ "@checkstack/scripts": "0.3.3"
37
37
  }
38
38
  }
@@ -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