@flamingo-stack/openframe-frontend-core 0.0.636 → 0.0.637-snapshot.20260915091853

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 (102) hide show
  1. package/dist/{chunk-NBERIBPU.js → chunk-365N4BGW.js} +3 -3
  2. package/dist/{chunk-QZ2FIWSL.cjs → chunk-55A6UDFX.cjs} +51 -51
  3. package/dist/{chunk-QZ2FIWSL.cjs.map → chunk-55A6UDFX.cjs.map} +1 -1
  4. package/dist/{chunk-J62TN6A6.js → chunk-757P3SWA.js} +2 -2
  5. package/dist/{chunk-PYM5HXV6.cjs → chunk-7N2BT6R4.cjs} +17 -17
  6. package/dist/{chunk-PYM5HXV6.cjs.map → chunk-7N2BT6R4.cjs.map} +1 -1
  7. package/dist/{chunk-623O7CM7.js → chunk-7TSKDO2N.js} +5 -5
  8. package/dist/{chunk-T2VDE2NT.js → chunk-AFJMR4SJ.js} +2 -2
  9. package/dist/{chunk-DOQORN2B.js → chunk-B2VVPSXS.js} +6 -3
  10. package/dist/{chunk-DOQORN2B.js.map → chunk-B2VVPSXS.js.map} +1 -1
  11. package/dist/{chunk-DUYVHMWB.js → chunk-B7FT6Q4P.js} +2 -2
  12. package/dist/{chunk-2QOWJXPI.cjs → chunk-BPFE222Q.cjs} +10 -10
  13. package/dist/{chunk-2QOWJXPI.cjs.map → chunk-BPFE222Q.cjs.map} +1 -1
  14. package/dist/{chunk-YINRHJOJ.cjs → chunk-D3X2PABP.cjs} +3 -3
  15. package/dist/{chunk-YINRHJOJ.cjs.map → chunk-D3X2PABP.cjs.map} +1 -1
  16. package/dist/{chunk-FCZQNFMZ.cjs → chunk-FS3SPEOM.cjs} +4 -4
  17. package/dist/{chunk-FCZQNFMZ.cjs.map → chunk-FS3SPEOM.cjs.map} +1 -1
  18. package/dist/{chunk-F7LPAEZS.js → chunk-HLNQEI37.js} +4 -4
  19. package/dist/{chunk-5ZA6BJOX.js → chunk-HQ7Z42JB.js} +2 -2
  20. package/dist/{chunk-FX2GBLGC.cjs → chunk-HTAYXKO3.cjs} +36 -36
  21. package/dist/{chunk-FX2GBLGC.cjs.map → chunk-HTAYXKO3.cjs.map} +1 -1
  22. package/dist/{chunk-YE3KMNVL.js → chunk-K3KSWFL3.js} +2 -2
  23. package/dist/{chunk-ZPWZZL26.js → chunk-KMYM7GR4.js} +5 -5
  24. package/dist/{chunk-U4EOQTPM.js → chunk-MMPH67SQ.js} +2 -2
  25. package/dist/{chunk-WW5MBTEC.js → chunk-NE2PRU2L.js} +4 -4
  26. package/dist/{chunk-DABWWSKR.js → chunk-NLFN734Q.js} +2 -2
  27. package/dist/{chunk-SEQK3NB3.cjs → chunk-PMEFDI2N.cjs} +13 -13
  28. package/dist/{chunk-SEQK3NB3.cjs.map → chunk-PMEFDI2N.cjs.map} +1 -1
  29. package/dist/{chunk-ITFOILRB.cjs → chunk-RCKFQEOS.cjs} +3 -3
  30. package/dist/{chunk-ITFOILRB.cjs.map → chunk-RCKFQEOS.cjs.map} +1 -1
  31. package/dist/{chunk-MDV32W2F.cjs → chunk-RLGALJHG.cjs} +4 -4
  32. package/dist/{chunk-MDV32W2F.cjs.map → chunk-RLGALJHG.cjs.map} +1 -1
  33. package/dist/{chunk-YVLJLRCY.cjs → chunk-ROW65NXE.cjs} +3 -3
  34. package/dist/{chunk-YVLJLRCY.cjs.map → chunk-ROW65NXE.cjs.map} +1 -1
  35. package/dist/{chunk-BARCKJOS.js → chunk-RPRKBGEW.js} +2 -2
  36. package/dist/{chunk-EHP3JX36.cjs → chunk-TJHNLK4R.cjs} +17 -17
  37. package/dist/{chunk-EHP3JX36.cjs.map → chunk-TJHNLK4R.cjs.map} +1 -1
  38. package/dist/{chunk-KBDZ6EUM.cjs → chunk-UXGCS5V6.cjs} +18 -18
  39. package/dist/{chunk-KBDZ6EUM.cjs.map → chunk-UXGCS5V6.cjs.map} +1 -1
  40. package/dist/{chunk-LBQNEED6.cjs → chunk-VNXFRBLF.cjs} +6 -3
  41. package/dist/chunk-VNXFRBLF.cjs.map +1 -0
  42. package/dist/{chunk-SP5CMRZC.cjs → chunk-W6YWMZ7F.cjs} +3 -3
  43. package/dist/{chunk-SP5CMRZC.cjs.map → chunk-W6YWMZ7F.cjs.map} +1 -1
  44. package/dist/{chunk-MOUO2EA3.cjs → chunk-YK4TOURB.cjs} +33 -33
  45. package/dist/{chunk-MOUO2EA3.cjs.map → chunk-YK4TOURB.cjs.map} +1 -1
  46. package/dist/{chunk-ZATLZLR2.js → chunk-ZO4GGIHT.js} +2 -2
  47. package/dist/components/case-studies/index.cjs +11 -11
  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/index.cjs +2 -2
  58. package/dist/components/features/index.js +1 -1
  59. package/dist/components/help-center-pages/index.cjs +22 -22
  60. package/dist/components/help-center-pages/index.js +13 -13
  61. package/dist/components/index.cjs +31 -31
  62. package/dist/components/index.js +12 -12
  63. package/dist/components/meeting-scheduler/booking-form.d.ts +1 -8
  64. package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
  65. package/dist/components/meeting-scheduler/index.cjs +24 -28
  66. package/dist/components/meeting-scheduler/index.cjs.map +1 -1
  67. package/dist/components/meeting-scheduler/index.d.ts +1 -7
  68. package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
  69. package/dist/components/meeting-scheduler/index.js +4 -8
  70. package/dist/components/meeting-scheduler/index.js.map +1 -1
  71. package/dist/components/navigation/index.cjs +5 -5
  72. package/dist/components/navigation/index.js +4 -4
  73. package/dist/components/onboarding-guides/index.cjs +5 -5
  74. package/dist/components/onboarding-guides/index.js +4 -4
  75. package/dist/components/tickets/index.cjs +6 -6
  76. package/dist/components/tickets/index.js +5 -5
  77. package/dist/components/ui/index.cjs +2 -2
  78. package/dist/components/ui/index.js +1 -1
  79. package/dist/components/ui/test-run.d.ts +14 -1
  80. package/dist/components/ui/test-run.d.ts.map +1 -1
  81. package/dist/index.cjs +6 -6
  82. package/dist/index.js +5 -5
  83. package/package.json +1 -1
  84. package/src/components/meeting-scheduler/booking-form.tsx +4 -17
  85. package/src/components/meeting-scheduler/index.tsx +0 -8
  86. package/src/components/ui/test-run.tsx +27 -6
  87. package/src/stories/TestRun.stories.tsx +3 -1
  88. package/dist/chunk-LBQNEED6.cjs.map +0 -1
  89. /package/dist/{chunk-NBERIBPU.js.map → chunk-365N4BGW.js.map} +0 -0
  90. /package/dist/{chunk-J62TN6A6.js.map → chunk-757P3SWA.js.map} +0 -0
  91. /package/dist/{chunk-623O7CM7.js.map → chunk-7TSKDO2N.js.map} +0 -0
  92. /package/dist/{chunk-T2VDE2NT.js.map → chunk-AFJMR4SJ.js.map} +0 -0
  93. /package/dist/{chunk-DUYVHMWB.js.map → chunk-B7FT6Q4P.js.map} +0 -0
  94. /package/dist/{chunk-F7LPAEZS.js.map → chunk-HLNQEI37.js.map} +0 -0
  95. /package/dist/{chunk-5ZA6BJOX.js.map → chunk-HQ7Z42JB.js.map} +0 -0
  96. /package/dist/{chunk-YE3KMNVL.js.map → chunk-K3KSWFL3.js.map} +0 -0
  97. /package/dist/{chunk-ZPWZZL26.js.map → chunk-KMYM7GR4.js.map} +0 -0
  98. /package/dist/{chunk-U4EOQTPM.js.map → chunk-MMPH67SQ.js.map} +0 -0
  99. /package/dist/{chunk-WW5MBTEC.js.map → chunk-NE2PRU2L.js.map} +0 -0
  100. /package/dist/{chunk-DABWWSKR.js.map → chunk-NLFN734Q.js.map} +0 -0
  101. /package/dist/{chunk-BARCKJOS.js.map → chunk-RPRKBGEW.js.map} +0 -0
  102. /package/dist/{chunk-ZATLZLR2.js.map → chunk-ZO4GGIHT.js.map} +0 -0
@@ -189,15 +189,17 @@ export function TimingStat({ value, label, className }: { value: string; label:
189
189
  }
190
190
 
191
191
  /** Overall run outcome shown in a test-run controls row. */
192
- export type TestRunStatus = 'idle' | 'running' | 'success' | 'error';
192
+ export type TestRunStatus = 'idle' | 'running' | 'success' | 'error' | 'timeout' | 'canceled';
193
193
 
194
194
  const TEST_RUN_STATUS_TAGS: Record<
195
195
  Exclude<TestRunStatus, 'idle'>,
196
- { label: string; variant: 'warning' | 'success' | 'error' }
196
+ { label: string; variant: 'warning' | 'success' | 'error' | 'grey' }
197
197
  > = {
198
198
  running: { label: 'IN PROCESS', variant: 'warning' },
199
199
  success: { label: 'SUCCESS', variant: 'success' },
200
200
  error: { label: 'ERROR', variant: 'error' },
201
+ timeout: { label: 'TIMED OUT', variant: 'error' },
202
+ canceled: { label: 'CANCELED', variant: 'grey' },
201
203
  };
202
204
 
203
205
  /** Status stat cell: "-" before the first run, then a colored state tag. */
@@ -220,11 +222,25 @@ export function TestRunStatusStat({ status, className }: { status: TestRunStatus
220
222
  * of a live-campaign hook (e.g. Fleet live queries in OpenFrame) without
221
223
  * depending on any concrete backend.
222
224
  */
225
+ /**
226
+ * WHY the campaign ended. Without it every ended run collapses into
227
+ * `campaignStatus: 'finished'` and the Status stat reads SUCCESS even when
228
+ * the run was killed by the client timeout, canceled by the user, or lost
229
+ * its connection before a single host responded.
230
+ */
231
+ export type TestRunStopReason = 'completed' | 'timeout' | 'canceled' | 'error';
232
+
223
233
  export interface TestRunCampaignState {
224
234
  isRunning: boolean;
225
235
  startedAt: Date | null;
226
236
  /** '' before the first run, then 'pending' → 'finished'. */
227
237
  campaignStatus: string;
238
+ /**
239
+ * Set when the campaign reaches 'finished'; null while idle/running.
240
+ * Omitting it keeps the legacy behavior (every finish counts as
241
+ * 'completed').
242
+ */
243
+ stopReason?: TestRunStopReason | null;
228
244
  results: QueryResultRow[];
229
245
  errors: Array<{ error: string }>;
230
246
  stopCampaign: () => void;
@@ -304,13 +320,18 @@ export function useTestRunState(campaign: TestRunCampaignState) {
304
320
  const firstError = isFinished && campaign.errors.length > 0 ? campaign.errors[0].error : null;
305
321
 
306
322
  // Overall run outcome for the Status stat: '-' until a run starts, then
307
- // IN PROCESS while active, and SUCCESS/ERROR once the campaign finishes.
323
+ // IN PROCESS while active. Once finished the reason decides the tag —
324
+ // only a server-completed run may claim SUCCESS; timeout/cancel/transport
325
+ // failure show as what they are instead of a false green.
326
+ const stopReason = campaign.stopReason ?? 'completed';
308
327
  const status: TestRunStatus = isActive
309
328
  ? 'running'
310
329
  : hasRun && isFinished
311
- ? firstError
312
- ? 'error'
313
- : 'success'
330
+ ? stopReason === 'completed'
331
+ ? firstError
332
+ ? 'error'
333
+ : 'success'
334
+ : stopReason
314
335
  : 'idle';
315
336
 
316
337
  // Started/Duration show zeros until the current run's timing is real:
@@ -118,7 +118,7 @@ export const TimingAndSkeleton: Story = {
118
118
  ),
119
119
  };
120
120
 
121
- /** The four Status stat states: "-" before a run, then a colored tag. */
121
+ /** The Status stat states: "-" before a run, then a colored tag. */
122
122
  export const StatusStates: Story = {
123
123
  args: {
124
124
  isActive: false,
@@ -131,6 +131,8 @@ export const StatusStates: Story = {
131
131
  <TestRunStatusStat status="running" />
132
132
  <TestRunStatusStat status="success" />
133
133
  <TestRunStatusStat status="error" />
134
+ <TestRunStatusStat status="timeout" />
135
+ <TestRunStatusStat status="canceled" />
134
136
  </div>
135
137
  ),
136
138
  };