@flamingo-stack/openframe-frontend-core 0.0.553 → 0.0.554-snapshot.20260818101820

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 (108) hide show
  1. package/dist/{chunk-QOS27D5S.js → chunk-6ER3AYJM.js} +2 -2
  2. package/dist/{chunk-B5N2IG4Z.cjs → chunk-6QRKCVYR.cjs} +7 -7
  3. package/dist/{chunk-B5N2IG4Z.cjs.map → chunk-6QRKCVYR.cjs.map} +1 -1
  4. package/dist/{chunk-T7UUDSDW.cjs → chunk-A7ES3NZK.cjs} +3 -3
  5. package/dist/{chunk-T7UUDSDW.cjs.map → chunk-A7ES3NZK.cjs.map} +1 -1
  6. package/dist/{chunk-B7TI3RYG.js → chunk-B2GEKAAA.js} +2 -2
  7. package/dist/{chunk-UVAB3XAB.js → chunk-CTTY5EKH.js} +4 -4
  8. package/dist/{chunk-XPRFVYES.cjs → chunk-CU6Q2KQT.cjs} +9 -9
  9. package/dist/{chunk-XPRFVYES.cjs.map → chunk-CU6Q2KQT.cjs.map} +1 -1
  10. package/dist/{chunk-25BXB4SH.js → chunk-CVCQW7WG.js} +2 -2
  11. package/dist/{chunk-BUNDMGAD.js → chunk-E2IPBWGT.js} +5 -5
  12. package/dist/{chunk-ZGQZLUO6.cjs → chunk-E56VNTBV.cjs} +46 -35
  13. package/dist/{chunk-ZGQZLUO6.cjs.map → chunk-E56VNTBV.cjs.map} +1 -1
  14. package/dist/{chunk-MSNTPZJ3.js → chunk-HO3Q7NXJ.js} +2 -2
  15. package/dist/{chunk-LL6EPMAD.cjs → chunk-J76LCSR4.cjs} +31 -31
  16. package/dist/{chunk-LL6EPMAD.cjs.map → chunk-J76LCSR4.cjs.map} +1 -1
  17. package/dist/{chunk-VYVOER73.js → chunk-K432ES7N.js} +2 -2
  18. package/dist/{chunk-XBKBBKPR.cjs → chunk-KXLQITOX.cjs} +5 -5
  19. package/dist/{chunk-XBKBBKPR.cjs.map → chunk-KXLQITOX.cjs.map} +1 -1
  20. package/dist/{chunk-LZGHXN2E.js → chunk-L36R3G7Z.js} +4 -4
  21. package/dist/{chunk-OI56TF4Y.cjs → chunk-M5TWHFIN.cjs} +39 -39
  22. package/dist/{chunk-OI56TF4Y.cjs.map → chunk-M5TWHFIN.cjs.map} +1 -1
  23. package/dist/{chunk-Y2WE2GOL.cjs → chunk-MLVF3OXU.cjs} +62 -62
  24. package/dist/{chunk-Y2WE2GOL.cjs.map → chunk-MLVF3OXU.cjs.map} +1 -1
  25. package/dist/{chunk-NFQEDT43.cjs → chunk-N5A4AC2J.cjs} +20 -20
  26. package/dist/{chunk-NFQEDT43.cjs.map → chunk-N5A4AC2J.cjs.map} +1 -1
  27. package/dist/{chunk-3OBWO6N6.js → chunk-ODRMPI3Y.js} +2 -2
  28. package/dist/{chunk-6WA3RI55.cjs → chunk-P22HM2MO.cjs} +11 -11
  29. package/dist/{chunk-6WA3RI55.cjs.map → chunk-P22HM2MO.cjs.map} +1 -1
  30. package/dist/{chunk-WLQER7GC.js → chunk-P7MSXPGL.js} +6 -6
  31. package/dist/{chunk-CGIZ4UGO.js → chunk-QMQQ37RW.js} +2 -2
  32. package/dist/{chunk-ZS7VC5SX.js → chunk-QZ64JOE2.js} +46 -35
  33. package/dist/{chunk-ZS7VC5SX.js.map → chunk-QZ64JOE2.js.map} +1 -1
  34. package/dist/{chunk-S7ATADRE.cjs → chunk-SST2YI7S.cjs} +27 -18
  35. package/dist/{chunk-S7ATADRE.cjs.map → chunk-SST2YI7S.cjs.map} +1 -1
  36. package/dist/{chunk-YI2735PG.js → chunk-TXV444YV.js} +2 -2
  37. package/dist/{chunk-N22NG622.js → chunk-UL3WQWTF.js} +15 -6
  38. package/dist/chunk-UL3WQWTF.js.map +1 -0
  39. package/dist/{chunk-V643QZFI.cjs → chunk-UXW63WCV.cjs} +4 -4
  40. package/dist/{chunk-V643QZFI.cjs.map → chunk-UXW63WCV.cjs.map} +1 -1
  41. package/dist/{chunk-EGPI3SFI.cjs → chunk-XOKRFZBD.cjs} +86 -86
  42. package/dist/{chunk-EGPI3SFI.cjs.map → chunk-XOKRFZBD.cjs.map} +1 -1
  43. package/dist/{chunk-PWWMA3EJ.cjs → chunk-YAOBDOI5.cjs} +26 -26
  44. package/dist/{chunk-PWWMA3EJ.cjs.map → chunk-YAOBDOI5.cjs.map} +1 -1
  45. package/dist/components/case-studies/index.cjs +8 -8
  46. package/dist/components/case-studies/index.js +2 -2
  47. package/dist/components/chat/hooks/use-chat-card-item.d.ts.map +1 -1
  48. package/dist/components/chat/index.cjs +2 -2
  49. package/dist/components/chat/index.js +1 -1
  50. package/dist/components/chat/stream/chat-stream-reducer.d.ts +1 -1
  51. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
  52. package/dist/components/chat/utils/message-segment-accumulator.d.ts +7 -5
  53. package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
  54. package/dist/components/contact/index.cjs +3 -3
  55. package/dist/components/contact/index.js +2 -2
  56. package/dist/components/docs/index.cjs +5 -5
  57. package/dist/components/docs/index.js +4 -4
  58. package/dist/components/embeds/index.cjs +3 -3
  59. package/dist/components/embeds/index.js +2 -2
  60. package/dist/components/faq/index.cjs +3 -3
  61. package/dist/components/faq/index.js +2 -2
  62. package/dist/components/features/index.cjs +2 -2
  63. package/dist/components/features/index.js +1 -1
  64. package/dist/components/help-center-pages/index.cjs +22 -22
  65. package/dist/components/help-center-pages/index.js +13 -13
  66. package/dist/components/index.cjs +131 -131
  67. package/dist/components/index.js +11 -11
  68. package/dist/components/meeting-scheduler/index.cjs +28 -28
  69. package/dist/components/meeting-scheduler/index.js +3 -3
  70. package/dist/components/navigation/index.cjs +2 -2
  71. package/dist/components/navigation/index.js +1 -1
  72. package/dist/components/onboarding-guides/index.cjs +5 -5
  73. package/dist/components/onboarding-guides/index.js +4 -4
  74. package/dist/components/related-content/index.cjs +3 -3
  75. package/dist/components/related-content/index.js +2 -2
  76. package/dist/components/shared/dev-section/dev-section-view.d.ts.map +1 -1
  77. package/dist/components/tickets/index.cjs +6 -6
  78. package/dist/components/tickets/index.js +5 -5
  79. package/dist/components/ui/index.cjs +2 -2
  80. package/dist/components/ui/index.js +1 -1
  81. package/dist/index.cjs +2 -2
  82. package/dist/index.js +1 -1
  83. package/dist/utils/dev-sections/openframe-dev-sections.d.ts +7 -0
  84. package/dist/utils/dev-sections/openframe-dev-sections.d.ts.map +1 -1
  85. package/dist/utils/index.cjs +8 -1
  86. package/dist/utils/index.cjs.map +1 -1
  87. package/dist/utils/index.js +8 -1
  88. package/dist/utils/index.js.map +1 -1
  89. package/package.json +1 -1
  90. package/src/components/chat/__tests__/ticket-event.test.ts +52 -0
  91. package/src/components/chat/hooks/use-chat-card-item.ts +11 -15
  92. package/src/components/chat/stream/chat-stream-reducer.ts +15 -11
  93. package/src/components/chat/utils/message-segment-accumulator.ts +31 -17
  94. package/src/components/shared/dev-section/dev-section-view.tsx +27 -7
  95. package/src/utils/dev-sections/openframe-dev-sections.ts +15 -2
  96. package/dist/chunk-N22NG622.js.map +0 -1
  97. /package/dist/{chunk-QOS27D5S.js.map → chunk-6ER3AYJM.js.map} +0 -0
  98. /package/dist/{chunk-B7TI3RYG.js.map → chunk-B2GEKAAA.js.map} +0 -0
  99. /package/dist/{chunk-UVAB3XAB.js.map → chunk-CTTY5EKH.js.map} +0 -0
  100. /package/dist/{chunk-25BXB4SH.js.map → chunk-CVCQW7WG.js.map} +0 -0
  101. /package/dist/{chunk-BUNDMGAD.js.map → chunk-E2IPBWGT.js.map} +0 -0
  102. /package/dist/{chunk-MSNTPZJ3.js.map → chunk-HO3Q7NXJ.js.map} +0 -0
  103. /package/dist/{chunk-VYVOER73.js.map → chunk-K432ES7N.js.map} +0 -0
  104. /package/dist/{chunk-LZGHXN2E.js.map → chunk-L36R3G7Z.js.map} +0 -0
  105. /package/dist/{chunk-3OBWO6N6.js.map → chunk-ODRMPI3Y.js.map} +0 -0
  106. /package/dist/{chunk-WLQER7GC.js.map → chunk-P7MSXPGL.js.map} +0 -0
  107. /package/dist/{chunk-CGIZ4UGO.js.map → chunk-QMQQ37RW.js.map} +0 -0
  108. /package/dist/{chunk-YI2735PG.js.map → chunk-TXV444YV.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.553",
3
+ "version": "0.0.554-snapshot.20260818101820",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -161,6 +161,58 @@ describe('accumulator — hydrate/catch-up overlap', () => {
161
161
  )
162
162
  expect(events(segments)).toHaveLength(2)
163
163
  })
164
+
165
+ it('renders a payload-identical REPEATED event whose first occurrence is seq-less', () => {
166
+ // The observed swallow: resolve -> reopen -> resolve by the SAME actor
167
+ // with no reason. The first resolve hydrated from history without a seq,
168
+ // so payload equality matched it against the NEW resolve and the final
169
+ // card never rendered. Only the LATEST ticket event may payload-match.
170
+ const accumulator = new MessageSegmentAccumulator()
171
+ accumulator.addTicketEvent({ kind: 'RESOLVED', actorId: 'u-1', actorName: 'Yevhenii', actorType: 'TECHNICIAN' })
172
+ accumulator.addTicketEvent(
173
+ { kind: 'REOPENED', actorId: 'u-1', actorName: 'Yevhenii', actorType: 'TECHNICIAN', targetStatusKind: 'TECH_REQUIRED' },
174
+ 79,
175
+ )
176
+ const segments = accumulator.addTicketEvent(
177
+ { kind: 'RESOLVED', actorId: 'u-1', actorName: 'Yevhenii', actorType: 'TECHNICIAN' },
178
+ 80,
179
+ )
180
+ const rendered = events(segments)
181
+ expect(rendered).toHaveLength(3)
182
+ expect(rendered[2].data.kind).toBe('RESOLVED')
183
+ })
184
+
185
+ it('renders an entirely seq-less repeated cycle (no sequences anywhere)', () => {
186
+ const accumulator = new MessageSegmentAccumulator()
187
+ accumulator.addTicketEvent({ kind: 'RESOLVED', actorName: 'Fae', actorType: 'AI' })
188
+ accumulator.addTicketEvent({ kind: 'REOPENED', actorName: 'Fae', actorType: 'AI' })
189
+ const segments = accumulator.addTicketEvent({ kind: 'RESOLVED', actorName: 'Fae', actorType: 'AI' })
190
+ expect(events(segments)).toHaveLength(3)
191
+ })
192
+ })
193
+
194
+ describe('chat stream reducer — onTicketEvent effect', () => {
195
+ it('emits the event payload so hosts can move ticket state with the card', () => {
196
+ const seen: unknown[] = []
197
+ const reducer = createChatStreamReducer({
198
+ transport: 'nats',
199
+ onEffect: (effect) => {
200
+ if (effect.name === 'onTicketEvent') seen.push(effect.args[0])
201
+ },
202
+ })
203
+ const event = decodeNatsChunk({
204
+ type: 'TICKET_EVENT',
205
+ kind: 'REOPENED',
206
+ actorId: 'u-1',
207
+ actorName: 'Yevhenii',
208
+ actorType: 'TECHNICIAN',
209
+ targetStatusKind: 'TECH_REQUIRED',
210
+ streamSeq: 5,
211
+ })
212
+ if (event) reducer.apply(event)
213
+ expect(seen).toHaveLength(1)
214
+ expect(seen[0]).toMatchObject({ kind: 'REOPENED', targetStatusKind: 'TECH_REQUIRED' })
215
+ })
164
216
  })
165
217
 
166
218
  describe('processHistoricalMessages — ticket event', () => {
@@ -10,9 +10,9 @@
10
10
  * `/case-studies`, `/podcasts`, `/roadmap`, etc.
11
11
  *
12
12
  * Batching: every compact card with the same `(type, id)` shares one
13
- * TanStack-Query entry; multiple refs of the same type in the same
14
- * chat message produce ONE network request (TanStack dedups by
15
- * queryKey). 5-minute staleTime matches `RelatedContentSection`.
13
+ * TanStack-Query entry; CONCURRENT refs of the same type in the same
14
+ * chat message produce ONE network request (TanStack dedups in-flight
15
+ * fetches by queryKey). Data is always stale — see the query options.
16
16
  *
17
17
  * URL builder is read from `runtime.endpoints.buildListUrl` so the
18
18
  * embedded app can supply a per-type URL builder against the reverse
@@ -68,19 +68,15 @@ export function useChatCardItem<T = unknown>(
68
68
  return (match ?? null) as T | null
69
69
  },
70
70
  enabled: !!url && id.length > 0,
71
- // Don't refetch on window focus inside the chat — the chat panel
72
- // is opened and closed frequently, and re-fetching every time the
73
- // user toggles back to the tab is wasteful (the row's id-keyed
74
- // payload is effectively immutable).
75
- refetchOnWindowFocus: false,
76
- // The id-keyed payload is effectively immutable, and a fetch-mode card
71
+ // ALWAYS FRESH — no freshness window. Card entities are mutable
72
+ // (tickets, tasks change status), so a cached row is a lie waiting to
73
+ // render: a 5-min staleTime shipped a "NEW" badge on a ticket the
74
+ // receipt right above it said was just CLOSED (2026-08-18). Every
75
+ // mount refetches. `gcTime` is kept ONLY as render continuity: a card
77
76
  // inside a STREAMING assistant message re-mounts on every chunk as the
78
- // surrounding markdown re-parses. Without a staleTime that meant a fresh
79
- // network fetch + loading-skeleton flash on every single chunk. Treat the
80
- // row as fresh for 5 min (matches the public pages) and keep it cached
81
- // long after unmount so remounts resolve synchronously from cache — no
82
- // refetch, no skeleton flash.
83
- staleTime: 5 * 60 * 1000,
77
+ // surrounding markdown re-parses, and the previous data renders while
78
+ // the refetch is in flight — no skeleton flash, never stale-forever.
79
+ staleTime: 0,
84
80
  gcTime: 30 * 60 * 1000,
85
81
  })
86
82
  return {
@@ -209,6 +209,7 @@ export interface ChatReducerEffect {
209
209
  | 'onToolExecuted'
210
210
  | 'onAgentBusy'
211
211
  | 'onDialogClosed'
212
+ | 'onTicketEvent'
212
213
  | 'segments-after-approval-result'
213
214
  args: unknown[]
214
215
  }
@@ -1369,18 +1370,21 @@ export function createChatStreamReducer(
1369
1370
  // `ticket-escalated`. `seq` rides onto the segment: it is the event's
1370
1371
  // dedupe identity (see `addTicketEvent`).
1371
1372
  const before = accumulator.getSegments().length
1372
- const segments = accumulator.addTicketEvent(
1373
- {
1374
- kind: event.kind,
1375
- actorId: event.actorId,
1376
- actorName: event.actorName,
1377
- actorType: event.actorType,
1378
- reason: event.reason,
1379
- targetStatusKind: event.targetStatusKind,
1380
- },
1381
- seq,
1382
- )
1373
+ const data = {
1374
+ kind: event.kind,
1375
+ actorId: event.actorId,
1376
+ actorName: event.actorName,
1377
+ actorType: event.actorType,
1378
+ reason: event.reason,
1379
+ targetStatusKind: event.targetStatusKind,
1380
+ }
1381
+ const segments = accumulator.addTicketEvent(data, seq)
1383
1382
  applyAccumulated(before, segments)
1383
+ // The card alone is not enough for a host that also tracks the
1384
+ // ticket's state: a RESOLVED/REOPENED arriving live must move the
1385
+ // composer lock/status chip on the same render as the card, not on
1386
+ // the next status poll. Hosts that don't wire it lose nothing.
1387
+ emit('onTicketEvent', data)
1384
1388
  break
1385
1389
  }
1386
1390
 
@@ -540,13 +540,15 @@ export class MessageSegmentAccumulator {
540
540
  /**
541
541
  * Add a ticket lifecycle receipt (resolved / reopened / unknown kind).
542
542
  *
543
- * Upsert identity is the chunk's stream sequence when BOTH sides know it;
544
- * otherwise full payload equality. History-hydrated segments come back
543
+ * Upsert identity is the chunk's stream sequence when BOTH sides know it.
544
+ * The payload fallback exists for one overlap only: history hydration is
545
545
  * seq-less (the persisted row's seq lives on the message, not the
546
546
  * `messageData`), so a JetStream catch-up redelivery of the same event must
547
- * still match its hydrated twin — payload equality is what catches that.
548
- * Two genuinely distinct events (resolve → reopen → resolve) differ in seq
549
- * or payload and both render.
547
+ * still match its hydrated twin. That twin is necessarily the LATEST ticket
548
+ * event, so the fallback may consider only that one — scanning older
549
+ * segments swallowed a genuinely REPEATED event: resolve → reopen → resolve
550
+ * by the same actor is payload-identical to the first resolve, and matching
551
+ * the old card meant the final one never rendered.
550
552
  */
551
553
  addTicketEvent(data: TicketEventData, streamSeq?: number): MessageSegment[] {
552
554
  const segment: TicketEventSegment = {
@@ -554,18 +556,30 @@ export class MessageSegmentAccumulator {
554
556
  data,
555
557
  ...(streamSeq !== undefined ? { streamSeq } : {}),
556
558
  }
557
- const existingIndex = this.segments.findIndex((s) => {
558
- if (s.type !== 'ticket_event') return false
559
- if (s.streamSeq !== undefined && streamSeq !== undefined) return s.streamSeq === streamSeq
560
- return (
561
- s.data.kind === data.kind &&
562
- s.data.actorId === data.actorId &&
563
- s.data.actorName === data.actorName &&
564
- s.data.actorType === data.actorType &&
565
- s.data.reason === data.reason &&
566
- s.data.targetStatusKind === data.targetStatusKind
567
- )
568
- })
559
+ let existingIndex =
560
+ streamSeq !== undefined
561
+ ? this.segments.findIndex((s) => s.type === 'ticket_event' && s.streamSeq === streamSeq)
562
+ : -1
563
+ if (existingIndex === -1) {
564
+ for (let i = this.segments.length - 1; i >= 0; i--) {
565
+ const s = this.segments[i]
566
+ if (s.type !== 'ticket_event') continue
567
+ // Both seqs known and unequal: proven distinct, never payload-match.
568
+ const seqsDistinguish = s.streamSeq !== undefined && streamSeq !== undefined
569
+ if (
570
+ !seqsDistinguish &&
571
+ s.data.kind === data.kind &&
572
+ s.data.actorId === data.actorId &&
573
+ s.data.actorName === data.actorName &&
574
+ s.data.actorType === data.actorType &&
575
+ s.data.reason === data.reason &&
576
+ s.data.targetStatusKind === data.targetStatusKind
577
+ ) {
578
+ existingIndex = i
579
+ }
580
+ break
581
+ }
582
+ }
569
583
  if (existingIndex !== -1) {
570
584
  this.segments[existingIndex] = segment
571
585
  return this.getSegments()
@@ -21,6 +21,7 @@ import { SearchInput } from '../../ui';
21
21
  import { StatusFilterComponent } from '../../features';
22
22
  import {
23
23
  OPENFRAME_DEV_SECTIONS,
24
+ type OpenframeDevSection,
24
25
  type OpenframeDevSectionKey,
25
26
  } from '../../../utils/dev-sections/openframe-dev-sections';
26
27
 
@@ -65,7 +66,11 @@ export function DevSectionView({ sectionKey, hero, preControls, children, showHe
65
66
  const pathname = usePathname();
66
67
  const searchParams = useSearchParams();
67
68
 
68
- const search = section.search;
69
+ // Widen from the registry's per-section literal types to the interface —
70
+ // optional fields (`clearParamKeys`) exist on the interface but not on
71
+ // every section's inferred literal. Sound: the registry `satisfies`
72
+ // `Record<string, OpenframeDevSection>`.
73
+ const search: OpenframeDevSection['search'] = section.search;
69
74
  const filter = section.filter;
70
75
 
71
76
  const currentSearch = search ? searchParams.get(search.paramKey) || '' : '';
@@ -73,8 +78,11 @@ export function DevSectionView({ sectionKey, hero, preControls, children, showHe
73
78
  ? searchParams.get(filter.paramKey) || filter.defaultValue
74
79
  : '';
75
80
 
76
- // Controlled search-input state — input commits to the URL only on
77
- // Enter (not on every keystroke), preserving the legacy behavior.
81
+ // Controlled search-input state — TYPING commits to the URL only on
82
+ // Enter (not on every keystroke), but CLEARING commits immediately:
83
+ // an emptied input must not keep filtering the list (the URL param —
84
+ // and any linked `clearParamKeys` companion like the tickets
85
+ // `?ticket=` drawer param — previously survived until Enter).
78
86
  // Lazy init from URL avoids a brief flash of stale value on first
79
87
  // paint after URL-driven re-render (e.g. tab switch).
80
88
  const [searchValue, setSearchValue] = useState(() => currentSearch);
@@ -85,9 +93,21 @@ export function DevSectionView({ sectionKey, hero, preControls, children, showHe
85
93
  const handleSearchSubmit = (value: string) => {
86
94
  if (!search) return;
87
95
  const params = new URLSearchParams(searchParams.toString());
88
- if (value.trim()) params.set(search.paramKey, value.trim());
89
- else params.delete(search.paramKey);
90
- router.replace(`${pathname}?${params.toString()}`, { scroll: false });
96
+ if (value.trim()) {
97
+ params.set(search.paramKey, value.trim());
98
+ } else {
99
+ params.delete(search.paramKey);
100
+ // Empty commit tears down the search's linked companion params too
101
+ // (deep links set them TOGETHER — see the config field docs).
102
+ for (const key of search.clearParamKeys ?? []) params.delete(key);
103
+ }
104
+ const qs = params.toString();
105
+ router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
106
+ };
107
+
108
+ const handleSearchChange = (value: string) => {
109
+ setSearchValue(value);
110
+ if (value === '' && currentSearch !== '') handleSearchSubmit('');
91
111
  };
92
112
 
93
113
  const handleFilterChange = (value: string) => {
@@ -129,7 +149,7 @@ export function DevSectionView({ sectionKey, hero, preControls, children, showHe
129
149
  showDropdown={false}
130
150
  placeholder={search.placeholder}
131
151
  value={searchValue}
132
- onChange={setSearchValue}
152
+ onChange={handleSearchChange}
133
153
  onSubmit={handleSearchSubmit}
134
154
  />
135
155
  )}
@@ -30,7 +30,7 @@
30
30
 
31
31
  import { Map as MapIcon, Wrench, Rocket, GraduationCap, LifeBuoy, type LucideIcon } from 'lucide-react'
32
32
  import { releaseStatusOptions } from '../../types'
33
- import { DEV_SECTION_PARAM_KEYS } from './dev-section-param-keys'
33
+ import { DEV_SECTION_PARAM_KEYS, TICKET_OPEN_PARAM } from './dev-section-param-keys'
34
34
 
35
35
  // Roadmap status options — `as const` preserves readonly tuple typing
36
36
  // across the registry boundary.
@@ -78,6 +78,12 @@ export interface OpenframeDevSection {
78
78
  placeholder: string
79
79
  /** URL search param the input writes on submit and the list reads on fetch. */
80
80
  paramKey: string
81
+ /** Companion URL params torn down whenever the search commits EMPTY.
82
+ * For params that deep-links set TOGETHER with the search (e.g. the
83
+ * tickets `?ticket=<id>&search=<id>` pair from chat cards) — clearing
84
+ * the search must clear the whole linked context, not leave a stale
85
+ * companion param filtering the view. */
86
+ clearParamKeys?: readonly string[]
81
87
  } | null
82
88
  /** Filter pill row configuration. `null` when the section has no filter (e.g. onboarding-guides). */
83
89
  filter: {
@@ -173,7 +179,14 @@ export const OPENFRAME_DEV_SECTIONS = {
173
179
  description:
174
180
  'Open new tickets, follow up on existing ones, and track responses from the team — all in one place.',
175
181
  },
176
- search: { placeholder: 'Search your tickets...', paramKey: DEV_SECTION_PARAM_KEYS.search },
182
+ search: {
183
+ placeholder: 'Search your tickets...',
184
+ paramKey: DEV_SECTION_PARAM_KEYS.search,
185
+ // Chat-card deep links arrive as `?ticket=<id>&search=<id>`
186
+ // (buildTicketOpenHref) — clearing the search resets the whole
187
+ // linked context, drawer param included.
188
+ clearParamKeys: [TICKET_OPEN_PARAM],
189
+ },
177
190
  filter: {
178
191
  label: 'Status',
179
192
  paramKey: DEV_SECTION_PARAM_KEYS.status,
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/shared/dev-section/dev-section-view.tsx","../src/components/shared/dev-section/dev-section-page.tsx","../src/components/shared/dev-section/dev-card-row.tsx","../src/components/shared/delivery/delivery-row.tsx"],"sourcesContent":["'use client';\n\n/**\n * DevSectionView — the canonical chrome for ANY dev-center section\n * (Roadmap / Delivery / Releases). One component, used in BOTH:\n *\n * - tabbed `/roadmap-and-releases` (compact title mode, no `hero`)\n * - full-page `/roadmap`, `/bug-fixes-and-enhancements`, `/releases`\n * (hero mode with icon + description + back link)\n *\n * Owns: title rendering, the inline search input, the filter pill row,\n * and the URL-param wiring that connects both. The list `children`\n * receive a clean URL contract — they read `?<paramKey>=...` via\n * `useSearchParams()` and refetch on change. No duplicated controls.\n */\n\nimport type { ReactNode } from 'react';\nimport { useState, useEffect } from 'react';\nimport { useRouter, useSearchParams, usePathname } from '../../../embed-shims';\nimport { SearchInput } from '../../ui';\nimport { StatusFilterComponent } from '../../features';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\n\nexport interface DevSectionViewProps {\n /** Which section to render — drives title, search, and filter\n * config via the `OPENFRAME_DEV_SECTIONS` registry. */\n sectionKey: OpenframeDevSectionKey;\n /** When set, renders the rich page-level hero (icon + h1 + description).\n * Omit for the compact tab-context heading. */\n hero?: {\n /** Pre-rendered icon JSX. Server components render the icon themselves\n * and pass the element here — function references can't cross the\n * server→client boundary, but React elements can. */\n icon: ReactNode;\n /** Hero title. Falls back to `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`\n * when omitted, so embedders can override the (OpenFrame-specific) default\n * copy without forking the registry. */\n title?: string;\n description: string;\n };\n /** Optional slot rendered BETWEEN the hero and the search/filter\n * controls. Use this for an entry-action surface that should sit\n * above the list (e.g. the Help Center's \"Open a new ticket\" form).\n * The slot is wrapped in the same `gap-10` flex column so spacing\n * matches the surrounding chrome — callers should NOT add their\n * own top/bottom margin. Renders `null` (no DOM) when omitted. */\n preControls?: ReactNode;\n /** The page-specific list body. Reads URL params written by this\n * component (search input + filter pills). */\n children: ReactNode;\n /** Render this component's own title heading (hero or compact `h2`). Default\n * `true` — the tab context renders the compact heading itself. Pass `false`\n * when the host already renders the title elsewhere (e.g. `DevSectionPage`\n * routes it through the unified `PageLayout` `TitleBlock`): then only the\n * search + filter controls + list render, with no duplicate heading. */\n showHeading?: boolean;\n}\n\nexport function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }: DevSectionViewProps) {\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n const router = useRouter();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n\n const search = section.search;\n const filter = section.filter;\n\n const currentSearch = search ? searchParams.get(search.paramKey) || '' : '';\n const currentFilterValue = filter\n ? searchParams.get(filter.paramKey) || filter.defaultValue\n : '';\n\n // Controlled search-input state — input commits to the URL only on\n // Enter (not on every keystroke), preserving the legacy behavior.\n // Lazy init from URL avoids a brief flash of stale value on first\n // paint after URL-driven re-render (e.g. tab switch).\n const [searchValue, setSearchValue] = useState(() => currentSearch);\n useEffect(() => {\n setSearchValue(currentSearch);\n }, [currentSearch]);\n\n const handleSearchSubmit = (value: string) => {\n if (!search) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value.trim()) params.set(search.paramKey, value.trim());\n else params.delete(search.paramKey);\n router.replace(`${pathname}?${params.toString()}`, { scroll: false });\n };\n\n const handleFilterChange = (value: string) => {\n if (!filter) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value === filter.defaultValue) params.delete(filter.paramKey);\n else params.set(filter.paramKey, value);\n router.replace(`${pathname}?${params.toString()}`, { scroll: false });\n };\n\n return (\n <div className=\"w-full flex flex-col gap-10\">\n {showHeading &&\n (hero ? (\n <div className=\"space-y-4\">\n <h1 className=\"text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3\">\n {hero.icon}\n {hero.title ?? section.hero.title}\n </h1>\n <p className=\"text-h4 text-ods-text-secondary max-w-3xl\">\n {hero.description}\n </p>\n </div>\n ) : (\n <div className=\"flex items-center justify-between w-full\">\n <h2 className=\"font-['Azeret_Mono'] font-semibold text-[32px] md:text-[40px] lg:text-[48px] leading-[40px] md:leading-[48px] lg:leading-[56px] text-ods-text-primary tracking-[-0.64px] md:tracking-[-0.8px] lg:tracking-[-0.96px]\">\n {section.hero.title}\n <span className=\"text-ods-accent\">:</span>\n </h2>\n </div>\n ))}\n\n {preControls}\n\n {(search || filter) && (\n <div className=\"space-y-4\">\n {search && (\n <SearchInput\n showDropdown={false}\n placeholder={search.placeholder}\n value={searchValue}\n onChange={setSearchValue}\n onSubmit={handleSearchSubmit}\n />\n )}\n {filter && (\n <StatusFilterComponent\n selectedStatus={currentFilterValue}\n onStatusChange={handleFilterChange}\n statusOptions={[...filter.options]}\n />\n )}\n </div>\n )}\n\n {children}\n </div>\n );\n}\n","'use client';\n\n/**\n * DevSectionPage — full-page wrapper for a dev-center section\n * (`/roadmap`, `/bug-fixes-and-enhancements`, `/releases`).\n *\n * Mounts the lib's canonical `PageLayout` directly (no in-app wrapper)\n * so the back-button affordance stays in lockstep with whatever the\n * design system ships — any future lib change to BackButton / TitleBlock\n * propagates automatically.\n *\n * Composition: `PageShell` → `PageLayout` (back-to-home wired) →\n * `DevSectionView` (icon hero + search + filter pills) → list body.\n *\n * Adding a new section is one entry in `OPENFRAME_DEV_SECTIONS` plus a\n * single-line page file mounting this factory with the new key.\n */\n\nimport type { ReactNode } from 'react';\nimport { useRouter } from '../../../embed-shims/next-navigation';\nimport { PageShell, PageLayout } from '../../ui';\nimport { DevSectionView } from './dev-section-view';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\n\nexport interface DevSectionPageProps {\n sectionKey: OpenframeDevSectionKey;\n /** The page-specific list body (e.g. `<RoadmapList />`). */\n children: ReactNode;\n /** Optional slot rendered BETWEEN the hero and search/filter — see\n * `DevSectionView.preControls`. Used by surfaces that want an entry\n * action (e.g. Help Center's \"Open a new ticket\" form) above the\n * controls instead of below them. */\n preControls?: ReactNode;\n /** Back-button config — same shape as `LegalDocumentPage` /\n * `ReleaseDetailPage`. Pass `false` to hide entirely. Default\n * `{ label: 'Back to home', href: '/' }` — embedders whose \"home\" isn't `/`\n * should override `href`, or pass `false` if the embed has no home page. */\n backButton?: { label?: string; href?: string } | false;\n /** Override the hero title. Defaults to the (OpenFrame-specific) copy in\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`. Set this to brand the\n * section for a non-OpenFrame embed. */\n title?: string;\n /** Override the hero subtitle/description. Defaults to\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.description`. */\n subtitle?: string;\n /** Render the standalone `<PageShell>` (own `<main>` + bg + max-width). Default\n * `true` — the contract for marketing/hub surfaces with no app shell. Pass\n * `false` when the host layout already provides the page container (e.g.\n * openframe-frontend's `AppLayout` `<main>`): then only the\n * `page-shell-content` padding box is rendered, avoiding a nested `<main>`. */\n shell?: boolean;\n}\n\nexport function DevSectionPage({\n sectionKey,\n children,\n preControls,\n backButton,\n title,\n subtitle,\n shell = true,\n}: DevSectionPageProps) {\n const router = useRouter();\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n\n // Back-button config — mirrors LegalDocumentPage / ReleaseDetailPage.\n // Default: { label: 'Back to home', href: '/' }. Pass `false` to hide.\n // After `backButton &&` narrowing, inner type is `{ label?, href? } |\n // undefined`; don't re-compare to `false` (TS2367).\n const backCfg =\n backButton === false\n ? undefined\n : {\n label: (backButton ? backButton.label : undefined) ?? 'Back to home',\n onClick: () => router.push((backButton ? backButton.href : undefined) ?? '/'),\n };\n\n const inner = (\n // Unified header: title/description route through the canonical (frozen)\n // `PageLayout` `TitleBlock` (text-h2) — same as FAQ / Legal / detail pages —\n // so every help-center surface shares one header. `DevSectionView` then\n // renders ONLY its search + filter controls (`showHeading={false}`), no\n // duplicate title. (The hero icon is intentionally dropped: TitleBlock is\n // frozen and renders title-only.)\n <PageLayout\n title={title ?? section.hero.title}\n subtitle={subtitle ?? section.hero.description}\n titleSize=\"h1\"\n titleWrap\n backButton={backCfg}\n >\n <DevSectionView sectionKey={sectionKey} showHeading={false} preControls={preControls}>\n {children}\n </DevSectionView>\n </PageLayout>\n );\n\n // `shell` true → standalone `<PageShell>` (own <main> + bg + max-width).\n // false → padding-only box (no nested <main>) for hosts whose layout already\n // provides the container; both consume the host's `--page-shell-*` vars.\n return shell ? <PageShell>{inner}</PageShell> : <div className=\"page-shell-content\">{inner}</div>;\n}\n","'use client';\n\n/**\n * Shared row chrome for any `DevSectionPage` list (delivery, tickets,\n * future sections). One source of truth for the layout that every\n * dev-section card row uses:\n * left column → title (h3) / subtitle (h5 uppercase) / description\n * (h4 line-clamp-3), each in a fixed min-height block\n * so rows align across the grid\n * right column → caller-supplied stacked badges\n *\n * Surface stays small on purpose — `rightBadges` is a `ReactNode` so\n * the caller decides how many badges (delivery: 2, tickets: 1-2,\n * future: anything). No behavior baked in: the caller wraps the row\n * in a `<div>` (static, like delivery) or `<button>` (clickable, like\n * tickets) and renders the row content via this component.\n *\n * Pair with `DevCardRowSkeletonList` for the loading state — the\n * skeleton mirrors the same min-heights so the in-flight UI doesn't\n * shift the layout when real data lands.\n *\n * NOTE: the ticket conversation row is NOT here — it renders the shared\n * `<ChatMessageRow>` (`components/chat/chat-message-row.tsx`), the SAME\n * component the OpenMSP Slack-community feed uses, so the two surfaces stay\n * pixel-identical by construction.\n */\n\nimport type { ReactNode } from 'react';\n\nexport interface DevCardRowContentProps {\n title: string;\n /** Single-line uppercase metadata (e.g. \"UPDATED today, #4271, Code review\"). */\n subtitle: string;\n /** 3-line description block. Empty string renders the fallback. */\n description: string;\n /** Fallback copy when `description` is empty. Defaults to a generic\n * string; ticket / delivery surfaces override. */\n emptyDescription?: string;\n /** Right column — caller renders its own stacked badges. */\n rightBadges: ReactNode;\n}\n\nexport function DevCardRowContent({\n title,\n subtitle,\n description,\n emptyDescription = 'No description provided',\n rightBadges,\n}: DevCardRowContentProps) {\n return (\n <div className=\"flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full\">\n <div className=\"flex-1 min-w-0 w-full md:w-auto flex flex-col gap-[12px] md:gap-[16px]\">\n <div className=\"min-h-[24px] flex items-center\">\n <h3 className=\"text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2 md:truncate break-words\">\n {title}\n </h3>\n </div>\n <div className=\"min-h-[20px] flex items-center\">\n <p className=\"text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate\">\n {subtitle}\n </p>\n </div>\n <div className=\"min-h-[72px] flex items-center\">\n <p className=\"text-h4 text-ods-text-secondary line-clamp-3 break-words\">\n {description || emptyDescription}\n </p>\n </div>\n </div>\n <div className=\"flex-shrink-0 self-start flex flex-col gap-2\">\n {rightBadges}\n </div>\n </div>\n );\n}\n\n/**\n * Skeleton rendering for a single row — the bars mirror the same\n * min-heights as `DevCardRowContent` so the loading→loaded swap\n * doesn't reflow.\n */\nexport function DevCardRowSkeleton() {\n return (\n <div className=\"border-b border-ods-border last:border-b-0 p-[12px] md:p-[16px]\">\n <div className=\"flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full\">\n <div className=\"flex-1 min-w-0 w-full md:w-auto flex flex-col gap-[12px] md:gap-[16px]\">\n <div className=\"min-h-[24px] flex items-center\">\n <div className=\"h-[20px] bg-ods-border rounded animate-pulse w-full\" />\n </div>\n <div className=\"min-h-[20px] flex items-center\">\n <div className=\"h-[20px] bg-ods-border rounded animate-pulse w-1/2\" />\n </div>\n <div className=\"min-h-[72px] flex items-center\">\n <div className=\"flex-1 space-y-1\">\n <div className=\"h-[20px] bg-ods-border rounded animate-pulse w-full\" />\n <div className=\"h-[20px] bg-ods-border rounded animate-pulse w-full\" />\n <div className=\"h-[20px] bg-ods-border rounded animate-pulse w-2/3\" />\n </div>\n </div>\n </div>\n <div className=\"flex-shrink-0 self-start flex flex-col gap-2\">\n <div className=\"h-[32px] w-[100px] bg-ods-border rounded animate-pulse\" />\n <div className=\"h-[32px] w-[120px] bg-ods-border rounded animate-pulse\" />\n </div>\n </div>\n </div>\n );\n}\n\n/**\n * The standard \"5 skeleton rows inside a bordered card\" loading state\n * used by every list shell. Both delivery (`delivery-table.tsx`) and\n * tickets (`tickets-list.tsx`) mount this directly.\n */\nexport function DevCardRowSkeletonList({ rows = 5 }: { rows?: number }) {\n return (\n <div className=\"bg-ods-card border border-ods-border rounded-[6px] overflow-hidden w-full\">\n {Array.from({ length: rows }, (_, i) => (\n <DevCardRowSkeleton key={i} />\n ))}\n </div>\n );\n}\n","'use client'\n\n/**\n * `<DeliveryRow />` — canonical single-row presentation for a ClickUp\n * delivery item.\n *\n * Single source of truth: both the `/bug-fixes-and-enhancements` page\n * (via `DeliveryTable`) AND the linked-delivery card on a HubSpot ticket\n * (via `TicketLinkedDeliveryCard`) compose this primitive. Visual parity\n * across those two surfaces is the design goal — the user reads the\n * card on their ticket and recognises it as a row from the public\n * delivery list.\n *\n * Behaviors:\n * - `href` set → outer element is an `<a>`, the whole row becomes\n * clickable (used by the linked-card surface to deep-link into\n * `/bug-fixes-and-enhancements?focus=<id>`).\n * - `id` set → outer element gets that DOM id so the consuming page\n * can `scrollIntoView` to it when the URL carries `?focus=<id>`.\n * - `highlighted` true → brief accent border + background pulse\n * (`animate-flash-focus` keyframe defined in `tailwind.config.ts`).\n * - `caption` set → small uppercase label rendered above the title\n * (\"LINKED DELIVERY\" on the ticket-side variant). Omitted on the\n * standard list rendering.\n */\n\nimport * as React from 'react'\nimport Link from '../../../embed-shims/next-link'\nimport { StatusBadge } from '../../ui/status-badge'\nimport { AvatarStack } from '../../ui/avatar-stack'\nimport { getStatusColorScheme } from '../../../utils'\nimport {\n type DeliveryItem,\n TASK_TYPE_LABELS,\n TASK_TYPE_TEXT_COLORS,\n} from '../../../types/delivery'\nimport { cn } from '../../../utils/cn'\n\n/** Same heuristic as DeliveryTable's local helper. Inlined so the row\n * primitive owns its complete rendering contract. */\nfunction getRelativeTime(timestamp: number): string {\n const now = Date.now()\n const diff = now - timestamp\n const days = Math.floor(diff / (1000 * 60 * 60 * 24))\n const weeks = Math.floor(days / 7)\n const months = Math.floor(days / 30)\n if (months > 0) return months === 1 ? 'last month' : `${months} months ago`\n if (weeks > 0) return weeks === 1 ? 'last week' : `${weeks} weeks ago`\n if (days > 0) return days === 1 ? 'yesterday' : `${days} days ago`\n return 'today'\n}\n\nexport interface DeliveryRowProps {\n item: DeliveryItem\n /** When set, the row becomes a clickable anchor. The ticket-side\n * linked-card composes this from `buildDevSectionUrl('delivery', id)`\n * which carries `?search=<id>` — the delivery list filters to that\n * exact task on landing (canonical deep-link mechanism, same one\n * the chat-inline delivery card uses). */\n href?: string\n /** Small uppercase caption rendered above the title. Used by the\n * linked-delivery card variant (\"LINKED DELIVERY\"). */\n caption?: string\n /** DOM `id` applied to the row's outer element. `DeliveryTable`\n * always sets `delivery-<external_id>` so chat-card deep-links\n * (`?search=<id>#delivery-<id>`) and the ticket linked-card path\n * both have a target for `useScrollToHash` to scroll to. Always\n * paired with `scroll-mt-24` on the outer element so the row lands\n * BELOW the sticky chrome after the scroll. */\n id?: string\n className?: string\n}\n\nexport function DeliveryRow({\n item,\n href,\n caption,\n id,\n className,\n}: DeliveryRowProps) {\n const taskType = item.taskType as keyof typeof TASK_TYPE_LABELS\n const typeBadgeLabel = TASK_TYPE_LABELS[taskType] || 'TASK'\n const typeBadgeTextColor = TASK_TYPE_TEXT_COLORS[taskType] || ''\n const statusBadgeScheme = getStatusColorScheme(item.status)\n const relativeTime = getRelativeTime(item.dateUpdated)\n const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(', ')}` : ''}, ${item.id}`\n\n const inner = (\n <div className=\"flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full\">\n {/* Left: caption (optional) + title + subtitle + description */}\n <div className=\"flex-1 min-w-0 w-full md:w-auto flex flex-col gap-[12px] md:gap-[16px]\">\n {caption && (\n <p className=\"text-h5 text-ods-text-secondary\">\n {caption}\n </p>\n )}\n <div className=\"min-h-[24px] md:min-h-[24px] flex items-center\">\n <h3 className=\"text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2 md:truncate break-words\">\n {item.title}\n </h3>\n </div>\n <div className=\"min-h-[20px] flex items-center\">\n <p className=\"text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate\">\n {subtitle}\n </p>\n </div>\n <div className=\"min-h-[72px] flex items-center\">\n <p className=\"text-h4 text-ods-text-secondary line-clamp-3 break-words\">\n {item.description || 'No description provided'}\n </p>\n </div>\n </div>\n\n {/* Right (desktop): badges + assignee stack in a right-aligned\n column. Mobile: ONE horizontal footer row — badges lead,\n avatars anchor the right edge (kanban-card convention: the\n assignee owns the trailing slot of the meta row; a column of\n right-aligned orphans under the description reads as clutter\n on small screens). */}\n <div className=\"flex-shrink-0 self-stretch md:self-start w-full md:w-auto flex flex-row md:flex-col items-center md:items-end gap-2\">\n <StatusBadge\n text={item.status.toUpperCase()}\n colorScheme={statusBadgeScheme}\n variant=\"card\"\n className=\"border border-ods-border\"\n />\n <StatusBadge\n text={typeBadgeLabel}\n variant=\"card\"\n className={`border border-ods-border ${typeBadgeTextColor}`}\n />\n {item.assignees && item.assignees.length > 0 ? (\n <AvatarStack\n size=\"xs\"\n className=\"ml-auto md:ml-0\"\n people={item.assignees.map((a) => ({\n key: a.id,\n name: a.name ?? 'Unknown',\n avatarUrl: a.avatarUrl,\n }))}\n />\n ) : null}\n </div>\n </div>\n )\n\n const baseClass = cn(\n 'block p-[12px] md:p-[16px] no-underline text-inherit transition-colors duration-150',\n // `scroll-mt-24` is paid for whether `id` is set or not (it's a\n // single Tailwind utility, no runtime cost). Keeping it\n // unconditional means a future caller adding `id` doesn't also\n // have to remember to ask for the offset.\n 'scroll-mt-24',\n href && 'hover:bg-ods-bg-hover cursor-pointer',\n className,\n )\n\n if (href) {\n // `Link` is the env-aware embed-shim — delegates to `next/link` on\n // a Next.js host (soft RSC nav, back-button restores the previous\n // page's React state intact), falls back to a plain `<a>` on\n // non-Next embedders. A raw `<a href>` was hard-navigating +\n // losing TanStack-Query state on back, leaving /tickets stuck on\n // its skeleton.\n return (\n <Link href={href} id={id} className={baseCl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