@flamingo-stack/openframe-frontend-core 0.0.628 → 0.0.629-snapshot.20260914090731

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 (125) hide show
  1. package/dist/{chunk-K43T7N7O.js → chunk-26J76HRN.js} +4 -4
  2. package/dist/{chunk-Y5QXDVPP.cjs → chunk-35RGVTMO.cjs} +3 -3
  3. package/dist/{chunk-Y5QXDVPP.cjs.map → chunk-35RGVTMO.cjs.map} +1 -1
  4. package/dist/{chunk-Q544C4Z7.cjs → chunk-3VBFO7CA.cjs} +17 -17
  5. package/dist/{chunk-Q544C4Z7.cjs.map → chunk-3VBFO7CA.cjs.map} +1 -1
  6. package/dist/{chunk-XQ4II4BK.js → chunk-3XL5OEOP.js} +2 -2
  7. package/dist/{chunk-BND25SXU.cjs → chunk-5WUXQJPZ.cjs} +18 -18
  8. package/dist/{chunk-BND25SXU.cjs.map → chunk-5WUXQJPZ.cjs.map} +1 -1
  9. package/dist/{chunk-GH4WLDPS.cjs → chunk-6JXTEMD7.cjs} +10 -10
  10. package/dist/{chunk-GH4WLDPS.cjs.map → chunk-6JXTEMD7.cjs.map} +1 -1
  11. package/dist/{chunk-JWXEEZKD.js → chunk-7OBVB4NA.js} +2 -2
  12. package/dist/{chunk-TDKOW2C5.cjs → chunk-C7KCLYDP.cjs} +13 -13
  13. package/dist/{chunk-TDKOW2C5.cjs.map → chunk-C7KCLYDP.cjs.map} +1 -1
  14. package/dist/{chunk-2E543KJD.js → chunk-DS5PA33B.js} +2 -2
  15. package/dist/{chunk-SWJ6QLD7.cjs → chunk-F5DZDBNU.cjs} +51 -51
  16. package/dist/{chunk-SWJ6QLD7.cjs.map → chunk-F5DZDBNU.cjs.map} +1 -1
  17. package/dist/{chunk-KT47FRJC.cjs → chunk-GK67JRSQ.cjs} +3 -3
  18. package/dist/{chunk-KT47FRJC.cjs.map → chunk-GK67JRSQ.cjs.map} +1 -1
  19. package/dist/{chunk-UBX3ATG5.cjs → chunk-I7XWPQ75.cjs} +229 -150
  20. package/dist/chunk-I7XWPQ75.cjs.map +1 -0
  21. package/dist/{chunk-E523WX5V.cjs → chunk-IJJZIJNB.cjs} +3 -3
  22. package/dist/{chunk-E523WX5V.cjs.map → chunk-IJJZIJNB.cjs.map} +1 -1
  23. package/dist/{chunk-ZRCWXJDW.js → chunk-JVGTKFK6.js} +2 -2
  24. package/dist/{chunk-MB4IEWLH.js → chunk-K2TMNVZ5.js} +2 -2
  25. package/dist/{chunk-WIP5JO2O.cjs → chunk-KEJGUDKB.cjs} +4 -4
  26. package/dist/{chunk-WIP5JO2O.cjs.map → chunk-KEJGUDKB.cjs.map} +1 -1
  27. package/dist/{chunk-L6GJV7E7.cjs → chunk-KN5OVAWR.cjs} +36 -36
  28. package/dist/{chunk-L6GJV7E7.cjs.map → chunk-KN5OVAWR.cjs.map} +1 -1
  29. package/dist/{chunk-C3DDNRJG.cjs → chunk-KP2XOOVS.cjs} +3 -3
  30. package/dist/{chunk-C3DDNRJG.cjs.map → chunk-KP2XOOVS.cjs.map} +1 -1
  31. package/dist/{chunk-6AFJQOT2.js → chunk-KTCBXJKX.js} +2 -2
  32. package/dist/{chunk-HLZKMYST.js → chunk-NJEGB5LF.js} +2 -2
  33. package/dist/{chunk-KTBZJP5J.cjs → chunk-NLA2EC2F.cjs} +4 -4
  34. package/dist/{chunk-KTBZJP5J.cjs.map → chunk-NLA2EC2F.cjs.map} +1 -1
  35. package/dist/{chunk-HNNR5CGX.js → chunk-OKAFXLZL.js} +2 -2
  36. package/dist/{chunk-YZJL6WGP.js → chunk-QAHDOT4A.js} +1891 -1812
  37. package/dist/chunk-QAHDOT4A.js.map +1 -0
  38. package/dist/{chunk-U4UNC3RP.js → chunk-RECNGZQR.js} +5 -5
  39. package/dist/{chunk-JVLLA3Z7.js → chunk-RT2I62SA.js} +2 -2
  40. package/dist/{chunk-LCMXGM2P.js → chunk-SPERLWTK.js} +4 -4
  41. package/dist/{chunk-6QLOSGE7.cjs → chunk-T2EURL77.cjs} +33 -33
  42. package/dist/{chunk-6QLOSGE7.cjs.map → chunk-T2EURL77.cjs.map} +1 -1
  43. package/dist/{chunk-VCY2KHOE.cjs → chunk-XSXKXUC6.cjs} +17 -17
  44. package/dist/{chunk-VCY2KHOE.cjs.map → chunk-XSXKXUC6.cjs.map} +1 -1
  45. package/dist/{chunk-LLSX5T7X.js → chunk-XTPYUKVY.js} +3 -3
  46. package/dist/{chunk-TUUSLED7.js → chunk-ZJZVPYWG.js} +5 -5
  47. package/dist/components/case-studies/index.cjs +8 -8
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/auth/compact-auth-shell.d.ts +20 -0
  58. package/dist/components/features/auth/compact-auth-shell.d.ts.map +1 -0
  59. package/dist/components/features/auth/index.d.ts +2 -0
  60. package/dist/components/features/auth/index.d.ts.map +1 -1
  61. package/dist/components/features/auth/login-form.d.ts.map +1 -1
  62. package/dist/components/features/auth/no-account-notice.d.ts +13 -0
  63. package/dist/components/features/auth/no-account-notice.d.ts.map +1 -0
  64. package/dist/components/features/auth/sso-join-form.d.ts +3 -1
  65. package/dist/components/features/auth/sso-join-form.d.ts.map +1 -1
  66. package/dist/components/features/auth/terms-agreement-label.d.ts +3 -1
  67. package/dist/components/features/auth/terms-agreement-label.d.ts.map +1 -1
  68. package/dist/components/features/changelog-manager.d.ts +17 -1
  69. package/dist/components/features/changelog-manager.d.ts.map +1 -1
  70. package/dist/components/features/index.cjs +6 -2
  71. package/dist/components/features/index.cjs.map +1 -1
  72. package/dist/components/features/index.js +5 -1
  73. package/dist/components/help-center-pages/index.cjs +22 -22
  74. package/dist/components/help-center-pages/index.js +13 -13
  75. package/dist/components/index.cjs +35 -31
  76. package/dist/components/index.cjs.map +1 -1
  77. package/dist/components/index.js +16 -12
  78. package/dist/components/index.js.map +1 -1
  79. package/dist/components/meeting-scheduler/index.cjs +21 -21
  80. package/dist/components/meeting-scheduler/index.js +1 -1
  81. package/dist/components/navigation/index.cjs +5 -5
  82. package/dist/components/navigation/index.js +4 -4
  83. package/dist/components/onboarding-guides/index.cjs +5 -5
  84. package/dist/components/onboarding-guides/index.js +4 -4
  85. package/dist/components/tickets/index.cjs +6 -6
  86. package/dist/components/tickets/index.js +5 -5
  87. package/dist/components/ui/index.cjs +2 -2
  88. package/dist/components/ui/index.js +1 -1
  89. package/dist/index.cjs +10 -6
  90. package/dist/index.cjs.map +1 -1
  91. package/dist/index.js +9 -5
  92. package/dist/index.js.map +1 -1
  93. package/dist/types/index.cjs.map +1 -1
  94. package/dist/types/index.js.map +1 -1
  95. package/dist/types/product-release.d.ts +5 -0
  96. package/dist/types/product-release.d.ts.map +1 -1
  97. package/dist/utils/index.cjs.map +1 -1
  98. package/dist/utils/index.js.map +1 -1
  99. package/package.json +1 -1
  100. package/src/components/features/__tests__/changelog-manager-tags.test.tsx +57 -0
  101. package/src/components/features/auth/__tests__/login-only-screens.test.tsx +61 -0
  102. package/src/components/features/auth/compact-auth-shell.tsx +47 -0
  103. package/src/components/features/auth/index.ts +2 -0
  104. package/src/components/features/auth/login-form.tsx +3 -1
  105. package/src/components/features/auth/no-account-notice.tsx +43 -0
  106. package/src/components/features/auth/sso-join-form.tsx +4 -1
  107. package/src/components/features/auth/terms-agreement-label.tsx +8 -2
  108. package/src/components/features/changelog-manager.tsx +69 -5
  109. package/src/types/product-release.ts +5 -0
  110. package/dist/chunk-UBX3ATG5.cjs.map +0 -1
  111. package/dist/chunk-YZJL6WGP.js.map +0 -1
  112. /package/dist/{chunk-K43T7N7O.js.map → chunk-26J76HRN.js.map} +0 -0
  113. /package/dist/{chunk-XQ4II4BK.js.map → chunk-3XL5OEOP.js.map} +0 -0
  114. /package/dist/{chunk-JWXEEZKD.js.map → chunk-7OBVB4NA.js.map} +0 -0
  115. /package/dist/{chunk-2E543KJD.js.map → chunk-DS5PA33B.js.map} +0 -0
  116. /package/dist/{chunk-ZRCWXJDW.js.map → chunk-JVGTKFK6.js.map} +0 -0
  117. /package/dist/{chunk-MB4IEWLH.js.map → chunk-K2TMNVZ5.js.map} +0 -0
  118. /package/dist/{chunk-6AFJQOT2.js.map → chunk-KTCBXJKX.js.map} +0 -0
  119. /package/dist/{chunk-HLZKMYST.js.map → chunk-NJEGB5LF.js.map} +0 -0
  120. /package/dist/{chunk-HNNR5CGX.js.map → chunk-OKAFXLZL.js.map} +0 -0
  121. /package/dist/{chunk-U4UNC3RP.js.map → chunk-RECNGZQR.js.map} +0 -0
  122. /package/dist/{chunk-JVLLA3Z7.js.map → chunk-RT2I62SA.js.map} +0 -0
  123. /package/dist/{chunk-LCMXGM2P.js.map → chunk-SPERLWTK.js.map} +0 -0
  124. /package/dist/{chunk-LLSX5T7X.js.map → chunk-XTPYUKVY.js.map} +0 -0
  125. /package/dist/{chunk-TUUSLED7.js.map → chunk-ZJZVPYWG.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.628",
3
+ "version": "0.0.629-snapshot.20260914090731",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,57 @@
1
+ /**
2
+ * `ChangelogManager` tags: with `tagOptions` each entry's header shows its tag's
3
+ * label as a badge, a new entry starts on the first option, and the field labels
4
+ * follow the caller's wording. Without `tagOptions` nothing changes.
5
+ */
6
+
7
+ import { fireEvent, render, screen } from '@testing-library/react';
8
+ import { describe, expect, it, vi } from 'vitest';
9
+ import { ChangelogManager } from '../changelog-manager';
10
+
11
+ const tagOptions = [
12
+ { value: 'us', label: 'Us' },
13
+ { value: 'prospect', label: 'Prospect' },
14
+ ];
15
+
16
+ describe('ChangelogManager tags', () => {
17
+ it('shows the tag label in the entry header', () => {
18
+ render(
19
+ <ChangelogManager
20
+ title="Next steps"
21
+ entries={[{ title: 'Send pricing', description: '', tag: 'prospect' }]}
22
+ onChange={() => {}}
23
+ tagOptions={tagOptions}
24
+ />,
25
+ );
26
+ expect(screen.getByText('Send pricing')).toBeTruthy();
27
+ expect(screen.getByText('Prospect')).toBeTruthy();
28
+ });
29
+
30
+ it('starts a new entry on the first tag option', () => {
31
+ const onChange = vi.fn();
32
+ render(<ChangelogManager title="Next steps" entries={[]} onChange={onChange} tagOptions={tagOptions} />);
33
+ fireEvent.click(screen.getByRole('button', { name: /Add Entry/ }));
34
+ expect(onChange).toHaveBeenCalledWith([{ title: '', description: '', tag: 'us' }]);
35
+ });
36
+
37
+ it('uses the caller field labels and adds no tag without options', () => {
38
+ const onChange = vi.fn();
39
+ render(
40
+ <ChangelogManager
41
+ title="Objections"
42
+ entries={[{ title: 'Too expensive', description: 'Offered annual pricing' }]}
43
+ onChange={onChange}
44
+ titleLabel="Objection"
45
+ descriptionLabel="Our response"
46
+ expandAll
47
+ />,
48
+ );
49
+ expect(screen.getByText('Objection *')).toBeTruthy();
50
+ expect(screen.getByText('Our response')).toBeTruthy();
51
+ fireEvent.click(screen.getByRole('button', { name: /Add Entry/ }));
52
+ expect(onChange).toHaveBeenCalledWith([
53
+ { title: 'Too expensive', description: 'Offered annual pricing' },
54
+ { title: '', description: '' },
55
+ ]);
56
+ });
57
+ });
@@ -0,0 +1,61 @@
1
+ import { fireEvent, render, screen } from '@testing-library/react';
2
+ import { describe, expect, it, vi } from 'vitest';
3
+
4
+ import { CompactAuthShell } from '../compact-auth-shell';
5
+ import { NoAccountNotice } from '../no-account-notice';
6
+ import { SsoJoinForm } from '../sso-join-form';
7
+
8
+ describe('SsoJoinForm consent wording', () => {
9
+ const baseProps = {
10
+ organizationName: 'Acme',
11
+ agreedToTerms: false,
12
+ onAgreedToTermsChange: () => {},
13
+ onSubmit: () => {},
14
+ onBack: () => {},
15
+ };
16
+
17
+ it('keeps "by signing up" by default', () => {
18
+ render(<SsoJoinForm {...baseProps} />);
19
+ expect(screen.getByText(/by signing up\./)).toBeTruthy();
20
+ });
21
+
22
+ it('takes the closing words from termsSuffix when given', () => {
23
+ render(<SsoJoinForm {...baseProps} termsSuffix=" by joining." />);
24
+ expect(screen.getByText(/by joining\./)).toBeTruthy();
25
+ expect(screen.queryByText(/signing up/)).toBeNull();
26
+ });
27
+ });
28
+
29
+ describe('CompactAuthShell', () => {
30
+ it('renders the card under the default tagline', () => {
31
+ render(
32
+ <CompactAuthShell>
33
+ <div>card</div>
34
+ </CompactAuthShell>,
35
+ );
36
+ expect(screen.getByText('card')).toBeTruthy();
37
+ expect(screen.getByText('All your MSP ops in one place.')).toBeTruthy();
38
+ });
39
+
40
+ it('renders no tagline when the tagline is explicitly empty', () => {
41
+ render(
42
+ <CompactAuthShell tagline={null}>
43
+ <div>card</div>
44
+ </CompactAuthShell>,
45
+ );
46
+ expect(screen.queryByText('All your MSP ops in one place.')).toBeNull();
47
+ });
48
+ });
49
+
50
+ describe('NoAccountNotice', () => {
51
+ it('offers only the way back to login, and never anything that creates an account', () => {
52
+ const onBackToLogin = vi.fn();
53
+ render(<NoAccountNotice onBackToLogin={onBackToLogin} />);
54
+
55
+ expect(screen.getByRole('heading', { name: 'No account found' })).toBeTruthy();
56
+ expect(screen.getAllByRole('button')).toHaveLength(1);
57
+
58
+ fireEvent.click(screen.getByRole('button', { name: 'Back to Login' }));
59
+ expect(onBackToLogin).toHaveBeenCalledTimes(1);
60
+ });
61
+ });
@@ -0,0 +1,47 @@
1
+ 'use client';
2
+
3
+ import type { ReactNode } from 'react';
4
+ import { cn } from '../../../utils/cn';
5
+ import { OpenFrameWordmark, PoweredByFlamingo } from './auth-branding';
6
+
7
+ export interface CompactAuthShellProps {
8
+ /** The card, e.g. `LoginForm`. */
9
+ children: ReactNode;
10
+ /** Centered line(s) under the wordmark. */
11
+ tagline?: ReactNode;
12
+ className?: string;
13
+ }
14
+
15
+ /**
16
+ * Single-column auth layout with no tabs and no marketing panel: wordmark and tagline on top, the
17
+ * card directly under them, "Powered by Flamingo" pinned to the bottom of the screen. Unlike
18
+ * `SsoAuthShell` the card is top-aligned, so it stays put while its own height changes (discovery
19
+ * results appearing under the email field).
20
+ *
21
+ * The root carries `of-auth-shell`, the same hook as `AuthShell`, so a host that pads auth roots by
22
+ * the safe-area insets pads this one too. The design padding sits on an inner column for that
23
+ * reason: a host rule on the root would otherwise replace it.
24
+ */
25
+ export function CompactAuthShell({
26
+ children,
27
+ tagline = (
28
+ <>
29
+ <span className="block">All your MSP ops in one place.</span>
30
+ <span className="block">Open-source, AI-ready, no vendor tax.</span>
31
+ </>
32
+ ),
33
+ className,
34
+ }: CompactAuthShellProps) {
35
+ return (
36
+ <div className={cn('of-auth-shell flex min-h-screen w-full flex-col bg-ods-bg', className)}>
37
+ <div className="flex w-full flex-1 flex-col items-center gap-[var(--spacing-system-l)] p-[var(--spacing-system-l)]">
38
+ <OpenFrameWordmark />
39
+ {tagline && <p className="text-center text-ods-text-primary text-h4">{tagline}</p>}
40
+ <div className="w-full max-w-[600px]">{children}</div>
41
+ <div className="mt-auto">
42
+ <PoweredByFlamingo compact />
43
+ </div>
44
+ </div>
45
+ </div>
46
+ );
47
+ }
@@ -3,12 +3,14 @@ export * from './auth-benefits-panel';
3
3
  export * from './auth-branding';
4
4
  export * from './auth-shell';
5
5
  export * from './back-to-login-link';
6
+ export * from './compact-auth-shell';
6
7
  export * from './complete-account-form';
7
8
  export * from './create-organization-form';
8
9
  export * from './invite-link-invalid-modal';
9
10
  export * from './labeled-divider';
10
11
  export * from './legal-links';
11
12
  export * from './login-form';
13
+ export * from './no-account-notice';
12
14
  export * from './openframe-sso-login-form';
13
15
  export * from './openframe-sso-signup-form';
14
16
  export * from './password-reset-form';
@@ -168,7 +168,9 @@ export function LoginForm({
168
168
  // bold-body step, a 24px icon, and 12/16 for the inset and the gap.
169
169
  <div
170
170
  role="status"
171
- className="flex h-11 w-full items-center gap-[var(--spacing-system-m)] rounded-md bg-ods-bg-surface px-[var(--spacing-system-s)] text-ods-text-secondary text-h3 md:h-12"
171
+ // A minimum, not a fixed height: a consumer's `noCustomSsoLabel` can run to several lines
172
+ // at phone width, and a fixed row clipped it.
173
+ className="flex min-h-11 w-full items-center gap-[var(--spacing-system-m)] rounded-md bg-ods-bg-surface px-[var(--spacing-system-s)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h3 md:min-h-12"
172
174
  >
173
175
  <AlertTriangleIcon className="h-6 w-6 shrink-0" />
174
176
  {noCustomSsoLabel}
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+
3
+ import { cn } from '../../../utils/cn';
4
+ import { Button } from '../../ui/button';
5
+
6
+ export interface NoAccountNoticeProps {
7
+ onBackToLogin: () => void;
8
+ title?: string;
9
+ description?: string;
10
+ backLabel?: string;
11
+ className?: string;
12
+ }
13
+
14
+ /**
15
+ * Terminal notice for an identity that authenticated but has no account, on a surface that must not
16
+ * offer to create one. One card centered on the page background; the only way on is back to login.
17
+ */
18
+ export function NoAccountNotice({
19
+ onBackToLogin,
20
+ title = 'No account found',
21
+ description = "OpenFrame accounts are created by your organization's administrator. Ask them for an invitation.",
22
+ backLabel = 'Back to Login',
23
+ className,
24
+ }: NoAccountNoticeProps) {
25
+ return (
26
+ <div
27
+ className={cn(
28
+ 'flex min-h-screen w-full items-center justify-center bg-ods-bg p-[var(--spacing-system-l)]',
29
+ className,
30
+ )}
31
+ >
32
+ <div className="flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]">
33
+ <div className="flex flex-col">
34
+ <h1 className="tracking-[-0.64px] text-ods-text-primary text-h2">{title}</h1>
35
+ <p className="text-ods-text-secondary text-h4">{description}</p>
36
+ </div>
37
+ <Button type="button" variant="outline" fullWidth onClick={onBackToLogin}>
38
+ {backLabel}
39
+ </Button>
40
+ </div>
41
+ </div>
42
+ );
43
+ }
@@ -31,6 +31,8 @@ export interface SsoJoinFormProps {
31
31
  backLabel?: string;
32
32
  termsUrl?: string;
33
33
  privacyPolicyUrl?: string;
34
+ /** Closing words of the consent label, leading space included. Defaults to " by signing up." */
35
+ termsSuffix?: string;
34
36
  /** Held while the submit navigates away: everything locks and the submit spins. */
35
37
  loading?: boolean;
36
38
  disabled?: boolean;
@@ -62,6 +64,7 @@ export function SsoJoinForm({
62
64
  backLabel = 'Back to Login',
63
65
  termsUrl,
64
66
  privacyPolicyUrl,
67
+ termsSuffix,
65
68
  loading = false,
66
69
  disabled = false,
67
70
  className,
@@ -107,7 +110,7 @@ export function SsoJoinForm({
107
110
 
108
111
  <CheckboxBlock
109
112
  id="sso-join-terms"
110
- label={<TermsAgreementLabel termsUrl={termsUrl} privacyPolicyUrl={privacyPolicyUrl} />}
113
+ label={<TermsAgreementLabel termsUrl={termsUrl} privacyPolicyUrl={privacyPolicyUrl} suffix={termsSuffix} />}
111
114
  checked={agreedToTerms}
112
115
  disabled={fieldsDisabled}
113
116
  onCheckedChange={onAgreedToTermsChange}
@@ -5,10 +5,16 @@ import { PolicyLink } from '../../ui/policy-link';
5
5
  export interface TermsAgreementLabelProps {
6
6
  termsUrl?: string;
7
7
  privacyPolicyUrl?: string;
8
+ /** The words after the links, leading space included. */
9
+ suffix?: string;
8
10
  }
9
11
 
10
12
  /** "Agree to Terms & Privacy Policy by signing up." — shared checkbox label. */
11
- export function TermsAgreementLabel({ termsUrl = '#', privacyPolicyUrl = '#' }: TermsAgreementLabelProps) {
13
+ export function TermsAgreementLabel({
14
+ termsUrl = '#',
15
+ privacyPolicyUrl = '#',
16
+ suffix = ' by signing up.',
17
+ }: TermsAgreementLabelProps) {
12
18
  return (
13
19
  <span className="text-ods-text-primary text-h4">
14
20
  {'Agree to '}
@@ -19,7 +25,7 @@ export function TermsAgreementLabel({ termsUrl = '#', privacyPolicyUrl = '#' }:
19
25
  <PolicyLink href={privacyPolicyUrl} tone="secondary">
20
26
  Privacy Policy
21
27
  </PolicyLink>
22
- {' by signing up.'}
28
+ {suffix}
23
29
  </span>
24
30
  );
25
31
  }
@@ -3,7 +3,23 @@
3
3
  import { Trash2, Plus, ChevronDown, ChevronUp, Eye, EyeOff } from 'lucide-react';
4
4
  import { useState } from 'react';
5
5
  import type { ChangelogEntry } from '../../types/product-release';
6
- import { Button, Input, Textarea, Label } from '../ui';
6
+ import {
7
+ Button,
8
+ Input,
9
+ Label,
10
+ Select,
11
+ SelectContent,
12
+ SelectItem,
13
+ SelectTrigger,
14
+ SelectValue,
15
+ StatusBadge,
16
+ Textarea,
17
+ } from '../ui';
18
+
19
+ export interface ChangelogTagOption {
20
+ value: string;
21
+ label: string;
22
+ }
7
23
 
8
24
  interface ChangelogManagerProps {
9
25
  title: string;
@@ -18,6 +34,18 @@ interface ChangelogManagerProps {
18
34
  * — leave undefined for product releases so they keep their existing UX.
19
35
  */
20
36
  showVisibilityToggle?: boolean;
37
+ /**
38
+ * When given, each entry gets a tag select (stored as `entry.tag`) and its header
39
+ * shows the chosen tag as a badge. New entries start on the first option.
40
+ */
41
+ tagOptions?: readonly ChangelogTagOption[];
42
+ /** Label of the tag select. Default "Tag". */
43
+ tagLabel?: string;
44
+ /** Entry field labels and placeholders. Defaults are the product-release wording. */
45
+ titleLabel?: string;
46
+ titlePlaceholder?: string;
47
+ descriptionLabel?: string;
48
+ descriptionPlaceholder?: string;
21
49
  }
22
50
 
23
51
  export function ChangelogManager({
@@ -27,7 +55,14 @@ export function ChangelogManager({
27
55
  className = '',
28
56
  expandAll = false,
29
57
  showVisibilityToggle = false,
58
+ tagOptions,
59
+ tagLabel = 'Tag',
60
+ titleLabel = 'Title',
61
+ titlePlaceholder = 'e.g., New dark mode theme support',
62
+ descriptionLabel = 'Description',
63
+ descriptionPlaceholder = 'Detailed explanation of the change...',
30
64
  }: ChangelogManagerProps) {
65
+ const tagLabelOf = (value?: string) => tagOptions?.find(o => o.value === value)?.label;
31
66
  const entryCount = entries.length;
32
67
  const allExpanded = () => new Set(Array.from({ length: entryCount }, (_, i) => i));
33
68
 
@@ -55,6 +90,7 @@ export function ChangelogManager({
55
90
  title: '',
56
91
  description: '',
57
92
  ...(showVisibilityToggle && { visibility: 'public' as const }),
93
+ ...(tagOptions?.length && { tag: tagOptions[0].value }),
58
94
  };
59
95
  onChange([...entries, newEntry]);
60
96
  // Expand the newly added entry
@@ -141,6 +177,15 @@ export function ChangelogManager({
141
177
  )}
142
178
  </div>
143
179
 
180
+ {tagOptions && tagLabelOf(entry.tag) && (
181
+ <StatusBadge
182
+ variant="button"
183
+ singleLine
184
+ text={tagLabelOf(entry.tag) as string}
185
+ className="shrink-0 whitespace-nowrap"
186
+ />
187
+ )}
188
+
144
189
  {showVisibilityToggle && (
145
190
  <Button
146
191
  type="button"
@@ -174,9 +219,9 @@ export function ChangelogManager({
174
219
  <div className="space-y-3 border-t border-ods-border px-3 pb-3 pt-3">
175
220
  {/* Title */}
176
221
  <div className="space-y-1">
177
- <Label className="text-ods-text-secondary">Title *</Label>
222
+ <Label className="text-ods-text-secondary">{titleLabel} *</Label>
178
223
  <Input
179
- placeholder="e.g., New dark mode theme support"
224
+ placeholder={titlePlaceholder}
180
225
  value={entry.title}
181
226
  onChange={e => updateEntry(index, 'title', e.target.value)}
182
227
  onKeyDown={e => e.key === 'Enter' && e.preventDefault()}
@@ -186,15 +231,34 @@ export function ChangelogManager({
186
231
 
187
232
  {/* Description */}
188
233
  <div className="space-y-1">
189
- <Label className="text-ods-text-secondary">Description</Label>
234
+ <Label className="text-ods-text-secondary">{descriptionLabel}</Label>
190
235
  <Textarea
191
- placeholder="Detailed explanation of the change..."
236
+ placeholder={descriptionPlaceholder}
192
237
  value={entry.description || ''}
193
238
  onChange={e => updateEntry(index, 'description', e.target.value)}
194
239
  rows={2}
195
240
  className="bg-ods-bg"
196
241
  />
197
242
  </div>
243
+
244
+ {/* Tag */}
245
+ {tagOptions && (
246
+ <div className="space-y-1">
247
+ <Label className="text-ods-text-secondary">{tagLabel}</Label>
248
+ <Select value={entry.tag ?? ''} onValueChange={value => updateEntry(index, 'tag', value)}>
249
+ <SelectTrigger className="bg-ods-bg">
250
+ <SelectValue placeholder={tagLabel} />
251
+ </SelectTrigger>
252
+ <SelectContent>
253
+ {tagOptions.map(option => (
254
+ <SelectItem key={option.value} value={option.value}>
255
+ {option.label}
256
+ </SelectItem>
257
+ ))}
258
+ </SelectContent>
259
+ </Select>
260
+ </div>
261
+ )}
198
262
  </div>
199
263
  )}
200
264
  </div>
@@ -15,6 +15,11 @@ export interface ChangelogEntry {
15
15
  * because each entry can be marked internal — see investor-update-utils.ts.
16
16
  */
17
17
  visibility?: 'public' | 'internal';
18
+ /**
19
+ * Optional per-entry classification chosen from the manager's `tagOptions`
20
+ * (e.g. an owner, a priority, a severity). Product releases never set it.
21
+ */
22
+ tag?: string;
18
23
  }
19
24
 
20
25
  export interface ReleaseMedia {