@flamingo-stack/openframe-frontend-core 0.0.620 → 0.0.621-snapshot.20260913233048

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 (121) hide show
  1. package/dist/{chunk-KMWB52KV.cjs → chunk-2BJONQDE.cjs} +25 -25
  2. package/dist/{chunk-KMWB52KV.cjs.map → chunk-2BJONQDE.cjs.map} +1 -1
  3. package/dist/{chunk-GZFVTFMU.js → chunk-5QUBQ4WP.js} +3 -3
  4. package/dist/{chunk-GMBETTTE.js → chunk-5YVZQVSR.js} +5 -5
  5. package/dist/{chunk-5NYMTTUB.cjs → chunk-6TML2UIF.cjs} +66 -77
  6. package/dist/chunk-6TML2UIF.cjs.map +1 -0
  7. package/dist/{chunk-CKH4SLD5.js → chunk-7E24VV6D.js} +29 -40
  8. package/dist/chunk-7E24VV6D.js.map +1 -0
  9. package/dist/{chunk-ZLILFOPN.cjs → chunk-7EV2UHWQ.cjs} +167 -162
  10. package/dist/chunk-7EV2UHWQ.cjs.map +1 -0
  11. package/dist/{chunk-CSQZMK3O.cjs → chunk-7OYQ6RVB.cjs} +84 -86
  12. package/dist/chunk-7OYQ6RVB.cjs.map +1 -0
  13. package/dist/{chunk-UY4EFV3P.js → chunk-A7TZZQGS.js} +2 -2
  14. package/dist/{chunk-YKHVTESH.cjs → chunk-C6Y5FZMJ.cjs} +47 -12
  15. package/dist/chunk-C6Y5FZMJ.cjs.map +1 -0
  16. package/dist/{chunk-T7FTSJM2.js → chunk-CFZUWKQF.js} +5 -5
  17. package/dist/{chunk-G6LYVK64.js → chunk-CKL3UD5N.js} +2 -2
  18. package/dist/{chunk-RBV63HZO.cjs → chunk-CLPPOP5T.cjs} +4 -4
  19. package/dist/{chunk-RBV63HZO.cjs.map → chunk-CLPPOP5T.cjs.map} +1 -1
  20. package/dist/{chunk-XGVWMJQD.js → chunk-EQ7AOKFK.js} +21 -23
  21. package/dist/{chunk-XGVWMJQD.js.map → chunk-EQ7AOKFK.js.map} +1 -1
  22. package/dist/{chunk-DJVN7IW6.js → chunk-EYFFIJEY.js} +3 -3
  23. package/dist/{chunk-BR5PVFWG.js → chunk-F4GW2DPW.js} +3 -3
  24. package/dist/{chunk-VRN27OMD.cjs → chunk-IP4OYYDY.cjs} +1 -1
  25. package/dist/{chunk-VRN27OMD.cjs.map → chunk-IP4OYYDY.cjs.map} +1 -1
  26. package/dist/{chunk-5AB6QLIQ.js → chunk-IQNG52SU.js} +8 -3
  27. package/dist/chunk-IQNG52SU.js.map +1 -0
  28. package/dist/{chunk-PTANIWHA.cjs → chunk-IZ5GI3FP.cjs} +9 -9
  29. package/dist/{chunk-PTANIWHA.cjs.map → chunk-IZ5GI3FP.cjs.map} +1 -1
  30. package/dist/{chunk-RSGFPFSM.cjs → chunk-KDZLAUHJ.cjs} +22 -22
  31. package/dist/{chunk-RSGFPFSM.cjs.map → chunk-KDZLAUHJ.cjs.map} +1 -1
  32. package/dist/{chunk-T5ZKUSVJ.cjs → chunk-KTYYH3JV.cjs} +5 -5
  33. package/dist/{chunk-T5ZKUSVJ.cjs.map → chunk-KTYYH3JV.cjs.map} +1 -1
  34. package/dist/{chunk-LNF5W3QJ.js → chunk-L4FR7YIS.js} +2 -2
  35. package/dist/{chunk-ECOJUPXO.cjs → chunk-ME4C6DYA.cjs} +10 -10
  36. package/dist/{chunk-ECOJUPXO.cjs.map → chunk-ME4C6DYA.cjs.map} +1 -1
  37. package/dist/{chunk-4SH2L3HO.js → chunk-NFITQGUP.js} +3 -3
  38. package/dist/{chunk-FCMCCPQI.cjs → chunk-O3P2INXM.cjs} +15 -15
  39. package/dist/{chunk-FCMCCPQI.cjs.map → chunk-O3P2INXM.cjs.map} +1 -1
  40. package/dist/{chunk-POSO6GYC.js → chunk-OHJZD7QU.js} +3 -3
  41. package/dist/{chunk-4NKJRJU4.cjs → chunk-PDGVOZCD.cjs} +3 -3
  42. package/dist/{chunk-4NKJRJU4.cjs.map → chunk-PDGVOZCD.cjs.map} +1 -1
  43. package/dist/{chunk-IVFU4RFK.cjs → chunk-Q2NPL4FU.cjs} +22 -22
  44. package/dist/{chunk-IVFU4RFK.cjs.map → chunk-Q2NPL4FU.cjs.map} +1 -1
  45. package/dist/{chunk-Z5OZCZYH.cjs → chunk-QCZMCOAD.cjs} +33 -33
  46. package/dist/{chunk-Z5OZCZYH.cjs.map → chunk-QCZMCOAD.cjs.map} +1 -1
  47. package/dist/{chunk-ZBXPNBKB.js → chunk-QUL55PJP.js} +73 -38
  48. package/dist/chunk-QUL55PJP.js.map +1 -0
  49. package/dist/{chunk-SGAMQ4G7.cjs → chunk-RGVXFAWM.cjs} +3 -3
  50. package/dist/{chunk-SGAMQ4G7.cjs.map → chunk-RGVXFAWM.cjs.map} +1 -1
  51. package/dist/{chunk-7FPWMX26.js → chunk-VRUJPZ2C.js} +1 -1
  52. package/dist/{chunk-7FPWMX26.js.map → chunk-VRUJPZ2C.js.map} +1 -1
  53. package/dist/{chunk-KLAL4FTU.js → chunk-YEIX26DQ.js} +4 -4
  54. package/dist/components/case-studies/index.cjs +9 -9
  55. package/dist/components/case-studies/index.js +3 -3
  56. package/dist/components/chat/index.cjs +2 -2
  57. package/dist/components/chat/index.js +1 -1
  58. package/dist/components/contact/index.cjs +4 -4
  59. package/dist/components/contact/index.js +3 -3
  60. package/dist/components/docs/index.cjs +7 -7
  61. package/dist/components/docs/index.js +6 -6
  62. package/dist/components/embeds/index.cjs +4 -4
  63. package/dist/components/embeds/index.js +3 -3
  64. package/dist/components/faq/index.cjs +4 -4
  65. package/dist/components/faq/index.js +3 -3
  66. package/dist/components/features/index.cjs +3 -3
  67. package/dist/components/features/index.js +2 -2
  68. package/dist/components/help-center-pages/index.cjs +23 -23
  69. package/dist/components/help-center-pages/index.js +14 -14
  70. package/dist/components/index.cjs +40 -38
  71. package/dist/components/index.cjs.map +1 -1
  72. package/dist/components/index.d.ts +1 -0
  73. package/dist/components/index.d.ts.map +1 -1
  74. package/dist/components/index.js +16 -14
  75. package/dist/components/index.js.map +1 -1
  76. package/dist/components/list-empty-state.d.ts +32 -0
  77. package/dist/components/list-empty-state.d.ts.map +1 -0
  78. package/dist/components/meeting-scheduler/index.cjs +24 -24
  79. package/dist/components/meeting-scheduler/index.js +2 -2
  80. package/dist/components/navigation/index.cjs +6 -6
  81. package/dist/components/navigation/index.js +5 -5
  82. package/dist/components/onboarding-guides/index.cjs +6 -6
  83. package/dist/components/onboarding-guides/index.js +5 -5
  84. package/dist/components/shared/delivery/delivery-lists.d.ts.map +1 -1
  85. package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
  86. package/dist/components/tickets/help-center-list.d.ts.map +1 -1
  87. package/dist/components/tickets/index.cjs +7 -7
  88. package/dist/components/tickets/index.js +6 -6
  89. package/dist/components/ui/accordion.d.ts.map +1 -1
  90. package/dist/components/ui/index.cjs +3 -3
  91. package/dist/components/ui/index.js +2 -2
  92. package/dist/index.cjs +7 -7
  93. package/dist/index.js +6 -6
  94. package/package.json +1 -1
  95. package/src/__tests__/chat-card-label.test.tsx +1 -1
  96. package/src/components/__tests__/list-empty-state.test.tsx +106 -0
  97. package/src/components/chat/entity-cards/dispatch.tsx +1 -1
  98. package/src/components/index.ts +1 -0
  99. package/src/components/list-empty-state.tsx +57 -0
  100. package/src/components/shared/delivery/delivery-lists.tsx +18 -25
  101. package/src/components/shared/product-release/product-releases-view.tsx +11 -18
  102. package/src/components/tickets/help-center-list.tsx +19 -22
  103. package/src/components/ui/accordion.tsx +4 -1
  104. package/dist/chunk-5AB6QLIQ.js.map +0 -1
  105. package/dist/chunk-5NYMTTUB.cjs.map +0 -1
  106. package/dist/chunk-CKH4SLD5.js.map +0 -1
  107. package/dist/chunk-CSQZMK3O.cjs.map +0 -1
  108. package/dist/chunk-YKHVTESH.cjs.map +0 -1
  109. package/dist/chunk-ZBXPNBKB.js.map +0 -1
  110. package/dist/chunk-ZLILFOPN.cjs.map +0 -1
  111. /package/dist/{chunk-GZFVTFMU.js.map → chunk-5QUBQ4WP.js.map} +0 -0
  112. /package/dist/{chunk-GMBETTTE.js.map → chunk-5YVZQVSR.js.map} +0 -0
  113. /package/dist/{chunk-UY4EFV3P.js.map → chunk-A7TZZQGS.js.map} +0 -0
  114. /package/dist/{chunk-T7FTSJM2.js.map → chunk-CFZUWKQF.js.map} +0 -0
  115. /package/dist/{chunk-G6LYVK64.js.map → chunk-CKL3UD5N.js.map} +0 -0
  116. /package/dist/{chunk-DJVN7IW6.js.map → chunk-EYFFIJEY.js.map} +0 -0
  117. /package/dist/{chunk-BR5PVFWG.js.map → chunk-F4GW2DPW.js.map} +0 -0
  118. /package/dist/{chunk-LNF5W3QJ.js.map → chunk-L4FR7YIS.js.map} +0 -0
  119. /package/dist/{chunk-4SH2L3HO.js.map → chunk-NFITQGUP.js.map} +0 -0
  120. /package/dist/{chunk-POSO6GYC.js.map → chunk-OHJZD7QU.js.map} +0 -0
  121. /package/dist/{chunk-KLAL4FTU.js.map → chunk-YEIX26DQ.js.map} +0 -0
@@ -0,0 +1,106 @@
1
+ /**
2
+ * `ListEmptyState` — the two cases of an empty filterable list, pinned.
3
+ *
4
+ * 1. a filtered miss renders the `search` EmptyState with a secondary reset button that calls
5
+ * `onClearFilters`;
6
+ * 2. a genuinely empty list renders the `generic` EmptyState, and its button appears ONLY when
7
+ * the caller gave it both a label and an action. Without that guard `EmptyState` falls back to
8
+ * its path-sniffed default ("Browse Vendors") on a surface that never asked for one.
9
+ */
10
+
11
+ import { fireEvent, render, screen } from '@testing-library/react';
12
+ import { describe, expect, it, vi } from 'vitest';
13
+ import { ListEmptyState } from '../list-empty-state';
14
+
15
+ const filtered = { title: 'No tickets found', description: 'Nothing matches your filters.' };
16
+ const empty = { title: 'No tickets yet', description: 'Open one above.' };
17
+
18
+ describe('ListEmptyState', () => {
19
+ it('offers to clear the filters on a filtered miss', () => {
20
+ const onClearFilters = vi.fn();
21
+ const onCtaClick = vi.fn();
22
+ render(
23
+ <ListEmptyState
24
+ isFiltered
25
+ filtered={filtered}
26
+ onClearFilters={onClearFilters}
27
+ empty={{ ...empty, ctaText: 'Create first', onCtaClick }}
28
+ />,
29
+ );
30
+
31
+ expect(screen.getByRole('heading', { name: 'No tickets found' })).toBeTruthy();
32
+ expect(screen.getByText('Nothing matches your filters.')).toBeTruthy();
33
+ expect(screen.queryByText('Create first')).toBeNull();
34
+
35
+ const clear = screen.getByRole('button', { name: 'Clear filters' });
36
+ expect(clear.className).toContain('border-ods-border');
37
+ fireEvent.click(clear);
38
+ expect(onClearFilters).toHaveBeenCalledTimes(1);
39
+ expect(onCtaClick).not.toHaveBeenCalled();
40
+ });
41
+
42
+ it('uses the caller label for the reset button', () => {
43
+ render(
44
+ <ListEmptyState
45
+ isFiltered
46
+ filtered={{ ...filtered, clearText: 'Reset filters' }}
47
+ onClearFilters={() => undefined}
48
+ empty={empty}
49
+ />,
50
+ );
51
+ expect(screen.getByRole('button', { name: 'Reset filters' })).toBeTruthy();
52
+ });
53
+
54
+ it('renders the empty list with its own action', () => {
55
+ const onClearFilters = vi.fn();
56
+ const onCtaClick = vi.fn();
57
+ render(
58
+ <ListEmptyState
59
+ isFiltered={false}
60
+ filtered={filtered}
61
+ onClearFilters={onClearFilters}
62
+ empty={{ ...empty, ctaText: 'Create first', onCtaClick }}
63
+ />,
64
+ );
65
+
66
+ expect(screen.getByRole('heading', { name: 'No tickets yet' })).toBeTruthy();
67
+ const cta = screen.getByRole('button', { name: 'Create first' });
68
+ expect(cta.className).toContain('bg-ods-accent');
69
+ fireEvent.click(cta);
70
+ expect(onCtaClick).toHaveBeenCalledTimes(1);
71
+ expect(onClearFilters).not.toHaveBeenCalled();
72
+ });
73
+
74
+ it('renders no button for an empty list without an action', () => {
75
+ render(<ListEmptyState isFiltered={false} filtered={filtered} onClearFilters={() => undefined} empty={empty} />);
76
+
77
+ expect(screen.getByRole('heading', { name: 'No tickets yet' })).toBeTruthy();
78
+ expect(screen.queryByRole('button')).toBeNull();
79
+ expect(screen.queryByRole('link')).toBeNull();
80
+ });
81
+
82
+ it('renders no button when the empty CTA has a label but no action', () => {
83
+ render(
84
+ <ListEmptyState
85
+ isFiltered={false}
86
+ filtered={filtered}
87
+ onClearFilters={() => undefined}
88
+ empty={{ ...empty, ctaText: 'Create first' }}
89
+ />,
90
+ );
91
+ expect(screen.queryByRole('button')).toBeNull();
92
+ expect(screen.queryByRole('link')).toBeNull();
93
+ });
94
+
95
+ it('renders the empty CTA as a link when given an href', () => {
96
+ render(
97
+ <ListEmptyState
98
+ isFiltered={false}
99
+ filtered={filtered}
100
+ onClearFilters={() => undefined}
101
+ empty={{ ...empty, ctaText: 'Back to blog', ctaHref: '/blog' }}
102
+ />,
103
+ );
104
+ expect(screen.getByRole('link', { name: 'Back to blog' }).getAttribute('href')).toBe('/blog');
105
+ });
106
+ });
@@ -52,8 +52,8 @@ import { PresentationBarIcon } from '../../icons-v2-generated/charts/presentatio
52
52
  import { PresentationLineIcon } from '../../icons-v2-generated/charts/presentation-line-icon';
53
53
  import { CodeIcon } from '../../icons-v2-generated/coding/code-icon';
54
54
  import { CodingCommitIcon } from '../../icons-v2-generated/coding/coding-commit-icon';
55
- import { CallIcon } from '../../icons-v2-generated/communication/call-icon';
56
55
  import { CodingPullRequestIcon } from '../../icons-v2-generated/coding/coding-pull-request-icon';
56
+ import { CallIcon } from '../../icons-v2-generated/communication/call-icon';
57
57
  import { ChatQuoteIcon } from '../../icons-v2-generated/communication/chat-quote-icon';
58
58
  import { CalendarIcon } from '../../icons-v2-generated/date-and-time/calendar-icon';
59
59
  import { ClipboardListIcon } from '../../icons-v2-generated/documents/clipboard-list-icon';
@@ -21,6 +21,7 @@ export * from './comment-thread';
21
21
  export * from './content-loading-container';
22
22
  export * from './dynamic-skeleton';
23
23
  export * from './empty-state';
24
+ export * from './list-empty-state';
24
25
  export * from './faq-accordion';
25
26
  // FaqSection sub-folder. Also exposed via the "./components/faq" subpath export
26
27
  // in package.json — that subpath is ALSO `"use client"` (tsup banner), so it
@@ -0,0 +1,57 @@
1
+ 'use client';
2
+
3
+ import { EmptyState } from './empty-state';
4
+
5
+ export interface ListEmptyStateCopy {
6
+ title: string;
7
+ description: string;
8
+ }
9
+
10
+ export interface ListEmptyStateProps {
11
+ /** A search or filter is narrowing the list, so "nothing to show" is a miss, not an empty list. */
12
+ isFiltered: boolean;
13
+ /** Copy for the filtered miss. `clearText` labels the reset button (default "Clear filters"). */
14
+ filtered: ListEmptyStateCopy & { clearText?: string };
15
+ /** Resets every search and filter the list owns. */
16
+ onClearFilters: () => void;
17
+ /**
18
+ * Copy for a genuinely empty list, with an optional call to action (e.g. "Create the first one").
19
+ * The CTA renders only when `ctaText` comes with `onCtaClick` or `ctaHref`, so an empty list with
20
+ * no action never falls through to `EmptyState`'s path-sniffed default button.
21
+ */
22
+ empty: ListEmptyStateCopy & { ctaText?: string; onCtaClick?: () => void; ctaHref?: string };
23
+ }
24
+
25
+ /**
26
+ * THE empty state of a searchable, filterable list: a filtered miss offers to clear the filters
27
+ * (`search` icon, secondary button), a genuinely empty list says so and optionally offers its own
28
+ * action (`generic` icon, primary button). Every list with filters renders this instead of choosing
29
+ * between two `EmptyState`s by hand, so the two cases look and behave the same everywhere.
30
+ */
31
+ export function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }: ListEmptyStateProps) {
32
+ if (isFiltered) {
33
+ return (
34
+ <EmptyState
35
+ type="search"
36
+ title={filtered.title}
37
+ description={filtered.description}
38
+ ctaText={filtered.clearText ?? 'Clear filters'}
39
+ onCtaClick={onClearFilters}
40
+ ctaVariant="secondary"
41
+ />
42
+ );
43
+ }
44
+
45
+ const hasCta = Boolean(empty.ctaText && (empty.onCtaClick || empty.ctaHref));
46
+ return (
47
+ <EmptyState
48
+ type="generic"
49
+ title={empty.title}
50
+ description={empty.description}
51
+ showCTA={hasCta}
52
+ ctaText={empty.ctaText}
53
+ onCtaClick={empty.onCtaClick}
54
+ ctaHref={empty.ctaHref}
55
+ />
56
+ );
57
+ }
@@ -35,7 +35,7 @@ import type { DeliveryItem, DeliveryResponse } from '../../../types/delivery';
35
35
  import { DEV_SECTION_PARAM_KEYS } from '../../../utils/dev-sections/dev-section-param-keys';
36
36
  import { contentFetch } from '../../../utils/embed-content-fetch';
37
37
  import { STICKY_HEADER_OFFSET_PX } from '../../../utils/same-page-hash-nav';
38
- import { EmptyState } from '../../empty-state';
38
+ import { ListEmptyState } from '../../list-empty-state';
39
39
  import { LoadError } from '../../ui/error-state';
40
40
  import { DeliveryTable } from './delivery-table';
41
41
 
@@ -181,30 +181,23 @@ export function DeliveryLists({
181
181
  return (
182
182
  <div className="flex w-full flex-col gap-[40px]">
183
183
  {/* Empty state if no results after filtering */}
184
- {!isLoading &&
185
- !hasResults &&
186
- (hasActiveFilters ? (
187
- <EmptyState
188
- type="search"
189
- title="No tasks found"
190
- description="No tasks match your current filters. Try adjusting your search or status filter."
191
- showCTA={true}
192
- ctaText="Reset Filters"
193
- onCtaClick={() => {
194
- const params = new URLSearchParams(searchParams.toString());
195
- params.delete(searchParamKey);
196
- params.delete(taskTypeParamKey);
197
- router.replace(`${pathname}?${params.toString()}`, { scroll: false });
198
- }}
199
- />
200
- ) : (
201
- <EmptyState
202
- type="generic"
203
- title="No tasks available"
204
- description="Check back soon for upcoming tasks!"
205
- showCTA={false}
206
- />
207
- ))}
184
+ {!isLoading && !hasResults && (
185
+ <ListEmptyState
186
+ isFiltered={hasActiveFilters}
187
+ filtered={{
188
+ title: 'No tasks found',
189
+ description: 'No tasks match your current filters. Try adjusting your search or status filter.',
190
+ clearText: 'Reset Filters',
191
+ }}
192
+ onClearFilters={() => {
193
+ const params = new URLSearchParams(searchParams.toString());
194
+ params.delete(searchParamKey);
195
+ params.delete(taskTypeParamKey);
196
+ router.replace(`${pathname}?${params.toString()}`, { scroll: false });
197
+ }}
198
+ empty={{ title: 'No tasks available', description: 'Check back soon for upcoming tasks!' }}
199
+ />
200
+ )}
208
201
 
209
202
  {/* Completed Tasks Table */}
210
203
  {showCompleted && (hasResults || isLoading) && (
@@ -32,7 +32,7 @@ import { buildProductReleaseCardProps } from '../../chat/entity-cards/product-re
32
32
  import { useEntityCardLink } from '../../chat/entity-cards/use-entity-card-link';
33
33
  import { isModifierClick } from '../../chat/utils/chat-nav-resolution';
34
34
  import { executeNavigationImperative } from '../../chat/utils/execute-navigation';
35
- import { EmptyState } from '../../empty-state';
35
+ import { ListEmptyState } from '../../list-empty-state';
36
36
  import { PersistentPaginationWrapper } from '../../persistent-pagination';
37
37
  import { LoadError } from '../../ui/error-state';
38
38
  import { ProductReleaseCard, type ProductReleaseCardProps } from './product-release-card';
@@ -194,23 +194,16 @@ export function ProductReleasesView({
194
194
  <div className="min-h-[600px]">
195
195
  {showEmpty ? (
196
196
  <div className="flex h-[600px] items-center justify-center">
197
- {hasActiveFilters ? (
198
- <EmptyState
199
- type="search"
200
- title="No releases found"
201
- description="No releases match your current filters. Try adjusting your search or status filter."
202
- showCTA
203
- ctaText="Reset Filters"
204
- onCtaClick={resetFilters}
205
- />
206
- ) : (
207
- <EmptyState
208
- type="generic"
209
- title="No releases available"
210
- description="Check back soon for product updates!"
211
- showCTA={false}
212
- />
213
- )}
197
+ <ListEmptyState
198
+ isFiltered={hasActiveFilters}
199
+ filtered={{
200
+ title: 'No releases found',
201
+ description: 'No releases match your current filters. Try adjusting your search or status filter.',
202
+ clearText: 'Reset Filters',
203
+ }}
204
+ onClearFilters={resetFilters}
205
+ empty={{ title: 'No releases available', description: 'Check back soon for product updates!' }}
206
+ />
214
207
  </div>
215
208
  ) : (
216
209
  <>
@@ -36,6 +36,7 @@ import { STICKY_HEADER_OFFSET_PX } from '../../utils/same-page-hash-nav';
36
36
  import { positiveInt } from '../../utils/search-params';
37
37
  import { useChatIdentity } from '../chat/hooks/use-chat-identity';
38
38
  import { EmptyState } from '../empty-state';
39
+ import { ListEmptyState } from '../list-empty-state';
39
40
  import { DevSectionPage } from '../shared/dev-section';
40
41
  import { DevCardRowSkeletonList } from '../shared/dev-section/dev-card-row';
41
42
  import { Button } from '../ui';
@@ -334,28 +335,24 @@ function HelpCenterListAuthed({
334
335
  // response landing.
335
336
  <DevCardRowSkeletonList rows={1} />
336
337
  ) : !hasResults ? (
337
- hasActiveFilters ? (
338
- <EmptyState
339
- type="search"
340
- title="No tickets found"
341
- description="No tickets match your current filters. Try clearing them or broadening your search."
342
- showCTA
343
- ctaText="Reset filters"
344
- onCtaClick={() => {
345
- const params = new URLSearchParams(searchParams.toString());
346
- params.delete('search');
347
- params.delete('status');
348
- router.replace(`${pathname}?${params.toString()}`, { scroll: false });
349
- }}
350
- />
351
- ) : (
352
- <EmptyState
353
- type="generic"
354
- title="No tickets yet"
355
- description="Open one above to start the conversation with the support team."
356
- showCTA={false}
357
- />
358
- )
338
+ <ListEmptyState
339
+ isFiltered={hasActiveFilters}
340
+ filtered={{
341
+ title: 'No tickets found',
342
+ description: 'No tickets match your current filters. Try clearing them or broadening your search.',
343
+ clearText: 'Reset filters',
344
+ }}
345
+ onClearFilters={() => {
346
+ const params = new URLSearchParams(searchParams.toString());
347
+ params.delete('search');
348
+ params.delete('status');
349
+ router.replace(`${pathname}?${params.toString()}`, { scroll: false });
350
+ }}
351
+ empty={{
352
+ title: 'No tickets yet',
353
+ description: 'Open one above to start the conversation with the support team.',
354
+ }}
355
+ />
359
356
  ) : (
360
357
  // `overflow-clip` (NOT `overflow-hidden`) — both visually
361
358
  // clip the rounded corners, but `hidden` makes the element
@@ -12,7 +12,10 @@ const AccordionItem = forwardRef<
12
12
  ElementRef<typeof AccordionPrimitive.Item>,
13
13
  ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
14
14
  >(({ className, ...props }, ref) => (
15
- <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />
15
+ // The divider carries the ODS border token. A bare `border-b` takes Tailwind's
16
+ // default border colour (gray-200), which reads as a bright white rule on the
17
+ // dark theme; that is why most hosts had to pass `border-none` to hide it.
18
+ <AccordionPrimitive.Item ref={ref} className={cn('border-b border-ods-border', className)} {...props} />
16
19
  ));
17
20
  AccordionItem.displayName = 'AccordionItem';
18
21