@cosmicdrift/kumiko-renderer 0.414.0 → 0.415.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 (124) hide show
  1. package/dist/app/entity-list-screen.js +12 -9
  2. package/dist/app/list-facets.d.ts +1 -0
  3. package/dist/app/list-facets.js +10 -1
  4. package/dist/app/named-filter-facet.d.ts +0 -1
  5. package/dist/app/named-filter-facet.js +19 -10
  6. package/dist/app/projection-detail-guidance-data.js +3 -1
  7. package/dist/app/projection-detail-guidance.js +9 -9
  8. package/dist/app/projection-detail-header.js +4 -3
  9. package/dist/app/projection-detail-navigation.d.ts +2 -0
  10. package/dist/app/projection-detail-navigation.js +13 -3
  11. package/dist/app/screen-access.js +1 -2
  12. package/dist/app/use-entity-list-payload.d.ts +2 -1
  13. package/dist/app/use-entity-list-payload.js +4 -2
  14. package/dist/app/use-projection-detail-actions.d.ts +1 -0
  15. package/dist/app/use-projection-detail-actions.js +26 -14
  16. package/dist/app/use-row-decoration.d.ts +6 -4
  17. package/dist/app/use-row-decoration.js +67 -19
  18. package/dist/app/use-screen-list-rows.js +1 -1
  19. package/dist/card-options.d.ts +25 -0
  20. package/dist/card-options.js +1 -0
  21. package/dist/components/list-empty-state.d.ts +5 -0
  22. package/dist/components/list-empty-state.js +17 -1
  23. package/dist/components/render-list-hint-columns.d.ts +1 -0
  24. package/dist/components/render-list-hint-columns.js +10 -0
  25. package/dist/components/render-list-toolbar-model.d.ts +2 -2
  26. package/dist/components/use-render-list-columns.js +3 -3
  27. package/dist/context/screen-focus-context.d.ts +1 -1
  28. package/dist/context/screen-focus-context.js +3 -3
  29. package/dist/data-table-facet-types.d.ts +4 -0
  30. package/dist/headless/index.d.ts +1 -1
  31. package/dist/headless/index.js +1 -1
  32. package/dist/headless/pwa-service-worker-meta.d.ts +3 -0
  33. package/dist/headless/pwa-service-worker-meta.js +10 -0
  34. package/dist/headless/view-model/types.d.ts +4 -0
  35. package/dist/i18n-defaults.js +2 -1
  36. package/dist/metric-types.d.ts +2 -0
  37. package/dist/primitives-record-guidance.d.ts +2 -0
  38. package/dist/primitives.d.ts +7 -24
  39. package/dist/web/app/dashboard-header.js +1 -1
  40. package/dist/web/app/dashboard-list-panel.js +8 -13
  41. package/dist/web/app/dashboard-panels.d.ts +1 -0
  42. package/dist/web/app/dashboard-panels.js +9 -7
  43. package/dist/web/app/dashboard-reference-list-table.js +1 -0
  44. package/dist/web/app/dashboard-shared.js +2 -1
  45. package/dist/web/app/dashboard-stat-group-panel.d.ts +1 -0
  46. package/dist/web/app/dashboard-stat-group-panel.js +14 -7
  47. package/dist/web/app/dashboard-text-panel.js +8 -4
  48. package/dist/web/drawn-icons.d.ts +6 -0
  49. package/dist/web/drawn-icons.js +30 -0
  50. package/dist/web/icons.js +6 -5
  51. package/dist/web/index.d.ts +2 -0
  52. package/dist/web/index.js +2 -0
  53. package/dist/web/layout/default-app-shell.js +3 -3
  54. package/dist/web/layout/nav-collapse-state.d.ts +2 -0
  55. package/dist/web/layout/nav-collapse-state.js +10 -0
  56. package/dist/web/layout/nav-tree.js +46 -23
  57. package/dist/web/layout/notification-bell.d.ts +7 -2
  58. package/dist/web/layout/notification-bell.js +16 -5
  59. package/dist/web/layout/shell-focus.d.ts +2 -2
  60. package/dist/web/layout/shell-focus.js +7 -3
  61. package/dist/web/layout/shell-header.d.ts +2 -1
  62. package/dist/web/layout/shell-header.js +56 -27
  63. package/dist/web/layout/shell-style.d.ts +3 -0
  64. package/dist/web/layout/shell-style.js +6 -0
  65. package/dist/web/layout/workspace-shell.d.ts +11 -1
  66. package/dist/web/layout/workspace-shell.js +6 -4
  67. package/dist/web/primitives/banner.d.ts +1 -1
  68. package/dist/web/primitives/banner.js +12 -7
  69. package/dist/web/primitives/card.js +18 -8
  70. package/dist/web/primitives/data-table/actions-column.d.ts +1 -1
  71. package/dist/web/primitives/data-table/actions-column.js +3 -1
  72. package/dist/web/primitives/data-table/card-body.d.ts +1 -1
  73. package/dist/web/primitives/data-table/card-body.js +11 -6
  74. package/dist/web/primitives/data-table/card-row.js +21 -17
  75. package/dist/web/primitives/data-table/hint-cell.d.ts +1 -3
  76. package/dist/web/primitives/data-table/hint-cell.js +4 -10
  77. package/dist/web/primitives/data-table/row-render-parts.d.ts +1 -1
  78. package/dist/web/primitives/data-table/row-render-parts.js +3 -2
  79. package/dist/web/primitives/data-table/sort-options-select.js +3 -3
  80. package/dist/web/primitives/data-table/table-content.js +4 -4
  81. package/dist/web/primitives/data-table/table-view.js +8 -3
  82. package/dist/web/primitives/data-table/toolbar.d.ts +2 -0
  83. package/dist/web/primitives/data-table/toolbar.js +44 -9
  84. package/dist/web/primitives/data-table/totals-footer.js +4 -3
  85. package/dist/web/primitives/data-table-cell.js +44 -18
  86. package/dist/web/primitives/facet-filter.d.ts +1 -1
  87. package/dist/web/primitives/facet-filter.js +16 -8
  88. package/dist/web/primitives/facet-search-filter.d.ts +2 -1
  89. package/dist/web/primitives/facet-search-filter.js +3 -2
  90. package/dist/web/primitives/facet-trigger-label.d.ts +8 -0
  91. package/dist/web/primitives/facet-trigger-label.js +9 -0
  92. package/dist/web/primitives/file-view-action.js +4 -1
  93. package/dist/web/primitives/layout-elements.js +1 -1
  94. package/dist/web/primitives/metric.js +17 -5
  95. package/dist/web/primitives/page-header.js +3 -2
  96. package/dist/web/primitives/pager.d.ts +3 -2
  97. package/dist/web/primitives/pager.js +16 -20
  98. package/dist/web/primitives/record-breadcrumb.js +1 -1
  99. package/dist/web/primitives/record-steps.js +9 -4
  100. package/dist/web/primitives/record-summary.js +1 -1
  101. package/dist/web/primitives/segmented-select.js +6 -3
  102. package/dist/web/primitives/tabs.js +6 -1
  103. package/dist/web/pwa/pwa-support.js +19 -1
  104. package/dist/web/ui/sidebar.d.ts +2 -1
  105. package/dist/web/ui/sidebar.js +4 -3
  106. package/dist/web/widgets/ai-text-field.js +3 -2
  107. package/dist/web/widgets/dashboard-list-cards.js +6 -14
  108. package/dist/web/widgets/dashboard-list.d.ts +8 -0
  109. package/dist/web/widgets/dashboard-list.js +34 -8
  110. package/dist/web/widgets/drawer-panel-class.d.ts +1 -0
  111. package/dist/web/widgets/drawer-panel-class.js +9 -1
  112. package/dist/web/widgets/drawer.js +2 -2
  113. package/dist/web/widgets/pdf-viewer-toolbar.js +3 -2
  114. package/dist/web/widgets/sheet-parts.js +3 -1
  115. package/dist/web/widgets/stat-box-cell.js +1 -1
  116. package/dist/web/widgets/stat.d.ts +7 -1
  117. package/dist/web/widgets/stat.js +12 -4
  118. package/dist/web/widgets/step-list-row.d.ts +4 -0
  119. package/dist/web/widgets/step-list-row.js +22 -14
  120. package/dist/web/widgets/step-list.d.ts +12 -4
  121. package/dist/web/widgets/step-list.js +38 -20
  122. package/package.json +5 -5
  123. package/src/changes.json +72 -0
  124. package/src/web/styles.css +6 -0
@@ -9,14 +9,14 @@ const TONE_CHIP = {
9
9
  default: "bg-muted text-foreground",
10
10
  positive: "bg-primary/10 text-primary",
11
11
  ok: "bg-status-ok-surface text-status-ok",
12
- warn: "bg-destructive/10 text-destructive",
12
+ warn: "bg-status-warn-surface text-status-warn",
13
13
  negative: "bg-status-bad-surface text-status-bad",
14
14
  };
15
15
  export const TONE_VALUE = {
16
16
  default: "text-foreground",
17
17
  positive: "text-primary",
18
18
  ok: "text-status-ok",
19
- warn: "text-destructive",
19
+ warn: "text-status-warn",
20
20
  negative: "text-status-bad",
21
21
  };
22
22
  const TONE_STRIPE = {
@@ -59,16 +59,24 @@ function StatIconChip({ icon, tone, accentColor, }) {
59
59
  backgroundColor: `color-mix(in srgb, ${accentColor} 12%, transparent)`,
60
60
  }, children: icon }));
61
61
  }
62
+ function StatDeltaChip({ delta, tone, }) {
63
+ return (_jsxs("span", { className: cn("inline-flex shrink-0 items-center gap-0.5 whitespace-nowrap rounded-full px-1.5 py-0.5 text-xs font-medium tabular-nums", TONE_CHIP[delta.tone ?? tone]), children: [delta.direction === "up" ? "↑" : "↓", delta.value] }));
64
+ }
65
+ function statTileSurface(inset, boardPadding) {
66
+ if (inset)
67
+ return "bg-background px-3 py-2.5 shadow-none";
68
+ return boardPadding ? "px-3.5 py-3 max-sm:px-3 max-sm:py-2.5" : "p-4";
69
+ }
62
70
  /** Icon-bearing metric tile with an optional delta chip, trend line,
63
71
  * and sparkline. `icon` is a ready-made node (the app supplies its SVG). */
64
- export function StatCard({ icon, label, value, sub, tone = "default", accentColor, delta, trend, spark, testId, link, navigable = false, children, }) {
72
+ export function StatCard({ icon, label, value, sub, tone = "default", accentColor, delta, trend, spark, testId, link, navigable = false, inset = false, subBelow = false, boardPadding = false, children, }) {
65
73
  const { Card } = usePrimitives();
66
74
  const leadsSomewhere = navigable || link !== undefined;
67
75
  // StatCard is a reusable small-tile widget (a metrics dashboard grid, not
68
76
  // a whole-section frame) — an extension section mounting several of
69
77
  // these renders a grid of tiles inside its own host Card, not a
70
78
  // duplicate outer frame around the section's full content.
71
- const tile = (_jsxs(Card, { options: { padded: false }, className: cn("relative p-4", TONE_STRIPE[tone]), testId: testId, children: [leadsSomewhere && (_jsx(ArrowUpRight, { className: "absolute right-3 top-3 size-3.5 text-muted-foreground", "aria-hidden": "true", "data-kumiko-layout": "stat-card-arrow" })), _jsxs("div", { className: cn("flex flex-wrap items-start justify-between gap-x-2 gap-y-1", leadsSomewhere && "pr-5"), children: [_jsxs("div", { className: "flex min-w-0 flex-1 basis-[7rem] items-center gap-2 text-muted-foreground", children: [icon !== undefined && _jsx(StatIconChip, { icon: icon, tone: tone, accentColor: accentColor }), _jsx("span", { title: label, className: "min-w-0 line-clamp-2 text-xs font-medium", children: label })] }), delta !== undefined && (_jsxs("span", { className: cn("inline-flex shrink-0 items-center gap-0.5 whitespace-nowrap rounded-full px-1.5 py-0.5 text-xs font-medium tabular-nums", TONE_CHIP[delta.tone ?? tone]), children: [delta.direction === "up" ? "↑" : "↓", delta.value] }))] }), _jsxs("div", { className: "mt-1.5 flex flex-wrap items-baseline gap-x-2", children: [_jsx("span", { className: cn("text-xl font-semibold tabular-nums", TONE_VALUE[tone]), children: value }), sub !== undefined && _jsx("span", { className: "text-xs text-muted-foreground", children: sub })] }), trend !== undefined && (_jsx("div", { className: "mt-0.5 text-xs font-medium text-foreground/80", children: trend })), spark !== undefined && (_jsx(Sparkline, { points: spark, className: cn("mt-2 h-7 w-full", TONE_VALUE[tone]) })), children !== undefined && _jsx("div", { className: "mt-3", children: children })] }));
79
+ const tile = (_jsxs(Card, { options: { padded: false }, className: cn("relative", statTileSurface(inset, boardPadding), TONE_STRIPE[tone]), testId: testId, children: [leadsSomewhere && (_jsx(ArrowUpRight, { className: "absolute right-3 top-3 size-3.5 text-muted-foreground", "aria-hidden": "true", "data-kumiko-layout": "stat-card-arrow" })), _jsxs("div", { className: cn("flex flex-wrap items-start justify-between gap-x-2 gap-y-1", leadsSomewhere && "pr-5"), children: [_jsxs("div", { className: "flex min-w-0 flex-1 basis-[7rem] items-center gap-2 text-muted-foreground", children: [icon !== undefined && _jsx(StatIconChip, { icon: icon, tone: tone, accentColor: accentColor }), _jsx("span", { title: label, className: "min-w-0 line-clamp-2 text-xs font-medium", children: label })] }), delta !== undefined && _jsx(StatDeltaChip, { delta: delta, tone: tone })] }), _jsxs("div", { className: "mt-1.5 flex flex-wrap items-baseline gap-x-2", children: [_jsx("span", { className: cn("text-xl font-semibold tabular-nums", boardPadding && "max-sm:text-[17px]", TONE_VALUE[tone]), children: value }), sub !== undefined && !subBelow && (_jsx("span", { className: "text-xs text-muted-foreground", children: sub }))] }), sub !== undefined && subBelow && (_jsx("div", { "data-kumiko-layout": "stat-card-sub", className: "mt-0.5 text-xs text-muted-foreground", children: sub })), trend !== undefined && (_jsx("div", { className: "mt-0.5 text-xs font-medium text-foreground/80", children: trend })), spark !== undefined && (_jsx(Sparkline, { points: spark, className: cn("mt-2 h-7 w-full", TONE_VALUE[tone]) })), children !== undefined && _jsx("div", { className: "mt-3", children: children })] }));
72
80
  return (_jsx(StatLinkFrame, { link: link, testId: testId, children: tile }));
73
81
  }
74
82
  /** Flat KPI cell for a strip (divider instead of card): label, value with
@@ -14,6 +14,8 @@ export type StepTag = {
14
14
  readonly tone?: "accent" | "muted" | "warn" | "ok" | "bad";
15
15
  /** A note about the step's history (e.g. just changed) reads after what it waits for. */
16
16
  readonly afterWaiting?: boolean;
17
+ /** Sits in the right column of the row, above a trailing link (e.g. a risk chip over "Preview"). */
18
+ readonly side?: true;
17
19
  };
18
20
  export type StepListItem = {
19
21
  readonly id: string;
@@ -52,6 +54,8 @@ export declare function StepActionButton({ action, className, }: {
52
54
  }): ReactNode;
53
55
  export type StepRowSelection = {
54
56
  readonly state: StepSelectionState;
57
+ /** The checkbox replaces the status icon of a selectable row. */
58
+ readonly compact?: true;
55
59
  readonly onToggle: () => void;
56
60
  };
57
61
  export declare function StepRow({ step, phoneCard, selection, }: {
@@ -48,12 +48,12 @@ function StatusIcon({ step }) {
48
48
  function tagTone(tone) {
49
49
  return tone ?? "muted";
50
50
  }
51
- function StepLink({ link }) {
51
+ function StepLink({ link, compact = false, }) {
52
52
  const { Link, Button } = usePrimitives();
53
53
  if (link.href !== undefined) {
54
- return (_jsx(Link, { href: link.href, onPress: link.onClick, className: "shrink-0 text-[13px] font-medium underline underline-offset-2", children: link.label }));
54
+ return (_jsx(Link, { href: link.href, onPress: link.onClick, className: cn("shrink-0 text-[13px] font-medium underline underline-offset-2", compact && "font-normal text-primary no-underline"), children: link.label }));
55
55
  }
56
- return (_jsx(Button, { variant: "link", size: "sm", onClick: link.onClick, className: "shrink-0 text-[13px]", children: link.label }));
56
+ return (_jsx(Button, { variant: "link", size: "sm", onClick: link.onClick, className: cn("shrink-0 text-[13px]", compact && "h-auto p-0 font-normal"), children: link.label }));
57
57
  }
58
58
  function StepBelowLink({ link }) {
59
59
  const { Button } = usePrimitives();
@@ -64,8 +64,9 @@ export function StepActionButton({ action, className, }) {
64
64
  return (_jsx(Button, { size: "sm", variant: action.variant ?? "secondary", disabled: action.disabled, loading: action.pending, onClick: action.onClick, testId: `step-action-${action.id}`, className: cn("max-md:text-[14px]", className), children: action.label }));
65
65
  }
66
66
  // A long reason ("Wartet auf: Whg. 3, Stellplatz 7, …") is cut at the column edge instead of running out of it.
67
- function StepTagBadge({ tone, label, className, }) {
68
- return (_jsx("span", { className: "flex min-w-0 max-w-full", title: label, children: _jsx(StatusBadge, { tone: tone, className: cn("min-w-0 max-w-full", className), children: _jsx("span", { className: "truncate", children: label }) }) }));
67
+ function StepTagBadge({ tone, label, className, chip, }) {
68
+ return (_jsx("span", { className: "flex min-w-0 max-w-full", title: label, children: _jsx(StatusBadge, { tone: tone, dot: chip !== true, className: cn("min-w-0 max-w-full", chip === true &&
69
+ "h-auto rounded px-1.5 py-0.5 text-[11px] max-md:h-auto max-md:text-[11px]", className), children: _jsx("span", { className: "truncate", children: label }) }) }));
69
70
  }
70
71
  // Sources and tags share one line: a source link and the step it waits for read as one fact.
71
72
  // The phone card reads the waiting reason as a plain second line, not as a pill.
@@ -118,22 +119,29 @@ function StepSelectionCell({ step, selection, }) {
118
119
  : state.kind === "blocked"
119
120
  ? t("kumiko.widget.step-list.prerequisiteNotSelectable", { title: state.blockedBy })
120
121
  : undefined;
121
- return (_jsxs("span", { className: "flex h-5 w-4 shrink-0 items-center", children: [_jsx(Checkbox, { "aria-label": t("kumiko.widget.step-list.selectStep", { title: step.title }), checked: state.kind === "selectable" && state.checked, disabled: state.kind !== "selectable", onCheckedChange: selection.onToggle, "data-testid": `step-${step.id}-select`, ...(reason !== undefined && { title: reason, "aria-describedby": reasonId }) }), reason !== undefined && (_jsx("span", { id: reasonId, className: "sr-only", children: reason }))] }));
122
+ return (_jsxs("span", { className: cn("flex h-5 w-4 shrink-0 items-center", selection.compact === true && "mt-px h-[18px] w-[18px]"), children: [_jsx(Checkbox, { className: cn(selection.compact === true &&
123
+ "size-[18px] border-[1.5px] border-border-strong data-[state=checked]:border-primary [&_svg]:size-3"), "aria-label": t("kumiko.widget.step-list.selectStep", { title: step.title }), checked: state.kind === "selectable" && state.checked, disabled: state.kind !== "selectable", onCheckedChange: selection.onToggle, "data-testid": `step-${step.id}-select`, ...(reason !== undefined && { title: reason, "aria-describedby": reasonId }) }), reason !== undefined && (_jsx("span", { id: reasonId, className: "sr-only", children: reason }))] }));
122
124
  }
123
125
  function isAutoSelected(selection) {
124
126
  return selection?.state.kind === "selectable" && selection.state.neededFor !== undefined;
125
127
  }
126
- function stepRowClassName(step, autoSelected) {
127
- return cn("flex gap-2.5 border-b border-border-row px-4 py-3", autoSelected &&
128
+ function stepRowClassName(step, autoSelected, compact) {
129
+ return cn("flex gap-2.5 border-b border-border-row px-4 py-3", compact && "px-3 py-[9px] text-[13px]", autoSelected &&
128
130
  "relative before:absolute before:inset-y-0 before:left-0 before:w-[3px] before:bg-primary/60", step.status === "open" && "bg-card", step.highlighted === true && "bg-status-warn-surface");
129
131
  }
130
- function StepRowText({ step, shownStep, phoneCard, }) {
131
- return (_jsxs("div", { className: "flex min-w-0 grow flex-col gap-1", children: [_jsx("span", { className: cn("font-medium", step.status === "rejected" && "text-muted-foreground line-through"), "data-testid": `step-${step.id}-title`, children: step.title }), step.description !== undefined && (_jsx("span", { className: "text-[13px] text-foreground-secondary", children: step.description })), _jsx(StepSourcesAndTags, { step: shownStep, phoneCard: phoneCard }), step.meta !== undefined && (_jsx("span", { className: "text-[13px] text-muted-foreground", children: step.meta })), step.link?.placement === "below" && _jsx(StepBelowLink, { link: step.link }), _jsx(StepActions, { step: step })] }));
132
+ function StepRowText({ step, shownStep, phoneCard, compact, }) {
133
+ return (_jsxs("div", { className: "flex min-w-0 grow flex-col gap-1", children: [_jsx("span", { className: cn("font-medium", step.status === "rejected" && "text-muted-foreground line-through"), "data-testid": `step-${step.id}-title`, children: step.title }), step.description !== undefined && (_jsx("span", { className: cn("text-[13px] text-foreground-secondary", compact && "text-xs text-muted-foreground"), children: step.description })), _jsx(StepSourcesAndTags, { step: shownStep, phoneCard: phoneCard }), step.meta !== undefined && (_jsx("span", { className: "text-[13px] text-muted-foreground", children: step.meta })), step.link?.placement === "below" && _jsx(StepBelowLink, { link: step.link }), _jsx(StepActions, { step: step })] }));
132
134
  }
133
135
  export function StepRow({ step, phoneCard = false, selection, }) {
134
136
  const t = useTranslation();
135
- const shownStep = selection === undefined
136
- ? step
137
- : { ...step, tags: [...(step.tags ?? []), ...selectionTags(selection.state, t)] };
138
- return (_jsxs("li", { "data-testid": `step-${step.id}`, className: stepRowClassName(step, isAutoSelected(selection)), ...(step.highlighted === true && { "aria-current": "step" }), children: [selection !== undefined && _jsx(StepSelectionCell, { step: step, selection: selection }), _jsx(StatusIcon, { step: step }), _jsx(StepRowText, { step: step, shownStep: shownStep, phoneCard: phoneCard }), step.link !== undefined && step.link.placement !== "below" && _jsx(StepLink, { link: step.link })] }));
137
+ const sideTags = (step.tags ?? []).filter((tag) => tag.side === true);
138
+ const bodyTags = (step.tags ?? []).filter((tag) => tag.side !== true);
139
+ const shownStep = {
140
+ ...step,
141
+ tags: selection === undefined ? bodyTags : [...bodyTags, ...selectionTags(selection.state, t)],
142
+ };
143
+ const compact = selection?.compact === true;
144
+ const trailingLink = step.link !== undefined && step.link.placement !== "below" ? (_jsx(StepLink, { link: step.link, compact: compact })) : null;
145
+ const replacesStatusIcon = compact && selection.state.kind === "selectable";
146
+ return (_jsxs("li", { "data-testid": `step-${step.id}`, className: stepRowClassName(step, isAutoSelected(selection), compact), ...(step.highlighted === true && { "aria-current": "step" }), children: [selection !== undefined && _jsx(StepSelectionCell, { step: step, selection: selection }), !replacesStatusIcon && _jsx(StatusIcon, { step: step }), _jsx(StepRowText, { step: step, shownStep: shownStep, phoneCard: phoneCard, compact: compact }), sideTags.length > 0 ? (_jsxs("div", { className: "flex shrink-0 flex-col items-end gap-1", "data-testid": `step-${step.id}-side`, children: [sideTags.map((tag) => (_jsx(StepTagBadge, { tone: tagTone(tag.tone), label: tag.label, chip: true }, tag.label))), trailingLink] })) : (trailingLink)] }));
139
147
  }
@@ -4,8 +4,12 @@ import { type StepAction, type StepListItem } from "./step-list-row.tsx";
4
4
  export type { StepAction, StepListItem, StepSelectability, StepSource, StepStatus, StepTag, } from "./step-list-row.tsx";
5
5
  export type StepSelectionAction = {
6
6
  readonly id: string;
7
- /** Without a number: the list appends " (n)" with the effective selection size. */
7
+ /** Without a number: the list appends " (n)" with the effective selection size (see `labelForCount`). */
8
8
  readonly label: string;
9
+ /** Replaces the appended " (n)": the label for the effective selection size. The action is disabled at 0. */
10
+ readonly labelForCount?: (count: number) => string;
11
+ /** No counter, never disabled by an empty selection (e.g. "Review one by one"); `onClick` still gets the selection. */
12
+ readonly ignoresSelection?: true;
9
13
  /** Receives the effective selection in list order, prerequisites included. */
10
14
  readonly onClick: (stepIds: readonly string[]) => void;
11
15
  readonly variant?: "primary" | "secondary" | "ghost";
@@ -18,6 +22,8 @@ export type StepListSelection = {
18
22
  readonly onSelectionChange: (selectedIds: readonly string[]) => void;
19
23
  /** Replace `footerActions` while at least one step is selected. */
20
24
  readonly actions: readonly StepSelectionAction[];
25
+ /** Phone-card style: no select-all row, the actions stay visible at 0 selected (disabled unless `ignoresSelection`), a muted header and left-aligned footer. */
26
+ readonly compact?: true;
21
27
  };
22
28
  export type StepListProps = {
23
29
  readonly title: string;
@@ -31,6 +37,8 @@ export type StepListProps = {
31
37
  readonly steps: readonly StepListItem[];
32
38
  /** Footer row: a ghost action for the whole list next to the primary next-step action. */
33
39
  readonly footerActions?: readonly StepAction[];
40
+ /** Quiet line under the footer actions, e.g. "Nothing is saved without you." */
41
+ readonly footerNote?: string;
34
42
  /** Show only the first n steps plus "und k weitere Schritte" (expands on click). */
35
43
  readonly collapsedAfter?: number;
36
44
  /** "always" (default) folds after `collapsedAfter`; "overflow" folds a `fill` list only when its steps do not fit its height, then shows as many as fit but at least `collapsedAfter`. */
@@ -39,8 +47,8 @@ export type StepListProps = {
39
47
  readonly surface?: "ai" | "plain";
40
48
  /** Stretch to the container height: steps scroll in the middle, the footer stays pinned at the bottom. */
41
49
  readonly fill?: boolean;
42
- /** "full" (default) = "x von y erledigt" plus bar, "count" = only the count, "none" = neither, e.g. when `status` already says the list is done. */
43
- readonly progress?: "full" | "count" | "none";
50
+ /** "full" (default) = "x von y erledigt" plus bar, "count" = only the count, "total" = only "n steps" (rejected ones left out), "none" = neither, e.g. when `status` already says the list is done. */
51
+ readonly progress?: "full" | "count" | "total" | "none";
44
52
  readonly emptyContent?: ReactNode;
45
53
  /** Adds a checkbox per selectable step, a select-all row and selection footer actions. */
46
54
  readonly selection?: StepListSelection;
@@ -49,4 +57,4 @@ export type StepListProps = {
49
57
  readonly testId?: string;
50
58
  };
51
59
  /** Ordered plan of steps with status icons, progress header and per-step actions. */
52
- export declare function StepList({ title, subtitle, status, steps, footerActions, collapsedAfter, collapseWhen, surface, fill, progress, emptyContent, selection, phoneCard, testId, }: StepListProps): ReactNode;
60
+ export declare function StepList({ title, subtitle, status, steps, footerActions, footerNote, collapsedAfter, collapseWhen, surface, fill, progress, emptyContent, selection, phoneCard, testId, }: StepListProps): ReactNode;
@@ -10,20 +10,26 @@ import { useStepFold } from "./step-list-fit.js";
10
10
  import { StepActionButton, StepRow, } from "./step-list-row.js";
11
11
  import { resolveStepSelection, toggleAllStepSelection, toggleStepSelection, } from "./step-list-selection.js";
12
12
  function selectionFooterActions(selection, summary, t) {
13
- return selection.actions.map((action) => ({
14
- id: action.id,
15
- label: t("kumiko.widget.step-list.actionWithCount", {
16
- label: action.label,
17
- count: summary.selectedCount,
18
- }),
19
- onClick: () => action.onClick(summary.effectiveIds),
20
- variant: action.variant,
21
- disabled: action.disabled,
22
- pending: action.pending,
23
- }));
13
+ const count = summary.selectedCount;
14
+ return selection.actions.map((action) => {
15
+ const ignoresSelection = action.ignoresSelection === true;
16
+ const label = ignoresSelection
17
+ ? action.label
18
+ : action.labelForCount !== undefined
19
+ ? action.labelForCount(count)
20
+ : t("kumiko.widget.step-list.actionWithCount", { label: action.label, count });
21
+ return {
22
+ id: action.id,
23
+ label,
24
+ onClick: () => action.onClick(summary.effectiveIds),
25
+ variant: action.variant,
26
+ disabled: action.disabled === true || (!ignoresSelection && count === 0),
27
+ pending: action.pending,
28
+ };
29
+ });
24
30
  }
25
31
  /** Ordered plan of steps with status icons, progress header and per-step actions. */
26
- export function StepList({ title, subtitle, status, steps, footerActions, collapsedAfter, collapseWhen = "always", surface = "ai", fill = false, progress = "full", emptyContent, selection, phoneCard = false, testId = "step-list", }) {
32
+ export function StepList({ title, subtitle, status, steps, footerActions, footerNote, collapsedAfter, collapseWhen = "always", surface = "ai", fill = false, progress = "full", emptyContent, selection, phoneCard = false, testId = "step-list", }) {
27
33
  const [expanded, setExpanded] = useState(false);
28
34
  const { total, done } = countProgress(steps);
29
35
  const { visibleSteps, hiddenCount, listRef } = useStepFolding({
@@ -36,7 +42,8 @@ export function StepList({ title, subtitle, status, steps, footerActions, collap
36
42
  const { summary, footer, selectionFooterActive } = model;
37
43
  return (_jsxs("section", { "aria-label": title, "data-testid": testId, className: cn(
38
44
  // Px on phones: an app may shrink its root font for desktop density, the phone reading size stays.
39
- "flex min-h-0 flex-col text-sm max-md:text-[14px]", fill && "h-full", surface === "ai" && "bg-ai-surface", phoneCard && "max-md:rounded-md max-md:p-3"), children: [_jsx(StepListHeader, { title: title, subtitle: subtitle, status: status, progress: progress, done: done, total: total, phoneCard: phoneCard, testId: testId }), _jsx(SelectAllSection, { steps: steps, selection: selection, summary: summary, phoneCard: phoneCard }), steps.length === 0 ? (emptyContent) : (_jsx(StepListRows, { steps: steps, visibleSteps: visibleSteps, hiddenCount: hiddenCount, listRef: listRef, selection: selection, summary: summary, phoneCard: phoneCard, onExpand: () => setExpanded(true), testId: testId })), _jsx(StepListFooter, { footer: footer, selectionActive: selectionFooterActive })] }));
45
+ "flex min-h-0 flex-col text-sm max-md:text-[14px]", fill && "h-full", surface === "ai" && "bg-ai-surface", phoneCard && "max-md:rounded-md max-md:p-3", selection?.compact === true &&
46
+ "overflow-hidden rounded-lg border border-border bg-card max-md:p-0"), children: [_jsx(StepListHeader, { title: title, subtitle: subtitle, status: status, progress: progress, done: done, total: total, phoneCard: phoneCard, compact: selection?.compact === true, testId: testId }), _jsx(SelectAllSection, { steps: steps, selection: selection, summary: summary, phoneCard: phoneCard }), steps.length === 0 ? (emptyContent) : (_jsx(StepListRows, { steps: steps, visibleSteps: visibleSteps, hiddenCount: hiddenCount, listRef: listRef, selection: selection, summary: summary, phoneCard: phoneCard, onExpand: () => setExpanded(true), testId: testId })), _jsx(StepListFooter, { footer: footer, note: footerNote, selectionActive: selectionFooterActive, compact: selection?.compact === true })] }));
40
47
  }
41
48
  function countProgress(steps) {
42
49
  return {
@@ -60,7 +67,9 @@ function useStepFolding(input) {
60
67
  function useSelectionModel(steps, selection, footerActions) {
61
68
  const t = useTranslation();
62
69
  const summary = selection === undefined ? undefined : resolveStepSelection(steps, selection.selectedIds);
63
- if (selection !== undefined && summary !== undefined && summary.selectedCount > 0) {
70
+ if (selection !== undefined &&
71
+ summary !== undefined &&
72
+ (summary.selectedCount > 0 || selection.compact === true)) {
64
73
  return {
65
74
  summary,
66
75
  footer: selectionFooterActions(selection, summary, t),
@@ -72,12 +81,15 @@ function useSelectionModel(steps, selection, footerActions) {
72
81
  function SelectAllSection({ steps, selection, summary, phoneCard, }) {
73
82
  if (selection === undefined || summary === undefined || steps.length === 0)
74
83
  return null;
84
+ if (selection.compact === true)
85
+ return null;
75
86
  return (_jsx(SelectAllRow, { summary: summary, phoneCard: phoneCard, onToggle: () => selection.onSelectionChange(toggleAllStepSelection(steps, selection.selectedIds)) }));
76
87
  }
77
88
  function rowSelectionFor(step, steps, selection, summary) {
78
89
  if (selection === undefined || summary === undefined)
79
90
  return undefined;
80
91
  return {
92
+ ...(selection.compact === true && { compact: true }),
81
93
  state: summary.states.get(step.id) ?? { kind: "none" },
82
94
  onToggle: () => selection.onSelectionChange(toggleStepSelection(steps, selection.selectedIds, step.id)),
83
95
  };
@@ -86,18 +98,22 @@ function StepListRows({ steps, visibleSteps, hiddenCount, listRef, selection, su
86
98
  const t = useTranslation();
87
99
  const { Button } = usePrimitives();
88
100
  return (_jsxs("ol", { ref: listRef, className: cn("m-0 min-h-0 grow list-none overflow-y-auto p-0", phoneCard &&
89
- "max-md:rounded-md max-md:border max-md:border-border max-md:bg-card max-md:[&>li:last-child]:border-b-0 max-md:[&>li]:px-3 max-md:[&>li]:py-2.5", selection !== undefined && phoneCard && "max-md:rounded-t-none"), children: [visibleSteps.map((step) => {
101
+ "max-md:rounded-md max-md:border max-md:border-border max-md:bg-card max-md:[&>li:last-child]:border-b-0 max-md:[&>li]:px-3 max-md:[&>li]:py-2.5", selection !== undefined && phoneCard && "max-md:rounded-t-none", selection?.compact === true && "border-t border-border-row [&>li:last-child]:border-b-0"), children: [visibleSteps.map((step) => {
90
102
  const rowSelection = rowSelectionFor(step, steps, selection, summary);
91
103
  return (_jsx(StepRow, { step: step, phoneCard: phoneCard, ...(rowSelection !== undefined && { selection: rowSelection }) }, step.id));
92
104
  }), hiddenCount > 0 && (_jsx("li", { className: "px-4 py-3", children: _jsx(Button, { variant: "link", size: "sm", className: "text-[13px] font-normal text-foreground-secondary hover:text-foreground", onClick: onExpand, testId: `${testId}-more`, children: t("kumiko.widget.step-list.moreSteps", { count: hiddenCount }) }) }))] }));
93
105
  }
94
- function StepListFooter({ footer, selectionActive, }) {
95
- if (footer.length === 0)
106
+ function StepListFooter({ footer, note, selectionActive, compact, }) {
107
+ if (footer.length === 0 && note === undefined)
96
108
  return null;
109
+ const noteLine = note !== undefined && (_jsx("p", { className: "m-0 w-full text-[11.5px] text-muted-foreground", "data-testid": "step-list-note", children: note }));
110
+ if (compact) {
111
+ return (_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2 border-t border-border px-3 py-2.5", children: [footer.map((action) => (_jsx(StepActionButton, { action: action, className: "h-[26px] px-[9px] text-[12.5px] max-md:text-[12.5px]" }, action.id))), noteLine] }));
112
+ }
97
113
  const leading = footer.filter((action) => action.variant === "ghost");
98
114
  const trailing = footer.filter((action) => action.variant !== "ghost");
99
115
  const phoneHeight = selectionActive ? "max-md:h-11" : undefined;
100
- return (_jsxs("div", { className: "flex shrink-0 items-center gap-2 border-t border-border px-4 py-2.5", children: [leading.map((action) => (_jsx(StepActionButton, { action: action, className: phoneHeight }, action.id))), _jsx("div", { className: cn("grow", selectionActive && "max-md:hidden") }), trailing.map((action) => (_jsx(StepActionButton, { action: action, className: cn(phoneHeight, selectionActive && "max-md:grow max-md:justify-center") }, action.id)))] }));
116
+ return (_jsxs("div", { className: cn("flex shrink-0 items-center gap-2 border-t border-border px-4 py-2.5", note !== undefined && "flex-wrap"), children: [leading.map((action) => (_jsx(StepActionButton, { action: action, className: phoneHeight }, action.id))), _jsx("div", { className: cn("grow", selectionActive && "max-md:hidden") }), trailing.map((action) => (_jsx(StepActionButton, { action: action, className: cn(phoneHeight, selectionActive && "max-md:grow max-md:justify-center") }, action.id))), noteLine] }));
101
117
  }
102
118
  function SelectAllRow({ summary, phoneCard, onToggle, }) {
103
119
  const t = useTranslation();
@@ -115,7 +131,9 @@ function SelectAllRow({ summary, phoneCard, onToggle, }) {
115
131
  return (_jsxs("div", { className: cn("flex shrink-0 items-center gap-2.5 border-b border-border bg-card/60 px-4 py-2", phoneCard &&
116
132
  "max-md:rounded-t-md max-md:border max-md:border-b-0 max-md:bg-card max-md:px-3"), "data-testid": "step-list-select-all", children: [_jsx(Checkbox, { "aria-label": t("kumiko.widget.step-list.selectAll"), checked: checked, disabled: !summary.hasSelectableSteps, onCheckedChange: onToggle }), _jsx("span", { className: "text-[13px] font-medium", children: t("kumiko.widget.step-list.selectAll") }), _jsxs("span", { className: "grow text-right text-[13px] text-muted-foreground", children: [countText, missingText] })] }));
117
133
  }
118
- function StepListHeader({ title, subtitle, status, progress, done, total, phoneCard, testId, }) {
134
+ function StepListHeader({ title, subtitle, status, progress, done, total, phoneCard, compact, testId, }) {
119
135
  const t = useTranslation();
120
- return (_jsxs("div", { className: cn("flex shrink-0 flex-col gap-2 border-b border-border px-4 pb-3 pt-3.5", phoneCard && "max-md:border-b-0 max-md:px-0 max-md:pb-1.5 max-md:pt-0"), children: [_jsxs("div", { className: "flex items-baseline gap-2", children: [_jsx("h3", { className: "m-0 grow text-[15px] font-semibold", children: title }), status !== undefined && (_jsx(StatusBadge, { tone: status.tone, testId: `${testId}-status`, children: status.label })), progress !== "none" && (_jsx("span", { className: "text-[13px] text-muted-foreground", "data-testid": `${testId}-progress`, children: t("kumiko.widget.step-list.progress", { done, total }) }))] }), subtitle !== undefined && (_jsx("p", { className: "m-0 text-[13px] text-foreground-secondary", "data-testid": `${testId}-subtitle`, children: subtitle })), progress === "full" && (_jsx("div", { className: cn(phoneCard && "max-md:hidden"), children: _jsx(ProgressBar, { size: "thin", value: total === 0 ? 0 : done / total, ariaLabel: t("kumiko.widget.step-list.progressLabel") }) }))] }));
136
+ return (_jsxs("div", { className: cn("flex shrink-0 flex-col gap-2 border-b border-border px-4 pb-3 pt-3.5", phoneCard && "max-md:border-b-0 max-md:px-0 max-md:pb-1.5 max-md:pt-0", compact && "border-b-0 bg-muted px-3 py-2.5 max-md:px-3 max-md:py-2.5"), children: [_jsxs("div", { className: "flex items-baseline gap-2", children: [_jsx("h3", { className: cn("m-0 grow text-[15px] font-semibold", compact && "text-[13px]"), children: title }), status !== undefined && (_jsx(StatusBadge, { tone: status.tone, testId: `${testId}-status`, children: status.label })), progress !== "none" && (_jsx("span", { className: cn("text-[13px] text-muted-foreground", compact && "text-xs"), "data-testid": `${testId}-progress`, children: progress === "total"
137
+ ? t(pluralKey("kumiko.widget.step-list.total", total), { count: total })
138
+ : t("kumiko.widget.step-list.progress", { done, total }) }))] }), subtitle !== undefined && (_jsx("p", { className: "m-0 text-[13px] text-foreground-secondary", "data-testid": `${testId}-subtitle`, children: subtitle })), progress === "full" && (_jsx("div", { className: cn(phoneCard && "max-md:hidden"), children: _jsx(ProgressBar, { size: "thin", value: total === 0 ? 0 : done / total, ariaLabel: t("kumiko.widget.step-list.progressLabel") }) }))] }));
121
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer",
3
- "version": "0.414.0",
3
+ "version": "0.415.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.414.0",
52
- "@cosmicdrift/kumiko-types": "0.414.0",
51
+ "@cosmicdrift/kumiko-framework": "0.415.0",
52
+ "@cosmicdrift/kumiko-types": "0.415.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.414.0",
83
- "@cosmicdrift/kumiko-testing": "0.414.0",
82
+ "@cosmicdrift/kumiko-locale-de": "0.415.0",
83
+ "@cosmicdrift/kumiko-testing": "0.415.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,76 @@
1
1
  [
2
+ {
3
+ "version": "0.415.0",
4
+ "type": "fix",
5
+ "title": "Card meta limit counts lines, projection list facets honour narrowPlacement",
6
+ "detail": "The boot rule `list/card-meta-overflow` counted every meta column, so a run of `narrowInline` columns that the card draws on one line failed the boot. It now counts lines. `ListFacetSpec` takes `narrowPlacement`, so a facet of a projection list can open behind the filter icon on a phone, as on entity lists."
7
+ },
8
+ {
9
+ "version": "0.415.0",
10
+ "type": "fix",
11
+ "title": "Bottom drawers stay docked on narrow viewports",
12
+ "detail": "Below the narrow breakpoint every Drawer went full-screen and ignored `side`. With `side=\"bottom\"` the panel now stays at the bottom edge with the dimmed page behind it. Other sides keep the full-screen layout."
13
+ },
14
+ {
15
+ "version": "0.415.0",
16
+ "type": "fix",
17
+ "title": "detail pages show one h1 at a time, stat warn tone uses status-warn",
18
+ "detail": "DefaultPageHeader sets the bodyTitle flag in a layout effect, so the shell breadcrumb no longer paints its own h1 next to the page's h1 under a slow CPU. The `warn` tone of StatCard, StatStripCell and MiniStat used the destructive color; it now uses `status-warn` and `status-warn-surface` like the other widgets."
19
+ },
20
+ {
21
+ "version": "0.415.0",
22
+ "type": "improvement",
23
+ "title": "board gaps round 11, drawn icons, facet labels, empty list header, short forms, bell in the menu",
24
+ "detail": "Visible change for all apps: the search, sparkles, wand and pencil icons (`Icon` keys `search`, `sparkles`, `wand`, `pencil`), the list search field, the nav search and the filter toggle use new drawn icons, exported from renderer/web as `DrawnSearch`, `DrawnSparkles`, `DrawnPencil`, `DrawnFilter`, `DrawnWand`, `DrawnPanel`. `navStyle` plain shows `DrawnPanel` on every width instead of the hamburger. Facet triggers split \"Label: \" grey from the value in its own span (`facet-<field>-value`), the sort select too (`<testId>-value`); with `narrowFacets` pills an empty select shows the label only. New options - `NamedFilterFacetOptions.hideEmpty` (zero-hit entries leave the select, \"all\" and the active entry stay; the counts are requested without `showCounts`), `ListColumnHint.narrowField` (shorter sentence on the phone card), `RecordStep.narrowTitle`, `RecordNotice.narrowTitle` and `narrowText` (also `BannerProps`), `WorkspaceShell.notificationBellPlacement: \"header\" | \"overflow\"` (overflow moves the bell into the always-visible \"…\" menu). `narrowPlacement: \"behind-filter\"` now works on lists that do not fill their height (search and filter toggle share one row below sm). A `frame: \"card\"` list from sm up keeps its header row when empty, with the empty state in the same card. Boot rule `query/output-field-missing` also checks `hint.narrowField`; the projectionList count-acceptance rule also applies to `hideEmpty`."
25
+ },
26
+ {
27
+ "version": "0.415.0",
28
+ "type": "improvement",
29
+ "title": "WorkspaceShell contentSurface and navStyle, board look for lists, panels and detail pages",
30
+ "detail": "`WorkspaceShell` takes `contentSurface?: \"card\" | \"background\"` (default \"card\") and `navStyle?: \"default\" | \"plain\"` (default \"default\"). `plain` drops the leading icons of the expanded sidebar, styles groups, entries, active entry and search like the board, shows the create plus of an entry only on hover and focus (always on coarse pointers), renders a visible plus on a group's label, shows the hamburger in the header (also in the Akte header on desktop) and sets the header to 58px. Defaults changed for all apps: the notification bell has no border, its counter is a small destructive pill; the dashboard panel header has no divider and board spacing, the titled stat strip is a grid, panel stat tiles use the page background; the pager footer reads \"1–10 von 26 · 10 pro Seite\" (no noun, no arrow at the page size, plain page buttons); the summary and totals row of a table keep their background under the sticky actions column; select-facet triggers show the label grey and the value in foreground or primary when set; select-facet dropdown counters sit right and a chip can set `separatorAfter` (new on `EntityListFacetExtraOption`); tab counts are pills; metric tiles show `sub` on its own line; Fristen date cells are mono; button columns of a dashboard list are right-aligned. `kumiko.pager.status.noun` is removed (unused). Also new: `NamedListFilterRef.emptyState` takes `paramsQuery` (a registered query QN without payload, run only while the empty state is on screen; its result object becomes the translation params of `description`; without data the description is not rendered; boot rules `list/named-filter-empty-state-params-query-empty`, `...-without-description` and `query/not-registered`); `NamedListFilterRef.separatorAfter`; `narrowPlacement: \"behind-filter\"` on `EntityListFacetConfig` and `NamedFilterFacetOptions` (the remaining facets follow the usual phone rules, both clusters share one filter toggle); `prefix` on a detail header subtitle part; `MetricSpec.subFieldNarrow`; `steps.narrowMoreLabel`, a plural base key (`<key>.one` and `<key>.other` with `{count}`; default `kumiko.detail.steps.more`). Phone cards and dashboard cards draw the tone as an inner 4px stripe instead of a left border; table row tone stripes are 4px; further step actions are grey 12.5px; the phone stat strip has no tone border; the chain panel beside the steps stretches to their height. Phone detail pages and lists: new list column option `narrowInline` (consecutive columns with it share one line of values with a 12px gap on a phone card, no separator; other apps are unaffected until they set it); new `CardOptions.headerLayout: \"stacked\" | \"inline\"` (inline puts title, subtitle and actions on one row without a divider; the chain panel uses it); `StatCard` takes `boardPadding`; the pager of a phone card list is plain text on the page without bar or border and the sort sentence is a muted 12px line; the lead paragraph of a dashboard text panel is followed by a smaller dated hint line; the page heading is 20px on a phone, detail pages use 16px side insets there, steps are divided rows with a 4px tone stripe and a \"more steps\" toggle row, the record summary has a heading-face sentence with a left stripe, metric tiles use 2-column phone spacing with a short `narrowSub` beside the value, and tab strips scroll sideways with tighter spacing on a phone. `StepList` for a plan card: `StepListSelection.compact` (no select-all row, selection actions visible at 0 selected, muted header, left-aligned footer, the checkbox replaces the status icon of selectable rows), `StepSelectionAction.labelForCount(count)` (replaces the appended \" (n)\", the action is disabled at 0), `StepSelectionAction.ignoresSelection` (no counter, always enabled, `onClick` still gets the selection), `StepTag.side` (tag in the right column above a trailing link), `progress: \"total\"` (\"n steps\", keys `kumiko.widget.step-list.total.one` and `.other`) and `footerNote`. In a list or dashboard panel with row tones every narrow card now carries the stripe, grey for neutral rows, so all cards share one inset. A filter toggle on the phone is marked active while a facet behind it is set."
31
+ },
32
+ {
33
+ "version": "0.415.0",
34
+ "type": "fix",
35
+ "title": "Dropping the pwa option retires the leftover service worker",
36
+ "detail": "Without the shell meta, the web client unregisters the service worker for its own scope when it is served as `/sw.js` and a cache with that scope's `kumiko-pwa-<scope hash>-` prefix exists, then deletes those caches. App-owned workers and other apps on the same origin have no such cache and stay untouched. `PWA_CACHE_NAME_PREFIX` now lives in the renderer headless entry and is re-exported by the server runtime script module."
37
+ },
38
+ {
39
+ "version": "0.415.0",
40
+ "type": "fix",
41
+ "title": "Row decoration sends only new ids and keeps earlier answers",
42
+ "detail": "In an infinite list each decoration call carries only the ids that have no answer yet; answers are merged across calls and dropped when the list's filter or sort changes. A reload after a write still asks for every id. A decoration query can now cap `ids` at the page size without losing the decoration once more pages are loaded."
43
+ },
44
+ {
45
+ "version": "0.415.0",
46
+ "type": "fix",
47
+ "title": "Non-searchable entity lists ignore a stale q in the URL",
48
+ "detail": "The entity list payload now gates `search` on the same searchable decision as the toolbar, like the projection list already did. A leftover `?q=` can no longer reach a query handler that does not accept it, and the keys sent match what the boot validator derives."
49
+ },
50
+ {
51
+ "version": "0.415.0",
52
+ "type": "fix",
53
+ "title": "Renderer review fixes for file view, badge cells, dashboard lists, steps and the page editor",
54
+ "detail": "The PDF View action and its drawer stop click propagation so a row click does not fire. A badge or button column shows the same text as the cell without display (lookup renderer, FormatSpec) and only computes it when needed. Dashboard list columns honour emptyPlaceholder false. Steps keep their further actions in their own row below sm. Payload-less write and client actions of guidance items are left out when the shown record id is unknown. Summary footer cells get unique keys. The managed-pages editor reports clean right after a successful save and computes its initial draft once."
55
+ },
56
+ {
57
+ "version": "0.415.0",
58
+ "type": "fix",
59
+ "title": "Renderer review fixes for shell focus, logout and locale formatting",
60
+ "detail": "`ShellTopbarActionsProvider` carries the shell's topbar actions in a context of its own, so `ShellFocusContext` consumers no longer re-render with every shell render and `useShellFocusHost` takes no argument. `useSetScreenFocus` only clears the focus it set itself. `clearNavCollapseState` runs on logout. The dashboard list phone line uses `dashboardListCellText` (bar as percent, i18n keys translated, `renderValue`), and the pager and the sort summary format numbers with the app locale."
61
+ },
62
+ {
63
+ "version": "0.415.0",
64
+ "type": "fix",
65
+ "title": "Titled stat strip drops tiles the user may not open",
66
+ "detail": "The strip wrapped every stat in its own cell, so a gated tile left an empty cell with a dangling separator. Gated tiles are now filtered before the cell is drawn. The dashboard card headline reuses the table's hint sentence class, the createPlacement and rowActionMode docs match the code, and TEMPLATE_EDITOR_SCREENS is read-only."
67
+ },
68
+ {
69
+ "version": "0.415.0",
70
+ "type": "fix",
71
+ "title": "Long segment labels end in an ellipsis instead of being clipped by the group",
72
+ "detail": "A segment is now at most as wide as its group, cuts its label with an ellipsis and names the full label in title. Short labels look the same and segments still wrap to the next row."
73
+ },
2
74
  {
3
75
  "version": "0.414.0",
4
76
  "type": "fix",
@@ -314,6 +314,12 @@
314
314
  :root:has([data-kumiko-layout="shell-header"]) {
315
315
  --shell-header-height: 3.5rem;
316
316
  }
317
+ :root:has([data-kumiko-layout="shell-header"][data-nav-style="plain"]),
318
+ :root:has([data-kumiko-layout="shell-header"][data-nav-style="plain"]):has(
319
+ [data-collapsible="icon"]
320
+ ) {
321
+ --shell-header-height: 58px;
322
+ }
317
323
  :root:has([data-kumiko-layout="shell-header"]):has([data-collapsible="icon"]) {
318
324
  --shell-header-height: 3.5rem;
319
325
  }