@cosmicdrift/kumiko-renderer 0.415.0 → 0.417.0

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 (221) hide show
  1. package/dist/app/action-form-body.d.ts +2 -5
  2. package/dist/app/action-form-body.js +50 -22
  3. package/dist/app/action-form-support.d.ts +4 -1
  4. package/dist/app/action-form-support.js +8 -4
  5. package/dist/app/client-actions.js +6 -4
  6. package/dist/app/config-edit-body.js +83 -82
  7. package/dist/app/entity-list-screen.js +1 -1
  8. package/dist/app/extension-sections.d.ts +2 -0
  9. package/dist/app/header-actions-bar.d.ts +3 -1
  10. package/dist/app/header-actions-bar.js +12 -4
  11. package/dist/app/locked-screen-header.d.ts +2 -0
  12. package/dist/app/locked-screen-header.js +8 -1
  13. package/dist/app/projection-detail-body.js +29 -8
  14. package/dist/app/projection-detail-guidance.d.ts +2 -1
  15. package/dist/app/projection-detail-guidance.js +45 -30
  16. package/dist/app/projection-detail-header-model.d.ts +1 -1
  17. package/dist/app/projection-detail-header-model.js +14 -6
  18. package/dist/app/projection-detail-header-region.js +25 -9
  19. package/dist/app/projection-detail-header.d.ts +2 -0
  20. package/dist/app/projection-detail-header.js +31 -4
  21. package/dist/app/projection-detail-navigation.d.ts +4 -0
  22. package/dist/app/projection-detail-navigation.js +5 -1
  23. package/dist/app/projection-list-shim.js +1 -0
  24. package/dist/app/row-actions.d.ts +4 -0
  25. package/dist/app/row-actions.js +19 -3
  26. package/dist/app/screen-shared.d.ts +1 -0
  27. package/dist/app/screen-shared.js +23 -3
  28. package/dist/app/use-projection-detail-actions.d.ts +16 -1
  29. package/dist/app/use-projection-detail-actions.js +23 -3
  30. package/dist/app/use-projection-detail-data.d.ts +2 -0
  31. package/dist/app/use-projection-detail-data.js +53 -10
  32. package/dist/app/use-projection-list-data.js +1 -1
  33. package/dist/card-options.d.ts +2 -0
  34. package/dist/components/ai-assist-payload.d.ts +2 -0
  35. package/dist/components/ai-assist-payload.js +8 -0
  36. package/dist/components/choice-chip-class.d.ts +1 -0
  37. package/dist/components/choice-chip-class.js +9 -0
  38. package/dist/components/edit-mounts.d.ts +3 -2
  39. package/dist/components/edit-mounts.js +2 -2
  40. package/dist/components/grid-cell-for-field.js +1 -1
  41. package/dist/components/multi-select-chips.d.ts +10 -0
  42. package/dist/components/multi-select-chips.js +19 -0
  43. package/dist/components/narrow-description.d.ts +3 -0
  44. package/dist/components/narrow-description.js +12 -0
  45. package/dist/components/related-list-section.d.ts +5 -3
  46. package/dist/components/related-list-section.js +52 -35
  47. package/dist/components/related-photo-grid.d.ts +11 -0
  48. package/dist/components/related-photo-grid.js +54 -0
  49. package/dist/components/render-edit-action-button.d.ts +2 -2
  50. package/dist/components/render-edit-field-grid.d.ts +12 -3
  51. package/dist/components/render-edit-field-grid.js +60 -18
  52. package/dist/components/render-edit-fields-section.js +45 -11
  53. package/dist/components/render-edit-header-actions.d.ts +2 -1
  54. package/dist/components/render-edit-header-actions.js +18 -1
  55. package/dist/components/render-edit-layout.js +5 -3
  56. package/dist/components/render-edit-logic.js +1 -0
  57. package/dist/components/render-edit-section-kinds.js +59 -10
  58. package/dist/components/render-edit-titles.js +1 -1
  59. package/dist/components/render-edit-types.d.ts +22 -1
  60. package/dist/components/render-field-ai-assist.d.ts +13 -0
  61. package/dist/components/render-field-ai-assist.js +90 -0
  62. package/dist/components/render-field-choice-inputs.js +4 -0
  63. package/dist/components/render-field-control.d.ts +1 -1
  64. package/dist/components/render-field-control.js +19 -9
  65. package/dist/components/render-field-value-chips.d.ts +9 -0
  66. package/dist/components/render-field-value-chips.js +47 -0
  67. package/dist/components/render-field-write-only.js +12 -4
  68. package/dist/components/render-list-hint-columns.d.ts +2 -0
  69. package/dist/components/render-list-hint-columns.js +43 -5
  70. package/dist/components/render-list-reference-columns.js +2 -4
  71. package/dist/components/render-list-row-tone.d.ts +2 -0
  72. package/dist/components/render-list-row-tone.js +6 -0
  73. package/dist/components/render-list-table-props.d.ts +13 -2
  74. package/dist/components/render-list-table-props.js +9 -3
  75. package/dist/components/render-list-types.d.ts +4 -0
  76. package/dist/components/render-list.js +12 -4
  77. package/dist/components/use-render-edit-sections.js +5 -1
  78. package/dist/components/use-render-list-columns.js +3 -3
  79. package/dist/components/write-form-registry.d.ts +13 -0
  80. package/dist/components/write-form-registry.js +6 -0
  81. package/dist/components/write-form-section.d.ts +5 -1
  82. package/dist/components/write-form-section.js +55 -16
  83. package/dist/headless/form/form-controller.d.ts +1 -0
  84. package/dist/headless/form/form-controller.js +1 -1
  85. package/dist/headless/format/index.d.ts +1 -0
  86. package/dist/headless/format/index.js +21 -0
  87. package/dist/headless/format/phone.d.ts +1 -0
  88. package/dist/headless/format/phone.js +8 -0
  89. package/dist/headless/format/relative-time.d.ts +15 -0
  90. package/dist/headless/format/relative-time.js +63 -0
  91. package/dist/headless/format/safe-locale.d.ts +1 -0
  92. package/dist/headless/format/safe-locale.js +13 -0
  93. package/dist/headless/index.d.ts +2 -2
  94. package/dist/headless/index.js +2 -2
  95. package/dist/headless/view-model/edit.d.ts +3 -2
  96. package/dist/headless/view-model/edit.js +162 -36
  97. package/dist/headless/view-model/field-text.d.ts +9 -0
  98. package/dist/headless/view-model/field-text.js +19 -0
  99. package/dist/headless/view-model/index.d.ts +1 -0
  100. package/dist/headless/view-model/index.js +1 -0
  101. package/dist/headless/view-model/list.js +6 -0
  102. package/dist/headless/view-model/types.d.ts +76 -5
  103. package/dist/hooks/use-list-table.js +11 -6
  104. package/dist/i18n-defaults.js +9 -2
  105. package/dist/index.d.ts +1 -1
  106. package/dist/primitives-record-guidance.d.ts +32 -1
  107. package/dist/primitives-share-types.d.ts +82 -0
  108. package/dist/primitives-share-types.js +1 -0
  109. package/dist/primitives.d.ts +44 -86
  110. package/dist/web/app/bold-markup.d.ts +3 -0
  111. package/dist/web/app/bold-markup.js +14 -0
  112. package/dist/web/app/dashboard-body.js +8 -3
  113. package/dist/web/app/dashboard-list-panel.js +8 -4
  114. package/dist/web/app/dashboard-panel-columns.d.ts +9 -0
  115. package/dist/web/app/dashboard-panel-columns.js +14 -0
  116. package/dist/web/app/dashboard-panels.js +31 -3
  117. package/dist/web/app/dashboard-shared.d.ts +3 -1
  118. package/dist/web/app/dashboard-shared.js +4 -4
  119. package/dist/web/app/dashboard-stat-group-panel.d.ts +1 -1
  120. package/dist/web/app/dashboard-stat-group-panel.js +24 -3
  121. package/dist/web/app/dashboard-text-panel.d.ts +1 -0
  122. package/dist/web/app/dashboard-text-panel.js +18 -11
  123. package/dist/web/app/relative-time.d.ts +0 -5
  124. package/dist/web/app/relative-time.js +11 -21
  125. package/dist/web/components/config-cascade.d.ts +2 -1
  126. package/dist/web/components/config-cascade.js +16 -4
  127. package/dist/web/drawn-icons.js +2 -1
  128. package/dist/web/layout/header-action-pinned.d.ts +4 -2
  129. package/dist/web/layout/header-action-pinned.js +13 -4
  130. package/dist/web/layout/header-overflow-menu.d.ts +2 -0
  131. package/dist/web/layout/header-overflow-menu.js +2 -0
  132. package/dist/web/layout/notification-bell.js +12 -3
  133. package/dist/web/layout/page-header-slot.d.ts +2 -0
  134. package/dist/web/layout/page-header-slot.js +4 -0
  135. package/dist/web/layout/screen-focus.js +4 -1
  136. package/dist/web/layout/shell-header.js +13 -5
  137. package/dist/web/primitives/banner.js +24 -8
  138. package/dist/web/primitives/card.js +5 -3
  139. package/dist/web/primitives/combobox.js +2 -2
  140. package/dist/web/primitives/data-table/actions-column.js +1 -1
  141. package/dist/web/primitives/data-table/card-body.d.ts +1 -1
  142. package/dist/web/primitives/data-table/card-body.js +37 -14
  143. package/dist/web/primitives/data-table/card-frame.d.ts +2 -0
  144. package/dist/web/primitives/data-table/card-frame.js +3 -0
  145. package/dist/web/primitives/data-table/card-row.js +34 -10
  146. package/dist/web/primitives/data-table/card-sort-select.js +1 -1
  147. package/dist/web/primitives/data-table/card-view.js +1 -1
  148. package/dist/web/primitives/data-table/data-cell-props.d.ts +4 -1
  149. package/dist/web/primitives/data-table/data-cell-props.js +3 -0
  150. package/dist/web/primitives/data-table/density.d.ts +3 -1
  151. package/dist/web/primitives/data-table/density.js +11 -4
  152. package/dist/web/primitives/data-table/row-click-guard.d.ts +2 -0
  153. package/dist/web/primitives/data-table/row-click-guard.js +19 -0
  154. package/dist/web/primitives/data-table/row-render-parts.d.ts +1 -1
  155. package/dist/web/primitives/data-table/row-render-parts.js +3 -5
  156. package/dist/web/primitives/data-table/sort-options-select.js +2 -2
  157. package/dist/web/primitives/data-table/sortable-header.js +4 -4
  158. package/dist/web/primitives/data-table/table-body.js +3 -1
  159. package/dist/web/primitives/data-table/table-chrome.js +1 -3
  160. package/dist/web/primitives/data-table/table-content.js +6 -6
  161. package/dist/web/primitives/data-table/table-data-cell.js +31 -17
  162. package/dist/web/primitives/data-table/table-header-row.js +1 -1
  163. package/dist/web/primitives/data-table/table-view.js +1 -1
  164. package/dist/web/primitives/data-table/toolbar.js +6 -7
  165. package/dist/web/primitives/data-table/use-data-table-state.d.ts +6 -1
  166. package/dist/web/primitives/data-table/use-data-table-state.js +12 -2
  167. package/dist/web/primitives/data-table-cell.d.ts +17 -3
  168. package/dist/web/primitives/data-table-cell.js +130 -36
  169. package/dist/web/primitives/data-table.js +1 -1
  170. package/dist/web/primitives/default-form.d.ts +1 -1
  171. package/dist/web/primitives/default-form.js +15 -11
  172. package/dist/web/primitives/drawer.js +2 -3
  173. package/dist/web/primitives/facet-filter.d.ts +1 -1
  174. package/dist/web/primitives/facet-filter.js +2 -5
  175. package/dist/web/primitives/facet-search-filter.js +1 -1
  176. package/dist/web/primitives/facet-trigger-label.d.ts +1 -4
  177. package/dist/web/primitives/facet-trigger-label.js +4 -7
  178. package/dist/web/primitives/field.js +15 -8
  179. package/dist/web/primitives/form-footer-parts.js +6 -3
  180. package/dist/web/primitives/form.js +6 -8
  181. package/dist/web/primitives/index.js +4 -0
  182. package/dist/web/primitives/inline-suffix.d.ts +2 -0
  183. package/dist/web/primitives/inline-suffix.js +5 -0
  184. package/dist/web/primitives/input-choice-kinds.js +12 -2
  185. package/dist/web/primitives/input-number-kinds.js +2 -2
  186. package/dist/web/primitives/input-text-kinds.js +1 -1
  187. package/dist/web/primitives/layout-elements.d.ts +4 -4
  188. package/dist/web/primitives/layout-elements.js +50 -13
  189. package/dist/web/primitives/layout.d.ts +1 -1
  190. package/dist/web/primitives/layout.js +1 -1
  191. package/dist/web/primitives/locale-number.d.ts +0 -1
  192. package/dist/web/primitives/locale-number.js +1 -13
  193. package/dist/web/primitives/money-input.js +10 -8
  194. package/dist/web/primitives/narrow-pinned-footer.js +7 -3
  195. package/dist/web/primitives/number-input.d.ts +2 -1
  196. package/dist/web/primitives/number-input.js +11 -5
  197. package/dist/web/primitives/page-header.d.ts +1 -1
  198. package/dist/web/primitives/page-header.js +8 -1
  199. package/dist/web/primitives/pager.js +12 -21
  200. package/dist/web/primitives/photo-grid.d.ts +3 -0
  201. package/dist/web/primitives/photo-grid.js +6 -0
  202. package/dist/web/primitives/record-steps.d.ts +1 -1
  203. package/dist/web/primitives/record-steps.js +7 -16
  204. package/dist/web/primitives/record-summary.d.ts +1 -1
  205. package/dist/web/primitives/record-summary.js +8 -3
  206. package/dist/web/primitives/row-actions.js +38 -24
  207. package/dist/web/primitives/step-list.d.ts +3 -0
  208. package/dist/web/primitives/step-list.js +11 -0
  209. package/dist/web/primitives/use-container-narrow.d.ts +12 -0
  210. package/dist/web/primitives/use-container-narrow.js +42 -0
  211. package/dist/web/ui/input.js +1 -1
  212. package/dist/web/ui/textarea.js +1 -1
  213. package/dist/web/widgets/dashboard-list-cards.js +6 -3
  214. package/dist/web/widgets/dashboard-list.d.ts +6 -1
  215. package/dist/web/widgets/dashboard-list.js +12 -7
  216. package/dist/web/widgets/drawer-panel-class.js +1 -1
  217. package/dist/web/widgets/progress-list.js +1 -1
  218. package/dist/web/widgets/stat-box-cell.js +1 -1
  219. package/package.json +5 -5
  220. package/src/changes.json +105 -0
  221. package/src/web/styles.css +3 -2
@@ -32,15 +32,18 @@ export function DashboardListCards({ columns, rows, testId, rowToneField, titleF
32
32
  const plain = columns.filter((column) => column.hint === undefined);
33
33
  const badgeColumns = plain.filter((column) => column.display === "badge");
34
34
  const buttonColumns = plain.filter((column) => column.display === "button");
35
- const otherColumns = plain.filter((column) => column.display !== "badge" && column.display !== "button");
35
+ const otherColumns = plain.filter((column) => column.display !== "badge" && column.display !== "button" && column.hiddenInCards !== true);
36
36
  const cell = (column, row) => (_jsx(DashboardListCell, { column: column, row: row, ...cellProps }, column.field));
37
37
  return (_jsx("ul", { "data-testid": testId, className: "m-0 flex list-none flex-col gap-2 p-0", children: rows.map((row, index) => {
38
38
  const detail = detailOf(hintColumn?.hint, row);
39
- const badges = badgeColumns.filter((column) => hasValue(row[column.field]));
39
+ const allBadges = badgeColumns.filter((column) => hasValue(row[column.field]));
40
+ // First badge (type) heads the card next to the time; further badges (e.g. AI) sit bottom left.
41
+ const badges = allBadges.slice(0, 1);
42
+ const footBadges = allBadges.slice(1);
40
43
  const buttons = buttonColumns.filter((column) => hasValue(row[column.field]));
41
44
  const others = otherColumns.filter((column) => hasValue(row[column.field]));
42
45
  return (_jsxs("li", { "data-testid": "dashboard-list-card", className: cn("flex flex-col gap-1 rounded-lg border border-border bg-card px-3 py-2.5", cardToneClass(rowToneField === undefined
43
46
  ? undefined
44
- : (rowToneOf(row, rowToneField) ?? "neutral"))), children: [(badges.length > 0 || detail !== undefined) && (_jsxs("div", { className: "flex min-w-0 items-center gap-2 text-xs text-muted-foreground", children: [badges.map((column) => cell(column, row)), detail !== undefined && (_jsx("small", { "data-testid": "dashboard-list-card-detail", className: "min-w-0 truncate text-xs", children: detail }))] })), hintColumn !== undefined && (_jsx(CardHeadline, { column: hintColumn, row: row, titleField: titleField })), (others.length > 0 || buttons.length > 0) && (_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsx("div", { className: "flex min-w-0 flex-col text-xs text-muted-foreground", children: others.map((column) => (_jsx("span", { className: "truncate", children: cell(column, row) }, column.field))) }), buttons.length > 0 && (_jsx("div", { className: "flex shrink-0 flex-wrap justify-end gap-2 [&_a]:relative [&_a]:h-8 [&_a]:px-2.5 [&_a]:text-xs [&_a]:max-md:min-h-0 [&_a]:before:absolute [&_a]:before:inset-x-0 [&_a]:before:-inset-y-1.5 [&_a]:before:content-['']", children: buttons.map((column) => cell(column, row)) }))] }))] }, typeof row["id"] === "string" ? row["id"] : index));
47
+ : (rowToneOf(row, rowToneField) ?? "neutral"))), children: [(badges.length > 0 || detail !== undefined) && (_jsxs("div", { className: "flex min-w-0 items-center gap-2 text-xs text-muted-foreground", children: [badges.map((column) => cell(column, row)), detail !== undefined && (_jsx("small", { "data-testid": "dashboard-list-card-detail", className: cn("ml-auto min-w-0 truncate text-xs", rowToneOf(row, rowToneField) === "warn" && "font-medium text-status-warn"), children: detail }))] })), hintColumn !== undefined && (_jsx(CardHeadline, { column: hintColumn, row: row, titleField: titleField })), others.map((column) => (_jsx("span", { className: "text-xs text-muted-foreground line-clamp-2", children: cell(column, row) }, column.field))), (footBadges.length > 0 || buttons.length > 0) && (_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsx("div", { className: "flex min-w-0 items-center gap-2", children: footBadges.map((column) => cell(column, row)) }), buttons.length > 0 && (_jsx("div", { className: "flex shrink-0 flex-wrap justify-end gap-2 [&_a]:relative [&_a]:h-8 [&_a]:px-2.5 [&_a]:text-xs [&_a]:max-md:min-h-0 [&_a]:before:absolute [&_a]:before:inset-x-0 [&_a]:before:-inset-y-1.5 [&_a]:before:content-['']", children: buttons.map((column) => cell(column, row)) }))] }))] }, typeof row["id"] === "string" ? row["id"] : index));
45
48
  }) }));
46
49
  }
@@ -6,10 +6,13 @@ export type DashboardListColumn = {
6
6
  /** Translated by the caller. */
7
7
  readonly label: string;
8
8
  readonly display?: "bar" | "badge" | "datetime" | "button";
9
+ /** `display: "button"` only: filled primary instead of outline. */
10
+ readonly buttonVariant?: "primary";
9
11
  readonly badgeToneField?: string;
10
12
  readonly badgeDot?: false;
13
+ readonly badgeIcon?: "sparkles";
11
14
  /** `false` leaves an empty cell blank instead of drawing the placeholder. */
12
- readonly emptyPlaceholder?: false;
15
+ readonly emptyPlaceholder?: string | false;
13
16
  /** Resolves the raw cell value to display text, e.g. a reference id to its label. */
14
17
  readonly renderValue?: (value: unknown, row: Readonly<Record<string, unknown>>) => string;
15
18
  /** Links the rendered text to its target, e.g. a reference cell to the record's detail. */
@@ -18,6 +21,8 @@ export type DashboardListColumn = {
18
21
  readonly hint?: ListColumnHintViewModel;
19
22
  /** `showOnNarrowOnly`: drawn in the phone cards only, never as a table column. */
20
23
  readonly narrowOnly?: true;
24
+ /** `hideOnNarrow`: a table column that the phone cards leave out. */
25
+ readonly hiddenInCards?: true;
21
26
  };
22
27
  export type DashboardListRow = Readonly<Record<string, unknown>>;
23
28
  type Row = DashboardListRow;
@@ -1,10 +1,10 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ArrowUpRight, ChevronRight } from "lucide-react";
2
+ import { ArrowUpRight, ChevronRight, Sparkles } from "lucide-react";
3
3
  import { EMPTY_VALUE_PLACEHOLDER, } from "../../headless/index.js";
4
4
  import { isSelectOptionTone } from "../../status-tone.js";
5
5
  import { cn } from "../lib/cn.js";
6
6
  import { HintCell } from "../primitives/data-table/hint-cell.js";
7
- import { CellTextLink, LINK_BUTTON_CLASS, LIST_BADGE_TONE, rowToneClass, toneDotClass, } from "../primitives/data-table-cell.js";
7
+ import { CellTextLink, LINK_BUTTON_CLASS, LINK_BUTTON_PRIMARY_CLASS, LIST_BADGE_TONE, rowToneClass, toneDotClass, } from "../primitives/data-table-cell.js";
8
8
  import { HintReasonRowScope, hintReasonOf } from "../primitives/hint-reason-row.js";
9
9
  import { StatusBadge } from "./status-badge.js";
10
10
  function fractionOf(raw) {
@@ -39,7 +39,7 @@ export function dashboardListCellText(column, row, field, formats, translate) {
39
39
  }
40
40
  export function DashboardListCell({ column, row, formatPercent, formatNumber, formatDateTime, translate, leading, }) {
41
41
  const raw = row[column.field];
42
- const empty = column.emptyPlaceholder === false ? "" : EMPTY_VALUE_PLACEHOLDER;
42
+ const empty = column.emptyPlaceholder === false ? "" : (column.emptyPlaceholder ?? EMPTY_VALUE_PLACEHOLDER);
43
43
  if (column.hint !== undefined) {
44
44
  return _jsx(HintCell, { value: raw, row: row, hint: column.hint, leading: leading });
45
45
  }
@@ -51,8 +51,11 @@ export function DashboardListCell({ column, row, formatPercent, formatNumber, fo
51
51
  if (raw === undefined || raw === null || raw === "")
52
52
  return empty;
53
53
  const toneKey = column.badgeToneField !== undefined ? row[column.badgeToneField] : undefined;
54
- const tone = (typeof toneKey === "string" ? LIST_BADGE_TONE[toneKey] : undefined) ?? "muted";
55
- return (_jsx(StatusBadge, { tone: tone, dot: column.badgeDot !== false, children: String(raw) }));
54
+ const isAi = column.badgeIcon === "sparkles";
55
+ const tone = isAi
56
+ ? "accent"
57
+ : ((typeof toneKey === "string" ? LIST_BADGE_TONE[toneKey] : undefined) ?? "muted");
58
+ return (_jsxs(StatusBadge, { tone: tone, dot: !isAi && column.badgeDot !== false, children: [isAi && _jsx(Sparkles, { className: "size-3", "aria-hidden": "true" }), String(raw)] }));
56
59
  }
57
60
  if (column.display === "datetime") {
58
61
  const atMs = timestampMsOf(raw);
@@ -66,7 +69,7 @@ export function DashboardListCell({ column, row, formatPercent, formatNumber, fo
66
69
  return empty;
67
70
  const text = column.renderValue?.(raw, row) ?? String(raw);
68
71
  const label = I18N_KEY_SHAPE.test(text) ? translate(text) : text;
69
- return link === undefined ? (label) : (_jsx(CellTextLink, { link: link, className: LINK_BUTTON_CLASS, children: label }));
72
+ return link === undefined ? (label) : (_jsx(CellTextLink, { link: link, className: column.buttonVariant === "primary" ? LINK_BUTTON_PRIMARY_CLASS : LINK_BUTTON_CLASS, children: label }));
70
73
  }
71
74
  if (column.renderValue !== undefined) {
72
75
  const text = column.renderValue(raw, row);
@@ -118,6 +121,7 @@ export function DashboardListTable({ columns: allColumns, rows, formatPercent, f
118
121
  const leadingBadgeColumns = leadingBadgeColumnsOf(visibleColumns);
119
122
  const columns = visibleColumns.filter((column) => !leadingBadgeColumns.includes(column));
120
123
  const hintColumn = columns.find((column) => column.hint !== undefined);
124
+ const deadlineFields = new Set(hintColumn?.hint?.narrowDetailField === undefined ? [] : [hintColumn.hint.narrowDetailField]);
121
125
  const padded = rowToneField !== undefined || leadingBadgeColumns.length > 0;
122
126
  const cellProps = { formatPercent, formatNumber, formatDateTime, translate };
123
127
  return (_jsx("div", { className: "overflow-x-auto", children: _jsxs("table", { "data-testid": testId, className: "w-full text-sm", children: [showHeader && (_jsx("thead", { children: _jsxs("tr", { className: "h-9 border-b border-border-row text-left text-xs text-muted-foreground", children: [columns.map((column) => (_jsx("th", { scope: "col", className: cn("px-4 font-medium", column.display === "button" && "text-right"), children: column.label }, column.field))), rowLink !== undefined && _jsx("th", { scope: "col", className: "w-8" })] }) })), _jsx("tbody", { children: rows.map((row, index) => {
@@ -139,7 +143,8 @@ export function DashboardListTable({ columns: allColumns, rows, formatPercent, f
139
143
  !showHeader &&
140
144
  "max-sm:grid max-sm:h-auto max-sm:grid-cols-1 max-sm:gap-1 max-sm:py-2", rowToneMarker === "bar" && rowToneClass(tone)), children: [columns.map((column, columnIndex) => {
141
145
  const leading = leadingFor(column, columnIndex);
142
- const cell = (_jsx(DashboardListCell, { column: column, row: row, ...cellProps, ...(column.hint !== undefined && { leading }) }));
146
+ const plainCell = (_jsx(DashboardListCell, { column: column, row: row, ...cellProps, ...(column.hint !== undefined && { leading }) }));
147
+ const cell = tone === "warn" && deadlineFields.has(column.field) ? (_jsx("span", { className: "font-medium text-status-warn", children: plainCell })) : (plainCell);
143
148
  return (_jsx("td", { className: cn("px-4", column.display === "button" && "text-right", !showHeader && "max-sm:block"), children: column.hint === undefined && dot !== null && columnIndex === 0 ? (_jsxs("span", { className: "flex items-center gap-2", children: [dot, cell] })) : (cell) }, column.field));
144
149
  }), rowLink !== undefined && (_jsx("td", { className: "w-8 px-2 text-right", children: _jsx(RowLinkIcon, { link: rowTarget, icon: rowLink.icon, label: translate("kumiko.dashboard.list.open-row") }) }))] }, rowKey));
145
150
  const reasonHint = columns.find((column) => column.hint !== undefined && hintReasonOf(column.hint, row) !== undefined)?.hint;
@@ -20,7 +20,7 @@ export function sidePanelClass(side, narrow, variant, belowHeader) {
20
20
  return "inset-0 h-full w-full max-w-none rounded-none border-0 overflow-hidden";
21
21
  }
22
22
  if (narrow) {
23
- return "inset-x-0 bottom-0 h-auto max-h-[85vh] w-full max-w-none rounded-t-[2rem] border-t overflow-hidden";
23
+ return "inset-x-0 bottom-0 h-auto max-h-[90vh] w-full max-w-none rounded-t-[2rem] border-t overflow-hidden";
24
24
  }
25
25
  if (variant === "flush") {
26
26
  switch (side) {
@@ -6,5 +6,5 @@ export function ProgressList({ rows, emptyContent, testId, }) {
6
6
  if (rows.length === 0) {
7
7
  return _jsx("div", { "data-testid": testId, children: emptyContent });
8
8
  }
9
- return (_jsx("ul", { "data-testid": testId, className: "flex max-h-64 flex-col gap-3 overflow-y-auto pr-1", children: rows.map((row) => (_jsxs("li", { className: "flex flex-col gap-1", children: [_jsxs("div", { className: "flex items-baseline justify-between gap-2 text-sm", children: [_jsx("span", { className: "font-medium", children: row.label }), _jsx("span", { className: cn("tabular-nums", row.tone === "danger" ? "text-status-critical" : "text-muted-foreground"), children: row.value })] }), row.fraction !== null && _jsx(ProgressBar, { value: row.fraction, tone: row.tone }), row.sub !== undefined && _jsx("div", { className: "text-xs text-muted-foreground", children: row.sub })] }, row.id))) }));
9
+ return (_jsx("ul", { "data-testid": testId, className: "flex max-h-64 flex-col gap-3 overflow-y-auto pr-1", children: rows.map((row) => (_jsxs("li", { className: "flex flex-col gap-1", children: [row.fraction !== null && _jsx(ProgressBar, { value: row.fraction, tone: row.tone }), _jsxs("div", { className: "flex items-baseline justify-between gap-2 text-sm", children: [_jsx("span", { className: "font-medium", children: row.label }), _jsx("span", { className: cn("tabular-nums", row.tone === "danger" ? "text-status-critical" : "text-muted-foreground"), children: row.value })] }), row.sub !== undefined && _jsx("div", { className: "text-xs text-muted-foreground", children: row.sub })] }, row.id))) }));
10
10
  }
@@ -6,5 +6,5 @@ import { Sparkline, StatLinkFrame, TONE_VALUE, } from "./stat.js";
6
6
  * sub line small beside it. Below `sm` plain text "<number> <label>" that joins the strip's single line. */
7
7
  export function StatBoxCell({ label, narrowLabel, value, sub, tone = "default", icon, delta, spark, testId, link, }) {
8
8
  const belowSm = useIsBelowSmViewport();
9
- return (_jsx(StatLinkFrame, { link: link, testId: testId, children: belowSm ? (_jsxs("span", { "data-testid": testId, className: "whitespace-nowrap text-sm", children: [_jsx("span", { className: "tabular-nums text-foreground", children: value }), " ", _jsx("span", { className: "text-foreground", children: narrowLabel ?? label })] })) : (_jsxs("div", { "data-testid": testId, className: "flex min-w-0 items-center gap-3 rounded-lg border border-border bg-background px-3 py-2.5", children: [icon, _jsx("span", { className: cn("text-2xl font-semibold leading-none tabular-nums", TONE_VALUE[tone]), children: value }), _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: label }), sub !== undefined && (_jsx("span", { className: "truncate text-xs text-muted-foreground", children: sub }))] }), delta !== undefined && (_jsxs("span", { className: "whitespace-nowrap text-xs font-medium tabular-nums text-muted-foreground", children: [delta.direction === "up" ? "↑" : "↓", delta.value] })), spark !== undefined && (_jsx(Sparkline, { points: spark, className: cn("h-6 w-16 shrink-0", TONE_VALUE[tone]) }))] })) }));
9
+ return (_jsx(StatLinkFrame, { link: link, testId: testId, children: belowSm ? (_jsxs("span", { "data-testid": testId, className: "whitespace-nowrap text-sm", children: [_jsx("span", { className: "font-semibold tabular-nums text-foreground", children: value }), " ", _jsx("span", { className: "text-foreground", children: narrowLabel ?? label })] })) : (_jsxs("div", { "data-testid": testId, className: "flex min-w-0 items-center gap-3 rounded-lg border border-border bg-background px-3 py-2.5", children: [icon, _jsx("span", { className: cn("text-2xl font-semibold leading-none tabular-nums", TONE_VALUE[tone]), children: value }), _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: label }), sub !== undefined && (_jsx("span", { className: "truncate text-xs text-muted-foreground", children: sub }))] }), delta !== undefined && (_jsxs("span", { className: "whitespace-nowrap text-xs font-medium tabular-nums text-muted-foreground", children: [delta.direction === "up" ? "↑" : "↓", delta.value] })), spark !== undefined && (_jsx(Sparkline, { points: spark, className: cn("h-6 w-16 shrink-0", TONE_VALUE[tone]) }))] })) }));
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer",
3
- "version": "0.415.0",
3
+ "version": "0.417.0",
4
4
  "description": "React renderer for Kumiko screens. The root export holds the platform-agnostic logic (primitives contract, hooks, KumikoScreen, navigation and SSE abstractions); ./headless the DOM-free UI logic, ./live the HTTP dispatcher, ./web the browser bindings (HTML primitives, history navigation, EventSource live events, createKumikoApp).",
5
5
  "license": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -48,8 +48,8 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@cosmicdrift/kumiko-framework": "0.415.0",
52
- "@cosmicdrift/kumiko-types": "0.415.0",
51
+ "@cosmicdrift/kumiko-framework": "0.417.0",
52
+ "@cosmicdrift/kumiko-types": "0.417.0",
53
53
  "@types/qrcode": "^1.5.6",
54
54
  "class-variance-authority": "^0.7.1",
55
55
  "clsx": "^2.1.1",
@@ -79,8 +79,8 @@
79
79
  }
80
80
  },
81
81
  "devDependencies": {
82
- "@cosmicdrift/kumiko-locale-de": "0.415.0",
83
- "@cosmicdrift/kumiko-testing": "0.415.0",
82
+ "@cosmicdrift/kumiko-locale-de": "0.417.0",
83
+ "@cosmicdrift/kumiko-testing": "0.417.0",
84
84
  "@tailwindcss/cli": "^4.3.3",
85
85
  "@testing-library/react": "^16.3.3",
86
86
  "@testing-library/user-event": "^14.6.8",
package/src/changes.json CHANGED
@@ -1,4 +1,109 @@
1
1
  [
2
+ {
3
+ "version": "0.417.0",
4
+ "type": "breaking",
5
+ "title": "Board look for lists, forms, record pages and the shell",
6
+ "detail": "Lists get a new header, empty state, pager, toolbar, row actions and phone cards; the \"…\" menu only shows for overflow actions. New list options: `mutedRowField`, column `ellipsis` and `emphasis`, `dateOnlyAfterDays` on date columns, `toolbarSort`, `hideCountFooter`. `ListBadgeTone` is exported from `@cosmicdrift/kumiko-types` and badge tones also take the SelectOptionTone words. Record pages: `pageNavigation: false`, `mobileSummary`, `metricsPlacement.narrow: \"before-steps\"`, `MetricSpec.visibleWhen`, `photosBeside`, `recordSections.omitFirstTitle`, field option `concealed`, banner `iconless`; read-only groups with explicit `columns` render as a facts grid. Forms: banner variant `assist`, `FormProps.topBanner`, compact ConfigCascade, booleans as an off/on segment in settings, pinned footer actions with `hideIcon`, no cancel button in the drawer footer, drawers full screen on phones. Dashboards: progress-list `labelParams`, stat tiles as one text line on phones, the bell only renders with unread notices. The emptyState action no longer needs an icon. The i18n key `kumiko.pager.goToPage` is replaced by `kumiko.pager.pageOf`. Form fields: layout field options `badge` (`{ label, tone }` or `{ field, tone }`, type `FieldBadge`) and `hintField` (value field shown as a muted hint under the field); the badge sits next to the label. Number and money fields show a `suffix`/currency symbol right behind the number on a full-width field; textareas are four lines tall by default; choice chips are 26px pills (primary border and light fill when chosen); the hint of a field with `aiAssist` stays directly under the textarea, before the chips and the AI input. Record pages show the summary directly under the title, the status chip next to the H1 and the mobile summary left-aligned under it; destructive header actions move into the \"…\" menu; groups of a fields section render as labelled grids; a fields section description sits muted under the data (first sentence bold) on record pages; with `photosBeside` the data column is 380px wide. `photoGrid` gets `badgeField` (row text shown as a warn badge on the image) and tiles without `captionField` read \"Photo n\" (new key `kumiko.photo-grid.fallback-caption`); tiles are edge-to-edge images with the caption below, and the tile's per-photo actions stand in the caption row on the right (they wrap below it when a phone tile is too narrow). Next-step buttons are 36px high without icon and the \"Vorher klären\" chips wrap. Dashboards: stat strip tiles are separate cards on desktop, panel subtitles sit right in the head, the progress-list takes `subtitleField` (answer field shown muted at the head's right), the bar sits above the label row, a deadline cell uses the warn tone when the row has tone warn, `hideOnNarrow` columns stay out of phone cards, a text panel starting with a lead gets a primary accent bar and `**bold**` in paragraphs renders bold, the assist banner has a primary left bar. A list hint detail (`plainSentence`) is always muted text, never a tone badge. configEdit takes `compact: true` (no origin icon or reset link, no accent bar, uppercase group labels, form column max 940px). New list column options `multiline: true` (free text: wraps instead of ending in \"…\" and a line break in the value starts a new line, table and phone card; the helpdesk reply message uses it). A function-rendered column (reference columns) now shows its string `emptyPlaceholder` through the shared empty cell (translated, muted). A configEdit whose keys all carry `mask.section` keeps the feature description on its first section. The key-looking heuristic for `emptyPlaceholder` is gone: every string goes through translate and `cardAbove: true` (phone card: the column's line stands above the title, muted). A relatedList in tabs mode sits in a bordered card with a grey header row inside the page margin. Settings rows (`layout=\"row\"`) put the control beside the label from a 384px container width (label and control share the row 1:1; the generated settings hub with `compact` is 940px wide, so it reads as rows), below that they stack. The photo grid sets its column templates as arbitrary properties (two columns on a phone, three from md) so a missing utility cannot collapse it to one column. Record pages, round 2: every projectionDetail section takes `tabLabel` (i18n key of the tab name; the `title` stays the card heading), `after` (a `{ react: { __component } }` slot drawn directly under the section card, also beside `photosBeside`) and the phone options `hideOnNarrow: true`, `showOnNarrowOnly: true` (exclusive), `titleOnNarrow: false` (no section title below `sm`); fields and writeForm sections take `descriptionNarrow` (short description on the phone), an edit field `{ field, hideOnNarrow: true }` leaves the grid below `sm`, `layout.narrowTabs: false` drops the tab strip on the phone so the visible sections stand one under the other, `header.narrowTitle` (i18n key) is the short title in the phone top bar, `photoGrid.badgeFirst: true` sorts tiles with a badge to the front. A writeForm section takes `submitWith`: the id of a writeHandler action in the screen's `actions`; the section then has no submit button, and that action sends its own payload plus the current form values in one write after the form validates (a form field named like a payload key, a `submitWith` that is no writeHandler action and two forms for one action fail at boot). The `after`, `tabLabel`, `descriptionNarrow` and `narrowTitle` texts are i18n keys. A navigate action takes `icon: false` (no icon, not even the id-derived default). A dashboard list `footerLink.label` is optional: without it only `moreText` shows, as muted text without a link. List columns get `hideWhenDocked: true` (leaves a table whose container is narrower than `md`, the docked assistant panel, while the phone card still shows it). Behaviour change on the phone: with `mobileSummary` set, the record header shows no status chip row and no subtitle under the H1, only the H1, the mobile summary and then the AI text.",
7
+ "migration": "Lists that want the desktop sort dropdown set `toolbarSort: true`. Apps that override `kumiko.pager.goToPage` move the text to `kumiko.pager.pageOf`. Snapshot and DOM tests that assert old list, drawer or header classes need new expectations."
8
+ },
9
+ {
10
+ "version": "0.417.0",
11
+ "type": "breaking",
12
+ "title": "List cells stay blank when empty, truncate, and phone cards follow the board",
13
+ "detail": "Empty cells render nothing by default (no more \"—\"); `emptyPlaceholder` is now `string | false` (an i18n key or literal shown muted in the empty cell; `false` keeps the cell blank). New column options `tone: \"muted\"` (whole column in the muted text colour) and `cardBadge: true` (the phone card shows the column right of the title as an outlined neutral pill; without one the first select column stays the badge). `RowActionDisplay` gains `\"text\"` (muted text without a button, e.g. a closed state). Table cells truncate with an ellipsis instead of wrapping (headers still wrap); a pill column shows its pill with a dot next to the cell text. Phone cards: a column with `emphasis` leads the card as a primary line with a sparkle icon and its pill on the right; `responsive` and `text` row actions sit in the card footer (the soft AI action on the left, links right); the card status pill sits right in the title row. A list facet bound to `namedFilters` is now appended after the other facets. A select facet reads only its label while unfiltered. The pager shows \"0 of 0\" (key `kumiko.pager.statusEmpty`) for an empty list, with an outlined page-size select and 32px outlined arrows. Stand-in screens (`visibleWhen` fallback) draw neither pager nor count footer. The phone sort line reads \"Sorted by X ↓\" without the count (key `kumiko.list.sort.summary` lost `{count}` and `{noun}`); the filter button shows a sliders icon. The new column option `hideWhenDocked: true` leaves a table whose container is narrower than `md` (docked assistant panel), measured with a ResizeObserver; `hideOnNarrow` only means the phone viewport. A list row (table and card) whose id equals the `ScreenFocus` record id is highlighted (light primary fill, 3px primary bar on the left). Relative times in lists (`relativeTime` format and the live formatter) read short and uniformly: \"just now\", \"5 min. ago\", \"yesterday, 19:02\", \"2 days ago\", an absolute date after 7 days, in all locales. A `hideOnNarrow` column is never the phone card title, the first visible column is; `cardAbove` columns do not count toward the three card meta lines; an `emphasis` column leads the card like a hint column, so a computed column with a renderer can be the \"to do\" line.",
14
+ "migration": "Tests and apps that expect \"—\" in empty list cells set `emptyPlaceholder: \"—\"` or update the expectation. Apps that override `kumiko.list.sort.summary` drop `{count}` and `{noun}`. Tests that assert `whitespace-normal` list cells or long relative texts (\"5 minutes ago\") need new expectations."
15
+ },
16
+ {
17
+ "version": "0.417.0",
18
+ "type": "improvement",
19
+ "title": "Dashboard labelNarrow, AI badges, compact settings hub, stand-in and header fixes",
20
+ "detail": "Dashboard stat `labelNarrow` (i18n key) replaces `label` below sm and resolves with `{ count: <stat value> }`, so a plural key gives \"1 answer\" / \"2 answers\". Dashboard list badge columns take `badgeIcon: \"sparkles\"` (soft blue AI pill with a sparkles icon, no dot); the \"more\" footer link is primary. `ConfigMask.compact: true` renders the generated settings screen like `configEdit` `compact: true` (no origin icon or reset link, no accent bar, large section labels). Behaviour change: every compact `configEdit` screen now also drops name-derived field icons (e.g. the phone icon) on all viewports, previously only below sm; `ConfigMask.section` (i18n key) groups keys under their own titled section. Number chips with a field `suffix` show \"15.000 €\" style text. The photo grid is 2 columns, 3 from md. Inline banners with a title show it as a muted label above the text. A form that only a record screen's `actions` (navigate or drawer) open now counts as reachable, so it no longer needs `dormant: true`. Stand-in screens no longer show a pager or count, empty lists draw no header row or frame, `HeaderActionPinned` takes `hideOnListScreens` (the KI trigger can leave list screens on phones), and related lists on phones render plain cards."
21
+ },
22
+ {
23
+ "version": "0.417.0",
24
+ "type": "breaking",
25
+ "title": "submitWith actions never write without their form, relative \"just now\" is translated",
26
+ "detail": "A projectionDetail action that a writeForm section submits (`submitWith`) now refuses to write when that form is not mounted (other tab, hidden by `visibleWhen`) and shows an error instead of silently sending only its own payload. A form hidden by CSS (`hideOnNarrow`, `showOnNarrowOnly`) keeps its loaded values; when its validation fails the action shows an error naming the fields. Boot rejects a `submitWith` action in a tabs layout unless its `showOnTabs` lists only the form section's id. The \"just now\" text of relative times is the new key `kumiko.time.justNow` (en, de, es, fr, it) instead of a built-in table; `RelativeTimeOptions.justNow` is now the translated text (string) instead of a boolean.",
27
+ "migration": "Tabs layouts with a `submitWith` action add `showOnTabs: [\"<form section id>\"]` to that action. Callers of `formatRelativeTime` that pass `justNow: true` pass the translated text instead."
28
+ },
29
+ {
30
+ "version": "0.417.0",
31
+ "type": "improvement",
32
+ "title": "Board fixes round 3: header action placement, feed counts, docked columns, label sections",
33
+ "detail": "A projectionDetail action takes `placement: \"menu\"` (same as entityEdit): it goes into the header \"…\" menu instead of a button; without a header menu it stays inline. A feed panel takes `showTotal: true | { text }` (i18n key with `{shown}` and `{total}`, `{total}` is the query's `total`, else the rows returned), shown right in the panel head like a list panel's. `hideWhenDocked` now also applies while the shell reports a docked assistant panel (`--agent-panel-width` above 0), not only in a container narrower than 768px. configEdit `compact` is 940px wide (settings rows split 1:1), and the label of a settings row wraps instead of ending in \"…\". A writeForm section on a record page draws its title as the small uppercase label like the other sections. `photoGrid.badgeFirst` moves badged tiles to the front only below `sm`; from `sm` up the natural order stays. A fields section description sits above the data on a phone and under it from `sm`. An empty first cell of a clickable list row shows its `emptyPlaceholder`. The label-less \"k more\" text under phone dashboard cards is primary. A column with `emphasis` keeps bold foreground text in a muted row (`mutedRowField`) and in a phone card's `cardAbove` line."
34
+ },
35
+ {
36
+ "version": "0.417.0",
37
+ "type": "fix",
38
+ "title": "Board fixes round 8: docked columns, photo tiles, compact save bar, muted titles, record hints",
39
+ "detail": "`hideWhenDocked` also reacts when the shell sets `--agent-panel-width` after the table mounted (an overflowing table keeps its width, so the resize observer alone never fired). Photo tiles are 3:2 on a phone and flat 2:1 from md, cropped with object-cover. The save bar of configEdit `compact` is pinned at the page bottom with a separator line like on a record page; only the form column is capped at 940px. The clickable title of a muted row (`mutedRowField`) follows the muted colour; only a column with `emphasis` stays dark. A writeForm section's `hintField` and field badge fall back to the screen's record values for fields the form does not hold; only form fields are submitted. The content area (`<main>`) of both `DefaultAppShell` and `WorkspaceShell` makes room for a docked assistant panel (`--agent-panel-width`) like for a non-modal drawer, so lists and their row actions no longer sit under the panel; the top bar keeps the full width."
40
+ },
41
+ {
42
+ "version": "0.417.0",
43
+ "type": "fix",
44
+ "title": "Board fixes round 9: tab tables, phone dashboard, document-designer overview",
45
+ "detail": "A relatedList tab's table draws no count footer (hideCountFooter; the tab label already says how many rows there are). The phone stat line of a stat group spreads its items across the line and wraps between them, with the number semibold (as in every StatBoxCell), and a dashboard panel's subtitle and action group may shrink and wrap (on a phone it stacks under the title) instead of widening the page. The document-designer overview caps its slug, used-by and overridden-by cells narrower so the platform overview fits 1280px with the wider board padding. Concealed field values stay muted in the field grid instead of taking the value weight and colour. A text panel keeps an unpaired `**` as literal text instead of bolding the rest of the paragraph."
46
+ },
47
+ {
48
+ "version": "0.417.0",
49
+ "type": "improvement",
50
+ "title": "Text.narrow and Section.hint primitive props",
51
+ "detail": "The primitives contract gains `TextProps.narrow` (phone wording for a text line) and `SectionProps.hint` (`{ text, textNarrow?, testId }`, the muted hint a record section prints under its data, above it on phones). The web primitives render both; custom primitive sets can ignore them and fall back to the wide text."
52
+ },
53
+ {
54
+ "version": "0.416.0",
55
+ "type": "fix",
56
+ "title": "projectionDetail on a phone keeps metrics above the tabs and start-aligned footer actions visible",
57
+ "detail": "With `metricsPlacement: { narrow: \"after-guidance\" }` the metrics and tabs stay above the tab content on a phone. `footerActions` that mix an `align: \"start\"` action with others stay in the pinned footer instead of folding into the \"…\" menu; the start group fills the row."
58
+ },
59
+ {
60
+ "version": "0.416.0",
61
+ "type": "improvement",
62
+ "title": "relativeTime options style, withTime, absoluteAfterDays, timeZone",
63
+ "detail": "A column renderer or metric format { format: \"relativeTime\" } accepts style \"short\" (41 min. ago), withTime (yesterday, 10:18 and the absolute date with the clock time), absoluteAfterDays n (absolute date such as 29 Oct 2026 from n days on) and timeZone. Boot validation rejects a bad style, a non-integer absoluteAfterDays below 1 and a non-boolean withTime. Without options the text is unchanged."
64
+ },
65
+ {
66
+ "version": "0.416.0",
67
+ "type": "fix",
68
+ "title": "projectionDetail metrics format relativeTime in the UI locale",
69
+ "detail": "A metric with format { format: \"relativeTime\" } fell back to the browser language (\"42 minutes ago\" in a German UI). The metric now passes the UI locale, unless the format sets its own locale."
70
+ },
71
+ {
72
+ "version": "0.416.0",
73
+ "type": "fix",
74
+ "title": "Inline card meta wraps instead of truncating equal-width columns",
75
+ "detail": "On phones, narrowInline list columns sit in a wrapping row with natural widths; only a single over-long element is truncated."
76
+ },
77
+ {
78
+ "version": "0.416.0",
79
+ "type": "fix",
80
+ "title": "Banner actions wrap below the text on phones",
81
+ "detail": "A banner with actions (such as the projectionDetail banner) squeezed its text into a narrow column next to the buttons on phone widths. Below sm the row now wraps: the text keeps the line and the actions take their own line. Desktop is unchanged."
82
+ },
83
+ {
84
+ "version": "0.416.0",
85
+ "type": "fix",
86
+ "title": "relativeTime counts calendar days and falls back to the browser language",
87
+ "detail": "\"Yesterday\" and the day count now come from calendar days in the format's timeZone (default: the runtime zone) instead of rounded hours, so a value from the day before yesterday no longer reads \"yesterday, 22:00\" shortly after midnight. Without a locale the format used en-US instead of the browser language."
88
+ },
89
+ {
90
+ "version": "0.416.0",
91
+ "type": "fix",
92
+ "title": "Read-only settings fields offer no reset button",
93
+ "detail": "A configEdit field marked readOnly in the layout (including keys with mask.readOnly) no longer shows the \"reset override\" button in its cascade display."
94
+ },
95
+ {
96
+ "version": "0.416.0",
97
+ "type": "fix",
98
+ "title": "Row click ignores controls inside custom cells and portaled content",
99
+ "detail": "A list with a row click opened the row when a button, link or input inside a custom cell was clicked, and also on clicks inside a drawer or menu portaled from that row. Those clicks now stay with their control."
100
+ },
101
+ {
102
+ "version": "0.416.0",
103
+ "type": "improvement",
104
+ "title": "Column format relativeTime",
105
+ "detail": "A list column with renderer { format: \"relativeTime\" } shows an ISO timestamp or epoch ms as \"5 minutes ago\" in the user locale. The text is computed at render time and does not tick."
106
+ },
2
107
  {
3
108
  "version": "0.415.0",
4
109
  "type": "fix",
@@ -327,9 +327,10 @@
327
327
  /* A non-modal side Drawer publishes the width it occupies (widgets/drawer.tsx); the content area
328
328
  narrows by that much instead of sitting underneath. Only <main>: the drawer starts below the
329
329
  header, and the pinned form footer lives inside <main>. No transition: the sheet slides by
330
- transform, its width never animates. */
330
+ transform, its width never animates. The docked assistant panel (Enterprise) publishes
331
+ --agent-panel-width the same way and also starts below the header; a drawer opens over it. */
331
332
  [data-slot="sidebar-inset"] > main {
332
- padding-inline-end: var(--kumiko-drawer-inset-right, 0px);
333
+ padding-inline-end: max(var(--kumiko-drawer-inset-right, 0px), var(--agent-panel-width, 0px));
333
334
  padding-inline-start: var(--kumiko-drawer-inset-left, 0px);
334
335
  }
335
336