@flamingo-stack/openframe-frontend-core 0.0.315 → 0.0.316-snapshot.20260624145705

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 (194) hide show
  1. package/dist/{chunk-5ATH263N.cjs → chunk-27IO7V3P.cjs} +42 -42
  2. package/dist/{chunk-5ATH263N.cjs.map → chunk-27IO7V3P.cjs.map} +1 -1
  3. package/dist/{chunk-OSEKWT6X.cjs → chunk-2SIG5WZQ.cjs} +33 -47
  4. package/dist/chunk-2SIG5WZQ.cjs.map +1 -0
  5. package/dist/{chunk-A2H6TFS4.cjs → chunk-3CW4QIUC.cjs} +33 -33
  6. package/dist/{chunk-A2H6TFS4.cjs.map → chunk-3CW4QIUC.cjs.map} +1 -1
  7. package/dist/{chunk-4D37W55K.js → chunk-4APKC3JB.js} +95 -116
  8. package/dist/chunk-4APKC3JB.js.map +1 -0
  9. package/dist/{chunk-WFHNXCI3.cjs → chunk-4FX56H4X.cjs} +123 -144
  10. package/dist/chunk-4FX56H4X.cjs.map +1 -0
  11. package/dist/{chunk-J7AV6H63.js → chunk-4MD2TPFY.js} +75 -75
  12. package/dist/{chunk-TK6OABYF.js → chunk-5EV3GLZK.js} +21 -35
  13. package/dist/{chunk-TK6OABYF.js.map → chunk-5EV3GLZK.js.map} +1 -1
  14. package/dist/{chunk-47JZOP7Y.js → chunk-5EZ3WDDL.js} +3 -3
  15. package/dist/{chunk-6W54MBU2.js → chunk-6W3MPA7N.js} +6 -6
  16. package/dist/{chunk-E4CQ4RUG.js → chunk-7KZJV4MP.js} +11 -11
  17. package/dist/{chunk-TRSDXD23.js → chunk-A6NBGRGZ.js} +2 -2
  18. package/dist/{chunk-JALO4TAZ.js → chunk-AI5X5JTD.js} +4 -4
  19. package/dist/chunk-ALP347PU.js +394 -0
  20. package/dist/chunk-ALP347PU.js.map +1 -0
  21. package/dist/{chunk-BSAFGQVW.cjs → chunk-B43HTMWN.cjs} +18 -18
  22. package/dist/{chunk-BSAFGQVW.cjs.map → chunk-B43HTMWN.cjs.map} +1 -1
  23. package/dist/{chunk-HATCNFQL.cjs → chunk-BMCO4Z6Y.cjs} +12 -12
  24. package/dist/{chunk-HATCNFQL.cjs.map → chunk-BMCO4Z6Y.cjs.map} +1 -1
  25. package/dist/{chunk-QW6OL4NY.cjs → chunk-EBL2SQ6P.cjs} +5 -5
  26. package/dist/{chunk-QW6OL4NY.cjs.map → chunk-EBL2SQ6P.cjs.map} +1 -1
  27. package/dist/chunk-EQTU5KRP.cjs +1916 -0
  28. package/dist/chunk-EQTU5KRP.cjs.map +1 -0
  29. package/dist/{chunk-7U4YFQX2.js → chunk-FVXOKJ4B.js} +5176 -4972
  30. package/dist/chunk-FVXOKJ4B.js.map +1 -0
  31. package/dist/{chunk-ZS2SBWBR.cjs → chunk-GXRWE7NB.cjs} +2 -2
  32. package/dist/{chunk-ZS2SBWBR.cjs.map → chunk-GXRWE7NB.cjs.map} +1 -1
  33. package/dist/{chunk-2JPSWDSM.cjs → chunk-IFG6RJ5S.cjs} +1491 -1287
  34. package/dist/chunk-IFG6RJ5S.cjs.map +1 -0
  35. package/dist/{chunk-TVNILN2F.cjs → chunk-JCTNHTPT.cjs} +40 -40
  36. package/dist/{chunk-TVNILN2F.cjs.map → chunk-JCTNHTPT.cjs.map} +1 -1
  37. package/dist/chunk-JSX6QQ7Z.js +1464 -0
  38. package/dist/chunk-JSX6QQ7Z.js.map +1 -0
  39. package/dist/{chunk-ZPK5HW7B.cjs → chunk-K5HBVPJ5.cjs} +3 -3
  40. package/dist/{chunk-ZPK5HW7B.cjs.map → chunk-K5HBVPJ5.cjs.map} +1 -1
  41. package/dist/chunk-LDBS7C7H.js +1916 -0
  42. package/dist/chunk-LDBS7C7H.js.map +1 -0
  43. package/dist/{chunk-V4IIBNTA.js → chunk-LQHMXPOJ.js} +5 -5
  44. package/dist/{chunk-LGLPNWS6.cjs → chunk-LWNPMLIH.cjs} +3 -3
  45. package/dist/{chunk-LGLPNWS6.cjs.map → chunk-LWNPMLIH.cjs.map} +1 -1
  46. package/dist/{chunk-VFIWQGJZ.js → chunk-OG6COCMK.js} +2 -2
  47. package/dist/chunk-OY5ZZLAN.cjs +1464 -0
  48. package/dist/chunk-OY5ZZLAN.cjs.map +1 -0
  49. package/dist/chunk-PU22RRNK.cjs +394 -0
  50. package/dist/chunk-PU22RRNK.cjs.map +1 -0
  51. package/dist/{chunk-FQOTC3UU.cjs → chunk-QJGRP2YE.cjs} +4 -4
  52. package/dist/{chunk-FQOTC3UU.cjs.map → chunk-QJGRP2YE.cjs.map} +1 -1
  53. package/dist/{chunk-2MLMZAK4.js → chunk-ULEUTOOA.js} +4 -4
  54. package/dist/{chunk-TQ7CMFSY.cjs → chunk-XHBX7LG2.cjs} +41 -36
  55. package/dist/chunk-XHBX7LG2.cjs.map +1 -0
  56. package/dist/{chunk-VY5YF4B7.js → chunk-XHPONEBL.js} +27 -22
  57. package/dist/chunk-XHPONEBL.js.map +1 -0
  58. package/dist/{chunk-MOOV4ORG.js → chunk-ZARQHUES.js} +3 -3
  59. package/dist/components/case-studies/index.cjs +18 -18
  60. package/dist/components/case-studies/index.cjs.map +1 -1
  61. package/dist/components/case-studies/index.js +8 -8
  62. package/dist/components/chat/index.cjs +10 -8
  63. package/dist/components/chat/index.cjs.map +1 -1
  64. package/dist/components/chat/index.d.ts +1 -0
  65. package/dist/components/chat/index.d.ts.map +1 -1
  66. package/dist/components/chat/index.js +9 -7
  67. package/dist/components/chat/msp-organization-card.d.ts +33 -0
  68. package/dist/components/chat/msp-organization-card.d.ts.map +1 -0
  69. package/dist/components/contact/index.cjs +9 -9
  70. package/dist/components/contact/index.js +8 -8
  71. package/dist/components/docs/doc-viewer.d.ts +4 -0
  72. package/dist/components/docs/doc-viewer.d.ts.map +1 -1
  73. package/dist/components/docs/index.cjs +11 -11
  74. package/dist/components/docs/index.js +10 -10
  75. package/dist/components/embeds/index.cjs +9 -9
  76. package/dist/components/embeds/index.js +8 -8
  77. package/dist/components/faq/faq-document-page.d.ts +18 -20
  78. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  79. package/dist/components/faq/index.cjs +10 -10
  80. package/dist/components/faq/index.js +9 -9
  81. package/dist/components/features/index.cjs +8 -8
  82. package/dist/components/features/index.js +7 -7
  83. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
  84. package/dist/components/features/time-tracker/time-tracker-panel.d.ts.map +1 -1
  85. package/dist/components/help-center-pages/delivery-page.d.ts +27 -0
  86. package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -0
  87. package/dist/components/help-center-pages/index.cjs +164 -0
  88. package/dist/components/help-center-pages/index.cjs.map +1 -0
  89. package/dist/components/help-center-pages/index.d.ts +25 -0
  90. package/dist/components/help-center-pages/index.d.ts.map +1 -0
  91. package/dist/components/help-center-pages/index.js +164 -0
  92. package/dist/components/help-center-pages/index.js.map +1 -0
  93. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +41 -0
  94. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -0
  95. package/dist/components/help-center-pages/product-releases-list-page.d.ts +34 -0
  96. package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -0
  97. package/dist/components/help-center-pages/roadmap-page.d.ts +40 -0
  98. package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -0
  99. package/dist/components/icons/index.cjs +3 -3
  100. package/dist/components/icons/index.js +2 -2
  101. package/dist/components/icons-v2-generated/index.cjs +2 -2
  102. package/dist/components/icons-v2-generated/index.js +1 -1
  103. package/dist/components/index.cjs +181 -1555
  104. package/dist/components/index.cjs.map +1 -1
  105. package/dist/components/index.js +352 -1726
  106. package/dist/components/index.js.map +1 -1
  107. package/dist/components/layout/page-layout.d.ts +4 -1
  108. package/dist/components/layout/page-layout.d.ts.map +1 -1
  109. package/dist/components/layout/title-block.d.ts +5 -1
  110. package/dist/components/layout/title-block.d.ts.map +1 -1
  111. package/dist/components/navigation/app-header.d.ts.map +1 -1
  112. package/dist/components/navigation/index.cjs +8 -8
  113. package/dist/components/navigation/index.js +7 -7
  114. package/dist/components/onboarding-guides/index.cjs +15 -364
  115. package/dist/components/onboarding-guides/index.cjs.map +1 -1
  116. package/dist/components/onboarding-guides/index.js +20 -369
  117. package/dist/components/onboarding-guides/index.js.map +1 -1
  118. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts +9 -1
  119. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
  120. package/dist/components/related-content/index.cjs +10 -10
  121. package/dist/components/related-content/index.js +9 -9
  122. package/dist/components/shared/dev-section/dev-section-page.d.ts +7 -1
  123. package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
  124. package/dist/components/shared/dev-section/dev-section-view.d.ts +7 -1
  125. package/dist/components/shared/dev-section/dev-section-view.d.ts.map +1 -1
  126. package/dist/components/shared/legal-document/legal-document-page.d.ts +5 -1
  127. package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
  128. package/dist/components/shared/product-release/release-detail-page.d.ts +11 -2
  129. package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
  130. package/dist/components/tickets/help-center-list.d.ts +5 -1
  131. package/dist/components/tickets/help-center-list.d.ts.map +1 -1
  132. package/dist/components/tickets/index.cjs +15 -1882
  133. package/dist/components/tickets/index.cjs.map +1 -1
  134. package/dist/components/tickets/index.js +28 -1895
  135. package/dist/components/tickets/index.js.map +1 -1
  136. package/dist/components/ui/date-picker.d.ts.map +1 -1
  137. package/dist/components/ui/duration-input.d.ts +14 -0
  138. package/dist/components/ui/duration-input.d.ts.map +1 -0
  139. package/dist/components/ui/file-manager/index.cjs +53 -53
  140. package/dist/components/ui/file-manager/index.cjs.map +1 -1
  141. package/dist/components/ui/file-manager/index.js +4 -4
  142. package/dist/components/ui/index.cjs +12 -8
  143. package/dist/components/ui/index.cjs.map +1 -1
  144. package/dist/components/ui/index.d.ts +1 -0
  145. package/dist/components/ui/index.d.ts.map +1 -1
  146. package/dist/components/ui/index.js +11 -7
  147. package/dist/hooks/index.cjs +5 -5
  148. package/dist/hooks/index.js +4 -4
  149. package/dist/hooks/use-toast.d.ts +1 -1
  150. package/dist/index.cjs +14 -10
  151. package/dist/index.cjs.map +1 -1
  152. package/dist/index.js +13 -9
  153. package/package.json +7 -1
  154. package/src/components/chat/index.ts +1 -0
  155. package/src/components/chat/msp-organization-card.tsx +81 -0
  156. package/src/components/docs/doc-viewer.tsx +21 -34
  157. package/src/components/faq/faq-document-page.tsx +33 -60
  158. package/src/components/features/time-tracker/time-tracker-header-button.tsx +2 -1
  159. package/src/components/features/time-tracker/time-tracker-panel.tsx +10 -4
  160. package/src/components/help-center-pages/delivery-page.tsx +45 -0
  161. package/src/components/help-center-pages/index.ts +41 -0
  162. package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +66 -0
  163. package/src/components/help-center-pages/product-releases-list-page.tsx +58 -0
  164. package/src/components/help-center-pages/roadmap-page.tsx +68 -0
  165. package/src/components/layout/page-layout.tsx +11 -0
  166. package/src/components/layout/title-block.tsx +15 -2
  167. package/src/components/navigation/app-header.tsx +4 -1
  168. package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +30 -19
  169. package/src/components/shared/dev-section/dev-section-page.tsx +29 -19
  170. package/src/components/shared/dev-section/dev-section-view.tsx +26 -19
  171. package/src/components/shared/legal-document/legal-document-page.tsx +19 -23
  172. package/src/components/shared/product-release/release-detail-page.tsx +36 -36
  173. package/src/components/tickets/help-center-list.tsx +11 -3
  174. package/src/components/ui/date-picker.tsx +56 -16
  175. package/src/components/ui/duration-input.tsx +142 -0
  176. package/src/components/ui/index.ts +1 -0
  177. package/src/stories/MspOrganizationCard.stories.tsx +80 -0
  178. package/dist/chunk-2JPSWDSM.cjs.map +0 -1
  179. package/dist/chunk-4D37W55K.js.map +0 -1
  180. package/dist/chunk-7U4YFQX2.js.map +0 -1
  181. package/dist/chunk-OSEKWT6X.cjs.map +0 -1
  182. package/dist/chunk-TQ7CMFSY.cjs.map +0 -1
  183. package/dist/chunk-VY5YF4B7.js.map +0 -1
  184. package/dist/chunk-WFHNXCI3.cjs.map +0 -1
  185. /package/dist/{chunk-J7AV6H63.js.map → chunk-4MD2TPFY.js.map} +0 -0
  186. /package/dist/{chunk-47JZOP7Y.js.map → chunk-5EZ3WDDL.js.map} +0 -0
  187. /package/dist/{chunk-6W54MBU2.js.map → chunk-6W3MPA7N.js.map} +0 -0
  188. /package/dist/{chunk-E4CQ4RUG.js.map → chunk-7KZJV4MP.js.map} +0 -0
  189. /package/dist/{chunk-TRSDXD23.js.map → chunk-A6NBGRGZ.js.map} +0 -0
  190. /package/dist/{chunk-JALO4TAZ.js.map → chunk-AI5X5JTD.js.map} +0 -0
  191. /package/dist/{chunk-V4IIBNTA.js.map → chunk-LQHMXPOJ.js.map} +0 -0
  192. /package/dist/{chunk-VFIWQGJZ.js.map → chunk-OG6COCMK.js.map} +0 -0
  193. /package/dist/{chunk-2MLMZAK4.js.map → chunk-ULEUTOOA.js.map} +0 -0
  194. /package/dist/{chunk-MOOV4ORG.js.map → chunk-ZARQHUES.js.map} +0 -0
@@ -0,0 +1,81 @@
1
+ 'use client'
2
+
3
+ import * as React from 'react'
4
+ import { cn } from '../../utils/cn'
5
+ import { ExternalLinkIcon } from '../icons-v2-generated'
6
+ import { Button } from '../ui/button'
7
+ import { SquareAvatar } from '../ui/square-avatar'
8
+
9
+ export interface MspOrganizationCardProps {
10
+ /** MSP/organization name. Woven into the default title: "Your IT is managed by {name}". */
11
+ name: string
12
+ /** Organization website shown beneath the title (e.g. "www.techflow.com"). */
13
+ website?: string
14
+ /** Organization logo URL. Falls back to initials derived from `name` when absent. */
15
+ logoUrl?: string
16
+ /** Full title override. Defaults to `Your IT is managed by {name}`. */
17
+ title?: React.ReactNode
18
+ /**
19
+ * Website link. When set, the trailing action renders as an anchor
20
+ * (`<a href target="_blank">`). Takes precedence over `onOpenWebsite`.
21
+ */
22
+ href?: string
23
+ /** Click handler for the trailing action (used when `href` is not set). */
24
+ onOpenWebsite?: () => void
25
+ /** Appended to the root element. */
26
+ className?: string
27
+ }
28
+
29
+ /**
30
+ * MSP Organization card for the AI Assistant welcome screen.
31
+ *
32
+ * A horizontal card — square org logo, "Your IT is managed by {name}" title with
33
+ * the website beneath, and a trailing external-link button — so users can confirm
34
+ * which organization they are signing into. Mirrors Figma `openframe — fae-chat`
35
+ * (node 1:5540) using ODS tokens.
36
+ *
37
+ * The trailing button renders only when `href` or `onOpenWebsite` is provided:
38
+ * `href` becomes an anchor (new tab), otherwise `onOpenWebsite` fires on click.
39
+ */
40
+ export function MspOrganizationCard({
41
+ name,
42
+ website,
43
+ logoUrl,
44
+ title,
45
+ href,
46
+ onOpenWebsite,
47
+ className,
48
+ }: MspOrganizationCardProps) {
49
+ const actionLabel = website ? `Open ${website}` : 'Open organization website'
50
+
51
+ return (
52
+ <div
53
+ className={cn(
54
+ // Inset ring (box-shadow) instead of `border` so the 1px stroke does not
55
+ // add to the box height — matches Figma's 80px frame (16 + 48 + 16) with
56
+ // its inside-aligned stroke. A real border would render 82px.
57
+ 'flex items-start gap-[var(--spacing-system-m)] rounded-md bg-ods-bg p-[var(--spacing-system-m)] ring-1 ring-inset ring-ods-border',
58
+ className,
59
+ )}
60
+ >
61
+ <SquareAvatar src={logoUrl} alt={name} fallback={name} size="lg" variant="square" />
62
+
63
+ <div className="flex min-w-0 flex-1 flex-col">
64
+ <span className="truncate text-h3 text-ods-text-primary">{title ?? `Your IT is managed by ${name}`}</span>
65
+ {website ? <span className="truncate text-h4 text-ods-text-secondary">{website}</span> : null}
66
+ </div>
67
+
68
+ {href ? (
69
+ <Button asChild variant="outline" size="icon" aria-label={actionLabel}>
70
+ <a href={href} target="_blank" rel="noreferrer noopener">
71
+ <ExternalLinkIcon />
72
+ </a>
73
+ </Button>
74
+ ) : onOpenWebsite ? (
75
+ <Button variant="outline" size="icon" aria-label={actionLabel} onClick={onOpenWebsite}>
76
+ <ExternalLinkIcon />
77
+ </Button>
78
+ ) : null}
79
+ </div>
80
+ )
81
+ }
@@ -78,6 +78,10 @@ export interface DocViewerProps {
78
78
  /** Override the default ODS palette. Optional — most callers should omit. */
79
79
  colorPalette?: typeof DEFAULT_DOC_VIEWER_PALETTE
80
80
  className?: string
81
+ /** Render the standalone `<PageShell>` (own `<main>` + bg + max-width). Default
82
+ * true. Pass false when the host layout already provides the page container —
83
+ * only the padding box renders, avoiding a nested `<main>`. */
84
+ shell?: boolean
81
85
 
82
86
  /** Initial doc path (URL `[...path]`). */
83
87
  docPath?: string
@@ -134,11 +138,10 @@ function DocViewerContent({
134
138
  renderSkeleton,
135
139
  chatSource,
136
140
  title,
137
- titleIcon,
138
141
  subtitle,
139
- accentDot,
140
142
  colorPalette = DEFAULT_DOC_VIEWER_PALETTE,
141
143
  className = "",
144
+ shell = true,
142
145
  docPath,
143
146
  sidebarLabel = "DOCUMENTATION",
144
147
  structureEndpoint,
@@ -264,39 +267,15 @@ function DocViewerContent({
264
267
  : 'No documents yet. Add content from the admin panel.'
265
268
  const resolvedEmptyText = emptyStateText || defaultEmptyText
266
269
 
267
- return (
268
- // Render through the shared wrapper chain (PageShell → PageLayout →
269
- // `gap-10 flex-col`). PageLayout owns the back-button row; the inner
270
- // `gap-10` div holds an inline title hero (same DOM `<DevSectionView>`'s
271
- // hero renders) followed by the search bar + content grid.
272
- //
273
- // `colorPalette` / `className` / `bgStyle` flow through PageShell's
274
- // contentClassName + an inner style-passthrough wrapper so legacy
275
- // palette overrides still apply (none in the codebase today; the API
276
- // surface is preserved).
277
- <PageShell contentClassName={`${bgClass} ${className}`}>
270
+ // Unified header: title/subtitle route through the canonical (frozen)
271
+ // `PageLayout` `TitleBlock` (text-h2) — same as every other help-center page —
272
+ // so the docs hub shares one header. The `gap-10` column then holds the search
273
+ // bar + content grid. `colorPalette` / `className` / `bgStyle` flow through the
274
+ // shell's contentClassName + an inner style-passthrough wrapper.
275
+ const inner = (
278
276
  <div style={{ ...bgStyle, ...containerBgStyle }}>
279
- <PageLayout backButton={backCfg ?? undefined}>
277
+ <PageLayout title={title} subtitle={subtitle} titleSize="h1" backButton={backCfg ?? undefined}>
280
278
  <div className="w-full flex flex-col gap-10">
281
- {(title || titleIcon || subtitle) && (
282
- <div className="space-y-4">
283
- {(title || titleIcon) && (
284
- <h1 className="text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3">
285
- {titleIcon}
286
- {title && (
287
- <span>
288
- {title}
289
- {accentDot && <span className="text-ods-accent">.</span>}
290
- </span>
291
- )}
292
- </h1>
293
- )}
294
- <p className="font-['DM_Sans'] font-medium text-[18px] leading-[28px] text-ods-text-secondary max-w-3xl line-clamp-2 min-h-[56px]">
295
- {subtitle || ' '}
296
- </p>
297
- </div>
298
- )}
299
-
300
279
  {showAIChat && (
301
280
  <DocSearchBar
302
281
  placeholder={`Search ${sidebarLabel?.toLowerCase() || 'documents'}...`}
@@ -447,6 +426,14 @@ function DocViewerContent({
447
426
  </div>
448
427
  </PageLayout>
449
428
  </div>
450
- </PageShell>
429
+ )
430
+
431
+ // `shell` true → standalone `<PageShell>`; false → padding-only box (no nested
432
+ // <main>) for hosts whose layout already provides the container. Both carry the
433
+ // palette/className via the same `page-shell-content` styling hook.
434
+ return shell ? (
435
+ <PageShell contentClassName={`${bgClass} ${className}`}>{inner}</PageShell>
436
+ ) : (
437
+ <div className={`page-shell-content ${bgClass} ${className}`.trim()}>{inner}</div>
451
438
  )
452
439
  }
@@ -2,19 +2,17 @@
2
2
 
3
3
  /**
4
4
  * FaqDocumentPage — the full `/faqs` page with chrome, so embedders drop in
5
- * ONE component instead of hand-assembling `PageShell` + `PageLayout` + the
6
- * FAQ hero around the bare `<FaqSection>`. Mirrors `LegalDocumentPage` /
7
- * `DevSectionPage`: the page-level layout lives in the lib, the host page is a
8
- * thin wrapper that passes only config + the SSR-resolved data.
5
+ * ONE component instead of hand-assembling `PageShell` + `PageLayout` around
6
+ * the bare `<FaqSection>`. Mirrors `LegalDocumentPage` / `DevSectionPage`: the
7
+ * page-level layout lives in the lib, the host page is a thin wrapper that
8
+ * passes only config + the SSR-resolved data.
9
9
  *
10
- * HERO: renders the canonical FAQ hero (`<h1 class="text-h1">` + accent dot +
11
- * icon + clamped subtitle) — byte-identical to the multi-platform hub's local
12
- * `PageWithHeader` chrome the standalone `/faqs` page historically used. It
13
- * does NOT route through `PageLayout`'s `title`/`subtitle` (the FROZEN
14
- * `text-h2` `TitleBlock` is a different, smaller header used by OpenFrame
15
- * detail surfaces). The page owns the `<h1>`, so `<FaqSection heading={null}>`
16
- * nests its category headings as `<h2>` and the questions as `<h3>` (the
17
- * SEO-recommended FAQ document outline).
10
+ * HERO: the title + subtitle route through the canonical (frozen) `PageLayout`
11
+ * `TitleBlock` with `titleSize="h1"` — the unified Help Center header (the
12
+ * `TitleBlock` element is always an `<h1>`; `titleSize` only sets its typography,
13
+ * here `text-h1`). The page owns that `<h1>`, so `<FaqSection heading={null}>`
14
+ * nests its category headings as `<h2>`/`<h3>` (the SEO-recommended FAQ document
15
+ * outline).
18
16
  *
19
17
  * DATA: pass `initialFaqs` (SSR-resolved, platform-scoped) so `FaqSection`
20
18
  * skips its client self-fetch — the standalone page's static platform-only
@@ -22,27 +20,25 @@
22
20
  * suggestion-fill instead.
23
21
  */
24
22
 
25
- import React from 'react';
26
- import { HelpCircle } from 'lucide-react';
27
23
  import type { Faq } from '../../types/faq';
28
24
  import { PageShell, PageLayout } from '../ui';
29
25
  import { useRouter } from '../../embed-shims/next-navigation';
30
- import { SECTION_HERO_ICON_CLASS } from '../../utils/page-header-constants';
31
26
  import { FaqSection } from './faq-section';
32
27
  import type { FaqSchemaOptions } from './json-ld';
33
28
 
34
29
  export interface FaqDocumentPageProps {
35
- /** Hero `<h1>`. Default "Frequently Asked Questions". */
30
+ /** Page title (frozen `PageLayout` `TitleBlock`). Default "Frequently Asked Questions". */
36
31
  title?: string;
37
- /** Subtitle under the title (auto-clamped to 2 lines). */
32
+ /** Subtitle under the title. */
38
33
  subtitle?: string;
39
- /** Icon rendered before the title. Default `<HelpCircle>` (the FAQ glyph). */
40
- titleIcon?: React.ReactNode;
41
- /** Render the yellow accent dot after the title (default true). */
42
- accentDot?: boolean;
43
34
  /** Back-button config — same pattern as `DevSectionPage` / `LegalDocumentPage`.
44
35
  * Pass `false` to hide. Default `{ label: 'Back to home', href: '/' }`. */
45
36
  backButton?: { label?: string; href?: string } | false;
37
+ /** Render the standalone `<PageShell>` (own `<main>` + bg + max-width). Default
38
+ * true. Pass false when the host layout already provides the page container
39
+ * (e.g. openframe-frontend's `AppLayout` `<main>`) — only the padding box
40
+ * renders, avoiding a nested `<main>`. */
41
+ shell?: boolean;
46
42
  /** SSR-hydrate `FaqSection` (skips the client fetch — the platform-only
47
43
  * contract for the standalone page). Omit for self-fetching embeds. */
48
44
  initialFaqs?: Faq[];
@@ -63,8 +59,6 @@ export interface FaqDocumentPageProps {
63
59
  export function FaqDocumentPage({
64
60
  title = 'Frequently Asked Questions',
65
61
  subtitle,
66
- titleIcon = <HelpCircle className={SECTION_HERO_ICON_CLASS} />,
67
- accentDot = true,
68
62
  backButton,
69
63
  initialFaqs,
70
64
  emitJsonLd,
@@ -73,6 +67,7 @@ export function FaqDocumentPage({
73
67
  entityType,
74
68
  entityId,
75
69
  minResults,
70
+ shell = true,
76
71
  }: FaqDocumentPageProps) {
77
72
  const router = useRouter();
78
73
 
@@ -87,42 +82,20 @@ export function FaqDocumentPage({
87
82
  onClick: () => router.push(backButton?.href ?? '/'),
88
83
  };
89
84
 
90
- return (
91
- <PageShell>
92
- <PageLayout backButton={backCfg}>
93
- <div className="w-full flex flex-col gap-10">
94
- {/* Canonical FAQ hero — the exact DOM/CSS the hub's local
95
- `PageWithHeader` rendered (text-h1 + accent dot + icon + clamped
96
- subtitle), inlined here so the standalone `/faqs` look is owned by
97
- the lib. Intentionally NOT the frozen `text-h2` `TitleBlock`. */}
98
- <div className="flex items-end justify-between gap-[var(--spacing-system-m)] md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between">
99
- <div className="flex flex-col gap-[var(--spacing-system-xs)] flex-1 min-w-0">
100
- <div className="space-y-4">
101
- <h1 className="text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3">
102
- {titleIcon}
103
- <span>
104
- {title}
105
- {accentDot && <span className="text-ods-accent">.</span>}
106
- </span>
107
- </h1>
108
- <p className="font-['DM_Sans'] font-medium text-[18px] leading-[28px] text-ods-text-secondary max-w-3xl line-clamp-2 min-h-[56px]">
109
- {subtitle || ' '}
110
- </p>
111
- </div>
112
- </div>
113
- </div>
114
- <FaqSection
115
- initialFaqs={initialFaqs}
116
- heading={null}
117
- emitJsonLd={emitJsonLd}
118
- jsonLd={jsonLd}
119
- apiBaseUrl={apiBaseUrl}
120
- entityType={entityType}
121
- entityId={entityId}
122
- minResults={minResults}
123
- />
124
- </div>
125
- </PageLayout>
126
- </PageShell>
85
+ const inner = (
86
+ <PageLayout title={title} subtitle={subtitle} backButton={backCfg} titleSize="h1">
87
+ <FaqSection
88
+ initialFaqs={initialFaqs}
89
+ heading={null}
90
+ emitJsonLd={emitJsonLd}
91
+ jsonLd={jsonLd}
92
+ apiBaseUrl={apiBaseUrl}
93
+ entityType={entityType}
94
+ entityId={entityId}
95
+ minResults={minResults}
96
+ />
97
+ </PageLayout>
127
98
  );
99
+
100
+ return shell ? <PageShell>{inner}</PageShell> : <div className="page-shell-content">{inner}</div>;
128
101
  }
@@ -42,6 +42,7 @@ export function TimeTrackerHeaderButton({ className, disabled }: TimeTrackerHead
42
42
  isActive={isOpen}
43
43
  disabled={disabled}
44
44
  className={cn(
45
+ 'outline-none',
45
46
  isActive && 'w-auto gap-[var(--spacing-system-xsf)] px-[var(--spacing-system-sf)] md:w-auto',
46
47
  className,
47
48
  )}
@@ -56,7 +57,7 @@ export function TimeTrackerHeaderButton({ className, disabled }: TimeTrackerHead
56
57
  {isActive && (
57
58
  <span
58
59
  className={cn(
59
- 'text-h5 tabular-nums md:text-h4',
60
+ 'text-h5 md:text-h4 !font-mono',
60
61
  isPaused ? 'text-ods-text-secondary' : 'text-ods-text-primary',
61
62
  )}
62
63
  >
@@ -91,6 +91,10 @@ export function TimeTrackerPanel({
91
91
  onOpenMyTime()
92
92
  }
93
93
  : undefined
94
+ const handleCancel = () => {
95
+ onClose()
96
+ onCancel()
97
+ }
94
98
 
95
99
  const ticketAutocompleteOptions: AutocompleteOption[] = ticketOptions.map((t) => ({
96
100
  label: t.label,
@@ -123,7 +127,7 @@ export function TimeTrackerPanel({
123
127
  {isActive && (
124
128
  <Button
125
129
  variant="transparent"
126
- onClick={onCancel}
130
+ onClick={handleCancel}
127
131
  className="h-auto p-0 text-h6 font-medium text-ods-text-secondary underline hover:bg-transparent hover:text-ods-text-primary md:h-auto"
128
132
  >
129
133
  Cancel Entry
@@ -135,7 +139,7 @@ export function TimeTrackerPanel({
135
139
  <div className="flex flex-1 items-center border-r border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-s)]">
136
140
  <span
137
141
  className={cn(
138
- 'text-h3 font-bold tabular-nums',
142
+ 'text-h3 !font-mono font-bold tabular-nums',
139
143
  isActive ? 'text-ods-text-primary' : 'text-ods-text-secondary',
140
144
  )}
141
145
  >
@@ -209,10 +213,10 @@ export function TimeTrackerPanel({
209
213
  </div>
210
214
  </div>
211
215
 
212
- <div className="flex w-full flex-wrap gap-[var(--spacing-system-m)]">
216
+ <div className="grid grid-cols-2 gap-[var(--spacing-system-m)]">
213
217
  <Button
214
218
  variant="outline"
215
- className="min-w-0 flex-1"
219
+ className="min-w-0"
216
220
  onClick={handleManualEntry}
217
221
  disabled={!onManualEntry}
218
222
  leftIcon={<PlusCircleIcon className="text-ods-text-secondary" />}
@@ -221,6 +225,8 @@ export function TimeTrackerPanel({
221
225
  </Button>
222
226
  <SplitButton
223
227
  variant="outline"
228
+ fullWidth
229
+ className="min-w-0"
224
230
  onClick={handleOpenMyTime}
225
231
  disabled={!onOpenMyTime && !onOpenMyTimeMenu}
226
232
  mainDisabled={!onOpenMyTime}
@@ -0,0 +1,45 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * `<DeliveryPage>` — the full bug-fixes & enhancements (`delivery`) page:
5
+ * `DevSectionPage sectionKey="delivery"` chrome wrapping the self-contained
6
+ * `<DeliveryLists>` (Recently Completed + Active Tasks tables). Hosts configure
7
+ * only the two bucket api routes.
8
+ */
9
+
10
+ import type { ReactNode } from 'react'
11
+ import { DevSectionPage } from '../shared/dev-section'
12
+ import { DeliveryLists } from '../shared/delivery'
13
+
14
+ export interface DeliveryPageProps {
15
+ /** GET endpoint for the "Recently Completed" bucket. Default `/api/delivery/completed`. */
16
+ completedEndpoint?: string
17
+ /** GET endpoint for the "Active Tasks" bucket. Default `/api/delivery/in-progress`. */
18
+ inProgressEndpoint?: string
19
+ /** Back-button config. Pass `false` to hide. Default `{ href: '/' }`. */
20
+ backButton?: { label?: string; href?: string } | false
21
+ title?: string
22
+ subtitle?: string
23
+ /** Optional slot rendered below the lists, inside the page chrome. */
24
+ belowContent?: ReactNode
25
+ /** Render the standalone `<PageShell>`. Default true. Pass false when the host
26
+ * layout already provides the page container (forwarded to `DevSectionPage`). */
27
+ shell?: boolean
28
+ }
29
+
30
+ export function DeliveryPage({
31
+ completedEndpoint,
32
+ inProgressEndpoint,
33
+ backButton,
34
+ title,
35
+ subtitle,
36
+ belowContent,
37
+ shell,
38
+ }: DeliveryPageProps) {
39
+ return (
40
+ <DevSectionPage sectionKey="delivery" backButton={backButton} title={title} subtitle={subtitle} shell={shell}>
41
+ <DeliveryLists completedApiEndpoint={completedEndpoint} inProgressApiEndpoint={inProgressEndpoint} />
42
+ {belowContent}
43
+ </DevSectionPage>
44
+ )
45
+ }
@@ -0,0 +1,41 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * Help Center pages — ready-made, full-page components (each owns the canonical
5
+ * `PageShell` + `PageLayout` chrome) so a host route is a one-line mount with NO
6
+ * local wrapper. Shared by openframe-frontend (self-fetch via the `/content`
7
+ * proxy, mounted under `/help-center/*`) and multi-platform-hub (SSR with
8
+ * server-fetched `initialData` + `generateMetadata`/JSON-LD kept in the server
9
+ * route). Endpoint config + SSR data + optional slots are passed as props.
10
+ *
11
+ * This barrel ALSO re-exports the already-existing full-pages (FAQ / Legal /
12
+ * Release detail / Onboarding detail / Docs / Tickets) so consumers have ONE
13
+ * import site for "help center pages". Re-exports are NAMED (not `export *`) to
14
+ * avoid TS2308 ambiguous-re-export collisions, and this barrel is intentionally
15
+ * NOT merged into the top-level `components/index.ts`.
16
+ */
17
+
18
+ // New combined pages. (The Help Center *index* landing is intentionally NOT
19
+ // here — it stays a host-local page; its links + icons are app-specific.)
20
+ export { RoadmapPage, type RoadmapPageProps } from './roadmap-page'
21
+ export { ProductReleasesListPage, type ProductReleasesListPageProps } from './product-releases-list-page'
22
+ export { DeliveryPage, type DeliveryPageProps } from './delivery-page'
23
+ export {
24
+ OnboardingGuidesCatalogPage,
25
+ type OnboardingGuidesCatalogPageProps,
26
+ } from './onboarding-guides-catalog-page'
27
+
28
+ // Existing full-pages re-exported for a single Help Center import site.
29
+ export { FaqDocumentPage, type FaqDocumentPageProps } from '../faq'
30
+ export { LegalDocumentPage, type LegalDocumentPageProps } from '../shared/legal-document'
31
+ export {
32
+ ReleaseDetailPage,
33
+ type ReleaseDetailPageProps,
34
+ type VideoDisplaySectionProps,
35
+ } from '../shared/product-release'
36
+ export {
37
+ OnboardingGuideDetailView,
38
+ type OnboardingGuideDetailViewProps,
39
+ } from '../onboarding-guides'
40
+ export { DocsHubPage } from '../docs'
41
+ export { HelpCenterList } from '../tickets'
@@ -0,0 +1,66 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * `<OnboardingGuidesCatalogPage>` — the full `/onboarding-guides` catalog page:
5
+ * `DevSectionPage sectionKey="onboarding"` chrome wrapping the self-contained
6
+ * `<OnboardingGuidesCatalogView>` (RAG search + section pills + guide grid).
7
+ * Supports both SSR (`initialGuides`/`initialSections`) and self-fetch
8
+ * (`guidesEndpoint`/`sectionsEndpoint`) modes — forwarded to the view verbatim.
9
+ */
10
+
11
+ import type { ReactNode } from 'react'
12
+ import type { OnboardingGuide } from '../chat/types/entities/onboarding-guide'
13
+ import { DevSectionPage } from '../shared/dev-section'
14
+ import { OnboardingGuidesCatalogView } from '../onboarding-guides'
15
+
16
+ type SectionSummary = { section: string; section_order: number; count: number }
17
+
18
+ export interface OnboardingGuidesCatalogPageProps {
19
+ /** Self-fetch: GET list endpoint (the api route). Appends `?section=`. */
20
+ guidesEndpoint?: string
21
+ /** Self-fetch: GET section-summary endpoint (the api route). */
22
+ sectionsEndpoint?: string
23
+ /** Controlled / SSR: server-fetched guides + sections + active section. */
24
+ initialGuides?: OnboardingGuide[]
25
+ initialSections?: SectionSummary[]
26
+ initialSection?: string
27
+ /** Base path the catalog is mounted under (card href prefix + `?section=` push). */
28
+ basePath?: string
29
+ /** Back-button config. Pass `false` to hide. Default `{ href: '/' }`. */
30
+ backButton?: { label?: string; href?: string } | false
31
+ title?: string
32
+ subtitle?: string
33
+ /** Optional slot rendered below the catalog, inside the page chrome. */
34
+ belowContent?: ReactNode
35
+ /** Render the standalone `<PageShell>`. Default true. Pass false when the host
36
+ * layout already provides the page container (forwarded to `DevSectionPage`). */
37
+ shell?: boolean
38
+ }
39
+
40
+ export function OnboardingGuidesCatalogPage({
41
+ guidesEndpoint,
42
+ sectionsEndpoint,
43
+ initialGuides,
44
+ initialSections,
45
+ initialSection,
46
+ basePath,
47
+ backButton,
48
+ title,
49
+ subtitle,
50
+ belowContent,
51
+ shell,
52
+ }: OnboardingGuidesCatalogPageProps) {
53
+ return (
54
+ <DevSectionPage sectionKey="onboarding" backButton={backButton} title={title} subtitle={subtitle} shell={shell}>
55
+ <OnboardingGuidesCatalogView
56
+ guidesEndpoint={guidesEndpoint}
57
+ sectionsEndpoint={sectionsEndpoint}
58
+ initialGuides={initialGuides}
59
+ initialSections={initialSections}
60
+ initialSection={initialSection}
61
+ basePath={basePath}
62
+ />
63
+ {belowContent}
64
+ </DevSectionPage>
65
+ )
66
+ }
@@ -0,0 +1,58 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * `<ProductReleasesListPage>` — the full `/releases` list page: `DevSectionPage
5
+ * sectionKey="releases"` chrome wrapping the self-contained `<ProductReleasesView>`.
6
+ * Hosts configure the api route + detail `basePath` (+ optional SSR `initialData`
7
+ * and a custom card-prop builder). Card → detail nav flows through
8
+ * `runtime.composeContentUrl`.
9
+ */
10
+
11
+ import type { ReactNode } from 'react'
12
+ import type { ProductRelease, ProductReleaseListResponse } from '../../types/product-release'
13
+ import { DevSectionPage } from '../shared/dev-section'
14
+ import { ProductReleasesView, type ProductReleaseCardExtras } from '../shared/product-release'
15
+
16
+ export interface ProductReleasesListPageProps {
17
+ /** GET list endpoint (the api route). Default `/api/releases`. */
18
+ releasesEndpoint?: string
19
+ /** Fallback detail-href prefix when `composeContentUrl` is not wired. Default `/releases`. */
20
+ basePath?: string
21
+ /** Derive the per-card prop bundle (defaults to the lib's rich builder). */
22
+ buildCardProps?: (release: ProductRelease) => ProductReleaseCardExtras
23
+ /** Optional SSR hydrate for the first page (hub server-fetch). */
24
+ initialData?: ProductReleaseListResponse
25
+ /** Back-button config. Pass `false` to hide. Default `{ href: '/' }`. */
26
+ backButton?: { label?: string; href?: string } | false
27
+ title?: string
28
+ subtitle?: string
29
+ /** Optional slot rendered below the list, inside the page chrome. */
30
+ belowContent?: ReactNode
31
+ /** Render the standalone `<PageShell>`. Default true. Pass false when the host
32
+ * layout already provides the page container (forwarded to `DevSectionPage`). */
33
+ shell?: boolean
34
+ }
35
+
36
+ export function ProductReleasesListPage({
37
+ releasesEndpoint,
38
+ basePath,
39
+ buildCardProps,
40
+ initialData,
41
+ backButton,
42
+ title,
43
+ subtitle,
44
+ belowContent,
45
+ shell,
46
+ }: ProductReleasesListPageProps) {
47
+ return (
48
+ <DevSectionPage sectionKey="releases" backButton={backButton} title={title} subtitle={subtitle} shell={shell}>
49
+ <ProductReleasesView
50
+ endpoint={releasesEndpoint}
51
+ basePath={basePath}
52
+ buildCardProps={buildCardProps}
53
+ initialData={initialData}
54
+ />
55
+ {belowContent}
56
+ </DevSectionPage>
57
+ )
58
+ }
@@ -0,0 +1,68 @@
1
+ 'use client'
2
+
3
+ /**
4
+ * `<RoadmapPage>` — the full `/roadmap` page: `DevSectionPage sectionKey="roadmap"`
5
+ * (PageShell + PageLayout + hero + search/status chrome) wrapping the
6
+ * self-contained `<RoadmapView>` list. Hosts configure only the api routes
7
+ * (+ optional SSR `initialItems`); both openframe-frontend and the hub mount
8
+ * this instead of hand-composing `DevSectionPage` + `RoadmapView`.
9
+ */
10
+
11
+ import type { ReactNode } from 'react'
12
+ import type { RoadmapItem } from '../chat/types/entities/roadmap-item'
13
+ import { DevSectionPage } from '../shared/dev-section'
14
+ import { RoadmapView } from '../shared/roadmap'
15
+ import type { UseRoadmapVotingOptions } from '../shared/roadmap'
16
+
17
+ export interface RoadmapPageProps {
18
+ /** GET list endpoint (the api route). Default `/api/roadmap`. */
19
+ roadmapEndpoint?: string
20
+ /** Per-task refresh URL builder (after a vote). Default `/api/roadmap/<id>`. */
21
+ buildRefreshUrl?: (taskId: string) => string
22
+ /** Vote POST endpoint, forwarded to `RoadmapView` via `votingOptions`. */
23
+ voteApiEndpoint?: string
24
+ /** Full voting options override — takes precedence over `voteApiEndpoint`. */
25
+ votingOptions?: UseRoadmapVotingOptions
26
+ /** Optional SSR hydrate (hub server-fetch) — skips the initial client fetch. */
27
+ initialItems?: RoadmapItem[]
28
+ /** Indent the grid (the hub's full-page roadmap look). Default off. */
29
+ showLeftMargin?: boolean
30
+ /** Back-button config. Pass `false` to hide. Default `{ href: '/' }`. */
31
+ backButton?: { label?: string; href?: string } | false
32
+ /** Override the hero title/subtitle (defaults from `OPENFRAME_DEV_SECTIONS`). */
33
+ title?: string
34
+ subtitle?: string
35
+ /** Optional slot rendered below the list, inside the page chrome — e.g. the
36
+ * hub's related-content rail. */
37
+ belowContent?: ReactNode
38
+ /** Render the standalone `<PageShell>`. Default true. Pass false when the host
39
+ * layout already provides the page container (forwarded to `DevSectionPage`). */
40
+ shell?: boolean
41
+ }
42
+
43
+ export function RoadmapPage({
44
+ roadmapEndpoint,
45
+ buildRefreshUrl,
46
+ voteApiEndpoint,
47
+ votingOptions,
48
+ initialItems,
49
+ showLeftMargin,
50
+ backButton,
51
+ title,
52
+ subtitle,
53
+ belowContent,
54
+ shell,
55
+ }: RoadmapPageProps) {
56
+ return (
57
+ <DevSectionPage sectionKey="roadmap" backButton={backButton} title={title} subtitle={subtitle} shell={shell}>
58
+ <RoadmapView
59
+ endpoint={roadmapEndpoint}
60
+ initialItems={initialItems}
61
+ showLeftMargin={showLeftMargin}
62
+ buildRefreshUrl={buildRefreshUrl}
63
+ votingOptions={votingOptions ?? (voteApiEndpoint ? { voteApiEndpoint } : undefined)}
64
+ />
65
+ {belowContent}
66
+ </DevSectionPage>
67
+ )
68
+ }