@checkstack/catalog-frontend 0.10.4 → 0.10.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,70 @@
1
1
  # @checkstack/catalog-frontend
2
2
 
3
+ ## 0.10.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/auth-frontend@0.6.6
20
+ - @checkstack/catalog-common@2.2.3
21
+ - @checkstack/gitops-frontend@0.4.6
22
+ - @checkstack/notification-frontend@0.4.6
23
+ - @checkstack/tips-frontend@0.2.6
24
+ - @checkstack/auth-common@0.7.2
25
+ - @checkstack/notification-common@1.2.1
26
+
27
+ ## 0.10.5
28
+
29
+ ### Patch Changes
30
+
31
+ - f23f3c9: Gate decorative motion and blur effects behind
32
+ `usePerformance().isLowPower` on a focused set of high-traffic plugin
33
+ pages (Dashboard, Dependency map, System node, Notification bell,
34
+ Announcement banner / cards, Anomaly field overrides editor, SLO
35
+ attribution chart, Catalog droppable group). Hover scales, backdrop
36
+ blurs, `animate-pulse`/`animate-ping` accents, and entry transitions
37
+ now drop to static states on low-power devices; functional UX
38
+ transitions (Drawer/Dialog open-close, colour transitions) are left
39
+ alone.
40
+
41
+ Standardise the post-mutation error-toast voice on plugin pages by
42
+ migrating multi-clause `toast.error(extractErrorMessage(error, "Failed
43
+ to X"))` call sites onto the `toastError(toast, "Failed to X", error)`
44
+ helper from `@checkstack/ui`. The helper applies the canonical
45
+ `"action: message"` prefix and 100-character truncation in one place,
46
+ and the now-orphaned `extractErrorMessage` imports are dropped from
47
+ the affected files. No business logic or component APIs changed.
48
+
49
+ - Updated dependencies [f23f3c9]
50
+ - Updated dependencies [f23f3c9]
51
+ - Updated dependencies [f23f3c9]
52
+ - Updated dependencies [f23f3c9]
53
+ - Updated dependencies [f23f3c9]
54
+ - Updated dependencies [f23f3c9]
55
+ - Updated dependencies [f23f3c9]
56
+ - Updated dependencies [f23f3c9]
57
+ - @checkstack/common@0.11.0
58
+ - @checkstack/auth-frontend@0.6.5
59
+ - @checkstack/notification-common@1.2.0
60
+ - @checkstack/notification-frontend@0.4.5
61
+ - @checkstack/frontend-api@0.5.2
62
+ - @checkstack/gitops-frontend@0.4.5
63
+ - @checkstack/ui@1.10.0
64
+ - @checkstack/auth-common@0.7.1
65
+ - @checkstack/catalog-common@2.2.2
66
+ - @checkstack/tips-frontend@0.2.5
67
+
3
68
  ## 0.10.4
4
69
 
5
70
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/catalog-frontend",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
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/auth-common": "0.7.0",
17
- "@checkstack/auth-frontend": "0.6.3",
18
- "@checkstack/catalog-common": "2.2.0",
19
- "@checkstack/common": "0.10.0",
20
- "@checkstack/frontend-api": "0.5.1",
21
- "@checkstack/gitops-frontend": "0.4.3",
22
- "@checkstack/notification-common": "1.1.0",
23
- "@checkstack/notification-frontend": "0.4.3",
24
- "@checkstack/tips-frontend": "0.2.3",
25
- "@checkstack/ui": "1.8.3",
16
+ "@checkstack/auth-common": "0.7.1",
17
+ "@checkstack/auth-frontend": "0.6.5",
18
+ "@checkstack/catalog-common": "2.2.2",
19
+ "@checkstack/common": "0.11.0",
20
+ "@checkstack/frontend-api": "0.5.2",
21
+ "@checkstack/gitops-frontend": "0.4.5",
22
+ "@checkstack/notification-common": "1.2.0",
23
+ "@checkstack/notification-frontend": "0.4.5",
24
+ "@checkstack/tips-frontend": "0.2.5",
25
+ "@checkstack/ui": "1.10.0",
26
26
  "@dnd-kit/core": "^6.3.1",
27
27
  "@dnd-kit/utilities": "^3.2.2",
28
28
  "lucide-react": "^0.344.0",
@@ -33,6 +33,6 @@
33
33
  "typescript": "^5.0.0",
34
34
  "@types/react": "^18.2.0",
35
35
  "@checkstack/tsconfig": "0.0.7",
36
- "@checkstack/scripts": "0.3.2"
36
+ "@checkstack/scripts": "0.3.3"
37
37
  }
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import { useDroppable } from "@dnd-kit/core";
2
- import { EditableText, Button } from "@checkstack/ui";
2
+ import { EditableText, Button, cn, usePerformance } from "@checkstack/ui";
3
3
  import { Trash2 } from "lucide-react";
4
4
  import {
5
5
  useProvenanceLock,
@@ -38,6 +38,7 @@ export const DroppableGroup = ({
38
38
  onUpdateGroupName,
39
39
  onRemoveSystem,
40
40
  }: DroppableGroupProps) => {
41
+ const { isLowPower } = usePerformance();
41
42
  const { setNodeRef } = useDroppable({ id: group.id });
42
43
 
43
44
  const { isLocked, provenance } = useProvenanceLock({
@@ -56,15 +57,17 @@ export const DroppableGroup = ({
56
57
  return (
57
58
  <div
58
59
  ref={setNodeRef}
59
- className={`p-3 rounded-lg border space-y-2 transition-all duration-150 ${
60
+ className={cn(
61
+ "p-3 rounded-lg border space-y-2",
62
+ !isLowPower && "transition-all duration-150",
60
63
  isOver && !draggingSystemAlreadyInGroup
61
64
  ? "border-primary bg-primary/5 shadow-md shadow-primary/10"
62
65
  : isOver && draggingSystemAlreadyInGroup
63
66
  ? "border-muted-foreground/40 bg-muted/10"
64
67
  : dropzoneActive
65
68
  ? "border-border/60 bg-muted/20 border-dashed"
66
- : "border-border bg-muted/30"
67
- }`}
69
+ : "border-border bg-muted/30",
70
+ )}
68
71
  >
69
72
  {/* Group header */}
70
73
  <div className="flex items-center justify-between">
@@ -119,11 +122,13 @@ export const DroppableGroup = ({
119
122
  return (
120
123
  <div
121
124
  key={sys.id}
122
- className={`flex items-center justify-between text-sm bg-background p-2 rounded border transition-all duration-700 ${
125
+ className={cn(
126
+ "flex items-center justify-between text-sm bg-background p-2 rounded border",
127
+ !isLowPower && "transition-all duration-700",
123
128
  isNew
124
129
  ? "border-green-500/60 shadow-sm shadow-green-500/30"
125
- : "border-border shadow-none"
126
- }`}
130
+ : "border-border shadow-none",
131
+ )}
127
132
  >
128
133
  <span className="text-foreground truncate flex items-center gap-1.5">
129
134
  {systemLocked && systemLock.provenance ? (