@checkstack/announcement-frontend 0.2.16 → 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,95 @@
1
1
  # @checkstack/announcement-frontend
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9016526]
8
+ - @checkstack/common@0.10.0
9
+ - @checkstack/announcement-common@0.4.0
10
+ - @checkstack/auth-frontend@0.6.1
11
+ - @checkstack/frontend-api@0.5.1
12
+ - @checkstack/tips-frontend@0.2.1
13
+ - @checkstack/ui@1.8.1
14
+ - @checkstack/signal-frontend@0.1.3
15
+
16
+ ## 0.3.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 3547670: Wire the new tips infrastructure across the frontends:
21
+
22
+ **Empty-state coaching.** Replace generic "no items" copy with onboarding
23
+ guidance — short description, three numbered steps and a primary CTA — on
24
+ every EmptyState that has a meaningful next action. Affects: catalog
25
+ (systems + groups), dashboard, health-check page, integrations (subscriptions
26
+
27
+ - provider connections), GitOps providers + secrets, GitOps provenance,
28
+ SLO config + overview, maintenance config, satellites, plugin manager,
29
+ incident config, announcements. Read-only EmptyStates (incident history,
30
+ maintenance history, plugin events) get clearer descriptions explaining
31
+ what would populate them.
32
+
33
+ **First-run anchored tips.** Add `<Tip>` popovers to the most important
34
+ "Create" affordances so first-time users see a one-line explanation of
35
+ what they're about to make and why it matters: catalog “Add System” /
36
+ “Add Group”, healthcheck “Create Check”, integrations “New Subscription”,
37
+ GitOps “Add Provider”, SLO “Create SLO”, maintenance “Create Maintenance”,
38
+ satellite “Create Satellite”, plugin-manager “Install plugin”, incident
39
+ “Report Incident”, announcement “New Announcement”. Each tip is dismissed
40
+ per user (server-backed when signed in, localStorage otherwise) and
41
+ namespaced through `qualifyTipId(plugin, …)` so it cannot escape the
42
+ plugin's own namespace.
43
+
44
+ **Welcome banner on the dashboard.** A `<TipBanner>` at the top of the
45
+ dashboard introduces Checkstack's main flow ("add a system, then a health
46
+ check") with a one-click jump into the catalog.
47
+
48
+ ### Patch Changes
49
+
50
+ - 950d6ec: Fix mobile UserMenu items rendering at zero height, group menu items by
51
+ section, and unstack cramped card headers on small viewports.
52
+
53
+ - **UserMenu mobile bug**: On mobile, the user-menu Sheet rendered every
54
+ menu item as a grid row, which combined with `flex-shrink: 1` on each
55
+ item collapsed the buttons whose internal layout uses `display: flex`
56
+ (the items registered with `useNavigate` rather than `<Link>`) to zero
57
+ content height. Switched the mobile container to a flex column with
58
+ `[&>*]:shrink-0` and added `min-h-0` so the sheet scrolls correctly
59
+ when the list overflows.
60
+
61
+ - **UserMenu grouping**: Slot extensions now accept an optional `group`
62
+ field. The user menu buckets `UserMenuItemsSlot` extensions by `group`
63
+ and renders each group under a labeled header (`Workspace`,
64
+ `Reliability`, `Configuration`, `Documentation`, `Account`). Existing
65
+ core plugins are tagged with the appropriate group; third-party plugins
66
+ can pick any of these or supply their own label. Untagged extensions
67
+ render last with no header. `UserMenuItemsBottomSlot` is unaffected.
68
+
69
+ - **Card header responsiveness**: `CardHeaderRow` (the primitive shared by
70
+ Incident, Maintenance, Auth, Catalog, GitOps and other config cards) now
71
+ stacks vertically on narrow viewports and only switches to a single row
72
+ at the `sm` breakpoint, so titles and adjacent filter controls (e.g.
73
+ status `Select`, "Show resolved" checkbox) no longer cram together on
74
+ mobile. Refactored the Incident and Maintenance config pages to use the
75
+ primitive instead of a hand-rolled `flex items-center justify-between`
76
+ row, and made their `Select` triggers full-width on mobile.
77
+
78
+ - Updated dependencies [42abfff]
79
+ - Updated dependencies [3547670]
80
+ - Updated dependencies [1ef2e79]
81
+ - Updated dependencies [aa89bc5]
82
+ - Updated dependencies [3547670]
83
+ - Updated dependencies [950d6ec]
84
+ - Updated dependencies [3547670]
85
+ - @checkstack/common@0.9.0
86
+ - @checkstack/ui@1.8.0
87
+ - @checkstack/frontend-api@0.5.0
88
+ - @checkstack/tips-frontend@0.2.0
89
+ - @checkstack/auth-frontend@0.6.0
90
+ - @checkstack/announcement-common@0.3.2
91
+ - @checkstack/signal-frontend@0.1.2
92
+
3
93
  ## 0.2.16
4
94
 
5
95
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/announcement-frontend",
3
- "version": "0.2.16",
3
+ "version": "0.3.1",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.tsx",
@@ -13,12 +13,13 @@
13
13
  "lint:code": "eslint . --max-warnings 0"
14
14
  },
15
15
  "dependencies": {
16
- "@checkstack/announcement-common": "0.3.0",
17
- "@checkstack/auth-frontend": "0.5.32",
18
- "@checkstack/common": "0.7.0",
19
- "@checkstack/frontend-api": "0.4.1",
20
- "@checkstack/signal-frontend": "0.1.0",
21
- "@checkstack/ui": "1.7.0",
16
+ "@checkstack/announcement-common": "0.3.2",
17
+ "@checkstack/auth-frontend": "0.6.0",
18
+ "@checkstack/common": "0.9.0",
19
+ "@checkstack/frontend-api": "0.5.0",
20
+ "@checkstack/signal-frontend": "0.1.2",
21
+ "@checkstack/tips-frontend": "0.2.0",
22
+ "@checkstack/ui": "1.8.0",
22
23
  "date-fns": "^4.1.0",
23
24
  "lucide-react": "^0.344.0",
24
25
  "react": "^18.2.0",
@@ -27,7 +28,7 @@
27
28
  "devDependencies": {
28
29
  "typescript": "^5.0.0",
29
30
  "@types/react": "^18.2.0",
30
- "@checkstack/tsconfig": "0.0.6",
31
- "@checkstack/scripts": "0.1.2"
31
+ "@checkstack/tsconfig": "0.0.7",
32
+ "@checkstack/scripts": "0.3.1"
32
33
  }
33
34
  }
package/src/index.tsx CHANGED
@@ -28,6 +28,7 @@ export default createFrontendPlugin({
28
28
  createSlotExtension(UserMenuItemsSlot, {
29
29
  id: "announcement.user-menu.items",
30
30
  component: AnnouncementMenuItems,
31
+ metadata: { group: "Workspace" },
31
32
  }),
32
33
  {
33
34
  id: "announcement.dashboard.cards",
@@ -8,11 +8,13 @@ import {
8
8
  import {
9
9
  AnnouncementApi,
10
10
  announcementAccess,
11
+ pluginMetadata as announcementPluginMetadata,
11
12
  type Announcement,
12
13
  type AnnouncementSeverity,
13
14
  type AnnouncementVisibility,
14
15
  type AnnouncementDisplayMode,
15
16
  } from "@checkstack/announcement-common";
17
+ import { Tip } from "@checkstack/tips-frontend";
16
18
  import {
17
19
  PageLayout,
18
20
  Card,
@@ -501,10 +503,19 @@ const AnnouncementManageContent: React.FC = () => {
501
503
  loading={accessLoading}
502
504
  allowed={canManage}
503
505
  actions={
504
- <Button onClick={handleCreate}>
505
- <Plus className="h-4 w-4 mr-2" />
506
- New Announcement
507
- </Button>
506
+ <Tip
507
+ plugin={announcementPluginMetadata}
508
+ id="create"
509
+ title="Broadcast portal-wide"
510
+ description="An announcement is a top-of-portal banner — different from incidents (which are about specific systems) and notifications (which target subscribers). Use them for planned maintenance windows users should know about, new feature rollouts, or important policy changes."
511
+ side="bottom"
512
+ align="end"
513
+ >
514
+ <Button onClick={handleCreate}>
515
+ <Plus className="h-4 w-4 mr-2" />
516
+ New Announcement
517
+ </Button>
518
+ </Tip>
508
519
  }
509
520
  >
510
521
  <Card>
@@ -521,8 +532,20 @@ const AnnouncementManageContent: React.FC = () => {
521
532
  </div>
522
533
  ) : announcements.length === 0 ? (
523
534
  <EmptyState
535
+ icon={<Megaphone className="size-10" />}
524
536
  title="No announcements yet"
525
- description="Create your first announcement to inform users about important updates."
537
+ description="Announcements appear at the top of the portal and let you broadcast information to anyone using Checkstack planned downtime, new features, or status updates that don't fit the incident model."
538
+ steps={[
539
+ "Click “New Announcement” and write a short, clear title.",
540
+ "Pick a severity (info, warning, critical) — this controls colour and prominence.",
541
+ "Choose visibility: public, signed-in users only, or specific roles.",
542
+ ]}
543
+ actions={
544
+ <Button onClick={handleCreate}>
545
+ <Plus className="h-4 w-4 mr-2" />
546
+ Create your first announcement
547
+ </Button>
548
+ }
526
549
  />
527
550
  ) : (
528
551
  <Table>
package/tsconfig.json CHANGED
@@ -19,6 +19,9 @@
19
19
  {
20
20
  "path": "../signal-frontend"
21
21
  },
22
+ {
23
+ "path": "../tips-frontend"
24
+ },
22
25
  {
23
26
  "path": "../ui"
24
27
  }