@checkstack/integration-frontend 0.3.3 → 0.4.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 +76 -0
- package/package.json +11 -10
- package/src/index.tsx +1 -0
- package/src/pages/IntegrationsPage.tsx +28 -6
- package/src/pages/ProviderConnectionsPage.tsx +13 -7
- package/tsconfig.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# @checkstack/integration-frontend
|
|
2
2
|
|
|
3
|
+
## 0.4.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
|
+
- 950d6ec: Fix mobile UserMenu items rendering at zero height, group menu items by
|
|
38
|
+
section, and unstack cramped card headers on small viewports.
|
|
39
|
+
|
|
40
|
+
- **UserMenu mobile bug**: On mobile, the user-menu Sheet rendered every
|
|
41
|
+
menu item as a grid row, which combined with `flex-shrink: 1` on each
|
|
42
|
+
item collapsed the buttons whose internal layout uses `display: flex`
|
|
43
|
+
(the items registered with `useNavigate` rather than `<Link>`) to zero
|
|
44
|
+
content height. Switched the mobile container to a flex column with
|
|
45
|
+
`[&>*]:shrink-0` and added `min-h-0` so the sheet scrolls correctly
|
|
46
|
+
when the list overflows.
|
|
47
|
+
|
|
48
|
+
- **UserMenu grouping**: Slot extensions now accept an optional `group`
|
|
49
|
+
field. The user menu buckets `UserMenuItemsSlot` extensions by `group`
|
|
50
|
+
and renders each group under a labeled header (`Workspace`,
|
|
51
|
+
`Reliability`, `Configuration`, `Documentation`, `Account`). Existing
|
|
52
|
+
core plugins are tagged with the appropriate group; third-party plugins
|
|
53
|
+
can pick any of these or supply their own label. Untagged extensions
|
|
54
|
+
render last with no header. `UserMenuItemsBottomSlot` is unaffected.
|
|
55
|
+
|
|
56
|
+
- **Card header responsiveness**: `CardHeaderRow` (the primitive shared by
|
|
57
|
+
Incident, Maintenance, Auth, Catalog, GitOps and other config cards) now
|
|
58
|
+
stacks vertically on narrow viewports and only switches to a single row
|
|
59
|
+
at the `sm` breakpoint, so titles and adjacent filter controls (e.g.
|
|
60
|
+
status `Select`, "Show resolved" checkbox) no longer cram together on
|
|
61
|
+
mobile. Refactored the Incident and Maintenance config pages to use the
|
|
62
|
+
primitive instead of a hand-rolled `flex items-center justify-between`
|
|
63
|
+
row, and made their `Select` triggers full-width on mobile.
|
|
64
|
+
|
|
65
|
+
- Updated dependencies [42abfff]
|
|
66
|
+
- Updated dependencies [3547670]
|
|
67
|
+
- Updated dependencies [1ef2e79]
|
|
68
|
+
- Updated dependencies [aa89bc5]
|
|
69
|
+
- Updated dependencies [3547670]
|
|
70
|
+
- Updated dependencies [950d6ec]
|
|
71
|
+
- Updated dependencies [3547670]
|
|
72
|
+
- @checkstack/common@0.9.0
|
|
73
|
+
- @checkstack/ui@1.8.0
|
|
74
|
+
- @checkstack/frontend-api@0.5.0
|
|
75
|
+
- @checkstack/tips-frontend@0.2.0
|
|
76
|
+
- @checkstack/integration-common@0.3.2
|
|
77
|
+
- @checkstack/signal-frontend@0.1.2
|
|
78
|
+
|
|
3
79
|
## 0.3.3
|
|
4
80
|
|
|
5
81
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/integration-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -13,19 +13,20 @@
|
|
|
13
13
|
"lint:code": "eslint . --max-warnings 0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@checkstack/
|
|
17
|
-
"@checkstack/frontend-api": "0.4.
|
|
18
|
-
"@checkstack/
|
|
19
|
-
"@checkstack/
|
|
20
|
-
"@checkstack/
|
|
16
|
+
"@checkstack/common": "0.8.0",
|
|
17
|
+
"@checkstack/frontend-api": "0.4.2",
|
|
18
|
+
"@checkstack/integration-common": "0.3.1",
|
|
19
|
+
"@checkstack/signal-frontend": "0.1.1",
|
|
20
|
+
"@checkstack/tips-frontend": "0.1.0",
|
|
21
|
+
"@checkstack/ui": "1.7.1",
|
|
22
|
+
"lucide-react": "^0.344.0",
|
|
21
23
|
"react": "^18.2.0",
|
|
22
|
-
"react-router-dom": "^6.22.0"
|
|
23
|
-
"lucide-react": "^0.344.0"
|
|
24
|
+
"react-router-dom": "^6.22.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"typescript": "^5.0.0",
|
|
27
28
|
"@types/react": "^18.2.0",
|
|
28
|
-
"@checkstack/tsconfig": "0.0.
|
|
29
|
-
"@checkstack/scripts": "0.
|
|
29
|
+
"@checkstack/tsconfig": "0.0.7",
|
|
30
|
+
"@checkstack/scripts": "0.3.0"
|
|
30
31
|
}
|
|
31
32
|
}
|
package/src/index.tsx
CHANGED
|
@@ -30,9 +30,11 @@ import { resolveRoute, extractErrorMessage} from "@checkstack/common";
|
|
|
30
30
|
import {
|
|
31
31
|
IntegrationApi,
|
|
32
32
|
integrationRoutes,
|
|
33
|
+
pluginMetadata as integrationPluginMetadata,
|
|
33
34
|
type WebhookSubscription,
|
|
34
35
|
type IntegrationProviderInfo,
|
|
35
36
|
} from "@checkstack/integration-common";
|
|
37
|
+
import { Tip } from "@checkstack/tips-frontend";
|
|
36
38
|
import { SubscriptionDialog } from "../components/CreateSubscriptionDialog";
|
|
37
39
|
|
|
38
40
|
export const IntegrationsPage = () => {
|
|
@@ -119,10 +121,19 @@ export const IntegrationsPage = () => {
|
|
|
119
121
|
icon={LinkIcon}
|
|
120
122
|
loading={loading}
|
|
121
123
|
actions={
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
<Tip
|
|
125
|
+
plugin={integrationPluginMetadata}
|
|
126
|
+
id="subscriptions.create"
|
|
127
|
+
title="Send Checkstack events anywhere"
|
|
128
|
+
description="A subscription forwards events (incidents, status changes, deployments) to an external system. Pick a connected provider — webhook, Jira, Teams, Slack — and choose which event types it cares about. Failed deliveries retry automatically and show up in the delivery logs."
|
|
129
|
+
side="bottom"
|
|
130
|
+
align="end"
|
|
131
|
+
>
|
|
132
|
+
<Button onClick={openCreateDialog}>
|
|
133
|
+
<Plus className="h-4 w-4 mr-2" />
|
|
134
|
+
New Subscription
|
|
135
|
+
</Button>
|
|
136
|
+
</Tip>
|
|
126
137
|
}
|
|
127
138
|
>
|
|
128
139
|
<div className="space-y-8">
|
|
@@ -194,8 +205,19 @@ export const IntegrationsPage = () => {
|
|
|
194
205
|
{subscriptions.length === 0 ? (
|
|
195
206
|
<EmptyState
|
|
196
207
|
icon={<Webhook className="h-12 w-12" />}
|
|
197
|
-
title="No webhook subscriptions"
|
|
198
|
-
description="
|
|
208
|
+
title="No webhook subscriptions yet"
|
|
209
|
+
description="A subscription forwards events from Checkstack (incidents, status changes, deployments) to external systems — Jira, ServiceNow, your own webhook receiver, anything that speaks HTTP."
|
|
210
|
+
steps={[
|
|
211
|
+
"Connect at least one provider on the Provider Connections page (Jira, Webhook, Teams, …).",
|
|
212
|
+
"Create a subscription that picks one or more event types to forward.",
|
|
213
|
+
"Watch the Delivery Logs to confirm payloads are reaching their destination.",
|
|
214
|
+
]}
|
|
215
|
+
actions={
|
|
216
|
+
<Button onClick={openCreateDialog}>
|
|
217
|
+
<Plus className="h-4 w-4 mr-2" />
|
|
218
|
+
New subscription
|
|
219
|
+
</Button>
|
|
220
|
+
}
|
|
199
221
|
/>
|
|
200
222
|
) : (
|
|
201
223
|
<Card>
|
|
@@ -276,13 +276,19 @@ export const ProviderConnectionsPage = () => {
|
|
|
276
276
|
/>
|
|
277
277
|
}
|
|
278
278
|
title="No connections configured"
|
|
279
|
-
description="
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
description={`A connection holds the credentials and base configuration that ${provider?.displayName ?? "this provider"} needs in order to deliver events from Checkstack. Once a connection exists you can subscribe to events from the Integrations page.`}
|
|
280
|
+
steps={[
|
|
281
|
+
"Click “Create Connection” and fill in the credentials this provider needs.",
|
|
282
|
+
"Give the connection a name that says where it points (e.g. “Prod Jira” vs. “Sandbox Jira”).",
|
|
283
|
+
"Head back to Integrations and create a webhook subscription that uses this connection.",
|
|
284
|
+
]}
|
|
285
|
+
actions={
|
|
286
|
+
<Button onClick={openCreateDialog}>
|
|
287
|
+
<Plus className="h-4 w-4 mr-2" />
|
|
288
|
+
Create connection
|
|
289
|
+
</Button>
|
|
290
|
+
}
|
|
291
|
+
/>
|
|
286
292
|
) : (
|
|
287
293
|
<Card>
|
|
288
294
|
<CardHeader>
|