@checkstack/dashboard-frontend 0.4.5 → 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,27 @@
1
1
  # @checkstack/dashboard-frontend
2
2
 
3
+ ## 0.4.6
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/ui@1.5.1
17
+ - @checkstack/auth-frontend@0.5.29
18
+ - @checkstack/catalog-common@1.5.1
19
+ - @checkstack/catalog-frontend@0.8.5
20
+ - @checkstack/command-frontend@0.2.30
21
+ - @checkstack/incident-common@0.4.8
22
+ - @checkstack/maintenance-common@0.4.10
23
+ - @checkstack/queue-frontend@0.2.31
24
+
3
25
  ## 0.4.5
4
26
 
5
27
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/dashboard-frontend",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "checkstack": {
@@ -90,7 +90,7 @@ export const SystemBadgeDataProvider: React.FC<
90
90
  (systemId: string) => {
91
91
  if (systemIds.includes(systemId)) {
92
92
  // Invalidate the bulk query to refetch
93
- queryClient.invalidateQueries({ queryKey: ["healthcheck"] });
93
+ queryClient.invalidateQueries({ queryKey: [["healthcheck"]] });
94
94
  }
95
95
  },
96
96
  [systemIds, queryClient]
@@ -106,7 +106,7 @@ export const SystemBadgeDataProvider: React.FC<
106
106
  systemIds.includes(id)
107
107
  );
108
108
  if (hasAffected) {
109
- queryClient.invalidateQueries({ queryKey: ["incident"] });
109
+ queryClient.invalidateQueries({ queryKey: [["incident"]] });
110
110
  }
111
111
  },
112
112
  [systemIds, queryClient]
@@ -122,7 +122,7 @@ export const SystemBadgeDataProvider: React.FC<
122
122
  systemIds.includes(id)
123
123
  );
124
124
  if (hasAffected) {
125
- queryClient.invalidateQueries({ queryKey: ["maintenance"] });
125
+ queryClient.invalidateQueries({ queryKey: [["maintenance"]] });
126
126
  }
127
127
  },
128
128
  [systemIds, queryClient]