@checkstack/healthcheck-frontend 0.16.4 → 0.16.5

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,24 @@
1
1
  # @checkstack/healthcheck-frontend
2
2
 
3
+ ## 0.16.5
4
+
5
+ ### Patch Changes
6
+
7
+ - c4e7560: Fix data integrity, cache invalidation, and mobile UI issues
8
+
9
+ - **Centralized mutation cache invalidation**: Every mutation now automatically invalidates its plugin's query cache on success via the shared `createProcedureHook` in `orpc-query.tsx`. This ensures all views stay in sync without requiring individual components to remember manual `invalidateQueries` calls.
10
+ - **Fixed oRPC query key matching**: Query keys use nested arrays (`[["pluginId"]]`) to correctly match oRPC's `[pathArray, options]` key structure. Fixed the broken flat-string pattern in `SystemBadgeDataProvider`.
11
+ - **Fixed hourly aggregation duplication**: Added `NULLS NOT DISTINCT` to the `health_check_aggregates` unique constraint so local runs (`source_id = NULL`) correctly conflict-match instead of creating duplicate hourly buckets. Includes a migration to clean up existing duplicates.
12
+ - **Fixed modal scrolling on mobile**: Added `max-height` + `overflow-y-auto` to `ConfirmationModal`, and refactored `Dialog` from translate-centering to flex-centering with `dvh` units for reliable mobile scroll containment.
13
+
14
+ - Updated dependencies [c4e7560]
15
+ - @checkstack/frontend-api@0.3.10
16
+ - @checkstack/dashboard-frontend@0.4.6
17
+ - @checkstack/ui@1.5.1
18
+ - @checkstack/auth-frontend@0.5.29
19
+ - @checkstack/catalog-common@1.5.1
20
+ - @checkstack/gitops-frontend@0.3.4
21
+
3
22
  ## 0.16.4
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-frontend",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "checkstack": {
@@ -144,7 +144,9 @@ const AssignmentIDEPageContent = () => {
144
144
  // --- Mutations ---
145
145
 
146
146
  const associateMutation = healthCheckClient.associateSystem.useMutation({
147
- onSuccess: () => void refetchAssociations(),
147
+ onSuccess: () => {
148
+ void refetchAssociations();
149
+ },
148
150
  onError: (error) =>
149
151
  toast.error(extractErrorMessage(error, "Failed to update")),
150
152
  });
@@ -152,7 +154,7 @@ const AssignmentIDEPageContent = () => {
152
154
  const disassociateMutation = healthCheckClient.disassociateSystem.useMutation(
153
155
  {
154
156
  onSuccess: () => {
155
- toast.success("Health check unassigned");
157
+ toast.success("Health check unassigned");
156
158
  void refetchAssociations();
157
159
  },
158
160
  onError: (error) =>
@@ -162,7 +164,9 @@ const AssignmentIDEPageContent = () => {
162
164
 
163
165
  const updateRetentionMutation =
164
166
  healthCheckClient.updateRetentionConfig.useMutation({
165
- onSuccess: () => toast.success("Retention settings saved"),
167
+ onSuccess: () => {
168
+ toast.success("Retention settings saved");
169
+ },
166
170
  onError: (error) =>
167
171
  toast.error(extractErrorMessage(error, "Failed to save")),
168
172
  });