@checkstack/dashboard-frontend 0.2.0 → 0.3.1

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,42 @@
1
1
  # @checkstack/dashboard-frontend
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [df6ac7b]
8
+ - @checkstack/auth-frontend@0.4.0
9
+ - @checkstack/catalog-frontend@0.3.2
10
+
11
+ ## 0.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 4eed42d: Fix "No QueryClient set" error in containerized builds
16
+
17
+ **Problem**: The containerized application was throwing "No QueryClient set, use QueryClientProvider to set one" errors during plugin registration. This didn't happen in dev mode.
18
+
19
+ **Root Cause**: The `@tanstack/react-query` package was being bundled separately in different workspace packages, causing multiple React Query contexts. The `QueryClientProvider` from the main app wasn't visible to plugin code due to this module duplication.
20
+
21
+ **Changes**:
22
+
23
+ - `@checkstack/frontend-api`: Export `useQueryClient` from the centralized React Query import, ensuring all packages use the same context
24
+ - `@checkstack/dashboard-frontend`: Import `useQueryClient` from `@checkstack/frontend-api` instead of directly from `@tanstack/react-query`, and remove the direct dependency
25
+ - `@checkstack/frontend`: Add `@tanstack/react-query` to Vite's `resolve.dedupe` as a safety net
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [4eed42d]
30
+ - @checkstack/frontend-api@0.3.0
31
+ - @checkstack/auth-frontend@0.3.1
32
+ - @checkstack/catalog-common@1.2.1
33
+ - @checkstack/catalog-frontend@0.3.1
34
+ - @checkstack/command-frontend@0.2.1
35
+ - @checkstack/incident-common@0.3.1
36
+ - @checkstack/maintenance-common@0.3.1
37
+ - @checkstack/queue-frontend@0.2.1
38
+ - @checkstack/ui@0.2.2
39
+
3
40
  ## 0.2.0
4
41
 
5
42
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/dashboard-frontend",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "scripts": {
@@ -23,7 +23,6 @@
23
23
  "@checkstack/queue-frontend": "workspace:*",
24
24
  "@checkstack/signal-frontend": "workspace:*",
25
25
  "@checkstack/ui": "workspace:*",
26
- "@tanstack/react-query": "^5.90.18",
27
26
  "lucide-react": "^0.344.0",
28
27
  "react": "^18.2.0",
29
28
  "react-router-dom": "^6.22.0"
package/src/Dashboard.tsx CHANGED
@@ -3,6 +3,7 @@ import { useNavigate } from "react-router-dom";
3
3
  import {
4
4
  useApi,
5
5
  usePluginClient,
6
+ useQueryClient,
6
7
  ExtensionSlot,
7
8
  } from "@checkstack/frontend-api";
8
9
  import {
@@ -21,7 +22,6 @@ import { IncidentApi } from "@checkstack/incident-common";
21
22
  import { MaintenanceApi } from "@checkstack/maintenance-common";
22
23
  import { HEALTH_CHECK_RUN_COMPLETED } from "@checkstack/healthcheck-common";
23
24
  import { useSignal } from "@checkstack/signal-frontend";
24
- import { useQueryClient } from "@tanstack/react-query";
25
25
  import {
26
26
  Card,
27
27
  CardHeader,
@@ -1,7 +1,6 @@
1
1
  import React, { createContext, useContext, useCallback, useMemo } from "react";
2
- import { usePluginClient } from "@checkstack/frontend-api";
2
+ import { usePluginClient, useQueryClient } from "@checkstack/frontend-api";
3
3
  import { useSignal } from "@checkstack/signal-frontend";
4
- import { useQueryClient } from "@tanstack/react-query";
5
4
  import {
6
5
  HealthCheckApi,
7
6
  HEALTH_CHECK_RUN_COMPLETED,