@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831

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.
Files changed (135) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
  3. package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
  4. package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
  5. package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
  6. package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
  7. package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
  8. package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
  9. package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
  10. package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
  11. package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
  12. package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
  13. package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
  14. package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
  15. package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
  16. package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
  17. package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
  18. package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
  19. package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
  20. package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
  21. package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
  22. package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
  23. package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
  24. package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
  25. package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
  26. package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
  27. package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
  28. package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
  29. package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
  30. package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
  31. package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
  32. package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
  33. package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
  34. package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
  35. package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
  36. package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
  37. package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
  38. package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
  39. package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
  40. package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
  41. package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
  42. package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
  43. package/dist/components/case-studies/index.cjs +36 -36
  44. package/dist/components/chat/embeddable-chat.d.ts +3 -3
  45. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  46. package/dist/components/chat/embeddable-chat.js +21 -14
  47. package/dist/components/chat/guide-welcome.d.ts +5 -16
  48. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  49. package/dist/components/chat/guide-welcome.js +4 -29
  50. package/dist/components/chat/index.cjs +19 -15
  51. package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
  52. package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
  53. package/dist/components/chat/mingo-quick-action-wall.js +105 -19
  54. package/dist/components/chat/mingo-welcome.d.ts +6 -13
  55. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  56. package/dist/components/chat/mingo-welcome.js +5 -9
  57. package/dist/components/chat/quick-action-chip.d.ts +8 -2
  58. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  59. package/dist/components/chat/quick-action-chip.js +18 -8
  60. package/dist/components/chat/utils/icon-registry.d.ts +2 -2
  61. package/dist/components/chat/utils/icon-registry.js +2 -2
  62. package/dist/components/contact/index.cjs +21 -21
  63. package/dist/components/docs/index.cjs +24 -24
  64. package/dist/components/embeds/index.cjs +21 -21
  65. package/dist/components/faq/index.cjs +22 -22
  66. package/dist/components/features/index.cjs +22 -20
  67. package/dist/components/features/notifications/index.d.ts +3 -1
  68. package/dist/components/features/notifications/index.d.ts.map +1 -1
  69. package/dist/components/features/notifications/index.js +2 -0
  70. package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
  71. package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
  72. package/dist/components/features/notifications/notification-category-icon.js +26 -0
  73. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  74. package/dist/components/features/notifications/types.d.ts +1 -1
  75. package/dist/components/features/notifications/types.d.ts.map +1 -1
  76. package/dist/components/help-center-pages/index.cjs +125 -125
  77. package/dist/components/index.cjs +90 -82
  78. package/dist/components/meeting-scheduler/index.cjs +69 -69
  79. package/dist/components/navigation/index.cjs +23 -23
  80. package/dist/components/navigation/site-footer.d.ts.map +1 -1
  81. package/dist/components/navigation/site-footer.js +2 -12
  82. package/dist/components/onboarding-guides/index.cjs +23 -23
  83. package/dist/components/product-demo/index.cjs +31 -31
  84. package/dist/components/related-content/index.cjs +9 -9
  85. package/dist/components/social-icon-row.d.ts +6 -2
  86. package/dist/components/social-icon-row.d.ts.map +1 -1
  87. package/dist/components/social-icon-row.js +5 -6
  88. package/dist/components/tickets/index.cjs +27 -27
  89. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  90. package/dist/components/ui/actions-menu.js +27 -1
  91. package/dist/components/ui/index.cjs +24 -20
  92. package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
  93. package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
  94. package/dist/hooks/index.cjs +7 -7
  95. package/dist/index.cjs +31 -25
  96. package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
  97. package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
  98. package/dist/platform-domains.cjs +4 -0
  99. package/dist/platform-domains.d.ts +2 -0
  100. package/dist/platform-domains.d.ts.map +1 -1
  101. package/dist/platform-domains.js +4 -0
  102. package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
  103. package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
  104. package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
  105. package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
  106. package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
  107. package/dist/types/marketing.d.ts +61 -216
  108. package/dist/types/marketing.d.ts.map +1 -1
  109. package/dist/utils/index.cjs +2 -2
  110. package/dist/utils/notifications.cjs +55 -0
  111. package/dist/utils/notifications.d.ts +29 -0
  112. package/dist/utils/notifications.d.ts.map +1 -0
  113. package/dist/utils/notifications.js +53 -0
  114. package/dist/utils/social-platforms.d.ts +9 -9
  115. package/dist/utils/social-platforms.d.ts.map +1 -1
  116. package/package.json +7 -1
  117. package/src/components/chat/embeddable-chat.tsx +29 -45
  118. package/src/components/chat/guide-welcome.tsx +12 -57
  119. package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
  120. package/src/components/chat/mingo-welcome.tsx +16 -35
  121. package/src/components/chat/quick-action-chip.tsx +32 -8
  122. package/src/components/chat/utils/icon-registry.ts +5 -5
  123. package/src/components/chat/utils/index.ts +1 -1
  124. package/src/components/features/notifications/index.ts +2 -1
  125. package/src/components/features/notifications/notification-category-icon.tsx +38 -0
  126. package/src/components/features/notifications/notification-tile.tsx +2 -1
  127. package/src/components/features/notifications/types.ts +1 -2
  128. package/src/components/navigation/site-footer.tsx +2 -11
  129. package/src/components/social-icon-row.tsx +11 -10
  130. package/src/components/ui/actions-menu.tsx +35 -1
  131. package/src/platform-domains.ts +5 -0
  132. package/src/types/marketing.ts +90 -268
  133. package/src/utils/index.ts +1 -1
  134. package/src/utils/notifications.ts +71 -0
  135. package/src/utils/social-platforms.ts +9 -9
@@ -1,64 +1,199 @@
1
1
  'use client';
2
2
 
3
+ import type { ReactNode } from 'react';
4
+ import { usePageTopicStamp } from '../../contexts/page-topics-context';
3
5
  import { cn } from '../../utils/cn';
6
+ import { Ellipsis01Icon } from '../icons-v2-generated';
7
+ import { PageTopicLabel } from '../page-topic-label';
8
+ import { ActionsMenuDropdown } from '../ui/actions-menu';
9
+ import { Button } from '../ui/button';
10
+ import { LoadingItems, useLoadingScope } from '../ui/loading-scope';
4
11
  import type { MingoQuickAction } from './mingo-welcome';
5
- import { QuickActionWall } from './quick-action-wall';
12
+ import {
13
+ QuickActionChipButton,
14
+ QuickActionChipFromData,
15
+ type QuickActionChip,
16
+ type QuickActionThemeSpec,
17
+ isQuickActionIconSpec,
18
+ renderQuickActionIcon,
19
+ } from './quick-action-chip';
20
+ import { WALL_SKELETON_LABEL_CH } from './quick-action-wall';
21
+
22
+ /**
23
+ * The slots a chat's quick-action set holds: what it shows, and what it reserves. Suggested-prompt research and
24
+ * every leading AI chat show three to five starters at once (NN/g, "Designing use-case prompt suggestions", 2025;
25
+ * ChatGPT, Claude, Gemini, Copilot), so four slots, the last one "More" when there are more actions.
26
+ */
27
+ export const QUICK_ACTION_SET_SLOTS = 4;
28
+
29
+ export interface QuickActionSetProps {
30
+ /** The actions, in the order to show them (the host puts the page topic's own first). */
31
+ chips: ReadonlyArray<QuickActionChip>;
32
+ /** Default theme for chips without their own (the agent's accent). */
33
+ theme?: QuickActionThemeSpec;
34
+ /** The actions are still read: every slot draws its chip's loading form. */
35
+ loading?: boolean;
36
+ /** The group's accessible name. */
37
+ label?: string;
38
+ /** Print the page's topic (`PageTopicLabel`, the stamp the FAQ block prints) over the set, right-aligned, so
39
+ * whoever tags quick actions on the hub sees which topic this page asks for. Default: the host's choice
40
+ * (`PageTopicsProvider showTopic`), so every surface that draws the set prints it alike. Drawn in the loading
41
+ * form too, so the set is the same box either way. */
42
+ showTopic?: boolean;
43
+ className?: string;
44
+ }
45
+
46
+ /**
47
+ * A chat's quick actions: a STATIC set of {@link QUICK_ACTION_SET_SLOTS} fixed slots above the composer, never a
48
+ * moving wall. Its height is decided by its container's width alone (one column under 18rem, two under 48rem, four
49
+ * above), never by the actions: fewer actions leave their slots empty, more turn the last slot into "More (n)", which
50
+ * opens the rest in a menu that floats over the page, and a long name clips on its one line (its tooltip shows it
51
+ * whole). Loading draws the same slots, each the chip's own loading form. So the set is the same box loading,
52
+ * loaded, with 1 action or 40, and opening "More" moves nothing.
53
+ *
54
+ * A click on a chip, or on a row of the "More" menu, calls its `onSelect` (the chat puts the action's prompt into the
55
+ * composer to edit and send).
56
+ */
57
+ export function QuickActionSet({
58
+ chips,
59
+ theme,
60
+ loading: loadingProp = false,
61
+ label = 'Quick actions',
62
+ showTopic: showTopicProp,
63
+ className,
64
+ }: QuickActionSetProps) {
65
+ const loading = useLoadingScope() || loadingProp;
66
+ const topicStamp = usePageTopicStamp();
67
+ const showTopic = showTopicProp ?? topicStamp;
68
+ const overflows = chips.length > QUICK_ACTION_SET_SLOTS;
69
+ const shown = overflows ? chips.slice(0, QUICK_ACTION_SET_SLOTS - 1) : chips;
70
+ const rest = overflows ? chips.slice(QUICK_ACTION_SET_SLOTS - 1) : [];
71
+ const empty = loading ? 0 : QUICK_ACTION_SET_SLOTS - shown.length - (overflows ? 1 : 0);
72
+
73
+ const moreItems = rest.map(chip => {
74
+ const icon =
75
+ theme && isQuickActionIconSpec(chip.icon) && !chip.icon.accent
76
+ ? { ...chip.icon, accent: theme.accent }
77
+ : chip.icon;
78
+ return { id: chip.id, label: chip.label, icon: renderQuickActionIcon(icon), onClick: chip.onSelect };
79
+ });
80
+
81
+ return (
82
+ <div
83
+ role="group"
84
+ aria-label={label}
85
+ className={cn('flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container', className)}
86
+ >
87
+ {showTopic && <PageTopicLabel className="text-right" />}
88
+ <div className="grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4">
89
+ {loading ? (
90
+ <LoadingItems count={QUICK_ACTION_SET_SLOTS}>
91
+ {i => (
92
+ <Slot>
93
+ <QuickActionChipButton
94
+ loading
95
+ fill
96
+ label=""
97
+ icon
98
+ labelCh={WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length]}
99
+ data-loading-item
100
+ />
101
+ </Slot>
102
+ )}
103
+ </LoadingItems>
104
+ ) : (
105
+ <>
106
+ {shown.map(chip => (
107
+ <Slot key={chip.id}>
108
+ <QuickActionChipFromData chip={chip} defaultTheme={theme} fill data-loading-item />
109
+ </Slot>
110
+ ))}
111
+ {overflows && (
112
+ <Slot>
113
+ <ActionsMenuDropdown
114
+ groups={[{ items: moreItems }]}
115
+ align="end"
116
+ side="top"
117
+ customTrigger={
118
+ <Button
119
+ variant="card"
120
+ type="button"
121
+ aria-label={`More quick actions (${rest.length})`}
122
+ className="w-full min-w-0"
123
+ >
124
+ <QuickActionChipButton
125
+ interactive={false}
126
+ fill
127
+ label={`More (${rest.length})`}
128
+ icon={<Ellipsis01Icon size={16} />}
129
+ />
130
+ </Button>
131
+ }
132
+ />
133
+ </Slot>
134
+ )}
135
+ {/* Unused slots keep their place, so the set never shrinks: the chip's own box, unseen. */}
136
+ {Array.from({ length: empty }, (_, i) => (
137
+ <Slot key={`empty-${i}`} unused>
138
+ <QuickActionChipButton loading fill label="" icon />
139
+ </Slot>
140
+ ))}
141
+ </>
142
+ )}
143
+ </div>
144
+ </div>
145
+ );
146
+ }
147
+
148
+ /** One cell of the set's grid: whatever it holds (a chip, its loading form, "More", or an unused slot's unseen box)
149
+ * fills it. */
150
+ function Slot({ unused = false, children }: { unused?: boolean; children: ReactNode }) {
151
+ return (
152
+ <div
153
+ data-testid="quick-action-slot"
154
+ aria-hidden={unused || undefined}
155
+ className={cn('min-w-0', unused && 'invisible')}
156
+ >
157
+ {children}
158
+ </div>
159
+ );
160
+ }
6
161
 
7
162
  export interface MingoQuickActionWallProps {
8
163
  quickActions: ReadonlyArray<MingoQuickAction>;
9
- /** Pointer/keyboard focus enters a chip — e.g. preview its prompt in the composer. */
10
- onQuickActionHover?: (action: MingoQuickAction) => void;
11
- /** Pointer/keyboard focus leaves the chip. */
12
- onQuickActionHoverEnd?: () => void;
13
- /** A built-in agent (`'fae'`/`'mingo'`) caps the wall at 2 rows. Default `'mingo'`. */
14
- agentSlug?: string;
15
164
  /**
16
- * The actions are still being read: the wall draws its chips' loading form at its full
17
- * row count, so a host that holds its layout around the wall (a composer under it, a
18
- * greeting centred above) does not move when the actions land.
165
+ * The actions are still being read: the set draws its chips' loading form in every slot, so a host that holds its
166
+ * layout around it (a composer under it, a greeting centred above) does not move when the actions land.
19
167
  */
20
168
  loading?: boolean;
169
+ /** See {@link QuickActionSetProps.showTopic}. */
170
+ showTopic?: boolean;
21
171
  className?: string;
22
172
  }
23
173
 
24
174
  /**
25
- * Mingo's quick actions as the chat's empty state draws them (`MingoWelcome`): the
26
- * shared {@link QuickActionWall} in BRICK mode — stacked row marquees (2 for a built-in
27
- * agent) under left/right edge fades, so a long action set gets "reach" without
28
- * squeezing the composer. `pauseOnHover` freezes the hovered row so a moving chip
29
- * never dodges a click. One component, so a host that shows the actions outside the
30
- * chat (a docked composer's home) draws the very same wall.
175
+ * Mingo's quick actions as the chat's empty state draws them (`MingoWelcome`): the {@link QuickActionSet}. One
176
+ * component, so a host that shows the actions outside the chat (a docked composer's home) draws the very same set.
31
177
  */
32
178
  export function MingoQuickActionWall({
33
179
  quickActions,
34
- onQuickActionHover,
35
- onQuickActionHoverEnd,
36
- agentSlug = 'mingo',
37
180
  loading = false,
181
+ showTopic,
38
182
  className,
39
183
  }: MingoQuickActionWallProps) {
40
184
  if (quickActions.length === 0 && !loading) return null;
41
185
  return (
42
- <QuickActionWall
186
+ <QuickActionSet
43
187
  chips={quickActions.map(action => ({
44
188
  id: action.id,
45
189
  label: action.label,
46
190
  icon: action.icon,
47
191
  variant: action.variant,
48
192
  onSelect: action.onClick,
49
- onHoverStart: () => onQuickActionHover?.(action),
50
- onHoverEnd: () => onQuickActionHoverEnd?.(),
51
193
  }))}
52
- agentSlug={agentSlug}
53
194
  loading={loading}
54
- rows={4}
55
- pauseOnHover
56
- dragScroll
57
- fade={['left', 'right']}
58
- fadeSize={{ left: 32 }}
59
- fadeColor="var(--color-bg)"
60
- copyGap="var(--spacing-system-xxs)"
61
- className={cn('max-h-44 shrink-0', className)}
195
+ showTopic={showTopic}
196
+ className={className}
62
197
  />
63
198
  );
64
199
  }
@@ -33,9 +33,8 @@ export interface MingoQuickAction {
33
33
  /** `'primary'` = accent (yellow) chip, `'outline'` = bordered chip. */
34
34
  variant?: 'primary' | 'outline';
35
35
  onClick?: () => void;
36
- /** Full prompt text previewed as ghost text in the composer on hover/focus.
37
- * The chip `label` is short; this reveals what the action will actually ask.
38
- * Omitted → falls back to `label`. */
36
+ /** The full prompt the action asks: in `EmbeddableChat` a click puts it into the composer to edit and send. The
37
+ * chip `label` is short. Omitted → falls back to `label`. */
39
38
  prompt?: string;
40
39
  }
41
40
 
@@ -55,11 +54,6 @@ export interface MingoWelcomeProps {
55
54
  promoStorage?: 'local' | 'session';
56
55
  /** Extra quick-action chips appended after the "Start Guide Chat" chip. */
57
56
  quickActions?: ReadonlyArray<MingoQuickAction>;
58
- /** Pointer/keyboard focus enters a quick-action chip — e.g. preview the
59
- * action's full `prompt` in the composer input. */
60
- onQuickActionHover?: (action: MingoQuickAction) => void;
61
- /** Pointer/keyboard focus leaves the chip — e.g. restore the composer. */
62
- onQuickActionHoverEnd?: () => void;
63
57
  /** Returning-user variation: the user already has chats. Hides the
64
58
  * "New to OpenFrame?" notification entirely and renders the "Start Guide
65
59
  * Chat" chip in the muted `outline` style instead of the accent yellow. */
@@ -88,10 +82,9 @@ export interface MingoWelcomeProps {
88
82
  * action — switches the host chat to Guide mode) and enables the default
89
83
  * promo notification. When omitted, both are suppressed. */
90
84
  onStartGuideChat?: () => void;
91
- /** Agent this empty state belongs to — forwarded to the quick-action
92
- * {@link QuickActionWall} so a built-in agent (`'fae'`/`'mingo'`) caps the
93
- * brick stack at 2 rows. Defaults to `'mingo'` (this is the Mingo surface). */
94
- agentSlug?: string;
85
+ /** The host is still reading the quick actions: the set draws its loading form in every slot, so the empty state
86
+ * keeps its height when they land. */
87
+ quickActionsLoading?: boolean;
95
88
  /** Appended to the root element. */
96
89
  className?: string;
97
90
  }
@@ -137,8 +130,6 @@ export function MingoWelcome({
137
130
  promoStorageKey = DEFAULT_PROMO_STORAGE_KEY,
138
131
  promoStorage = 'local',
139
132
  quickActions,
140
- onQuickActionHover,
141
- onQuickActionHoverEnd,
142
133
  hasExistingChats = false,
143
134
  dialogHistory,
144
135
  isLoadingHistory = false,
@@ -146,7 +137,7 @@ export function MingoWelcome({
146
137
  loadError = false,
147
138
  onRetry,
148
139
  onStartGuideChat,
149
- agentSlug = 'mingo',
140
+ quickActionsLoading = false,
150
141
  className,
151
142
  }: MingoWelcomeProps) {
152
143
  // Greeting never weaves the user's name in — always the plain "Hey, I'm
@@ -316,18 +307,12 @@ export function MingoWelcome({
316
307
  </div>
317
308
  )}
318
309
 
319
- {/* Quick actions. "Start Guide Chat" stays pinned above the wall — it's
320
- the primary mode switch and must never scroll out of reach. The rest
321
- render in the shared {@link QuickActionWall} in BRICK mode (the SAME
322
- chip wall the website hero uses): 2 stacked row marquees under left/
323
- right edge fades, so a long agent action set gets "reach" without
324
- squeezing the composer. `pauseOnHover` freezes the hovered row so a
325
- moving chip never dodges a click; hover/focus previews the action's
326
- full prompt in the composer. */}
327
- {/* The standalone chip sits one WALL PITCH above the wall, so it reads
328
- as that wall's first row rather than a separate control. */}
329
- {(onStartGuideChat || (quickActions && quickActions.length > 0)) && (
330
- <div className="flex shrink-0 flex-col gap-[var(--chip-wall-gap)]">
310
+ {/* Quick actions. "Start Guide Chat" stays pinned above the set: it is the primary mode switch and must
311
+ never move out of reach. The rest are the static {@link QuickActionSet} (fixed slots, "More" for the
312
+ rest); a click puts the action's prompt into the composer. The standalone chip sits one
313
+ chip gap above the set, so it reads as its first row rather than a separate control. */}
314
+ {(onStartGuideChat || (quickActions && quickActions.length > 0) || quickActionsLoading) && (
315
+ <div className="flex shrink-0 flex-col gap-[var(--spacing-system-xs)]">
331
316
  {onStartGuideChat && (
332
317
  <QuickActionChipButton
333
318
  label="Start Guide Chat"
@@ -337,14 +322,10 @@ export function MingoWelcome({
337
322
  className="self-start"
338
323
  />
339
324
  )}
340
- {quickActions && quickActions.length > 0 && (
341
- <MingoQuickActionWall
342
- quickActions={quickActions}
343
- onQuickActionHover={onQuickActionHover}
344
- onQuickActionHoverEnd={onQuickActionHoverEnd}
345
- agentSlug={agentSlug}
346
- />
347
- )}
325
+ <MingoQuickActionWall
326
+ quickActions={quickActions ?? []}
327
+ loading={quickActionsLoading && !quickActions?.length}
328
+ />
348
329
  </div>
349
330
  )}
350
331
  </div>
@@ -188,6 +188,10 @@ export interface QuickActionChipButtonProps {
188
188
  loading?: boolean;
189
189
  /** While loading, the label placeholder's width in `ch` (see {@link QuickActionChipSkeletonProps.labelCh}). */
190
190
  labelCh?: number;
191
+ /** The chip fills its slot: full width and a FIXED two-line height, the label in sentence type as it was
192
+ * written (not the uppercase label type), wrapping to at most two lines. The quick-action set's fixed grid draws
193
+ * its chips this way, so a long name never changes the slot's size. */
194
+ fill?: boolean;
191
195
  /** The list's markers (`data-loading-item`), forwarded in both forms. */
192
196
  [marker: `data-${string}`]: unknown;
193
197
  }
@@ -208,11 +212,23 @@ interface QuickActionChipSkeletonProps {
208
212
  size?: 'default' | 'large';
209
213
  /** `'question'`: the placeholder of a `variant="question"` chip (its height and padding). */
210
214
  variant?: 'outline' | 'question';
215
+ /** The loaded chip fills its slot ({@link QuickActionChipButtonProps.fill}): so does its placeholder. */
216
+ fill?: boolean;
211
217
  className?: string;
212
218
  /** The list's markers (`data-loading-item`), forwarded like the loaded chip's. */
213
219
  [marker: `data-${string}`]: unknown;
214
220
  }
215
221
 
222
+ /** A chip that fills its slot: the tag spans the slot at a fixed two-line height, its content at the leading edge.
223
+ * Prompts read better in sentence case and whole than uppercase and cut (NN/g, "glanceable fonts"; AWS Cloudscape,
224
+ * support prompts), so a filled chip uses the sentence type and wraps instead of clipping on one line. */
225
+ const FILL_TAG_CLASS = 'h-14 w-full min-w-0 justify-start text-left';
226
+
227
+ /** A filled chip's label: at most two lines, broken anywhere a long word needs it. */
228
+ function fillLabel(label: ReactNode): ReactNode {
229
+ return <span className="line-clamp-2 whitespace-normal [overflow-wrap:anywhere]">{label}</span>;
230
+ }
231
+
216
232
  /**
217
233
  * Loading placeholder for {@link QuickActionChipButton} — renders the REAL
218
234
  * `Tag` (same height, padding, border, radius, icon box) with `UnifiedSkeleton`
@@ -227,6 +243,7 @@ function QuickActionChipSkeleton({
227
243
  lozenge = false,
228
244
  size = 'default',
229
245
  variant = 'outline',
246
+ fill = false,
230
247
  className,
231
248
  ...props
232
249
  }: QuickActionChipSkeletonProps) {
@@ -235,8 +252,8 @@ function QuickActionChipSkeleton({
235
252
  <Tag
236
253
  {...loadingItemProps(props)}
237
254
  variant="outline"
238
- size={question ? 'sentence' : size}
239
- className={cn(question && 'max-w-full', className)}
255
+ size={question || fill ? 'sentence' : size}
256
+ className={cn(question && 'max-w-full', fill && FILL_TAG_CLASS, className)}
240
257
  icon={
241
258
  icon && !question ? (
242
259
  <UnifiedSkeleton as="span" aria-hidden className={size === 'large' ? 'block size-5' : 'block size-4'} />
@@ -287,6 +304,7 @@ export function QuickActionChipButton({
287
304
  className,
288
305
  loading: loadingProp = false,
289
306
  labelCh,
307
+ fill = false,
290
308
  ...props
291
309
  }: QuickActionChipButtonProps) {
292
310
  // ONE switch: in a page's loading state, or while the host reads the label, the chip is its skeleton (same box).
@@ -301,7 +319,8 @@ export function QuickActionChipButton({
301
319
  lozenge={!!lozenge}
302
320
  size={size}
303
321
  variant={variant === 'question' ? 'question' : 'outline'}
304
- className={className}
322
+ fill={fill}
323
+ className={cn(fill && 'w-full', className)}
305
324
  />
306
325
  );
307
326
  // The theme's accent only fills the gap — an icon spec's own accent
@@ -309,7 +328,8 @@ export function QuickActionChipButton({
309
328
  const themedIcon = theme && isQuickActionIconSpec(icon) && !icon.accent ? { ...icon, accent: theme.accent } : icon;
310
329
  const resolvedLozenge = lozenge === true ? theme?.lozenge : lozenge === false ? undefined : lozenge;
311
330
  const resolvedIcon = renderQuickActionIcon(themedIcon);
312
- const resolvedLabel = composeChipLabel(label, resolvedLozenge);
331
+ const composedLabel = composeChipLabel(label, resolvedLozenge);
332
+ const resolvedLabel = fill ? fillLabel(composedLabel) : composedLabel;
313
333
  const question = variant === 'question';
314
334
  const tagVariant = selected
315
335
  ? selectedAccent === 'cyan'
@@ -318,7 +338,7 @@ export function QuickActionChipButton({
318
338
  : question
319
339
  ? 'outline'
320
340
  : variant;
321
- const tagSize = question ? 'sentence' : size;
341
+ const tagSize = question || fill ? 'sentence' : size;
322
342
  if (!interactive) {
323
343
  return (
324
344
  <Tag
@@ -327,7 +347,7 @@ export function QuickActionChipButton({
327
347
  size={tagSize}
328
348
  icon={resolvedIcon}
329
349
  label={resolvedLabel}
330
- className={className}
350
+ className={cn(fill && FILL_TAG_CLASS, className)}
331
351
  />
332
352
  );
333
353
  }
@@ -344,7 +364,7 @@ export function QuickActionChipButton({
344
364
  aria-pressed={selected || undefined}
345
365
  className={cn(
346
366
  // A question may be longer than a narrow column: it shrinks and clips there, read from its start.
347
- question ? 'w-auto min-w-0 max-w-full' : 'w-auto shrink-0',
367
+ fill ? 'w-full min-w-0' : question ? 'w-auto min-w-0 max-w-full' : 'w-auto shrink-0',
348
368
  className,
349
369
  )}
350
370
  >
@@ -353,7 +373,7 @@ export function QuickActionChipButton({
353
373
  size={tagSize}
354
374
  icon={resolvedIcon}
355
375
  label={resolvedLabel}
356
- className={question ? 'max-w-full' : undefined}
376
+ className={fill ? FILL_TAG_CLASS : question ? 'max-w-full' : undefined}
357
377
  />
358
378
  </Button>
359
379
  );
@@ -410,6 +430,7 @@ export function QuickActionChipFromData({
410
430
  defaultTheme,
411
431
  defaultLozenge,
412
432
  interactive = true,
433
+ fill,
413
434
  className,
414
435
  ...props
415
436
  }: {
@@ -417,6 +438,8 @@ export function QuickActionChipFromData({
417
438
  defaultTheme?: QuickActionThemeSpec;
418
439
  defaultLozenge?: boolean;
419
440
  interactive?: boolean;
441
+ /** See {@link QuickActionChipButtonProps.fill}. */
442
+ fill?: boolean;
420
443
  className?: string;
421
444
  /** The list's markers (`data-loading-item`), forwarded to the chip. */
422
445
  [marker: `data-${string}`]: unknown;
@@ -435,6 +458,7 @@ export function QuickActionChipFromData({
435
458
  onHoverStart={chip.onHoverStart}
436
459
  onHoverEnd={chip.onHoverEnd}
437
460
  interactive={interactive}
461
+ fill={fill}
438
462
  className={className}
439
463
  />
440
464
  );
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * - `chat_admin_slash_commands.icon_name` — kebab-case (`'rocket'`,
9
9
  * `'hubspot'`, `'github'`, `'dollar-sign'`).
10
- * - `social_platforms.icon_name` — PascalCase component names
10
+ * - `channel_platforms.icon_name` — PascalCase component names
11
11
  * (`'LinkedInIcon'`, `'XLogo'`, `'YouTubeIcon'`, `'Github'`).
12
12
  *
13
13
  * The registry stores entries under kebab-case keys (URL/DB-friendly,
@@ -53,7 +53,7 @@ export const ICON_REGISTRY: Readonly<Record<string, IconRef>> = {
53
53
  'facebook-lucide': lucide('facebook'),
54
54
  'file-text': lucide('file-text'),
55
55
  // `'github-lucide'` is the lucide outline glyph (used by
56
- // `social_platforms.icon_name='Github'`); `'github'` is the brand icon
56
+ // `channel_platforms.icon_name='Github'`); `'github'` is the brand icon
57
57
  // (used by `chat_admin_slash_commands.icon_name='github'`).
58
58
  github: fromSet('GithubClassicIcon'),
59
59
  'github-lucide': lucide('github'),
@@ -115,7 +115,7 @@ const fallbackIcon = (name: string): IconComponent => lucideIcon(name) as IconCo
115
115
 
116
116
  /**
117
117
  * PascalCase → kebab-case alias table for DB columns that store icon
118
- * names as component identifiers (currently `social_platforms.icon_name`).
118
+ * names as component identifiers (currently `channel_platforms.icon_name`).
119
119
  * Keep these in sync with the actual rows in those tables.
120
120
  */
121
121
  const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
@@ -164,7 +164,7 @@ const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
164
164
  ClickUpIcon: 'clickup',
165
165
  HubspotIcon: 'hubspot',
166
166
  LinkedInIcon: 'linkedin',
167
- // `social_platforms.icon_name` stores the names these marks were first exported under.
167
+ // `channel_platforms.icon_name` stores the names these marks were first exported under.
168
168
  FacebookIcon: 'facebook',
169
169
  InstagramIcon: 'instagram',
170
170
  FacebookClassicIcon: 'facebook',
@@ -179,7 +179,7 @@ const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
179
179
 
180
180
  /**
181
181
  * Normalize an icon key to the registry's canonical kebab-case form.
182
- * Accepts PascalCase variants (from `social_platforms.icon_name`-style
182
+ * Accepts PascalCase variants (from `channel_platforms.icon_name`-style
183
183
  * columns) and passes kebab-case keys through unchanged.
184
184
  */
185
185
  export function normalizeIconKey(key: string): string {
@@ -154,7 +154,7 @@ export {
154
154
  // the SINGLE source of truth for all icon-name → React-component lookup
155
155
  // across the lib + the hub — kebab-case keys, with PascalCase aliases
156
156
  // routed through `normalizeIconKey()` for DB columns that store
157
- // component-style names (e.g. social_platforms.icon_name).
157
+ // component-style names (e.g. channel_platforms.icon_name).
158
158
  export {
159
159
  ICON_REGISTRY,
160
160
  getIconComponent,
@@ -3,6 +3,7 @@ export type { NotificationsProviderProps, NotificationsActions } from './notific
3
3
  export { NotificationDrawer } from './notification-drawer';
4
4
  export type { NotificationDrawerProps } from './notification-drawer';
5
5
  export { NotificationTile } from './notification-tile';
6
+ export { notificationCategoryIcon } from './notification-category-icon';
6
7
  export type { NotificationTileProps } from './notification-tile';
7
8
  export { NotificationPopups } from './notification-popups';
8
9
  export type { NotificationPopupsProps, NotificationPopupsPosition } from './notification-popups';
@@ -20,9 +21,9 @@ export {
20
21
  export type {
21
22
  Notification,
22
23
  NotificationVariant,
23
- NotificationSeverity,
24
24
  AddNotificationInput,
25
25
  ApprovalNotificationMeta,
26
26
  ApprovalToolCallMeta,
27
27
  RenderNotificationTile,
28
28
  } from './types';
29
+ export type { NotificationCategory, NotificationSeverity } from '../../../utils/notifications';
@@ -0,0 +1,38 @@
1
+ import type { ReactNode } from 'react';
2
+ import { AgentMark } from '../../agent-mark';
3
+ import { NamedIcon, type IconRef } from '../../chat/utils/icon-loading';
4
+
5
+ /**
6
+ * Backend `NotificationCategory` → icon, the icon of the dashboard section the
7
+ * notification belongs to (the app navigation's own). A table of icon NAMES: an
8
+ * icon is loaded when a notification of its category is drawn. GENERIC,
9
+ * INTEGRATIONS and unknown categories have none (the tile draws its severity
10
+ * dot). Every icon takes the host's text colour, so a row of them is one colour.
11
+ */
12
+ const ICON_BY_CATEGORY: Readonly<Record<string, IconRef>> = {
13
+ DASHBOARD: { set: 'ChartDonutIcon' },
14
+ CUSTOMERS: { set: 'IdCardIcon' },
15
+ DEVICES: { set: 'MonitorIcon' },
16
+ SCRIPTS: { set: 'BracketCurlyIcon' },
17
+ MONITORING: { set: 'RadarIcon' },
18
+ SOFTWARE: { set: 'PackageIcon' },
19
+ LOGS: { set: 'ClipboardListIcon' },
20
+ TICKETS: { set: 'TagIcon' },
21
+ INSIGHTS: { set: 'AlertTriangleIcon' },
22
+ };
23
+
24
+ /** The category whose notifications carry the assistant's own mark, drawn from its identity. */
25
+ const ASSISTANT_CATEGORY = 'MINGO';
26
+
27
+ /**
28
+ * The icon a notification of this category shows in its tile's header, or
29
+ * `undefined` when the category has none. Pass it as `Notification.icon`.
30
+ */
31
+ export function notificationCategoryIcon(category: string | null | undefined): ReactNode | undefined {
32
+ const key = category?.toUpperCase();
33
+ if (!key) return undefined;
34
+ if (key === ASSISTANT_CATEGORY) return <AgentMark agent="mingo" className="size-4" color="currentColor" />;
35
+ // A table's own entry only: a backend string never resolves to `Object.prototype` (`constructor`, `toString`).
36
+ const icon = Object.prototype.hasOwnProperty.call(ICON_BY_CATEGORY, key) ? ICON_BY_CATEGORY[key] : undefined;
37
+ return icon ? <NamedIcon icon={icon} size={16} /> : undefined;
38
+ }
@@ -6,13 +6,14 @@ import { ICON_SIZE } from '../../../styles/component-sizes';
6
6
  import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
7
7
  import { cn } from '../../../utils/cn';
8
8
  import { formatTicketRelativeTime } from '../../../utils/date-utils';
9
+ import type { NotificationSeverity } from '../../../utils/notifications';
9
10
  import { CheckCircleIcon } from '../../icons-v2-generated/signs-and-symbols/check-circle-icon';
10
11
  import { XmarkIcon } from '../../icons-v2-generated/signs-and-symbols/xmark-icon';
11
12
  import { InteractiveSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
12
13
  import { Button } from '../../ui/button';
13
14
  import { useLoadingScope } from '../../ui/loading-scope';
14
15
  import { dotColorByVariant, progressColorByVariant as toastProgressColorByVariant } from '../../ui/toaster';
15
- import type { Notification, NotificationSeverity, NotificationVariant } from './types';
16
+ import type { Notification, NotificationVariant } from './types';
16
17
 
17
18
  /** Backend severity → tile color variant; overrides `notification.variant` when present. */
18
19
  const variantBySeverity: Record<NotificationSeverity, NotificationVariant> = {
@@ -1,10 +1,9 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { NotificationSeverity } from '../../../utils/notifications';
2
3
  import { APPROVAL_STATUS, type ApprovalBatchData, type ChatApprovalStatus } from '../../chat/types';
3
4
 
4
5
  export type NotificationVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
5
6
 
6
- export type NotificationSeverity = 'INFO' | 'SUCCESS' | 'WARNING' | 'DANGER';
7
-
8
7
  export interface Notification {
9
8
  id: string;
10
9
  variant?: NotificationVariant;
@@ -5,7 +5,7 @@ import { useState } from 'react';
5
5
  import type { NavGroup, SiteNav } from '../../types/navigation';
6
6
  import { cn } from '../../utils/cn';
7
7
  import { Chevron02DownIcon } from '../icons-v2-generated/arrows/chevron-02-down-icon';
8
- import { SocialIconRow } from '../social-icon-row';
8
+ import { SocialIconRow, siteNavSocialLinks } from '../social-icon-row';
9
9
  import { Button } from '../ui/button';
10
10
  import { NavItemRow } from './nav-item-row';
11
11
  import { defaultRenderSiteNavLink, NAV_FOCUS_CLASS, navLinkLabel, type SiteNavLinkRenderer } from './site-nav-link';
@@ -157,16 +157,7 @@ export function SiteFooter({
157
157
  const accordion = columns.length > ACCORDION_OVER;
158
158
  const socialRow =
159
159
  social ??
160
- (nav.brand.social.length > 0 ? (
161
- <SocialIconRow
162
- compact
163
- links={nav.brand.social.map(link => ({
164
- platform: link.iconName ?? link.id,
165
- href: link.href,
166
- label: link.label,
167
- }))}
168
- />
169
- ) : null);
160
+ (nav.brand.social.length > 0 ? <SocialIconRow compact links={siteNavSocialLinks(nav.brand.social)} /> : null);
170
161
 
171
162
  return (
172
163
  <footer