@checkstack/queue-frontend 0.4.4 → 0.4.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,58 @@
1
1
  # @checkstack/queue-frontend
2
2
 
3
+ ## 0.4.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/queue-common@0.5.2
21
+ - @checkstack/signal-frontend@0.1.5
22
+
23
+ ## 0.4.5
24
+
25
+ ### Patch Changes
26
+
27
+ - f23f3c9: Gate decorative motion and blur effects behind
28
+ `usePerformance().isLowPower` on a focused set of high-traffic plugin
29
+ pages (Dashboard, Dependency map, System node, Notification bell,
30
+ Announcement banner / cards, Anomaly field overrides editor, SLO
31
+ attribution chart, Catalog droppable group). Hover scales, backdrop
32
+ blurs, `animate-pulse`/`animate-ping` accents, and entry transitions
33
+ now drop to static states on low-power devices; functional UX
34
+ transitions (Drawer/Dialog open-close, colour transitions) are left
35
+ alone.
36
+
37
+ Standardise the post-mutation error-toast voice on plugin pages by
38
+ migrating multi-clause `toast.error(extractErrorMessage(error, "Failed
39
+ to X"))` call sites onto the `toastError(toast, "Failed to X", error)`
40
+ helper from `@checkstack/ui`. The helper applies the canonical
41
+ `"action: message"` prefix and 100-character truncation in one place,
42
+ and the now-orphaned `extractErrorMessage` imports are dropped from
43
+ the affected files. No business logic or component APIs changed.
44
+
45
+ - Updated dependencies [f23f3c9]
46
+ - Updated dependencies [f23f3c9]
47
+ - Updated dependencies [f23f3c9]
48
+ - Updated dependencies [f23f3c9]
49
+ - @checkstack/common@0.11.0
50
+ - @checkstack/frontend-api@0.5.2
51
+ - @checkstack/ui@1.10.0
52
+ - @checkstack/infrastructure-common@0.3.2
53
+ - @checkstack/queue-common@0.5.1
54
+ - @checkstack/signal-frontend@0.1.4
55
+
3
56
  ## 0.4.4
4
57
 
5
58
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/queue-frontend",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,12 +21,12 @@
21
21
  "lint:code": "eslint . --max-warnings 0"
22
22
  },
23
23
  "dependencies": {
24
- "@checkstack/common": "0.10.0",
25
- "@checkstack/frontend-api": "0.5.1",
26
- "@checkstack/infrastructure-common": "0.3.1",
27
- "@checkstack/queue-common": "0.5.0",
28
- "@checkstack/signal-frontend": "0.1.3",
29
- "@checkstack/ui": "1.8.3",
24
+ "@checkstack/common": "0.11.0",
25
+ "@checkstack/frontend-api": "0.5.2",
26
+ "@checkstack/infrastructure-common": "0.3.2",
27
+ "@checkstack/queue-common": "0.5.1",
28
+ "@checkstack/signal-frontend": "0.1.4",
29
+ "@checkstack/ui": "1.10.0",
30
30
  "ajv": "^8.18.0",
31
31
  "ajv-formats": "^3.0.1",
32
32
  "lucide-react": "^0.468.0",
@@ -38,6 +38,6 @@
38
38
  "@types/react": "^18.3.18",
39
39
  "typescript": "^5.7.2",
40
40
  "@checkstack/tsconfig": "0.0.7",
41
- "@checkstack/scripts": "0.3.2"
41
+ "@checkstack/scripts": "0.3.3"
42
42
  }
43
43
  }
@@ -16,10 +16,10 @@ import {
16
16
  CardTitle,
17
17
  PluginConfigForm,
18
18
  useToast,
19
+ toastError,
19
20
  } from "@checkstack/ui";
20
21
  import { AlertTriangle, Save, Info, Gauge, Activity } from "lucide-react";
21
22
  import { QueueLagAlert } from "./QueueLagAlert";
22
- import { extractErrorMessage } from "@checkstack/common";
23
23
 
24
24
  /**
25
25
  * Queue configuration tab component.
@@ -61,8 +61,7 @@ export const QueueConfigTab = ({ canUpdate }: { canUpdate: boolean }) => {
61
61
  toast.success("Configuration saved successfully!");
62
62
  refetchConfig();
63
63
  } catch (error) {
64
- const message = extractErrorMessage(error);
65
- toast.error(`Failed to save configuration: ${message}`);
64
+ toastError(toast, "Failed to save queue configuration", error);
66
65
  }
67
66
  };
68
67
 
@@ -23,10 +23,10 @@ import {
23
23
  CardHeader,
24
24
  CardTitle,
25
25
  useToast,
26
+ toastError,
26
27
  } from "@checkstack/ui";
27
28
  import { AlertTriangle, Save, Info, Gauge, Activity } from "lucide-react";
28
29
  import { QueueLagAlert } from "../components/QueueLagAlert";
29
- import { extractErrorMessage } from "@checkstack/common";
30
30
 
31
31
  const QueueConfigPageContent = () => {
32
32
  const queueClient = usePluginClient(QueueApi);
@@ -66,8 +66,7 @@ const QueueConfigPageContent = () => {
66
66
  toast.success("Configuration saved successfully!");
67
67
  refetchConfig();
68
68
  } catch (error) {
69
- const message = extractErrorMessage(error);
70
- toast.error(`Failed to save configuration: ${message}`);
69
+ toastError(toast, "Failed to save queue configuration", error);
71
70
  }
72
71
  };
73
72