@checkstack/healthcheck-frontend 0.17.0 → 0.18.0

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/healthcheck-frontend
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a914b31: Streamline system → healthcheck assignment flow by allowing in-context creation in both directions.
8
+
9
+ - Adds an "Assign to systems" multi-select section to the healthcheck create flow (new "Systems" tree node), so a fresh check can be wired to one or more systems in a single save.
10
+ - Adds a "+ Create new check" button on the system assignment IDE that opens the create flow pre-targeted at that system; on save, the new check is auto-assigned and the user is returned to the assignment IDE.
11
+ - Pre-selects the originating system when the create flow is entered with a `?systemId=` query param, and forwards that param through the strategy picker.
12
+ - Includes an info banner noting that health checks are reusable templates and can be assigned to additional systems at any time, to preserve the "configs are reusable" mental model.
13
+
14
+ - ac1e5d4: Refactor Status Timeline and Assertion charts to use Recharts with cursor-tracking tooltips, downsampling, and proportional pass/fail stacking.
15
+
16
+ - Replaces div-based bar strips with Recharts `BarChart`, so hovering anywhere over the chart resolves the closest bucket.
17
+ - Adds a lightweight time x-axis with smart tick formatting based on the bucket interval.
18
+ - Caps bar count (60 for Status Timeline, 50 for Assertion) by aggregating adjacent buckets, so individual bars stay clickable on dense ranges.
19
+ - Each downsampled Assertion bar is now stacked proportionally — green height shows passed runs and red height shows failed runs across the aggregated window, instead of a worst-case binary color.
20
+
21
+ ### Patch Changes
22
+
23
+ - 208ad71: Centralize realtime cache invalidation: signals now carry their owning `pluginId` end-to-end, and a single `SignalAutoInvalidator` mounted near the React Query client invalidates `[[pluginId]]` for every incoming signal automatically.
24
+
25
+ **Breaking change to `createSignal`** (`@checkstack/signal-common`): the factory now takes a single object argument with `pluginMetadata`, `event`, and `payloadSchema`. The signal id is constructed as `${pluginMetadata.pluginId}.${event}` and the resulting `Signal` carries a `pluginId` field. The `SignalMessage` wire envelope and `ServerToClientMessage` `signal` variant gained a `pluginId` field so the frontend can route invalidations without parsing the id.
26
+
27
+ ```ts
28
+ // Before
29
+ export const ANOMALY_STATE_CHANGED = createSignal(
30
+ "anomaly.state_changed",
31
+ z.object({ ... }),
32
+ );
33
+
34
+ // After
35
+ export const ANOMALY_STATE_CHANGED = createSignal({
36
+ pluginMetadata,
37
+ event: "state_changed",
38
+ payloadSchema: z.object({ ... }),
39
+ });
40
+ ```
41
+
42
+ **New plugin field**: `FrontendPlugin.foreignSignals?: Signal<unknown>[]` lets a plugin opt its `[[pluginId]]` cache into invalidation when another plugin's signal fires (e.g. `dependency-frontend` declares `[SYSTEM_STATUS_CHANGED]` because dependency payloads embed system status). Same-plugin signals must NOT be listed — they are always auto-invalidated.
43
+
44
+ **Removed boilerplate**: per-component `useSignal(X, () => refetch())` and `useSignal(X, () => queryClient.invalidateQueries(...))` calls have been removed across `incident-frontend`, `maintenance-frontend`, `healthcheck-frontend`, `slo-frontend`, `dependency-frontend`, `satellite-frontend`, `announcement-frontend`, `notification-frontend`, and `dashboard-frontend`. The `NotificationBell` unread count is now derived directly from the `getUnreadCount` query (auto-invalidated) instead of a local state mirror.
45
+
46
+ **User-visible bug fix**: the system detail page anomaly widget (`SystemAnomalyWidget`) now updates in real-time when anomalies change, with no per-widget signal subscription required. The dashboard status page also stays fresh on `ANOMALY_STATE_CHANGED`, `ANOMALY_BASELINE_UPDATED`, and `ANOMALY_TREND_DETECTED`.
47
+
48
+ UI-state consumers that legitimately need a `useSignal` (the dashboard activity terminal, the queue lag alert, and the rolling-preset date refresh in `useHealthCheckData`) keep their handlers; the auto-invalidator runs alongside them.
49
+
50
+ - Updated dependencies [208ad71]
51
+ - @checkstack/signal-frontend@0.1.0
52
+ - @checkstack/frontend-api@0.4.0
53
+ - @checkstack/anomaly-common@0.3.0
54
+ - @checkstack/healthcheck-common@0.13.0
55
+ - @checkstack/satellite-common@0.3.0
56
+ - @checkstack/dashboard-frontend@0.5.1
57
+ - @checkstack/auth-frontend@0.5.31
58
+ - @checkstack/catalog-common@1.5.3
59
+ - @checkstack/gitops-frontend@0.3.6
60
+ - @checkstack/ui@1.6.1
61
+
62
+ ## 0.17.1
63
+
64
+ ### Patch Changes
65
+
66
+ - 42b0832: Refactor auto-chart layout to make collector grouping more dominant. Chart titles now show only the metric label (e.g. "Avg Response Time") instead of the prefixed "{collectorId}: Metric" form. Collector groups display the collector name as a heading with a badge containing the full collector id. Cards now stack at full width and their contents are center-aligned.
67
+
3
68
  ## 0.17.0
4
69
 
5
70
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-frontend",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "checkstack": {
@@ -12,16 +12,16 @@
12
12
  "lint:code": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/anomaly-common": "0.1.0",
16
- "@checkstack/auth-frontend": "0.5.29",
17
- "@checkstack/catalog-common": "1.5.1",
18
- "@checkstack/common": "0.6.5",
19
- "@checkstack/dashboard-frontend": "0.4.6",
20
- "@checkstack/frontend-api": "0.3.10",
21
- "@checkstack/gitops-frontend": "0.3.4",
22
- "@checkstack/healthcheck-common": "0.11.0",
23
- "@checkstack/signal-frontend": "0.0.15",
24
- "@checkstack/ui": "1.5.1",
15
+ "@checkstack/anomaly-common": "0.2.0",
16
+ "@checkstack/auth-frontend": "0.5.30",
17
+ "@checkstack/catalog-common": "1.5.2",
18
+ "@checkstack/common": "0.7.0",
19
+ "@checkstack/dashboard-frontend": "0.5.0",
20
+ "@checkstack/frontend-api": "0.3.11",
21
+ "@checkstack/gitops-frontend": "0.3.5",
22
+ "@checkstack/healthcheck-common": "0.12.0",
23
+ "@checkstack/signal-frontend": "0.0.16",
24
+ "@checkstack/ui": "1.6.0",
25
25
  "ajv": "^8.18.0",
26
26
  "ajv-formats": "^3.0.1",
27
27
  "date-fns": "^4.1.0",
@@ -31,7 +31,7 @@
31
31
  "recharts": "^3.6.0",
32
32
  "uuid": "^13.0.0",
33
33
  "zod": "^4.2.1",
34
- "@checkstack/satellite-common": "0.2.0"
34
+ "@checkstack/satellite-common": "0.2.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@checkstack/scripts": "0.1.2",