@checkstack/dashboard-frontend 0.6.1 → 0.7.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 +86 -0
- package/package.json +20 -19
- package/src/Dashboard.tsx +46 -2
- package/src/index.tsx +1 -5
- package/src/pluginMetadata.ts +5 -0
- package/tsconfig.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
1
1
|
# @checkstack/dashboard-frontend
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [9016526]
|
|
8
|
+
- @checkstack/common@0.10.0
|
|
9
|
+
- @checkstack/catalog-common@2.2.0
|
|
10
|
+
- @checkstack/healthcheck-common@1.1.0
|
|
11
|
+
- @checkstack/incident-common@1.2.0
|
|
12
|
+
- @checkstack/maintenance-common@1.2.0
|
|
13
|
+
- @checkstack/notification-common@1.1.0
|
|
14
|
+
- @checkstack/anomaly-common@1.2.0
|
|
15
|
+
- @checkstack/auth-frontend@0.6.1
|
|
16
|
+
- @checkstack/catalog-frontend@0.10.1
|
|
17
|
+
- @checkstack/command-common@0.2.12
|
|
18
|
+
- @checkstack/command-frontend@0.2.36
|
|
19
|
+
- @checkstack/frontend-api@0.5.1
|
|
20
|
+
- @checkstack/notification-frontend@0.4.1
|
|
21
|
+
- @checkstack/queue-frontend@0.4.1
|
|
22
|
+
- @checkstack/tips-frontend@0.2.1
|
|
23
|
+
- @checkstack/ui@1.8.1
|
|
24
|
+
- @checkstack/signal-frontend@0.1.3
|
|
25
|
+
|
|
26
|
+
## 0.7.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- 3547670: Wire the new tips infrastructure across the frontends:
|
|
31
|
+
|
|
32
|
+
**Empty-state coaching.** Replace generic "no items" copy with onboarding
|
|
33
|
+
guidance — short description, three numbered steps and a primary CTA — on
|
|
34
|
+
every EmptyState that has a meaningful next action. Affects: catalog
|
|
35
|
+
(systems + groups), dashboard, health-check page, integrations (subscriptions
|
|
36
|
+
|
|
37
|
+
- provider connections), GitOps providers + secrets, GitOps provenance,
|
|
38
|
+
SLO config + overview, maintenance config, satellites, plugin manager,
|
|
39
|
+
incident config, announcements. Read-only EmptyStates (incident history,
|
|
40
|
+
maintenance history, plugin events) get clearer descriptions explaining
|
|
41
|
+
what would populate them.
|
|
42
|
+
|
|
43
|
+
**First-run anchored tips.** Add `<Tip>` popovers to the most important
|
|
44
|
+
"Create" affordances so first-time users see a one-line explanation of
|
|
45
|
+
what they're about to make and why it matters: catalog “Add System” /
|
|
46
|
+
“Add Group”, healthcheck “Create Check”, integrations “New Subscription”,
|
|
47
|
+
GitOps “Add Provider”, SLO “Create SLO”, maintenance “Create Maintenance”,
|
|
48
|
+
satellite “Create Satellite”, plugin-manager “Install plugin”, incident
|
|
49
|
+
“Report Incident”, announcement “New Announcement”. Each tip is dismissed
|
|
50
|
+
per user (server-backed when signed in, localStorage otherwise) and
|
|
51
|
+
namespaced through `qualifyTipId(plugin, …)` so it cannot escape the
|
|
52
|
+
plugin's own namespace.
|
|
53
|
+
|
|
54
|
+
**Welcome banner on the dashboard.** A `<TipBanner>` at the top of the
|
|
55
|
+
dashboard introduces Checkstack's main flow ("add a system, then a health
|
|
56
|
+
check") with a one-click jump into the catalog.
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [42abfff]
|
|
61
|
+
- Updated dependencies [42abfff]
|
|
62
|
+
- Updated dependencies [3547670]
|
|
63
|
+
- Updated dependencies [f6f9a5c]
|
|
64
|
+
- Updated dependencies [1ef2e79]
|
|
65
|
+
- Updated dependencies [aa89bc5]
|
|
66
|
+
- Updated dependencies [3547670]
|
|
67
|
+
- Updated dependencies [3547670]
|
|
68
|
+
- Updated dependencies [950d6ec]
|
|
69
|
+
- Updated dependencies [3547670]
|
|
70
|
+
- Updated dependencies [3547670]
|
|
71
|
+
- @checkstack/anomaly-common@1.1.0
|
|
72
|
+
- @checkstack/common@0.9.0
|
|
73
|
+
- @checkstack/ui@1.8.0
|
|
74
|
+
- @checkstack/catalog-frontend@0.10.0
|
|
75
|
+
- @checkstack/incident-common@1.1.0
|
|
76
|
+
- @checkstack/maintenance-common@1.1.0
|
|
77
|
+
- @checkstack/catalog-common@2.1.0
|
|
78
|
+
- @checkstack/frontend-api@0.5.0
|
|
79
|
+
- @checkstack/queue-frontend@0.4.0
|
|
80
|
+
- @checkstack/notification-frontend@0.4.0
|
|
81
|
+
- @checkstack/tips-frontend@0.2.0
|
|
82
|
+
- @checkstack/auth-frontend@0.6.0
|
|
83
|
+
- @checkstack/command-common@0.2.11
|
|
84
|
+
- @checkstack/command-frontend@0.2.35
|
|
85
|
+
- @checkstack/healthcheck-common@1.0.2
|
|
86
|
+
- @checkstack/notification-common@1.0.2
|
|
87
|
+
- @checkstack/signal-frontend@0.1.2
|
|
88
|
+
|
|
3
89
|
## 0.6.1
|
|
4
90
|
|
|
5
91
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/dashboard-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -14,22 +14,23 @@
|
|
|
14
14
|
"lint:code": "eslint . --max-warnings 0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@checkstack/anomaly-common": "1.
|
|
18
|
-
"@checkstack/auth-frontend": "0.
|
|
19
|
-
"@checkstack/catalog-common": "2.
|
|
20
|
-
"@checkstack/catalog-frontend": "0.
|
|
21
|
-
"@checkstack/command-common": "0.2.
|
|
22
|
-
"@checkstack/command-frontend": "0.2.
|
|
23
|
-
"@checkstack/common": "0.
|
|
24
|
-
"@checkstack/frontend-api": "0.
|
|
25
|
-
"@checkstack/healthcheck-common": "1.0.
|
|
26
|
-
"@checkstack/incident-common": "1.
|
|
27
|
-
"@checkstack/maintenance-common": "1.
|
|
28
|
-
"@checkstack/notification-common": "1.0.
|
|
29
|
-
"@checkstack/notification-frontend": "0.
|
|
30
|
-
"@checkstack/queue-frontend": "0.
|
|
31
|
-
"@checkstack/signal-frontend": "0.1.
|
|
32
|
-
"@checkstack/
|
|
17
|
+
"@checkstack/anomaly-common": "1.1.0",
|
|
18
|
+
"@checkstack/auth-frontend": "0.6.0",
|
|
19
|
+
"@checkstack/catalog-common": "2.1.0",
|
|
20
|
+
"@checkstack/catalog-frontend": "0.10.0",
|
|
21
|
+
"@checkstack/command-common": "0.2.11",
|
|
22
|
+
"@checkstack/command-frontend": "0.2.35",
|
|
23
|
+
"@checkstack/common": "0.9.0",
|
|
24
|
+
"@checkstack/frontend-api": "0.5.0",
|
|
25
|
+
"@checkstack/healthcheck-common": "1.0.2",
|
|
26
|
+
"@checkstack/incident-common": "1.1.0",
|
|
27
|
+
"@checkstack/maintenance-common": "1.1.0",
|
|
28
|
+
"@checkstack/notification-common": "1.0.2",
|
|
29
|
+
"@checkstack/notification-frontend": "0.4.0",
|
|
30
|
+
"@checkstack/queue-frontend": "0.4.0",
|
|
31
|
+
"@checkstack/signal-frontend": "0.1.2",
|
|
32
|
+
"@checkstack/tips-frontend": "0.2.0",
|
|
33
|
+
"@checkstack/ui": "1.8.0",
|
|
33
34
|
"date-fns": "^4.1.0",
|
|
34
35
|
"lucide-react": "^0.344.0",
|
|
35
36
|
"react": "^18.2.0",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"typescript": "^5.0.0",
|
|
40
41
|
"@types/react": "^18.2.0",
|
|
41
|
-
"@checkstack/tsconfig": "0.0.
|
|
42
|
-
"@checkstack/scripts": "0.1
|
|
42
|
+
"@checkstack/tsconfig": "0.0.7",
|
|
43
|
+
"@checkstack/scripts": "0.3.1"
|
|
43
44
|
}
|
|
44
45
|
}
|
package/src/Dashboard.tsx
CHANGED
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
catalogGroupTarget,
|
|
15
15
|
} from "@checkstack/catalog-common";
|
|
16
16
|
import { resolveRoute } from "@checkstack/common";
|
|
17
|
+
import { TipBanner } from "@checkstack/tips-frontend";
|
|
18
|
+
import { pluginMetadata as dashboardTipMetadata } from "./pluginMetadata";
|
|
17
19
|
import { NotificationSubscriptionsManager } from "@checkstack/notification-frontend";
|
|
18
20
|
import { IncidentApi } from "@checkstack/incident-common";
|
|
19
21
|
import { MaintenanceApi } from "@checkstack/maintenance-common";
|
|
@@ -28,6 +30,7 @@ import {
|
|
|
28
30
|
SectionHeader,
|
|
29
31
|
StatusCard,
|
|
30
32
|
EmptyState,
|
|
33
|
+
Button,
|
|
31
34
|
LoadingSpinner,
|
|
32
35
|
AnimatedCounter,
|
|
33
36
|
TerminalFeed,
|
|
@@ -44,6 +47,7 @@ import {
|
|
|
44
47
|
Wrench,
|
|
45
48
|
Terminal,
|
|
46
49
|
ActivitySquare,
|
|
50
|
+
Lightbulb,
|
|
47
51
|
} from "lucide-react";
|
|
48
52
|
import { authApiRef } from "@checkstack/auth-frontend/api";
|
|
49
53
|
import { QueueLagAlert } from "@checkstack/queue-frontend";
|
|
@@ -215,9 +219,20 @@ export const Dashboard: React.FC = () => {
|
|
|
215
219
|
if (groupsWithSystems.length === 0) {
|
|
216
220
|
return (
|
|
217
221
|
<EmptyState
|
|
218
|
-
title="No system groups found"
|
|
219
|
-
description="Visit the Catalog to create your first group."
|
|
220
222
|
icon={<Server className="w-12 h-12" />}
|
|
223
|
+
title="Nothing to show on the dashboard yet"
|
|
224
|
+
description="Once you have systems organised into groups, this is where you'll see their rolled-up health, on a per-team or per-product basis."
|
|
225
|
+
steps={[
|
|
226
|
+
"Open the Catalog and add the systems you want to monitor.",
|
|
227
|
+
"Group related systems together (e.g. one group per team).",
|
|
228
|
+
"Attach health checks to each system so the dashboard turns green when things are working — and red when they aren't.",
|
|
229
|
+
]}
|
|
230
|
+
actions={
|
|
231
|
+
<Button onClick={() => navigate(resolveRoute(catalogRoutes.routes.config))}>
|
|
232
|
+
<LayoutGrid className="w-4 h-4 mr-2" />
|
|
233
|
+
Open Catalog
|
|
234
|
+
</Button>
|
|
235
|
+
}
|
|
221
236
|
/>
|
|
222
237
|
);
|
|
223
238
|
}
|
|
@@ -307,6 +322,35 @@ export const Dashboard: React.FC = () => {
|
|
|
307
322
|
{/* Queue Lag Warning */}
|
|
308
323
|
<QueueLagAlert />
|
|
309
324
|
|
|
325
|
+
{/* First-run welcome */}
|
|
326
|
+
<TipBanner
|
|
327
|
+
plugin={dashboardTipMetadata}
|
|
328
|
+
id="welcome"
|
|
329
|
+
title="Welcome to Checkstack"
|
|
330
|
+
description={
|
|
331
|
+
<>
|
|
332
|
+
This is your dashboard — overall health, recent activity, and
|
|
333
|
+
ongoing maintenances at a glance. To bring it to life, start
|
|
334
|
+
by adding a system in the <strong>Catalog</strong>, then
|
|
335
|
+
attach a health check to it.
|
|
336
|
+
</>
|
|
337
|
+
}
|
|
338
|
+
action={{
|
|
339
|
+
label: "Open Catalog",
|
|
340
|
+
onClick: () => navigate(resolveRoute(catalogRoutes.routes.config)),
|
|
341
|
+
}}
|
|
342
|
+
actionHint={
|
|
343
|
+
<span className="inline-flex items-center gap-1.5">
|
|
344
|
+
<Lightbulb
|
|
345
|
+
className="size-3.5 shrink-0 text-amber-500"
|
|
346
|
+
aria-hidden="true"
|
|
347
|
+
/>
|
|
348
|
+
See a small lightbulb next to a button or control? Click it
|
|
349
|
+
for a short explanation of what that feature does.
|
|
350
|
+
</span>
|
|
351
|
+
}
|
|
352
|
+
/>
|
|
353
|
+
|
|
310
354
|
{/* Overview Section */}
|
|
311
355
|
<section>
|
|
312
356
|
<SectionHeader
|
package/src/index.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { FrontendPlugin, DashboardSlot } from "@checkstack/frontend-api";
|
|
2
|
-
import { definePluginMetadata } from "@checkstack/common";
|
|
3
2
|
import { Dashboard } from "./Dashboard";
|
|
4
|
-
|
|
5
|
-
const pluginMetadata = definePluginMetadata({
|
|
6
|
-
pluginId: "dashboard",
|
|
7
|
-
});
|
|
3
|
+
import { pluginMetadata } from "./pluginMetadata";
|
|
8
4
|
|
|
9
5
|
export const dashboardPlugin: FrontendPlugin = {
|
|
10
6
|
metadata: pluginMetadata,
|