@design.estate/dees-catalog 21.46.0 → 21.47.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 (69) hide show
  1. package/dist_bundle/bundle.js +825 -259
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FCUX4QGD.js → chunk-Q5VY4AV7.js} +3 -3
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LWT7IIPZ.js → chunk-QG5BHDQO.js} +2 -2
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VJVZHESI.js → chunk-UPDBEHU2.js} +16 -3
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VJVZHESI.js.map → chunk-UPDBEHU2.js.map} +1 -1
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-7PGZC4IF.js → de-E2CUVVOP.js} +16 -3
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-E2CUVVOP.js.map +1 -0
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VOIWY235.js → dees-modal-YOGT7PSU.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EJRHSZ5F.js → dees-workspace-terminal-ORLONA36.js} +4 -4
  11. package/dist_ts_web/00_commitinfo_data.js +1 -1
  12. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.d.ts +24 -7
  13. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.js +53 -18
  14. package/dist_ts_web/elements/00group-dataview/dees-thread/dees-thread.d.ts +9 -1
  15. package/dist_ts_web/elements/00group-dataview/dees-thread/dees-thread.js +42 -5
  16. package/dist_ts_web/elements/00group-dataview/dees-thread/interfaces.d.ts +11 -0
  17. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.d.ts +30 -8
  18. package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.js +95 -24
  19. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +14 -3
  20. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.d.ts +17 -5
  21. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.js +6 -2
  22. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +76 -20
  23. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.js +3 -1
  24. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.d.ts +3 -1
  25. package/dist_ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.js +17 -3
  26. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +3 -1
  27. package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +12 -2
  28. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.d.ts +41 -5
  29. package/dist_ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.js +196 -20
  30. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +25 -2
  31. package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +137 -8
  32. package/dist_ts_web/elements/00group-kanban/index.d.ts +1 -0
  33. package/dist_ts_web/elements/00group-kanban/index.js +2 -1
  34. package/dist_ts_web/elements/00group-kanban/interfaces.d.ts +96 -3
  35. package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +119 -3
  36. package/dist_ts_web/elements/00group-kanban/kanban.helpers.d.ts +19 -1
  37. package/dist_ts_web/elements/00group-kanban/kanban.helpers.js +50 -1
  38. package/dist_ts_web/elements/00group-kanban/kanban.styles.js +32 -1
  39. package/dist_ts_web/i18n/de.d.ts +53 -1
  40. package/dist_ts_web/i18n/de.js +15 -2
  41. package/dist_ts_web/i18n/messages.d.ts +53 -1
  42. package/dist_ts_web/i18n/messages.js +15 -2
  43. package/package.json +1 -1
  44. package/readme.md +58 -19
  45. package/ts_web/00_commitinfo_data.ts +1 -1
  46. package/ts_web/elements/00group-dataview/dees-table/dees-table.ts +54 -17
  47. package/ts_web/elements/00group-dataview/dees-thread/dees-thread.ts +39 -4
  48. package/ts_web/elements/00group-dataview/dees-thread/interfaces.ts +11 -0
  49. package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts +83 -21
  50. package/ts_web/elements/00group-harness/interfaces.ts +14 -3
  51. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.ts +5 -1
  52. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +82 -23
  53. package/ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts +2 -0
  54. package/ts_web/elements/00group-kanban/dees-kanban-card/dees-kanban-card.ts +11 -2
  55. package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +6 -1
  56. package/ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts +199 -21
  57. package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +144 -6
  58. package/ts_web/elements/00group-kanban/index.ts +1 -0
  59. package/ts_web/elements/00group-kanban/interfaces.ts +101 -4
  60. package/ts_web/elements/00group-kanban/kanban.demodata.ts +126 -2
  61. package/ts_web/elements/00group-kanban/kanban.helpers.ts +70 -0
  62. package/ts_web/elements/00group-kanban/kanban.styles.ts +31 -0
  63. package/ts_web/i18n/de.ts +14 -1
  64. package/ts_web/i18n/messages.ts +14 -1
  65. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-7PGZC4IF.js.map +0 -1
  66. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FCUX4QGD.js.map → chunk-Q5VY4AV7.js.map} +0 -0
  67. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LWT7IIPZ.js.map → chunk-QG5BHDQO.js.map} +0 -0
  68. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VOIWY235.js.map → dees-modal-YOGT7PSU.js.map} +0 -0
  69. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EJRHSZ5F.js.map → dees-workspace-terminal-ORLONA36.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "21.46.0",
3
+ "version": "21.47.0",
4
4
  "private": false,
5
5
  "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
package/readme.md CHANGED
@@ -3495,7 +3495,7 @@ html`<dees-table
3495
3495
  - `rowClick` opens a row with a single click, as a list opens its entry for list→detail navigation: a plain primary click on the row's data runs the row's first relevant `rowClick` action, and so do Space on the focused row and Enter on a row without a relevant `doubleClick` action. Enter runs one action: a row with both kinds runs its `doubleClick` action. Clicks on a control inside the row (a link, a button, anything focusable), on an editable cell, which the click focuses for editing, and on the selection and actions columns stay theirs, as do clicks with Shift, Ctrl, Cmd or Alt (selection gestures), the second click of a double click and a click that ends a drag (a text selection). Rows with such an action show a pointer. A double click activates with its first click and then runs its `doubleClick` action, which is unchanged. `activateRow(row)` runs the action as an activation does and answers whether it ran one (a row whose `rowClick` action is disabled answers `false`); a rejected action reports `source: 'table-rowclick'`.
3496
3496
  - `keyCombination` runs an action on the keys its `keyCombination` names, written as the app bar's shortcuts: `{ name: 'Delete', type: ['inRow', 'keyCombination'], keyCombination: 'Delete', … }`, `'Mod+E'`, `'Shift+Alt+D'`, where `Mod` (also `Cmd` or `Ctrl`) is the platform's modifier — Command on Apple platforms, Control elsewhere. The keys count while the focus is on a row or on the table itself: a row action runs for the focused row, else for `selectedDataRow`, when its `actionRelevancyCheckFunc` accepts that row, and an action that is also a `header`, `footer` or `empty` action acts on the table with `selectedDataRow`, as its button does. The first declared action whose keys match and that applies runs, once per press, ahead of the table's own keys (Enter, Space, the arrows, Ctrl/Cmd+C); a link, a field or another control in the table, and a cell's editor, keep their keys. A rejected action reports `source: 'table-keycombination'`.
3497
3497
  - `revealRow(id, { pulse? })` points the reader to a row: the row whose `rowKey` is `id` is brought into view, centred in what the reader sees, in whichever scroller holds the table (its own under `fill` or `fixedHeight`, an ancestor, the page). A virtualized table renders the row first, however far away it is, and corrects its estimate of where the row stands once the row is measured. The scroll is smooth unless the reader asked for less motion (`prefers-reduced-motion: reduce`) or the row had to be rendered first. With `pulse`, the row lights up in a wash of the accent and fades back over 1.6 s; under reduced motion it holds the wash as long without the fade. The focus and the selection stay as they were. It answers whether the row is shown: `false` for an id no row has, a row the search or a filter leaves out, or a table that shows no rows (a failed load) — a host that wants such a row shown clears what hides it first.
3498
- - `fixedHeight` uses internal scrolling with sticky headers and `--table-max-height`; the default uses a floating header while the page scrolls. The footer — row counts, selection and footer actions — sticks only where the table scrolls its own rows, by default: under `fill` while the rows overflow it, and `fixedHeight` keeps it under its own box. A table as tall as its rows lets its footer scroll with the page. `stickyFooter` (`sticky-footer`, unset by default) decides it: `.stickyFooter=${true}` (the attribute) keeps the footer of a table as tall as its rows at the bottom of the page's scroller while the table runs past it, the counterpart of the floating header, flush with the bottom edge the reader sees, over any padding the scroller has; it comes into view with the column header, so a table scrolling in from below shows its footer right below the column header, ahead of the rows. `.stickyFooter=${false}` (`sticky-footer="false"`) never sticks it. A table that fits is unchanged either way. `fill` makes the table take the height its host gives it — a grid or flex track of definite size, as an app-like page gives a section that scrolls on its own: the header and footer keep their height, the rows scroll between them under a sticky column header, nothing outside the table scrolls, and a table without rows centres its empty state in that space. `fill` takes precedence over `fixedHeight` (no `--table-max-height` cap), and while its rows scroll inside it no floating header shows. Under `fill` and `fixedHeight` an edge of the rows' scroller casts a [scroll-edge shadow](#scroll-edges) while rows lie past it: under the column header once the reader scrolled down, above the footer while rows lie below. A host without a definite height leaves nothing to fill: the table grows to its rows, the page scrolls, and the floating header keeps the column headers in view as without `fill`. `virtualized` limits rendered rows and retains spacer geometry. Rows may differ in height: each rendered row is measured and keeps its height, rows not rendered yet are estimated at the mean of the measured ones, and the row under the reader stays in place when a measurement corrects an estimate. A row above it that changes height after it rendered (a late image, a cell that wraps) moves it, and the table moves it back on the next frame unless the reader scrolled in between. Rows that share an id — a `rowKey` naming a missing or repeated field, one object listed twice — are told apart by position, and a row that stays in the window keeps its element. A column widens when the window changes, `data` is replaced or a cell edit is committed and the rows on screen hold a wider value than the column was sized for; a row changed in place without either widens it when the window next changes. The table turns browser scroll anchoring off for its rows (`overflow-anchor: none`) and anchors them itself.
3498
+ - `fixedHeight` uses internal scrolling with sticky headers and `--table-max-height`; the default uses a floating header while the page scrolls. The footer — row counts, selection and footer actions — sticks only where the table scrolls its own rows, by default: under `fill` while the rows overflow it, and `fixedHeight` keeps it under its own box. A table as tall as its rows lets its footer scroll with the page. `stickyFooter` (`sticky-footer`, unset by default) decides it: `.stickyFooter=${true}` (the attribute) keeps the footer of a table as tall as its rows at the bottom of the page's scroller while the table runs past it, the counterpart of the floating header, flush with the bottom edge the reader sees, over any padding the scroller has; it comes into view with the column header, so a table scrolling in from below shows its footer right below the column header, ahead of the rows. `.stickyFooter=${false}` (`sticky-footer="false"`) never sticks it. A table that fits is unchanged either way. `fill` makes the table take the height its host gives it — a grid or flex track of definite size, as an app-like page gives a section that scrolls on its own: the header and footer keep their height, the rows scroll between them under a sticky column header, nothing outside the table scrolls, and a table without rows centres its empty state in that space. `fill` takes precedence over `fixedHeight` (no `--table-max-height` cap), and while its rows scroll inside it no floating header shows. Under `fill` and `fixedHeight` an edge of the rows' scroller casts a [scroll-edge shadow](#scroll-edges) while rows lie past it: under the column header once the reader scrolled down, above the footer while rows lie below. A host without a definite height leaves nothing to fill: the table grows to its rows, the page scrolls, and the floating header keeps the column headers in view as without `fill`. `virtualized` limits rendered rows and retains spacer geometry. Rows may differ in height: each rendered row is measured and keeps its height, rows not rendered yet are estimated at the mean of the measured ones, and the row under the reader stays in place when a measurement corrects an estimate. A row above it that changes height after it rendered (a late image, a cell that wraps) moves it, and the table moves it back on the next frame unless the reader scrolled in between. Rows that share an id — a `rowKey` naming a missing or repeated field, one object listed twice — are told apart by position, and a row that stays in the window keeps its element. A column widens when the window changes, `data` is replaced, a search, a filter or a sort shows other rows or a cell edit is committed and the rows on screen hold a wider value than the column was sized for; a row changed in place without any of these widens it when the window next changes. A widening column takes the room the columns were stretched by to fill the container first, so the table grows wider than its container, and scrolls sideways, only once the values shown so far need more than it holds. The table turns browser scroll anchoring off for its rows (`overflow-anchor: none`) and anchors them itself.
3499
3499
  - Set a column's `editor` to `text`, `number`, `checkbox`, `dropdown`, `date`, or `tags`; `editable: true` defaults to text. Use `editorOptions`, `format`, `parse`, and `validate` for value handling. Double-click edits a cell; Enter commits and opens the cell below, Tab and Shift+Tab commit and open the next or previous editable cell, leaving the editor commits it, and Escape closes it without committing. A value `validate` refuses keeps its editor open, Enter and Tab included. `cellEdit` reports `{ row, key, oldValue, newValue }`; `cellEditError` reports validation failures. `commitCellEdit(row, column, value)` applies a value through `parse` and `validate` and returns whether it was accepted; it closes the editor only when that is the cell being edited.
3500
3500
  - [`frameless`](#frameless-components) drops the table's outer frame and surface when the host — a modal, a panel, a dashboard cell — already owns it: the host's surface shows through the header, rows and footer, and a sticky header or footer paints its backdrop only while rows pass beneath it. Inline cell editors are frameless in every mode. A frameless table also takes the [region inset](#region-inset) of the body it sits in at its edges: header band, first and last cells, footer, skeleton rows and notice; the selection checkbox starts at it and the row actions end at it.
3501
3501
  - Loading, failure and emptiness are said through [`dees-state`](#deesstate), like every other place of an app. `loading` without rows says "Loading {dataName}…" in place of the empty state; with rows — a refresh — the rows stay, the body is `aria-busy` and a thin bar runs along the top edge. `error` — the reader's sentence for why, such as "The registry did not answer." — hides the rows and says "Could not load {dataName}." with it, `errorDetail` folded under "Technical details" and, with `onRetry`, a Retry button that stays pending while the awaited retry runs; clear `error` to show the rows again. An empty table (no rows, no search) offers the data actions of type `'empty'` — `type: ['header', 'empty']` puts "New service" in the header and in the empty state — and the controls in its `empty` slot. A search or filter that matches nothing still offers Clear filters.
@@ -3903,7 +3903,11 @@ in a new tab; one without, or with an unsafe one, is a button that reports
3903
3903
  `thread-attachment-open` with the entry and the attachment, for a host that opens its files
3904
3904
  itself. `delivery: 'pending'` marks an entry being posted or an
3905
3905
  agent still writing; `'refused'` shows `deliveryError` with Retry and Discard
3906
- (`thread-retry`, `thread-discard`).
3906
+ (`thread-retry`, `thread-discard`). An entry with a `slot` shows the thread's child of
3907
+ that slot name in place of its body, such as a question card the reader answers there;
3908
+ `body` stands in while no child has it. An entry with `attention` waits for the reader:
3909
+ its tile is outlined in the warning colour with that badge ("Open question") in its
3910
+ header, and it never folds into a long thread's hidden middle.
3907
3911
 
3908
3912
  An `IThreadEvent` is one line: `opened`, `answered`, `reopened`, `closed`, `assigned`,
3909
3913
  `unassigned`, `labelled`, `unlabelled`, `linked`, `referenced` or `renamed`, by an
@@ -3939,7 +3943,9 @@ writes, and shows while the thread is loading too.
3939
3943
  items a thread has; a thread without items says it is loading, empty or failed, and
3940
3944
  offers its composer only once it has loaded. `error` offers Try again
3941
3945
  (`thread-reload`). A thread with more than `collapseAfter` items (30) collapses its
3942
- middle until the reader loads it. Every event carries `threadId`.
3946
+ middle until the reader loads it; `revealEntry(id)` shows the middle down to an entry that
3947
+ lies in it and scrolls the entry into view, `false` for an entry the thread does not have. Every event
3948
+ carries `threadId`.
3943
3949
 
3944
3950
  ### Media & Thumbnail Components 🎬
3945
3951
 
@@ -5422,17 +5428,19 @@ document.body.append(board);
5422
5428
  Set `.provider` to an `IKanbanProvider` backed by the application's authorized
5423
5429
  API. Omitted mutation callbacks make those actions read-only. The catalog does
5424
5430
  not store application data or implement authorization. Ticket `permissions`
5425
- can disable individual edit, move, comment and create-child actions; the server
5426
- must enforce the same permissions.
5431
+ can disable individual edit, move, comment, create-child, ask and answer actions;
5432
+ the server must enforce the same permissions.
5427
5433
 
5428
5434
  | Provider callback | Input | Result |
5429
5435
  | --- | --- | --- |
5430
5436
  | `getTicket` | `(id, signal)` | Full `IKanbanTicket`, including tickets outside the current board |
5431
5437
  | `searchTickets` | `(query, signal)` | Tickets matching key or title; omitted uses the supplied board tickets |
5432
- | `loadComments` | `(ticketId, signal)` | `IKanbanComment[]` for that ticket |
5438
+ | `loadComments` | `(ticketId, signal)` | The ticket's discussion: `IKanbanComment` and `IKanbanQuestion` items (`TKanbanDiscussionItem[]`) |
5433
5439
  | `loadActivity` | `(ticketId, signal)` | `IKanbanActivity[]`, oldest first; omitted shows no history |
5434
5440
  | `loadBoard` | `(signal)` | `IKanbanBoardSnapshot` (`tickets`, optional `columns` and `revision`) for `refresh()` |
5435
5441
  | `addComment` | `{ ticketId, body }` | Saved `IKanbanComment` with stable ID, author and ISO timestamp |
5442
+ | `askQuestion` | `{ ticketId, question }` | Saved `IKanbanQuestion`; the composer's Markdown asked as a question, answered in words |
5443
+ | `answerQuestion` | `IKanbanQuestionAnswerInput` (`ticketId`, `questionId`, `choices`, `text?`) | The `IKanbanQuestion` with its `answer` |
5436
5444
  | `updateTicket` | `{ ticketId, changes, expectedRevision? }` | Saved `IKanbanTicket`; nullable assignee/parent clears that field; a stale `expectedRevision` rejects with an `IKanbanRevisionConflict` |
5437
5445
  | `moveTicket` | `{ ticketId, columnId, beforeTicketId? }` | All `IKanbanTicket` records whose order/column changed |
5438
5446
  | `createTicket` | `{ kind, title, columnId, parentId?, project? }` | Created `IKanbanTicket` |
@@ -5477,10 +5485,10 @@ the project and the labels and sends them in `updateTicket` changes.
5477
5485
 
5478
5486
  The filters follow the catalog's filter standard, as `dees-table` does: the
5479
5487
  search field's filter button counts the active filters and opens Project, Epic,
5480
- Assignee, Label and "Assigned to me" in a speech bubble with Clear filters in its
5488
+ Assignee, Label, Auto label and "Assigned to me" in a speech bubble with Clear filters in its
5481
5489
  action footer, and the active-filter bar below the header shows each filter and
5482
5490
  the search as a removable chip with Clear all. `.filterValues` (`IKanbanFilterValues`: `text`, `project`, `epic`,
5483
- `assignee` with `'none'` for unassigned, `label`, `mine`) starts the board
5491
+ `assignee` with `'none'` for unassigned, `label`, `autoLabel`, `mine`) starts the board
5484
5492
  filtered; the reader's changes emit `kanban-filter-change`. "Assigned to me"
5485
5493
  appears when `.currentPersonId` is set, and that person in `.people` heads the
5486
5494
  comment composer with their avatar. `clearFilters()` clears them.
@@ -5493,6 +5501,28 @@ ticket was written from, with their author, time and attachments. `createdAt`,
5493
5501
  With `loadActivity`, the detail switches between the discussion and the history
5494
5502
  of changes; comments stay in the discussion.
5495
5503
 
5504
+ A ticket's questions (`IKanbanQuestion`: `question` in Markdown, `options` with ids,
5505
+ `multiSelect`, `allowCustom`, and once answered `answer` with `choices`, `text`,
5506
+ `answeredBy` and `answeredAt`) come with its comments from `loadComments`, told apart
5507
+ by `kind: 'question'`, and stand in the discussion as
5508
+ [question cards](#deesharnessquestioncard) in order of time. An unanswered one is
5509
+ outlined with an "Open question" badge and never folds away, and a hint at the top
5510
+ of the ticket counts the waiting questions and takes the reader to the oldest. With
5511
+ `answerQuestion` and the ticket's `answer` permission the reader answers in place, by
5512
+ the options, in their own words, or both; otherwise the card shows the question
5513
+ read-only. A rejected answer shows its message on the card, which waits again with the
5514
+ answer kept, as a host does that refuses a second answer. With `askQuestion` and the
5515
+ `ask` permission the composer offers "Ask as question" beside Comment.
5516
+
5517
+ `autoLabels` on a ticket are labels the host sets from the ticket's state, such as
5518
+ `openQuestion` (`kanbanOpenQuestionLabel`) while a question waits. They show as
5519
+ read-only chips with an icon beside the labels, in the detail and on the card, never
5520
+ edited or removed, and the Auto label filter and the search find them. Name them with
5521
+ `.autoLabelDefinitions` (`IKanbanAutoLabel`: `label`, `name`, `description` for the
5522
+ tooltip, a Lucide `iconName`, `tone` `'neutral'` or `'warning'`); the board knows
5523
+ `openQuestion` as "Open question". The host sends the ticket again when its
5524
+ AutoLabels change, as for any other change.
5525
+
5496
5526
  Hierarchy is independent of workflow: tasks optionally belong to epics, and
5497
5527
  subtasks belong to tasks. Each ticket has its own `columnId`; moving a parent
5498
5528
  does not move its children. Column array order controls board order, and `done`
@@ -5517,8 +5547,9 @@ Public methods and events:
5517
5547
  - `openTicket(id)` opens a ticket. Linked-ticket navigation has Back history and
5518
5548
  preserves comment and field drafts per ticket for the board instance's lifetime.
5519
5549
  - `moveTicket(input)` invokes the same permission-aware move path as the UI.
5520
- - `refreshComments(ticketId?)` reloads discussion; `setComments(ticketId, comments)`
5521
- accepts authoritative realtime snapshots without introducing transport coupling.
5550
+ - `refreshComments(ticketId?)` reloads discussion; `setComments(ticketId, items)`
5551
+ accepts authoritative realtime snapshots of comments and questions without
5552
+ introducing transport coupling.
5522
5553
  `refreshActivity(ticketId?)` reloads the history.
5523
5554
  - `refresh()` is the live update: it loads the board through `loadBoard` and
5524
5555
  shows it in place. The open ticket keeps its unsaved changes and comment
@@ -5530,6 +5561,10 @@ Public methods and events:
5530
5561
  into the host's state.
5531
5562
  - `kanban-ticket-opened`: `detail.ticketId` identifies the selected ticket.
5532
5563
  - `kanban-comment-saved`: `detail.comment` contains the saved comment.
5564
+ - `kanban-question-asked`: `detail.question` is the question `askQuestion` saved.
5565
+ - `kanban-question-answer`: the reader's answer, after `answerQuestion` saved it:
5566
+ `ticketId`, `questionId`, `choices`, `text` and the saved `question`. A refused
5567
+ answer emits nothing; its message shows on the card.
5533
5568
  - `kanban-error`: `detail.error` and `detail.message` report failed operations.
5534
5569
  - `kanban-filter-change`: `detail.filterValues` holds the reader's filters.
5535
5570
 
@@ -5548,8 +5583,8 @@ Use it through `dees-kanban` for provider handling and board-local drag ownershi
5548
5583
  #### DeesKanbanCard
5549
5584
 
5550
5585
  `dees-kanban-card` accepts `.ticket`, `.epic`, `.subtasks`, `.columns`, `.movable`,
5551
- `.pending` and `.projectName`. It displays priority, assignee, labels, its project
5552
- and completion counts.
5586
+ `.pending`, `.projectName` and `.autoLabelDefinitions`. It displays priority,
5587
+ assignee, labels and AutoLabels, its project and completion counts.
5553
5588
  `kanban-ticket-open` identifies a requested ticket, and `kanban-move-menu` carries
5554
5589
  the ticket ID and anchor element. Secondary cards remain usable independently.
5555
5590
 
@@ -5559,8 +5594,8 @@ the ticket ID and anchor element. Secondary cards remain usable independently.
5559
5594
  board's modal. It displays the parent, child tickets, description, links, source,
5560
5595
  fields, created and updated stamps, and the discussion beside the history. It
5561
5596
  accepts `.ticket`, `.tickets`, `.columns`, `.people`, `.projects`, `.provider`,
5562
- `.draft`, `.comments`, `.commentDraft`, `.currentPerson`, `.activity`, `.loadingActivity`,
5563
- `.activityError` and `.conflict` (`IKanbanEditConflict`, a save refused as stale).
5597
+ `.draft`, `.comments` (comments and questions), `.commentDraft`, `.currentPerson`,
5598
+ `.autoLabelDefinitions`, `.activity`, `.loadingActivity`, `.activityError` and `.conflict` (`IKanbanEditConflict`, a save refused as stale).
5564
5599
  It emits `kanban-ticket-save` and `kanban-ticket-draft` intents, and for a
5565
5600
  conflict `kanban-ticket-reload`, `kanban-conflict-apply` and
5566
5601
  `kanban-conflict-dismiss`; `dees-kanban` owns persistence, navigation and draft
@@ -5605,14 +5640,18 @@ its content up with the modal's heading through the [region inset](#region-inset
5605
5640
  [`dees-thread`](#deesthread) with its standard Markdown composer, which links tickets
5606
5641
  at `#` through `.searchTickets` and is headed by `.currentPerson`'s avatar.
5607
5642
  Provide `.ticketId`, `.comments`, `.draft`, `.searchTickets`, `.currentPerson`,
5608
- `.addComment`, `.loading`, `.error` and `.readOnly`. Comment bodies and the draft stay
5643
+ `.addComment`, `.loading`, `.error` and `.readOnly`; `.comments` takes the ticket's
5644
+ questions too, shown as question cards, answered through `.answerQuestion`, and
5645
+ `.askQuestion` offers "Ask as question" in the composer. `revealQuestion(id)` shows a
5646
+ question, unfolding the thread to it where it lies folded away, and focuses its answer. Comment bodies and the draft stay
5609
5647
  `TReferenceContent`, their text parts Markdown, so a comment written before shows as
5610
5648
  Markdown too. `.view` (`'full'`, `'entries'` or `'composer'`) shows the comments or the
5611
5649
  composer alone, as the thread's `view`. `submit()` awaits the save callback; errors
5612
5650
  leave the draft intact. Ctrl/⌘ Enter submits; Enter starts a new paragraph.
5613
5651
  Standalone consumers handle `kanban-comment-draft` (`ticketId`, `body`),
5614
- `kanban-comment-added` (`comment`, `submittedBody`), `kanban-ticket-open` and
5615
- `kanban-comments-refresh`. The assembled board handles these events itself.
5652
+ `kanban-comment-added` (`comment`, `submittedBody`), `kanban-question-added`
5653
+ (`question`, `submittedBody`), `kanban-question-answered` (`question`, `answer`),
5654
+ `kanban-ticket-open` and `kanban-comments-refresh`. The assembled board handles these events itself.
5616
5655
  Set `.showHeader = false` where the host's own header names the discussion.
5617
5656
 
5618
5657
  #### DeesKanbanActivity
@@ -5892,7 +5931,7 @@ Inside the chat, permission cards render **inline with the messages**: pending r
5892
5931
 
5893
5932
  #### `DeesHarnessQuestionCard`
5894
5933
 
5895
- A question the agent asks mid-run: option buttons with descriptions (single-select answers on click; `multiSelect` collects then confirms) plus an optional free-text answer (`allowCustom`, default on — Enter or "Send Answer" submits, combining selections with the text). Emits `harness-question-response` with `{ requestId, answers, request }`. Questions flow through `dees-harness-chat`'s `questions` property and render inline like permissions: pending ones pin to the end of the transcript, and answered ones persist showing the chosen answers once the host sets `response`/`respondedAt`.
5934
+ A question the agent asks mid-run: option buttons with descriptions (single-select answers on click; `multiSelect` collects then confirms) plus an optional free-text answer (`allowCustom`, default on — Enter or "Send Answer" submits, combining selections with the text). Emits `harness-question-response` with `{ requestId, answers, request }`; for a question, `answers` holds the chosen options' labels and then the reader's own words, `optionIds` the chosen options by their `id` (an option without one by its label) and `text` the own words apart, unset when they wrote none. `readOnly` shows a question to a reader who may not answer it, `frameless` drops the card's border, surface and padding where a host's tile holds it, as the Kanban discussion does, and `focusAnswer(options?)` puts the focus on the first option, or on the field where there is none, with the `FocusOptions` it is given (`preventScroll` for a host that scrolls the card into view itself). Questions flow through `dees-harness-chat`'s `questions` property and render inline like permissions: pending ones pin to the end of the transcript, and answered ones persist showing the chosen answers once the host sets `response`/`respondedAt`.
5896
5935
 
5897
5936
  A **proposal** (`kind: 'proposal'`) asks the reader to confirm changes the agent makes only once confirmed. `items` (`IHarnessProposalItem[]`) holds one change or several collected into one decision: each has a stable `id`, says what will happen (`summary`), names the record it acts on (`label`, a link where it has an `href`), shows its fields before and after (`changes`, `{ label, before?, after }`, as on the permission card) and, once carried out, what came of it (`outcome`). Five show and the rest wait behind "Show N more". A record's link emits the cancelable, bubbling and composed `harness-question-link` (`IHarnessQuestionLinkDetail`, `{ requestId, item, request }`) first: cancel it to route the record in the app, otherwise the link is followed. Decline and Confirm stand in a `dees-actionfooter`, Confirm the primary and rightmost; `confirmLabel` and `declineLabel` word them. They answer `['confirm']` or `['decline']` through `harness-question-response`, for the whole card.
5898
5937
 
@@ -5906,7 +5945,7 @@ A change that issued a secret, such as a new API key, carries it as `credential`
5906
5945
 
5907
5946
  A change that needs a value from the reader and from nobody else, such as the password of the mail account it connects, asks for it in `personFields` (`IHarnessQuestionPersonField[]`, `{ id, itemId, label, input: 'text' | 'secret', required?, multiline?, maxLength, hint? }`). Each field stands under its change, empty: the host gives no initial value. A `secret` field, multiline or not, is masked until the reader presses Show and takes `autocomplete="new-password"`, so no browser or password manager fills the reader's own saved login into it; a `text` field takes `autocomplete="off"`. Confirm waits while a required field of an included change is empty or blank, or while any field holds more than its `maxLength` (UTF-16 code units, as `String.length` counts them); a value is never cut, the field says how long it is. A field of a change left out is neither required nor sent. Confirm adds `personValues` (`IHarnessQuestionPersonValue[]`, `{ itemId, fieldId, value }`, the filled fields of the included changes) to the response detail; a decline never carries any, nor do the answer, the request or the view state. They are for the host's own confirmation: keep them out of any session history, log or storage. The card forgets what was entered once it answers, when its request changes to another `id` and when it leaves the page, so a remount never shows a value again.
5908
5947
 
5909
- Where the host cannot carry out a confirmation as sent, such as a password the mail server refused, `rejectQuestionResponse(questionId, rejection?)` on the chat or the message list (`rejectResponse(rejection?)` on the card) asks again. The request must carry no `response`. The card waits once more with the fields empty and the changes the reader left out still left out, says `rejection.message` (by default that nothing was carried out) and shows each of `rejection.fieldErrors` (`{ itemId, fieldId, message }`) at its field until the reader edits it. The view state keeps the refusal (`IHarnessQuestionViewState.rejection`), never a value, so a card the transcript remounts still shows it until the next answer. The list mounts the card where the transcript had scrolled it away and brings it into view. It returns false for an unknown question, for a question that is not a proposal, and for one already answered, expired or failed.
5948
+ Where the host cannot carry out a confirmation as sent, such as a password the mail server refused, `rejectQuestionResponse(questionId, rejection?)` on the chat or the message list (`rejectResponse(rejection?)` on the card) asks again. The request must carry no `response`. The card waits once more with the fields empty and the changes the reader left out still left out, says `rejection.message` (by default that nothing was carried out) and shows each of `rejection.fieldErrors` (`{ itemId, fieldId, message }`) at its field until the reader edits it. The view state keeps the refusal (`IHarnessQuestionViewState.rejection`), never a value, so a card the transcript remounts still shows it until the next answer. The list mounts the card where the transcript had scrolled it away and brings it into view. A question's answer is refused the same way: the card waits again with the options chosen and the own words kept, and says `rejection.message`. It returns false for an unknown question, for one already answered, and for a proposal expired or failed.
5910
5949
 
5911
5950
  What a carried-out change returns to the reader alone, such as a DNS record to add or a webhook's signing key, goes to its card with `showQuestionPersonResults(questionId, results)` on the chat or the message list (`IHarnessQuestionPersonResult[]`, `{ id, itemId, label, value, display: 'text' | 'secret' | 'link' }`), never in the request. Each stands under its change, and one for a change the card does not list after the changes: a `secret` masked with Show and Copy like a credential, a `link` opened on a click only and only for an http or https address (anything else shows as text). The list keeps them outside the view state while the question stays in the transcript; `[]` takes them away, and so does another transcript. On a card of its own, set its `personResults` property; another request `id` clears it.
5912
5951
 
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '21.46.0',
6
+ version: '21.47.0',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }
@@ -343,9 +343,13 @@ export class DeesTable<T> extends DeesElement {
343
343
  * the reader scrolled in between. Rows that share an id (a `rowKey` naming
344
344
  * a missing or repeated field, one object listed twice) are told apart by
345
345
  * position. A column widens when the
346
- * window changes, `data` is replaced or a cell edit is committed and the
347
- * rows on screen hold a wider value than it was sized for; a row changed in
348
- * place without either widens it when the window next changes. Browser
346
+ * window changes, `data` is replaced, a search, a filter or a sort shows
347
+ * other rows or a cell edit is committed and the rows on screen hold a
348
+ * wider value than it was sized for; a row changed in place without any of
349
+ * these widens it when the window next changes. A widening column takes the
350
+ * room the columns were stretched by to fill the container first: the table
351
+ * grows wider than its container only once the values on screen so far need
352
+ * more than it holds. Browser
349
353
  * scroll anchoring is off for the table's rows. Recommended for tables with
350
354
  * > a few hundred rows.
351
355
  */
@@ -667,8 +671,17 @@ export class DeesTable<T> extends DeesElement {
667
671
  * virtualized.
668
672
  */
669
673
  private __settledAnchor?: IVirtualAnchor & { scrollPosition: number };
670
- /** The window whose values the column widths were last checked against. */
671
- private __virtualColumnsCheckedFor?: { start: number; end: number };
674
+ /**
675
+ * The window, and the view it showed, whose values the column widths were
676
+ * last checked against: a search, a filter or a sort shows other rows in the
677
+ * same window.
678
+ */
679
+ private __virtualColumnsCheckedFor?: { start: number; end: number; view: T[] | undefined };
680
+ /**
681
+ * What each data column's values have needed, laid out at their natural
682
+ * width, in the windows shown since the widths were frozen.
683
+ */
684
+ private __columnContentWidths?: number[];
672
685
  private __virtualSettleFrame?: number;
673
686
  /** Currently rendered range [start, end). Triggers re-render when changed. */
674
687
  @state()
@@ -1730,9 +1743,13 @@ export class DeesTable<T> extends DeesElement {
1730
1743
  /**
1731
1744
  * The column widths are frozen from the first window. Under virtualization
1732
1745
  * later windows bring other values, so a column widens to the widest value
1733
- * rendered so far: the window is laid out at its natural widths once and
1734
- * every column keeps the larger of that and its frozen width. Returns
1735
- * whether a column widened.
1746
+ * rendered so far: the window is laid out at its natural widths once, and
1747
+ * each column needs the widest it has been in any window since the freeze.
1748
+ * A column that needs more than it has takes the room the columns were
1749
+ * stretched by to fill the table's container, shared out in proportion to
1750
+ * what each needs as the browser shares it; the table grows wider than its
1751
+ * container only once the columns need more than it holds. Returns whether
1752
+ * a column's width changed.
1736
1753
  */
1737
1754
  private __growColumnWidths(): boolean {
1738
1755
  const table = this.__realTableEl;
@@ -1746,15 +1763,25 @@ export class DeesTable<T> extends DeesElement {
1746
1763
  table.style.minWidth = '0';
1747
1764
  cells.forEach((cell) => { cell.style.width = ''; });
1748
1765
  const natural = cells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
1749
- let grew = false;
1750
- cells.forEach((cell, index) => {
1751
- const width = Math.max(frozen[index], natural[index]);
1752
- if (width > frozen[index] + 0.5) grew = true;
1753
- cell.style.width = `${width}px`;
1754
- });
1766
+ const naturalTotal = natural.reduce((sum, width) => sum + width, 0);
1767
+ const naturalTableWidth = parseFloat(getComputedStyle(table).width) || 0;
1755
1768
  table.style.minWidth = '';
1769
+ // The data columns' room: the width the container stretches the table to,
1770
+ // less what the other columns and the table's edges take.
1771
+ const room = (parseFloat(getComputedStyle(table).width) || 0) - (naturalTableWidth - naturalTotal);
1772
+ const before = this.__columnContentWidths?.length === cells.length ? this.__columnContentWidths : [];
1773
+ const needed = natural.map((width, index) => Math.max(before[index] ?? 0, width));
1774
+ this.__columnContentWidths = needed;
1775
+ const neededTotal = needed.reduce((sum, width) => sum + width, 0);
1776
+ const widths = !needed.some((width, index) => width > frozen[index] + 0.5)
1777
+ ? frozen
1778
+ : neededTotal >= room
1779
+ ? needed
1780
+ // whole pixels of the room left, so the shares never add up past it
1781
+ : needed.map((width) => width + Math.floor((room - neededTotal) * width / neededTotal));
1782
+ cells.forEach((cell, index) => { cell.style.width = `${widths[index]}px`; });
1756
1783
  table.style.tableLayout = 'fixed';
1757
- return grew;
1784
+ return widths.some((width, index) => Math.abs(width - frozen[index]) > 0.5);
1758
1785
  }
1759
1786
 
1760
1787
  /** Settles the window on the next frame: at most one range change per frame. */
@@ -1770,15 +1797,16 @@ export class DeesTable<T> extends DeesElement {
1770
1797
  this.__restoreVirtualAnchor(settled);
1771
1798
  }
1772
1799
  const range = this.__virtualRange;
1800
+ const view = this.__rowKeysFor?.view;
1773
1801
  const checked = this.__virtualColumnsCheckedFor;
1774
- if (!checked || checked.start !== range.start || checked.end !== range.end) {
1802
+ if (!checked || checked.start !== range.start || checked.end !== range.end || checked.view !== view) {
1775
1803
  const anchor = this.__captureVirtualAnchor();
1776
1804
  if (this.__growColumnWidths()) {
1777
1805
  this.__measureRenderedRows();
1778
1806
  if (anchor) this.__restoreVirtualAnchor(anchor);
1779
1807
  }
1780
1808
  // Only a window the frozen widths have seen counts as checked.
1781
- if (this.__realTableEl?.style.tableLayout === 'fixed') this.__virtualColumnsCheckedFor = { ...range };
1809
+ if (this.__realTableEl?.style.tableLayout === 'fixed') this.__virtualColumnsCheckedFor = { ...range, view };
1782
1810
  }
1783
1811
  this.__measureRenderedRows();
1784
1812
  this.__computeVirtualRange();
@@ -2549,12 +2577,21 @@ export class DeesTable<T> extends DeesElement {
2549
2577
  // their content lays them out now, not as they were.
2550
2578
  table.style.tableLayout = '';
2551
2579
  dataCells.forEach((cell) => { cell.style.width = ''; });
2580
+ this.__columnContentWidths = undefined;
2552
2581
 
2553
2582
  // An empty table has no widths worth keeping: its header and empty state
2554
2583
  // stretch across the container. It stays in automatic layout until a data
2555
2584
  // row is shown, which `updated()` measures then.
2556
2585
  if (!table.querySelector('tbody tr[data-row-idx]')) return;
2557
2586
 
2587
+ // A virtualized table shows other rows later: what the first window's
2588
+ // values need is where `__growColumnWidths()` starts.
2589
+ if (this.virtualized) {
2590
+ table.style.minWidth = '0';
2591
+ this.__columnContentWidths = dataCells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
2592
+ table.style.minWidth = '';
2593
+ }
2594
+
2558
2595
  // Freeze data widths in one read/write batch. They include the table's
2559
2596
  // stretch to its container: in fixed layout a column without a width
2560
2597
  // takes what the others leave, so natural widths alone would hand the
@@ -123,7 +123,10 @@ const safeHref = (hrefArg?: string): string | undefined => {
123
123
  * as `thread-action`. Its `attachments` follow the body: one with a `url` opens in a new tab, one
124
124
  * without dispatches `thread-attachment-open`. A host posting an entry itself shows it as `delivery: 'pending'` and, once the
125
125
  * server refused it, as `'refused'` with `deliveryError` and Retry and Discard (`thread-retry`,
126
- * `thread-discard`).
126
+ * `thread-discard`). An entry with a `slot` shows the thread's child of that slot name in place of
127
+ * its body, such as a question card; one with `attention` waits for the reader, outlined in the
128
+ * warning colour with that badge, and stays in view when the thread collapses. `revealEntry()`
129
+ * scrolls to an entry, showing it first if it was hidden.
127
130
  *
128
131
  * EVENTS: a compact line between comments — opened, answered, reopened, closed, assigned,
129
132
  * labelled, linked, referenced, renamed — with its actor and its moment. A subject with a
@@ -571,6 +574,10 @@ export class DeesThread extends DeesElement {
571
574
  border-color: var(--dees-color-accent-error);
572
575
  }
573
576
 
577
+ .entryTile.attention::part(outer) {
578
+ border-color: var(--dees-color-accent-warning);
579
+ }
580
+
574
581
  .entryTile.refused::part(content),
575
582
  .composerTile::part(content) {
576
583
  border-bottom-color: transparent;
@@ -838,7 +845,10 @@ export class DeesThread extends DeesElement {
838
845
  && collapsedHead + this.revealed + collapsedTail < items.length;
839
846
  const head = collapsing ? items.slice(0, collapsedHead + this.revealed) : items;
840
847
  const tail = collapsing ? items.slice(items.length - collapsedTail) : [];
841
- const hidden = collapsing ? items.length - head.length - tail.length : 0;
848
+ const middle = collapsing ? items.slice(head.length, items.length - tail.length) : [];
849
+ // An entry that waits for the reader stays in view below the hidden middle's line.
850
+ const waiting = middle.filter((item) => item.type === 'entry' && item.entry.attention);
851
+ const hidden = middle.length - waiting.length;
842
852
  const key = (item: TThreadItem) => `${item.type}:${item.id}`;
843
853
  const renderItem = (list: TThreadItem[]) => (item: TThreadItem, index: number) => {
844
854
  // An event right below another event follows it closely; below the collapsed middle, it does not.
@@ -861,6 +871,7 @@ export class DeesThread extends DeesElement {
861
871
  ? html`<ol class="timeline" aria-label=${this.t('thread.timeline')} aria-busy=${this.loading ? 'true' : 'false'}>
862
872
  ${directives.repeat(head, key, renderItem(head))}
863
873
  ${hidden ? this.renderCollapsed(hidden) : ''}
874
+ ${directives.repeat(waiting, key, renderItem(waiting))}
864
875
  ${directives.repeat(tail, key, renderItem(tail))}
865
876
  </ol>`
866
877
  : ''}
@@ -890,6 +901,28 @@ export class DeesThread extends DeesElement {
890
901
  this.shadowRoot?.querySelector<HTMLElement>('.composerInput')?.focus();
891
902
  }
892
903
 
904
+ /**
905
+ * Scrolls the entry `id` into view, showing the collapsed middle down to it first if it lies
906
+ * there. Resolves `false` for an entry the thread does not have.
907
+ */
908
+ public async revealEntry(id: string): Promise<boolean> {
909
+ if (this.view === 'composer') return false;
910
+ const items = this.items();
911
+ const index = items.findIndex((item) => item.type === 'entry' && item.id === id);
912
+ if (index < 0) return false;
913
+ const target = items[index];
914
+ // Only the hidden middle unfolds: the tail, and an entry that waits for the reader, show as they are.
915
+ const hidden = this.collapseAfter > 0 && items.length > this.collapseAfter
916
+ && index >= collapsedHead + this.revealed && index < items.length - collapsedTail
917
+ && !(target.type === 'entry' && target.entry.attention);
918
+ if (hidden) this.revealed = index + 1 - collapsedHead;
919
+ await this.updateComplete;
920
+ const item = [...(this.shadowRoot?.querySelectorAll<HTMLElement>('li[data-entry-id]') ?? [])]
921
+ .find((element) => element.dataset.entryId === id);
922
+ item?.scrollIntoView({ block: 'nearest', behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
923
+ return item !== undefined;
924
+ }
925
+
893
926
  // --- Items ---
894
927
 
895
928
  private items(): TThreadItem[] {
@@ -916,9 +949,10 @@ export class DeesThread extends DeesElement {
916
949
  const agent = entry.author.kind === 'agent';
917
950
  const refused = entry.delivery === 'refused';
918
951
  const pending = entry.delivery === 'pending';
952
+ const attention = entry.attention && !entry.delivery ? entry.attention : '';
919
953
  return html`<li class="item entry ${first ? 'first' : ''}" data-entry-id=${entry.id}>
920
954
  ${this.renderAvatar(entry.author, 'railAvatar')}
921
- <dees-tile class="entryTile ${refused ? 'refused' : ''} ${pending ? 'pending' : ''}">
955
+ <dees-tile class="entryTile ${refused ? 'refused' : ''} ${pending ? 'pending' : ''} ${attention ? 'attention' : ''}">
922
956
  <div slot="header" class="entryHeader">
923
957
  ${this.renderAvatar(entry.author, 'headerAvatar')}
924
958
  <span class="name">${entry.author.name}</span>
@@ -930,6 +964,7 @@ export class DeesThread extends DeesElement {
930
964
  ${this.renderEntryState(entry)}
931
965
  ${entry.editedAt && !entry.delivery ? this.renderEdited(entry.editedAt) : ''}
932
966
  <span class="spacer"></span>
967
+ ${attention ? html`<dees-badge class="attentionBadge" type="warning" size="compact" .text=${attention}></dees-badge>` : ''}
933
968
  ${entry.actions?.length && !entry.delivery
934
969
  ? html`<dees-button class="menuButton" size="icon" type="ghost" icon="lucide:Ellipsis"
935
970
  text=${this.t('thread.entryMenu')} title=${this.t('thread.entryMenu')} .ariaHasPopup=${'menu'}
@@ -938,7 +973,7 @@ export class DeesThread extends DeesElement {
938
973
  : ''}
939
974
  </div>
940
975
  <div class="entryBody">
941
- ${this.renderBody(entry)}
976
+ ${entry.slot ? html`<slot name=${entry.slot}>${this.renderBody(entry)}</slot>` : this.renderBody(entry)}
942
977
  ${entry.attachments?.length ? this.renderAttachments(entry, entry.attachments) : ''}
943
978
  ${refused && entry.deliveryError
944
979
  ? html`<p class="deliveryError"><dees-icon icon="lucide:CircleAlert" .iconSize=${14} aria-hidden="true"></dees-icon><span>${entry.deliveryError}</span></p>`
@@ -67,6 +67,17 @@ export interface IThreadEntry {
67
67
  attachments?: IThreadAttachment[];
68
68
  /** A muted line below the body, such as the sources an agent read: "Read 3 documents". */
69
69
  footnote?: string;
70
+ /**
71
+ * The body comes from the host: the thread's child with this `slot` name shows in its place, such
72
+ * as a question card the reader answers; `body` stands in while no child has it.
73
+ */
74
+ slot?: string;
75
+ /**
76
+ * The entry waits for the reader, such as a question no one answered: its tile is outlined in the
77
+ * warning colour with this badge in its header ("Open question"), and it never collapses into a
78
+ * long thread's hidden middle.
79
+ */
80
+ attention?: string;
70
81
  }
71
82
 
72
83
  /** What happened to a thread between its comments. */