@checkstack/anomaly-frontend 0.6.15 → 0.6.16
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 +65 -0
- package/package.json +9 -9
- package/src/components/anomalyTone.logic.ts +8 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# @checkstack/anomaly-frontend
|
|
2
2
|
|
|
3
|
+
## 0.6.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be74b01: Source every status tone from the one shared table
|
|
8
|
+
|
|
9
|
+
Nineteen plugin modules each re-declared the tone-to-class table verbatim
|
|
10
|
+
(`pill: "bg-status-ok/10 text-status-ok"`, `dot: "bg-status-ok"`, ...), some
|
|
11
|
+
reproducing every field of the shared one. They now take those classes from
|
|
12
|
+
`pillToneStyles` in `@checkstack/ui` while keeping their own domain mapping -
|
|
13
|
+
which value means which tone - since that is real domain knowledge and is unit
|
|
14
|
+
tested. A repo-wide search for a hand-written triad row now returns only the
|
|
15
|
+
shared table.
|
|
16
|
+
|
|
17
|
+
Several hand-rolled pills went with them, onto the shared `StatusPill`: the
|
|
18
|
+
automation run pill, the satellite status badge, the notification channel pill,
|
|
19
|
+
the SLO objective pill and both AI tool-card pills.
|
|
20
|
+
|
|
21
|
+
Four rows are deliberately still local, each with a comment saying why, because
|
|
22
|
+
they are NOT the shared tone despite looking like it:
|
|
23
|
+
|
|
24
|
+
- The dashboard's `info` uses the `--info` token, a different hue from
|
|
25
|
+
`--status-info` (light: `217 91% 60%` vs `214 90% 45%`).
|
|
26
|
+
- Integrations' and notifications' `unknown`/`neutral` use the muted treatment -
|
|
27
|
+
the ABSENCE of a tone - not the shared grey.
|
|
28
|
+
- The queue's "processing" uses opacity-softened muted classes that match
|
|
29
|
+
neither the shared table nor the pill's neutral.
|
|
30
|
+
|
|
31
|
+
One genuine class divergence was found and NOT normalised: the system incident
|
|
32
|
+
panel draws its borders at `/30` where the shared table uses `/20`. It is now a
|
|
33
|
+
single documented map instead of a full private table.
|
|
34
|
+
|
|
35
|
+
Pills whose geometry has no shared equivalent (the dependency canvas node with
|
|
36
|
+
its animated halo, the incident panel's compact chips, the dashboard's
|
|
37
|
+
non-triad signal tone) keep their markup and now only share the classes.
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [be74b01]
|
|
40
|
+
- Updated dependencies [be5c907]
|
|
41
|
+
- Updated dependencies [be74b01]
|
|
42
|
+
- Updated dependencies [be74b01]
|
|
43
|
+
- Updated dependencies [be74b01]
|
|
44
|
+
- Updated dependencies [be74b01]
|
|
45
|
+
- Updated dependencies [be74b01]
|
|
46
|
+
- Updated dependencies [be74b01]
|
|
47
|
+
- Updated dependencies [be74b01]
|
|
48
|
+
- Updated dependencies [be74b01]
|
|
49
|
+
- Updated dependencies [be74b01]
|
|
50
|
+
- Updated dependencies [be74b01]
|
|
51
|
+
- Updated dependencies [be74b01]
|
|
52
|
+
- Updated dependencies [be74b01]
|
|
53
|
+
- Updated dependencies [be74b01]
|
|
54
|
+
- Updated dependencies [be74b01]
|
|
55
|
+
- Updated dependencies [be74b01]
|
|
56
|
+
- Updated dependencies [be74b01]
|
|
57
|
+
- Updated dependencies [be74b01]
|
|
58
|
+
- Updated dependencies [be74b01]
|
|
59
|
+
- @checkstack/ui@1.30.0
|
|
60
|
+
- @checkstack/notification-frontend@0.9.7
|
|
61
|
+
- @checkstack/healthcheck-frontend@0.38.0
|
|
62
|
+
- @checkstack/notification-common@1.8.0
|
|
63
|
+
- @checkstack/healthcheck-common@1.19.0
|
|
64
|
+
- @checkstack/frontend-api@0.17.0
|
|
65
|
+
- @checkstack/anomaly-common@1.8.3
|
|
66
|
+
- @checkstack/catalog-common@2.8.1
|
|
67
|
+
|
|
3
68
|
## 0.6.15
|
|
4
69
|
|
|
5
70
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/anomaly-frontend",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"lint:code": "eslint . --max-warnings 0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@checkstack/anomaly-common": "1.8.
|
|
20
|
-
"@checkstack/catalog-common": "2.8.
|
|
19
|
+
"@checkstack/anomaly-common": "1.8.3",
|
|
20
|
+
"@checkstack/catalog-common": "2.8.1",
|
|
21
21
|
"@checkstack/common": "0.23.0",
|
|
22
|
-
"@checkstack/frontend-api": "0.
|
|
23
|
-
"@checkstack/healthcheck-common": "1.
|
|
24
|
-
"@checkstack/healthcheck-frontend": "0.
|
|
25
|
-
"@checkstack/notification-common": "1.
|
|
26
|
-
"@checkstack/notification-frontend": "0.9.
|
|
22
|
+
"@checkstack/frontend-api": "0.17.0",
|
|
23
|
+
"@checkstack/healthcheck-common": "1.19.0",
|
|
24
|
+
"@checkstack/healthcheck-frontend": "0.38.0",
|
|
25
|
+
"@checkstack/notification-common": "1.8.0",
|
|
26
|
+
"@checkstack/notification-frontend": "0.9.7",
|
|
27
27
|
"@checkstack/signal-frontend": "0.3.7",
|
|
28
|
-
"@checkstack/ui": "1.
|
|
28
|
+
"@checkstack/ui": "1.30.0",
|
|
29
29
|
"date-fns": "^4.4.0",
|
|
30
30
|
"lucide-react": "^1.17.0",
|
|
31
31
|
"react": "19.2.7",
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Maps anomaly states to the colorblind-safe status triad used across the
|
|
3
3
|
* design system. Confirmed anomalies read as `warn`; suspicious (not yet
|
|
4
|
-
* confirmed) ones read as `unknown`.
|
|
5
|
-
*
|
|
4
|
+
* confirmed) ones read as `unknown`. The classes come from the shared
|
|
5
|
+
* `pillToneStyles` table rather than a private copy, so this surface cannot
|
|
6
|
+
* drift from the rest of the design system.
|
|
6
7
|
*/
|
|
8
|
+
|
|
9
|
+
import { pillToneStyles } from "@checkstack/ui";
|
|
10
|
+
|
|
7
11
|
export type AnomalyTone = "warn" | "unknown";
|
|
8
12
|
|
|
9
13
|
export interface AnomalyToneStyles {
|
|
@@ -14,18 +18,8 @@ export interface AnomalyToneStyles {
|
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
const TONE_STYLES: Record<AnomalyTone, AnomalyToneStyles> = {
|
|
17
|
-
warn:
|
|
18
|
-
|
|
19
|
-
dot: "bg-status-warn",
|
|
20
|
-
accent: "bg-status-warn",
|
|
21
|
-
text: "text-status-warn",
|
|
22
|
-
},
|
|
23
|
-
unknown: {
|
|
24
|
-
pill: "bg-status-unknown/10 text-status-unknown",
|
|
25
|
-
dot: "bg-status-unknown",
|
|
26
|
-
accent: "bg-status-unknown",
|
|
27
|
-
text: "text-status-unknown",
|
|
28
|
-
},
|
|
21
|
+
warn: pillToneStyles.warn,
|
|
22
|
+
unknown: pillToneStyles.unknown,
|
|
29
23
|
};
|
|
30
24
|
|
|
31
25
|
/** The tone for a single anomaly state string. */
|