@flamingo-stack/openframe-frontend-core 0.0.615 → 0.0.616-snapshot.20260912195615

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 (107) hide show
  1. package/dist/{chunk-KIQNMCOO.cjs → chunk-2OJVGAGX.cjs} +4 -4
  2. package/dist/{chunk-KIQNMCOO.cjs.map → chunk-2OJVGAGX.cjs.map} +1 -1
  3. package/dist/{chunk-TDA355L7.cjs → chunk-332JHI2D.cjs} +3 -3
  4. package/dist/{chunk-TDA355L7.cjs.map → chunk-332JHI2D.cjs.map} +1 -1
  5. package/dist/{chunk-A6ZMLRBR.js → chunk-45OAW4M2.js} +4 -4
  6. package/dist/{chunk-RRGQTQ6T.js → chunk-5KKLN7Q2.js} +2 -2
  7. package/dist/{chunk-N3G3YG3V.cjs → chunk-67XFJ442.cjs} +271 -235
  8. package/dist/chunk-67XFJ442.cjs.map +1 -0
  9. package/dist/{chunk-L3H6VYDB.js → chunk-6RMFEGJ4.js} +2 -2
  10. package/dist/{chunk-5WHUUHSH.cjs → chunk-7FFKXXWY.cjs} +50 -50
  11. package/dist/{chunk-5WHUUHSH.cjs.map → chunk-7FFKXXWY.cjs.map} +1 -1
  12. package/dist/{chunk-TOAJWB3V.js → chunk-7YHUP5BR.js} +2 -2
  13. package/dist/{chunk-F7R7J4HK.cjs → chunk-BJDQZH62.cjs} +3 -3
  14. package/dist/{chunk-F7R7J4HK.cjs.map → chunk-BJDQZH62.cjs.map} +1 -1
  15. package/dist/{chunk-NLKYBYPV.js → chunk-CGCV4QT2.js} +5 -5
  16. package/dist/{chunk-XJ5KH37F.js → chunk-CXEGV3ZS.js} +2 -2
  17. package/dist/{chunk-H6TOSMGU.cjs → chunk-FMNS5NN2.cjs} +13 -13
  18. package/dist/{chunk-H6TOSMGU.cjs.map → chunk-FMNS5NN2.cjs.map} +1 -1
  19. package/dist/{chunk-4C3BOBV6.js → chunk-GH4F4ODL.js} +4 -4
  20. package/dist/{chunk-UMVCVMCG.js → chunk-HGPGF6SF.js} +2 -2
  21. package/dist/{chunk-L6UVTIJP.cjs → chunk-HR6CHKD6.cjs} +4 -4
  22. package/dist/{chunk-L6UVTIJP.cjs.map → chunk-HR6CHKD6.cjs.map} +1 -1
  23. package/dist/{chunk-YSG26SQ7.cjs → chunk-JZELYIFZ.cjs} +33 -33
  24. package/dist/{chunk-YSG26SQ7.cjs.map → chunk-JZELYIFZ.cjs.map} +1 -1
  25. package/dist/{chunk-NLYWRJ6J.cjs → chunk-LFLJ3IHE.cjs} +17 -17
  26. package/dist/{chunk-NLYWRJ6J.cjs.map → chunk-LFLJ3IHE.cjs.map} +1 -1
  27. package/dist/{chunk-HIMST6NK.js → chunk-RZURBPBS.js} +2 -2
  28. package/dist/{chunk-BESOUYM7.cjs → chunk-TRY3CUWJ.cjs} +18 -18
  29. package/dist/{chunk-BESOUYM7.cjs.map → chunk-TRY3CUWJ.cjs.map} +1 -1
  30. package/dist/{chunk-TOXJS4HN.cjs → chunk-ULM5FCFN.cjs} +3 -3
  31. package/dist/{chunk-TOXJS4HN.cjs.map → chunk-ULM5FCFN.cjs.map} +1 -1
  32. package/dist/{chunk-X6G7JIX6.cjs → chunk-USP3UWID.cjs} +34 -34
  33. package/dist/{chunk-X6G7JIX6.cjs.map → chunk-USP3UWID.cjs.map} +1 -1
  34. package/dist/{chunk-OKWHWDA3.js → chunk-UVK7AQAG.js} +2 -2
  35. package/dist/{chunk-646YZIUK.js → chunk-UVXMIZYK.js} +5 -5
  36. package/dist/{chunk-RJT7I2Y4.cjs → chunk-V23BJC2Q.cjs} +10 -10
  37. package/dist/{chunk-RJT7I2Y4.cjs.map → chunk-V23BJC2Q.cjs.map} +1 -1
  38. package/dist/{chunk-AJRHEX5D.js → chunk-VHS3OYE4.js} +61 -25
  39. package/dist/chunk-VHS3OYE4.js.map +1 -0
  40. package/dist/{chunk-JYHDJD3U.js → chunk-VJJ7LGOI.js} +3 -3
  41. package/dist/{chunk-GHMTJJCC.cjs → chunk-VNNIRX23.cjs} +3 -3
  42. package/dist/{chunk-GHMTJJCC.cjs.map → chunk-VNNIRX23.cjs.map} +1 -1
  43. package/dist/{chunk-KKYE3E66.js → chunk-WFM5OAM6.js} +2 -2
  44. package/dist/{chunk-TWE6KYQM.js → chunk-ZJYZOOTU.js} +2 -2
  45. package/dist/{chunk-FBL32U6S.cjs → chunk-ZQOK4TCN.cjs} +17 -17
  46. package/dist/{chunk-FBL32U6S.cjs.map → chunk-ZQOK4TCN.cjs.map} +1 -1
  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/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/index.cjs +21 -21
  64. package/dist/components/meeting-scheduler/index.js +1 -1
  65. package/dist/components/navigation/index.cjs +5 -5
  66. package/dist/components/navigation/index.js +4 -4
  67. package/dist/components/onboarding-guides/index.cjs +5 -5
  68. package/dist/components/onboarding-guides/index.js +4 -4
  69. package/dist/components/tickets/index.cjs +6 -6
  70. package/dist/components/tickets/index.js +5 -5
  71. package/dist/components/ui/data-table/data-table-header.d.ts +9 -1
  72. package/dist/components/ui/data-table/data-table-header.d.ts.map +1 -1
  73. package/dist/components/ui/data-table/types.d.ts +9 -0
  74. package/dist/components/ui/data-table/types.d.ts.map +1 -1
  75. package/dist/components/ui/index.cjs +2 -2
  76. package/dist/components/ui/index.js +1 -1
  77. package/dist/components/ui/table/table-header.d.ts.map +1 -1
  78. package/dist/components/ui/table/types.d.ts +7 -0
  79. package/dist/components/ui/table/types.d.ts.map +1 -1
  80. package/dist/index.cjs +6 -6
  81. package/dist/index.js +5 -5
  82. package/dist/types/design-doc.d.ts +34 -43
  83. package/dist/types/design-doc.d.ts.map +1 -1
  84. package/package.json +1 -1
  85. package/src/__tests__/data-table-header-hint.test.tsx +69 -0
  86. package/src/components/ui/data-table/data-table-header.tsx +47 -11
  87. package/src/components/ui/data-table/types.ts +9 -0
  88. package/src/components/ui/table/__tests__/header-hint.test.tsx +85 -0
  89. package/src/components/ui/table/table-header.tsx +34 -9
  90. package/src/components/ui/table/types.ts +7 -0
  91. package/src/types/design-doc.ts +59 -51
  92. package/dist/chunk-AJRHEX5D.js.map +0 -1
  93. package/dist/chunk-N3G3YG3V.cjs.map +0 -1
  94. /package/dist/{chunk-A6ZMLRBR.js.map → chunk-45OAW4M2.js.map} +0 -0
  95. /package/dist/{chunk-RRGQTQ6T.js.map → chunk-5KKLN7Q2.js.map} +0 -0
  96. /package/dist/{chunk-L3H6VYDB.js.map → chunk-6RMFEGJ4.js.map} +0 -0
  97. /package/dist/{chunk-TOAJWB3V.js.map → chunk-7YHUP5BR.js.map} +0 -0
  98. /package/dist/{chunk-NLKYBYPV.js.map → chunk-CGCV4QT2.js.map} +0 -0
  99. /package/dist/{chunk-XJ5KH37F.js.map → chunk-CXEGV3ZS.js.map} +0 -0
  100. /package/dist/{chunk-4C3BOBV6.js.map → chunk-GH4F4ODL.js.map} +0 -0
  101. /package/dist/{chunk-UMVCVMCG.js.map → chunk-HGPGF6SF.js.map} +0 -0
  102. /package/dist/{chunk-HIMST6NK.js.map → chunk-RZURBPBS.js.map} +0 -0
  103. /package/dist/{chunk-OKWHWDA3.js.map → chunk-UVK7AQAG.js.map} +0 -0
  104. /package/dist/{chunk-646YZIUK.js.map → chunk-UVXMIZYK.js.map} +0 -0
  105. /package/dist/{chunk-JYHDJD3U.js.map → chunk-VJJ7LGOI.js.map} +0 -0
  106. /package/dist/{chunk-KKYE3E66.js.map → chunk-WFM5OAM6.js.map} +0 -0
  107. /package/dist/{chunk-TWE6KYQM.js.map → chunk-ZJYZOOTU.js.map} +0 -0
@@ -3,9 +3,26 @@
3
3
  //
4
4
  // Participant sections are keyed by the employee DEPARTMENT (FK to the ONE
5
5
  // `departments` table — see department.ts); there is no function enum.
6
- // Completion-gate math and status transitions live in the hub's
6
+ // A doc has no status: it is READY when every section is signed off and no
7
+ // blocking comment is open. That math lives in the hub's
7
8
  // `lib/utils/design-doc-gate.ts` (isomorphic, shared by server + client).
8
9
 
10
+ // MIGRATION NOTE (2026-09-11). This file dropped `status`, `DesignDocStatus`,
11
+ // `DesignDocStatusTransition`, `approved_at`, `dri_vacated_by`, `by_status` and
12
+ // `facets.status`, and added `spec_mode`. Two things a reader will ask:
13
+ //
14
+ // · LOCKSTEP — the hub is the ONLY consumer. Nothing else in this package
15
+ // references those names, and neither does the sibling oss-frontend
16
+ // checkout; every hub reference moves in multi-platform-hub#1257, which
17
+ // merges after this package is released and the hub's pin bumped.
18
+ // · `dri_vacated_by` was already VESTIGIAL, so removing it drops no live
19
+ // protection. It existed for an anti-self-serve rule — a DRI who also held
20
+ // management could not vacate the seat, act as a "third party" and approve
21
+ // their own doc — that was removed earlier by product decision, and no
22
+ // database column ever backed the field. There is no approval step left to
23
+ // protect: readiness is DERIVED from the department sign-offs, so there is
24
+ // no seat to vacate and nothing to self-approve.
25
+
9
26
  import type { RoadmapItem } from '../components/chat/types/entities/roadmap-item';
10
27
  import type { DeliveryItem } from './delivery';
11
28
  import type { DepartmentRef } from './department';
@@ -15,12 +32,12 @@ import type { EntityAuthor } from './entity-author';
15
32
  // ---------------------------------------------------------------------------
16
33
  // Value vocabularies — DATA, not source code.
17
34
  //
18
- // Every enumerable design-doc value (doc status, tier, participant status,
19
- // comment type/status, link type, media type) is a row in the
20
- // `design_doc_vocabulary` table, with its label, badge colour, display order
21
- // and the semantic ROLES it claims. Nothing here lists members: a union of
22
- // literals would be a second, stale copy of that table and would make adding a
23
- // status a deploy instead of an INSERT.
35
+ // Every enumerable design-doc value (tier, spec mode, participant status, comment
36
+ // type/status, link type, media type) is a row in the `design_doc_vocabulary`
37
+ // table, with its label, badge colour, display order and the semantic ROLES it
38
+ // claims. Nothing here lists members: a union of literals would be a second,
39
+ // stale copy of that table and would make adding a value a deploy instead of an
40
+ // INSERT.
24
41
  //
25
42
  // What stays in code is the CAPABILITY vocabulary — the role names the gate
26
43
  // understands and the renderers a link type can bind to (both declared in the
@@ -36,7 +53,7 @@ import type { EntityAuthor } from './entity-author';
36
53
  /** One value of `design_doc_vocabulary.kind` — the STRUCTURAL list (one per
37
54
  * value column), the only design-doc vocabulary that is code. */
38
55
  export type DesignDocVocabularyKind =
39
- 'status' | 'tier' | 'participant_status' | 'comment_type' | 'comment_status' | 'link_type' | 'media_type';
56
+ 'tier' | 'spec_mode' | 'participant_status' | 'comment_type' | 'comment_status' | 'link_type' | 'media_type';
40
57
 
41
58
  /** A `design_doc_vocabulary` row, as the DAL and the vocabulary API return it. */
42
59
  export interface DesignDocVocabularyOption {
@@ -47,13 +64,13 @@ export interface DesignDocVocabularyOption {
47
64
  /** A `StatusBadge` colorScheme name (validated against the badge's own union
48
65
  * when the hub reads the row — an unknown scheme degrades to 'default'). */
49
66
  color_scheme: string;
50
- /** Human copy for surfaces that explain a value rather than just naming it
51
- * (the dashboard's stat tiles). */
67
+ /** Human copy for surfaces that EXPLAIN a value rather than just naming it —
68
+ * the spec-mode picker's per-option hint. Display only. */
52
69
  description: string | null;
53
70
  display_order: number;
54
71
  is_active: boolean;
55
- /** Engine capabilities this member claims (`complete`, `blocks_approval`,
56
- * `locked`, …). The names live in the hub's gate module. */
72
+ /** Engine capabilities this member claims (`complete`, `blocks_ready`, …).
73
+ * The names live in the hub's gate module. */
57
74
  roles: string[];
58
75
  /** link_type only: which renderer previews it. */
59
76
  render: DesignDocLinkRender | null;
@@ -64,35 +81,22 @@ export interface DesignDocVocabularyOption {
64
81
  /** link_type only: where the artifact comes from, shown beside the label. */
65
82
  source: string | null;
66
83
  placeholder: string | null;
67
- /** status only: the verb on the button that moves a doc INTO this status. */
68
- action_label: string | null;
69
84
  }
70
85
 
71
86
  /** How the doc page previews a link type. A CAPABILITY (each key is a
72
87
  * component in the renderer), so this one IS code — a DB row binds to it. */
73
88
  export type DesignDocLinkRender = 'task' | 'figma' | 'claude' | 'link';
74
89
 
75
- /** One legal status move, resolved to values by the DAL. */
76
- export interface DesignDocStatusTransition {
77
- from: string;
78
- to: string;
79
- /** From-specific button copy when it differs from the target's verb
80
- * (`abandoned -> draft` reads "Reopen", not "Back to draft"). */
81
- action_label: string | null;
82
- display_order: number;
83
- }
84
-
85
- /** The whole vocabulary in one payload — what every surface (server gate,
90
+ /** The whole vocabulary in one payload — what every surface (server rules,
86
91
  * client badges, pickers, validators) reads instead of a literal list. */
87
92
  export interface DesignDocVocabulary {
88
93
  options: DesignDocVocabularyOption[];
89
- transitions: DesignDocStatusTransition[];
90
94
  }
91
95
 
92
- /** A `design_doc_vocabulary.value` of kind `status`. */
93
- export type DesignDocStatus = string;
94
96
  /** A `design_doc_vocabulary.value` of kind `tier`. */
95
97
  export type DesignDocTier = string;
98
+ /** A `design_doc_vocabulary.value` of kind `spec_mode`. */
99
+ export type DesignDocSpecMode = string;
96
100
  /** A `design_doc_vocabulary.value` of kind `participant_status`. */
97
101
  export type DesignDocParticipantStatus = string;
98
102
  /** A `design_doc_vocabulary.value` of kind `comment_type`. */
@@ -159,7 +163,7 @@ export interface DesignDocMedia {
159
163
 
160
164
  /**
161
165
  * A comment. ROOT comments (`parent_comment_id === null`) carry `comment_type`
162
- * + `status` and gate approval when `blocking` + `open`; REPLIES carry neither
166
+ * + `status` and keep the doc from being ready when `blocking` + `open`; REPLIES carry neither
163
167
  * (single-level threads — a reply to a reply is re-parented to the root).
164
168
  */
165
169
  export interface DesignDocComment {
@@ -224,19 +228,15 @@ export interface DesignDoc {
224
228
  title: string;
225
229
  slug: string;
226
230
  tier: DesignDocTier;
231
+ /**
232
+ * How much of the solution is knowable before build starts — spec-first
233
+ * (settled up front) or discovery-first (engineering resolves the design
234
+ * while building). A LABEL on the doc: no rule reads it.
235
+ */
236
+ spec_mode: DesignDocSpecMode;
227
237
  summary: string | null;
228
238
  content: string | null;
229
- status: DesignDocStatus;
230
239
  author_id: string | null;
231
- /**
232
- * EVERYONE who has handed the DRI role away on this doc (appended, never
233
- * overwritten). The third-party break-glass excludes all of them: a DRI who
234
- * also holds management could otherwise vacate the seat, act as a "third
235
- * party" on their own doc and approve it alone — and with a single scalar,
236
- * simply hand the seat on twice to erase the memory of their own vacating.
237
- */
238
- dri_vacated_by: string[];
239
- approved_at: string | null;
240
240
  created_at: string;
241
241
  updated_at: string;
242
242
  /** DRI, hydrated via the shared author hydrator. */
@@ -245,8 +245,8 @@ export interface DesignDoc {
245
245
  * Engineering feature leads — the people reviewing the doc alongside the
246
246
  * department sign-off sections. DISPLAY-ONLY attribution, like
247
247
  * `how_i_work_participants`: being listed grants NO rights (nothing in the
248
- * hub's `design-doc-gate.ts` reads it) and is NOT an input to the approval
249
- * gate. The doc-level owner with actual levers is the DRI (`author_id`).
248
+ * hub's `design-doc-gate.ts` reads it) and is NOT an input to readiness.
249
+ * The doc-level owner with actual levers is the DRI (`author_id`).
250
250
  *
251
251
  * Carried on BOTH the list and the detail payload — the dashboard renders
252
252
  * their avatars in its own column.
@@ -296,6 +296,8 @@ export interface CreateDesignDocData {
296
296
  title: string;
297
297
  slug: string;
298
298
  tier: DesignDocTier;
299
+ /** Defaults to the `spec_mode` row claiming `default` when omitted. */
300
+ spec_mode?: DesignDocSpecMode;
299
301
  summary?: string | null;
300
302
  /** Spec markdown (Why / What / How); the create screen carries the same body editor as edit. */
301
303
  content?: string | null;
@@ -308,20 +310,21 @@ export interface CreateDesignDocData {
308
310
  }
309
311
 
310
312
  /**
311
- * Doc-level allowlist (PUT). `status` and `participants` are NOT here — status
312
- * only moves through PATCH (the gate), participants only through their routes.
313
+ * Doc-level allowlist (PUT). `participants` are NOT here — they only move
314
+ * through their own routes.
313
315
  */
314
316
  export interface UpdateDesignDocData {
315
317
  title?: string;
316
318
  slug?: string;
317
319
  tier?: DesignDocTier;
320
+ spec_mode?: DesignDocSpecMode;
318
321
  summary?: string | null;
319
322
  content?: string | null;
320
323
  author_id?: string | null;
321
324
  /**
322
325
  * Replaces the whole feature-lead set (`[]` clears it); omitted leaves it
323
326
  * untouched. Display-only, so it rides the STANDING floor like the title —
324
- * not the DRI-only levers, and not the frozen decision record.
327
+ * not the DRI-only levers.
325
328
  */
326
329
  feature_lead_ids?: string[];
327
330
  links?: DesignDocLinkInput[];
@@ -355,8 +358,13 @@ export interface AddDesignDocCommentData {
355
358
  body: string;
356
359
  }
357
360
 
361
+ /** The dashboard's readiness filter (`?ready=`). */
362
+ export type DesignDocReadyFilter = 'ready' | 'not_ready';
363
+
358
364
  export interface DesignDocFilters {
359
- status?: string;
365
+ ready?: DesignDocReadyFilter;
366
+ /** One or more `spec_mode` values (CSV on the wire). */
367
+ spec_mode?: string;
360
368
  search?: string;
361
369
  mine?: 'open';
362
370
  limit?: number;
@@ -366,16 +374,16 @@ export interface DesignDocFilters {
366
374
  export interface DesignDocListResponse {
367
375
  data: DesignDoc[];
368
376
  count: number;
369
- /** Server-computed status facet counts (how-i-work feed convention). */
370
- facets: { status: Record<string, number> };
377
+ /** Server-computed spec-mode counts over the scope, MINUS the spec-mode
378
+ * filter itself — so a filtered row still shows what the other value holds. */
379
+ facets: { spec_mode: Record<string, number> };
371
380
  }
372
381
 
373
382
  export interface DesignDocStats {
374
383
  total: number;
375
- /** One count per `status` vocabulary row (zeros included), keyed by value —
376
- * never a fixed set of named keys, so a status added to the table gets a
377
- * tile without a type change. */
378
- by_status: Record<string, number>;
384
+ /** Docs whose every section is signed off with no open blocking comment. */
385
+ ready: number;
386
+ not_ready: number;
379
387
  waiting_on_me_docs: number;
380
388
  waiting_on_me_tasks: number;
381
389
  }