@checkstack/dashboard-frontend 0.6.1 → 0.7.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,68 @@
1
1
  # @checkstack/dashboard-frontend
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3547670: Wire the new tips infrastructure across the frontends:
8
+
9
+ **Empty-state coaching.** Replace generic "no items" copy with onboarding
10
+ guidance — short description, three numbered steps and a primary CTA — on
11
+ every EmptyState that has a meaningful next action. Affects: catalog
12
+ (systems + groups), dashboard, health-check page, integrations (subscriptions
13
+
14
+ - provider connections), GitOps providers + secrets, GitOps provenance,
15
+ SLO config + overview, maintenance config, satellites, plugin manager,
16
+ incident config, announcements. Read-only EmptyStates (incident history,
17
+ maintenance history, plugin events) get clearer descriptions explaining
18
+ what would populate them.
19
+
20
+ **First-run anchored tips.** Add `<Tip>` popovers to the most important
21
+ "Create" affordances so first-time users see a one-line explanation of
22
+ what they're about to make and why it matters: catalog “Add System” /
23
+ “Add Group”, healthcheck “Create Check”, integrations “New Subscription”,
24
+ GitOps “Add Provider”, SLO “Create SLO”, maintenance “Create Maintenance”,
25
+ satellite “Create Satellite”, plugin-manager “Install plugin”, incident
26
+ “Report Incident”, announcement “New Announcement”. Each tip is dismissed
27
+ per user (server-backed when signed in, localStorage otherwise) and
28
+ namespaced through `qualifyTipId(plugin, …)` so it cannot escape the
29
+ plugin's own namespace.
30
+
31
+ **Welcome banner on the dashboard.** A `<TipBanner>` at the top of the
32
+ dashboard introduces Checkstack's main flow ("add a system, then a health
33
+ check") with a one-click jump into the catalog.
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [42abfff]
38
+ - Updated dependencies [42abfff]
39
+ - Updated dependencies [3547670]
40
+ - Updated dependencies [f6f9a5c]
41
+ - Updated dependencies [1ef2e79]
42
+ - Updated dependencies [aa89bc5]
43
+ - Updated dependencies [3547670]
44
+ - Updated dependencies [3547670]
45
+ - Updated dependencies [950d6ec]
46
+ - Updated dependencies [3547670]
47
+ - Updated dependencies [3547670]
48
+ - @checkstack/anomaly-common@1.1.0
49
+ - @checkstack/common@0.9.0
50
+ - @checkstack/ui@1.8.0
51
+ - @checkstack/catalog-frontend@0.10.0
52
+ - @checkstack/incident-common@1.1.0
53
+ - @checkstack/maintenance-common@1.1.0
54
+ - @checkstack/catalog-common@2.1.0
55
+ - @checkstack/frontend-api@0.5.0
56
+ - @checkstack/queue-frontend@0.4.0
57
+ - @checkstack/notification-frontend@0.4.0
58
+ - @checkstack/tips-frontend@0.2.0
59
+ - @checkstack/auth-frontend@0.6.0
60
+ - @checkstack/command-common@0.2.11
61
+ - @checkstack/command-frontend@0.2.35
62
+ - @checkstack/healthcheck-common@1.0.2
63
+ - @checkstack/notification-common@1.0.2
64
+ - @checkstack/signal-frontend@0.1.2
65
+
3
66
  ## 0.6.1
4
67
 
5
68
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/dashboard-frontend",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
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.0.0",
18
- "@checkstack/auth-frontend": "0.5.32",
19
- "@checkstack/catalog-common": "2.0.0",
20
- "@checkstack/catalog-frontend": "0.9.0",
21
- "@checkstack/command-common": "0.2.9",
22
- "@checkstack/command-frontend": "0.2.33",
23
- "@checkstack/common": "0.7.0",
24
- "@checkstack/frontend-api": "0.4.1",
25
- "@checkstack/healthcheck-common": "1.0.0",
26
- "@checkstack/incident-common": "1.0.0",
27
- "@checkstack/maintenance-common": "1.0.0",
28
- "@checkstack/notification-common": "1.0.0",
29
- "@checkstack/notification-frontend": "0.3.0",
30
- "@checkstack/queue-frontend": "0.3.2",
31
- "@checkstack/signal-frontend": "0.1.0",
32
- "@checkstack/ui": "1.7.0",
17
+ "@checkstack/anomaly-common": "1.0.1",
18
+ "@checkstack/auth-frontend": "0.5.33",
19
+ "@checkstack/catalog-common": "2.0.1",
20
+ "@checkstack/catalog-frontend": "0.9.1",
21
+ "@checkstack/command-common": "0.2.10",
22
+ "@checkstack/command-frontend": "0.2.34",
23
+ "@checkstack/common": "0.8.0",
24
+ "@checkstack/frontend-api": "0.4.2",
25
+ "@checkstack/healthcheck-common": "1.0.1",
26
+ "@checkstack/incident-common": "1.0.1",
27
+ "@checkstack/maintenance-common": "1.0.1",
28
+ "@checkstack/notification-common": "1.0.1",
29
+ "@checkstack/notification-frontend": "0.3.1",
30
+ "@checkstack/queue-frontend": "0.3.3",
31
+ "@checkstack/signal-frontend": "0.1.1",
32
+ "@checkstack/tips-frontend": "0.1.0",
33
+ "@checkstack/ui": "1.7.1",
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.6",
42
- "@checkstack/scripts": "0.1.2"
42
+ "@checkstack/tsconfig": "0.0.7",
43
+ "@checkstack/scripts": "0.3.0"
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,
@@ -0,0 +1,5 @@
1
+ import { definePluginMetadata } from "@checkstack/common";
2
+
3
+ export const pluginMetadata = definePluginMetadata({
4
+ pluginId: "dashboard",
5
+ });
package/tsconfig.json CHANGED
@@ -49,6 +49,9 @@
49
49
  {
50
50
  "path": "../signal-frontend"
51
51
  },
52
+ {
53
+ "path": "../tips-frontend"
54
+ },
52
55
  {
53
56
  "path": "../ui"
54
57
  }