@checkstack/dashboard-frontend 0.6.0 → 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,186 @@
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
+
66
+ ## 0.6.1
67
+
68
+ ### Patch Changes
69
+
70
+ - 50e5f5f: Runtime plugin system: install + uninstall plugins from npm, GitHub releases
71
+ (including private GitHub Enterprise instances), or tarball uploads at
72
+ runtime, with multi-package bundles, dependency-derived compatibility checks,
73
+ multi-instance coordination via a Postgres artifact store, and
74
+ single-coordinator destructive cleanup.
75
+
76
+ Highlights:
77
+
78
+ - New `PluginSource` discriminated union and `PluginInstaller` /
79
+ `PluginInstallerRegistry` interfaces in `@checkstack/backend-api`. The
80
+ GitHub variant accepts an optional `apiBaseUrl` so deployments backed by
81
+ GitHub Enterprise can install from `https://ghe.example.com/api/v3`
82
+ instead of `api.github.com`.
83
+ - New `installPackageMetadataSchema` (Zod) in `@checkstack/common` validates
84
+ every plugin's `package.json` at install time. Required fields: `name`,
85
+ `version`, `description`, `author`, `license`, `checkstack.type`,
86
+ `checkstack.pluginId`. Optional: `checkstack.bundle`,
87
+ `checkstack.usageInstructions`, `checkstack.allowInstallScripts`.
88
+ - New `pluginManagerContract` in `@checkstack/pluginmanager-common` with
89
+ `list`, `previewInstall`, `install`, `previewUninstall`, `uninstall`, and
90
+ `events` procedures.
91
+ - New `@checkstack/pluginmanager-frontend` admin UI: installed-plugins list
92
+ with per-row uninstall (typed-confirmation modal, schema/configs/cascade
93
+ toggles), install page with NPM / Tarball Upload / GitHub Release tabs
94
+ (Catalog tab disabled — coming soon), and an events page surfacing the
95
+ install/uninstall audit log.
96
+ - New `bunx @checkstack/scripts plugin-pack` CLI for plugin authors —
97
+ per-package mode produces an npm-shaped tarball; `--bundle` mode produces
98
+ an outer tarball containing every sibling declared in
99
+ `package.json#checkstack.bundle`. Published to npm so external authors
100
+ can `bunx` it directly without a workspace checkout.
101
+ - Compatibility derived from `package.json#dependencies` ranges
102
+ (`semver.satisfies` against the platform's loaded `@checkstack/*`
103
+ versions) — no separate `compatibility` field.
104
+ - Multi-instance: originator persists artifacts + `plugins` rows + broadcasts
105
+ install/uninstall; receiving instances do in-process register/unregister
106
+ only. Destructive ops (drop schema, delete plugin_configs, delete
107
+ artifacts, delete `plugins` rows) run exactly once on the originator.
108
+ - Fresh-instance bootstrap: `loadPlugins()` hydrates any
109
+ `is_uninstallable=true` plugin missing from `node_modules` from the
110
+ artifact store before normal Phase 1 register.
111
+ - New schema: `plugin_artifacts` (tarball storage), `plugin_install_events`
112
+ (audit/error log). `plugins` extended with `version`, `metadata`,
113
+ `source`, `bundle_id`, `is_primary`. Local plugin sync now writes
114
+ `version` from each plugin's `package.json` so the admin UI shows real
115
+ versions instead of `—`.
116
+ - Tarball-upload endpoint (`POST /api/pluginmanager/upload-tarball`) for
117
+ the install UI; access-gated by `pluginmanager.plugin.manage`.
118
+ - Plugin Manager menu link added to the user menu (main grid, alongside
119
+ Profile / Notification Settings / etc.).
120
+
121
+ Cross-cutting changes:
122
+
123
+ - Backend request/response logging now flows through `rootLogger` (winston)
124
+ instead of `hono/logger`. 5xx responses include the response body inline
125
+ so swallowed early-return errors are visible in the log.
126
+ - The `/api/:pluginId/*` dispatcher now logs which core service is missing
127
+ or which `pluginId` had no metadata when it 500s.
128
+ - New `registerCorePluginMetadata` on `PluginManager` for core routers
129
+ (like the plugin manager itself) that need their metadata visible to the
130
+ RPC dispatcher without going through the full plugin lifecycle.
131
+ - ESLint: `unicorn/no-null` is now disabled globally. Drizzle distinguishes
132
+ between `null` (writes a real SQL NULL) and `undefined` (skip the column
133
+ on insert), so treating them as interchangeable produced latent bugs at
134
+ the persistence boundary. The bulk of the patch-bumped packages above
135
+ reflect lint-fix touches that landed when this rule was relaxed.
136
+ - Workspace-wide license normalization to `Elastic-2.0` (matches
137
+ `LICENSE.md`). Every `package.json` in the workspace now declares the
138
+ same SPDX identifier; the patch bumps capture this.
139
+
140
+ Plugin packages (every `plugins/*`): added a `pack` npm script
141
+ (`bunx @checkstack/scripts plugin-pack`), mirrored each plugin's
142
+ `pluginId` from `plugin-metadata.ts` into `package.json#checkstack.pluginId`
143
+ so install-time validation passes, stubbed any missing required metadata
144
+ fields (`description`, `author`, `license`), and added
145
+ `checkstack.bundle` to multi-package plugin primaries (telegram, rcon, ssh,
146
+ jira, queue-bullmq, queue-memory, cache-memory).
147
+
148
+ Breaking changes:
149
+
150
+ - The legacy single-method `PluginInstaller` interface (`install(packageName)`)
151
+ is removed. Callers must use `coreServices.pluginInstallerRegistry`.
152
+ - The old `pluginAdminContract` and `createPluginAdminRouter` are removed.
153
+ Replaced by `pluginManagerContract` in `@checkstack/pluginmanager-common`
154
+ and `createPluginManagerRouter` in `core/backend`.
155
+ - `@checkstack/test-utils-backend` no longer exports
156
+ `createMockPluginInstaller` / `MockPluginInstaller` (the legacy interface
157
+ it shimmed is gone).
158
+
159
+ Note: bumps are limited to `minor` (for packages with new public API
160
+ surface) and `patch` (for downstream consumers, license normalization,
161
+ and lint fixes). No `major` bumps despite the `PluginInstaller` removal —
162
+ the legacy interface had no third-party consumers in the wild before this
163
+ runtime plugin system landed, and the contract surface is the same shape
164
+ modulo the rename.
165
+
166
+ - Updated dependencies [50e5f5f]
167
+ - @checkstack/catalog-common@2.0.1
168
+ - @checkstack/catalog-frontend@0.9.1
169
+ - @checkstack/command-common@0.2.10
170
+ - @checkstack/common@0.8.0
171
+ - @checkstack/maintenance-common@1.0.1
172
+ - @checkstack/notification-frontend@0.3.1
173
+ - @checkstack/signal-frontend@0.1.1
174
+ - @checkstack/ui@1.7.1
175
+ - @checkstack/anomaly-common@1.0.1
176
+ - @checkstack/auth-frontend@0.5.33
177
+ - @checkstack/command-frontend@0.2.34
178
+ - @checkstack/frontend-api@0.4.2
179
+ - @checkstack/healthcheck-common@1.0.1
180
+ - @checkstack/incident-common@1.0.1
181
+ - @checkstack/notification-common@1.0.1
182
+ - @checkstack/queue-frontend@0.3.3
183
+
3
184
  ## 0.6.0
4
185
 
5
186
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@checkstack/dashboard-frontend",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
+ "license": "Elastic-2.0",
4
5
  "type": "module",
5
6
  "main": "src/index.tsx",
6
7
  "checkstack": {
@@ -8,27 +9,28 @@
8
9
  },
9
10
  "scripts": {
10
11
  "test": "bun test",
11
- "typecheck": "tsc --noEmit",
12
+ "typecheck": "tsgo -b",
12
13
  "lint": "bun run lint:code",
13
14
  "lint:code": "eslint . --max-warnings 0"
14
15
  },
15
16
  "dependencies": {
16
- "@checkstack/anomaly-common": "0.3.0",
17
- "@checkstack/auth-frontend": "0.5.31",
18
- "@checkstack/catalog-common": "1.5.3",
19
- "@checkstack/catalog-frontend": "0.8.7",
20
- "@checkstack/command-common": "0.2.9",
21
- "@checkstack/command-frontend": "0.2.32",
22
- "@checkstack/common": "0.7.0",
23
- "@checkstack/frontend-api": "0.4.0",
24
- "@checkstack/healthcheck-common": "0.13.0",
25
- "@checkstack/incident-common": "0.5.0",
26
- "@checkstack/maintenance-common": "0.5.0",
27
- "@checkstack/notification-common": "0.3.0",
28
- "@checkstack/notification-frontend": "0.2.36",
29
- "@checkstack/queue-frontend": "0.3.1",
30
- "@checkstack/signal-frontend": "0.1.0",
31
- "@checkstack/ui": "1.6.1",
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",
32
34
  "date-fns": "^4.1.0",
33
35
  "lucide-react": "^0.344.0",
34
36
  "react": "^18.2.0",
@@ -37,7 +39,7 @@
37
39
  "devDependencies": {
38
40
  "typescript": "^5.0.0",
39
41
  "@types/react": "^18.2.0",
40
- "@checkstack/tsconfig": "0.0.5",
41
- "@checkstack/scripts": "0.1.2"
42
+ "@checkstack/tsconfig": "0.0.7",
43
+ "@checkstack/scripts": "0.3.0"
42
44
  }
43
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
@@ -2,5 +2,58 @@
2
2
  "extends": "@checkstack/tsconfig/frontend.json",
3
3
  "include": [
4
4
  "src"
5
+ ],
6
+ "references": [
7
+ {
8
+ "path": "../anomaly-common"
9
+ },
10
+ {
11
+ "path": "../auth-frontend"
12
+ },
13
+ {
14
+ "path": "../catalog-common"
15
+ },
16
+ {
17
+ "path": "../catalog-frontend"
18
+ },
19
+ {
20
+ "path": "../command-common"
21
+ },
22
+ {
23
+ "path": "../command-frontend"
24
+ },
25
+ {
26
+ "path": "../common"
27
+ },
28
+ {
29
+ "path": "../frontend-api"
30
+ },
31
+ {
32
+ "path": "../healthcheck-common"
33
+ },
34
+ {
35
+ "path": "../incident-common"
36
+ },
37
+ {
38
+ "path": "../maintenance-common"
39
+ },
40
+ {
41
+ "path": "../notification-common"
42
+ },
43
+ {
44
+ "path": "../notification-frontend"
45
+ },
46
+ {
47
+ "path": "../queue-frontend"
48
+ },
49
+ {
50
+ "path": "../signal-frontend"
51
+ },
52
+ {
53
+ "path": "../tips-frontend"
54
+ },
55
+ {
56
+ "path": "../ui"
57
+ }
5
58
  ]
6
- }
59
+ }