@design.estate/dees-catalog 21.32.3 → 21.33.1
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.
- package/dist_bundle/bundle.js +1733 -368
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-ZRD47DC6.js → chunk-B3NM6BL3.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-EL3KNDIB.js → chunk-BDUZ7I23.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LDC2GECY.js → chunk-IK5OF7M4.js} +33 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-LDC2GECY.js.map → chunk-IK5OF7M4.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-YOX3NS2W.js → de-PTMMQ5DA.js} +33 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-PTMMQ5DA.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-7LJGK5SK.js → dees-modal-BZIJFVRI.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-O3NEQ4DO.js → dees-workspace-terminal-EU377EZY.js} +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-chart/dees-chart-area/component.d.ts +18 -0
- package/dist_ts_web/elements/00group-chart/dees-chart-area/component.js +60 -2
- package/dist_ts_web/elements/00group-chart/dees-chart-area/priceaxislabels.d.ts +24 -0
- package/dist_ts_web/elements/00group-chart/dees-chart-area/priceaxislabels.js +80 -0
- package/dist_ts_web/elements/00group-feedback/dees-hint/dees-hint.d.ts +1 -0
- package/dist_ts_web/elements/00group-feedback/dees-hint/dees-hint.js +13 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +7 -5
- package/dist_ts_web/elements/00group-harness/dees-harness-permission-card/dees-harness-permission-card.d.ts +0 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-permission-card/dees-harness-permission-card.js +10 -182
- package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.d.ts +64 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.demo.js +221 -22
- package/dist_ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.js +544 -66
- package/dist_ts_web/elements/00group-harness/harness.helpers.d.ts +16 -1
- package/dist_ts_web/elements/00group-harness/harness.helpers.js +25 -1
- package/dist_ts_web/elements/00group-harness/harness.records.d.ts +27 -0
- package/dist_ts_web/elements/00group-harness/harness.records.js +193 -0
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +93 -4
- package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.d.ts +39 -0
- package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.js +27 -10
- package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +276 -26
- package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +10 -0
- package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +144 -44
- package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.d.ts +16 -1
- package/dist_ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.js +188 -5
- package/dist_ts_web/elements/00group-kanban/interfaces.d.ts +47 -2
- package/dist_ts_web/elements/00group-kanban/kanban.demodata.d.ts +11 -1
- package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +141 -7
- package/dist_ts_web/elements/00group-kanban/kanban.dragcontroller.js +23 -1
- package/dist_ts_web/elements/00group-kanban/kanban.helpers.d.ts +15 -1
- package/dist_ts_web/elements/00group-kanban/kanban.helpers.js +31 -1
- package/dist_ts_web/i18n/de.d.ts +124 -0
- package/dist_ts_web/i18n/de.js +32 -1
- package/dist_ts_web/i18n/messages.d.ts +124 -0
- package/dist_ts_web/i18n/messages.js +32 -1
- package/package.json +2 -2
- package/readme.md +88 -15
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-chart/dees-chart-area/component.ts +59 -1
- package/ts_web/elements/00group-chart/dees-chart-area/priceaxislabels.ts +97 -0
- package/ts_web/elements/00group-feedback/dees-hint/dees-hint.ts +16 -3
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +6 -4
- package/ts_web/elements/00group-harness/dees-harness-permission-card/dees-harness-permission-card.ts +16 -186
- package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.demo.ts +261 -55
- package/ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts +575 -88
- package/ts_web/elements/00group-harness/harness.helpers.ts +39 -0
- package/ts_web/elements/00group-harness/harness.records.ts +210 -0
- package/ts_web/elements/00group-harness/interfaces.ts +99 -4
- package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.demo.ts +26 -8
- package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +267 -25
- package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +162 -57
- package/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts +202 -1
- package/ts_web/elements/00group-kanban/interfaces.ts +55 -3
- package/ts_web/elements/00group-kanban/kanban.demodata.ts +166 -6
- package/ts_web/elements/00group-kanban/kanban.dragcontroller.ts +21 -0
- package/ts_web/elements/00group-kanban/kanban.helpers.ts +53 -0
- package/ts_web/i18n/de.ts +31 -0
- package/ts_web/i18n/messages.ts +31 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-YOX3NS2W.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-ZRD47DC6.js.map → chunk-B3NM6BL3.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-EL3KNDIB.js.map → chunk-BDUZ7I23.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-7LJGK5SK.js.map → dees-modal-BZIJFVRI.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-O3NEQ4DO.js.map → dees-workspace-terminal-EU377EZY.js.map} +0 -0
package/readme.md
CHANGED
|
@@ -4288,7 +4288,9 @@ other text for the values shown.
|
|
|
4288
4288
|
The time axis starts its days at midnight in the time zone of the provided `I18n` (the
|
|
4289
4289
|
runtime's without one) and writes its ticks in its date locale on a 24-hour clock. The value
|
|
4290
4290
|
axis labels a tick only where its whole label fits in the plot: a tick closer to the plot's top
|
|
4291
|
-
or bottom edge than half a label's height has neither label nor grid line.
|
|
4291
|
+
or bottom edge than half a label's height has neither label nor grid line. Beside the label of
|
|
4292
|
+
an average or maximum line (`chartLines`) the axis also leaves out each tick label the line's
|
|
4293
|
+
label would cover, also where the axis moves overlapping labels apart; the tick keeps its grid line.
|
|
4292
4294
|
|
|
4293
4295
|
Hovering the plot shows a crosshair in the theme's colours and a tooltip with every series'
|
|
4294
4296
|
value at that moment. The crosshair labels the time axis only, in its time zone and on its
|
|
@@ -5246,7 +5248,7 @@ must enforce the same permissions.
|
|
|
5246
5248
|
| `loadActivity` | `(ticketId, signal)` | `IKanbanActivity[]`, oldest first; omitted shows no history |
|
|
5247
5249
|
| `loadBoard` | `(signal)` | `IKanbanBoardSnapshot` (`tickets`, optional `columns` and `revision`) for `refresh()` |
|
|
5248
5250
|
| `addComment` | `{ ticketId, body }` | Saved `IKanbanComment` with stable ID, author and ISO timestamp |
|
|
5249
|
-
| `updateTicket` | `{ ticketId, changes }` | Saved `IKanbanTicket`; nullable assignee/parent clears that field |
|
|
5251
|
+
| `updateTicket` | `{ ticketId, changes, expectedRevision? }` | Saved `IKanbanTicket`; nullable assignee/parent clears that field; a stale `expectedRevision` rejects with an `IKanbanRevisionConflict` |
|
|
5250
5252
|
| `moveTicket` | `{ ticketId, columnId, beforeTicketId? }` | All `IKanbanTicket` records whose order/column changed |
|
|
5251
5253
|
| `createTicket` | `{ kind, title, columnId, parentId?, project? }` | Created `IKanbanTicket` |
|
|
5252
5254
|
|
|
@@ -5258,16 +5260,31 @@ provider must assign ordering atomically. Omitting `beforeTicketId` appends.
|
|
|
5258
5260
|
Mouse and pen dragging shows a card-sized drop slot, animates neighboring cards,
|
|
5259
5261
|
and lands the preview into position. A render-only placement stays visible while
|
|
5260
5262
|
saving; slow saves show a status, and failures animate back to the saved position.
|
|
5261
|
-
Escape or dropping outside the board cancels.
|
|
5262
|
-
|
|
5263
|
+
Escape or dropping outside the board cancels. Near the top or bottom of a column's
|
|
5264
|
+
cards the drag scrolls that column, then the board's scroll containers and the page;
|
|
5265
|
+
reduced motion removes lift, rearrangement and landing animation.
|
|
5263
5266
|
Touch retains normal scrolling. The keyboard-accessible Move menu supports both
|
|
5264
5267
|
within-column ordering and column selection.
|
|
5265
5268
|
|
|
5269
|
+
A ticket's `revision` is the server's revision of it, advanced by every change.
|
|
5270
|
+
A save sends the revision its edit started from as `expectedRevision`; a provider
|
|
5271
|
+
that checks it rejects a stale save with an `IKanbanRevisionConflict`, an `Error`
|
|
5272
|
+
with `code: 'revision_conflict'` and the server's reason as its `message`. The
|
|
5273
|
+
detail shows the reason with Reload ticket and keeps the edit, which cannot be
|
|
5274
|
+
saved over the newer version. After the reload the form shows the latest version
|
|
5275
|
+
and lists each field the person changed where the latest version holds something
|
|
5276
|
+
else, to apply field by field or discard. The words of a refused save or move
|
|
5277
|
+
stay until the board holds another state of the ticket (its `revision`, else its
|
|
5278
|
+
`updatedAt`): another client's change or the person's own later move. A host that
|
|
5279
|
+
reloads the board after a refusal does so before it rejects, so the refusal
|
|
5280
|
+
answers the state it found and its words stay.
|
|
5281
|
+
|
|
5266
5282
|
Projects group tickets across one shared board. A ticket's `project` is an
|
|
5267
5283
|
`IKanbanProject` id; supply `.projects` for their names. Cards show their
|
|
5268
|
-
project unless the board is filtered to one.
|
|
5269
|
-
|
|
5270
|
-
|
|
5284
|
+
project unless the board is filtered to one. While the board knows projects,
|
|
5285
|
+
the create dialog asks for a new task's or epic's project, starting at the
|
|
5286
|
+
filtered project, else the epic's; a subtask takes its parent's. The detail edits
|
|
5287
|
+
the project and the labels and sends them in `updateTicket` changes.
|
|
5271
5288
|
|
|
5272
5289
|
The filters follow the catalog's filter standard, as `dees-table` does: the
|
|
5273
5290
|
search field's filter button counts the active filters and opens Project, Epic,
|
|
@@ -5290,10 +5307,21 @@ Hierarchy is independent of workflow: tasks optionally belong to epics, and
|
|
|
5290
5307
|
subtasks belong to tasks. Each ticket has its own `columnId`; moving a parent
|
|
5291
5308
|
does not move its children. Column array order controls board order, and `done`
|
|
5292
5309
|
identifies completed subtasks. Configure columns by supplying a new `.columns`
|
|
5293
|
-
array.
|
|
5310
|
+
array. A column with `collapsible` gets a header toggle that folds it to a narrow
|
|
5311
|
+
lane with its count, its newest three cards (the ones placed in it last, as a move
|
|
5312
|
+
appends) and Show all; `'collapsed'` starts it folded, `'expanded'` open, and the
|
|
5313
|
+
reader's folding lasts for the board instance. A card dropped on a folded column
|
|
5314
|
+
lands at its end. Supply `.people` for the assignee picker, `.loading` for loading feedback,
|
|
5294
5315
|
and `.error` for a host-side board loading failure. Supply new `.tickets` arrays
|
|
5295
5316
|
for external updates.
|
|
5296
5317
|
|
|
5318
|
+
The board takes the height its host gives it: the remaining space of a flex
|
|
5319
|
+
column, or a box of definite height. Each column's cards scroll below its header
|
|
5320
|
+
while the page stays put, and an edge past which cards lie casts a
|
|
5321
|
+
[scroll-edge shadow](#scroll-edges). In a host without a definite height the board
|
|
5322
|
+
grows with its longest column and the page scrolls. Columns that do not fit the
|
|
5323
|
+
width scroll sideways.
|
|
5324
|
+
|
|
5297
5325
|
Public methods and events:
|
|
5298
5326
|
|
|
5299
5327
|
- `openTicket(id)` opens a ticket. Linked-ticket navigation has Back history and
|
|
@@ -5318,9 +5346,12 @@ Public methods and events:
|
|
|
5318
5346
|
#### DeesKanbanColumn
|
|
5319
5347
|
|
|
5320
5348
|
`dees-kanban-column` accepts `.column`, `.tickets`, `.allTickets`, `.columns`,
|
|
5321
|
-
`.movable`, `.canCreate`, `.pendingTicketId`, `.draggingTicketId`, `.projects
|
|
5322
|
-
and `.
|
|
5323
|
-
cards and forwards their open, create and Move menu requests
|
|
5349
|
+
`.movable`, `.canCreate`, `.pendingTicketId`, `.draggingTicketId`, `.projects`,
|
|
5350
|
+
`.showProjects` and `.collapsed`. It composes
|
|
5351
|
+
cards and forwards their open, create and Move menu requests, and a collapsible
|
|
5352
|
+
column's toggle as `kanban-column-toggle`. Its cards scroll below its header in
|
|
5353
|
+
`cardScroller` once the column's height runs out; a drag that scrolls them from a
|
|
5354
|
+
frame loop calls `syncScrollEdges()` to show the edges in the same frame. Standalone columns
|
|
5324
5355
|
retain native dragging and emit `kanban-ticket-move` with the insertion target.
|
|
5325
5356
|
Use it through `dees-kanban` for provider handling and board-local drag ownership.
|
|
5326
5357
|
|
|
@@ -5338,9 +5369,11 @@ the ticket ID and anchor element. Secondary cards remain usable independently.
|
|
|
5338
5369
|
board's modal. It displays the parent, child tickets, description, links, source,
|
|
5339
5370
|
fields, created and updated stamps, and the discussion beside the history. It
|
|
5340
5371
|
accepts `.ticket`, `.tickets`, `.columns`, `.people`, `.projects`, `.provider`,
|
|
5341
|
-
`.draft`, `.comments`, `.commentDraft`, `.activity`, `.loadingActivity
|
|
5342
|
-
`.activityError`.
|
|
5343
|
-
`kanban-ticket-
|
|
5372
|
+
`.draft`, `.comments`, `.commentDraft`, `.activity`, `.loadingActivity`,
|
|
5373
|
+
`.activityError` and `.conflict` (`IKanbanEditConflict`, a save refused as stale).
|
|
5374
|
+
It emits `kanban-ticket-save` and `kanban-ticket-draft` intents, and for a
|
|
5375
|
+
conflict `kanban-ticket-reload`, `kanban-conflict-apply` and
|
|
5376
|
+
`kanban-conflict-dismiss`; `dees-kanban` owns persistence, navigation and draft
|
|
5344
5377
|
caching. `finishEditing()` returns to the saved view after a successful update.
|
|
5345
5378
|
The ticket key is visible by default. Set `.showTicketKey = false` only when the
|
|
5346
5379
|
containing surface already displays it, as the board's modal heading does.
|
|
@@ -5503,7 +5536,7 @@ Light-DOM content assigned to `slot="composer-status"` renders between the trans
|
|
|
5503
5536
|
|
|
5504
5537
|
After mutating canonical message objects in place, call `refreshMessages(ids?)`. Pass IDs for targeted content corrections, omit them after structural mutations, and pass an empty array for a no-op. `DeesHarnessChat.refreshMessages(ids?)` uses the list semantics and, except for `[]`, also recomputes transcript-derived sidebar state. The list and individual message components expose the corresponding `refreshMessages(ids?)` and `refreshMessage()` methods.
|
|
5505
5538
|
|
|
5506
|
-
A **session side panel** shows Tasks, Tools & Subagents, Tokens, Session Scratchpad, and Session Intelligence next to the transcript. Its sections form a single-open accordion: opening one collapses the others, clicking the open heading collapses all, and each expanded section owns its scrolling while every heading remains visible. Collapsed sections retain their region wrapper but omit the content subtree until expansion; sidebar-owned scratchpad and intelligence drafts survive that lazy remount. Tools & Subagents separates active calls from terminal history and derives both directly from top-level tool messages still present in the host's retained transcript window; evicted calls are not cached. Ordinary tool activity rows open `DeesHarnessToolFullscreen` over the canonical call and follow in-place updates through `refreshMessages()`; subagent rows first emit `harness-subtask-open`. The inspector closes when the call is evicted, the session changes, or the sidebar disconnects, then restores the row's focus. An unhandled subagent request opens the same fullscreen inspector. Long activity labels use an ellipsis while descriptions use the 40px right-edge fade and reveal behavior. Session Intelligence keeps its exchange history scrollable above a docked, chat-style question composer. Set `.todos` explicitly, or leave it empty and the chat derives tasks from the newest todo tool call in `messages`; `showTodosPanel={false}` hides only that section. Unknown token metrics remain absent. The toolbar controls the session panel; host-owned navigation controls belong outside the chat component. In narrow containers the session panel becomes an accessible overlay; when the toolbar is disabled, an inline Session details control keeps it reachable. `showSessionSidebar={false}` disables the complete panel. Methods: `applyDelta()`, `refreshMessages(ids?)`, `focusComposer()`, `clearComposer()`, `scrollToBottom()`, `openSessionSidebar(section?)`, `openModelSelector()`, `openAttachmentPicker()`, and `focusPendingPermission()`. Section names use the exported `THarnessSessionSidebarSection` union. Capability launchers return false when their target is unavailable or locked, so command palettes can remain outside the shadow DOM. Events (also from children, all composed): `harness-send`, `harness-command`, `harness-starter-prompt`, `harness-abort`, `harness-held-resend`, `harness-held-discard`, `harness-input`, `harness-attachments-change`, `harness-attachment-error`, `harness-account-change`, `harness-model-change`, `harness-mode-change`, `harness-permission-response`, `harness-permission-link`, `harness-question-response`, `harness-subtask-open`, `harness-scratchpad-save`, `harness-session-intelligence-ask`, `harness-session-intelligence-availability-action`.
|
|
5539
|
+
A **session side panel** shows Tasks, Tools & Subagents, Tokens, Session Scratchpad, and Session Intelligence next to the transcript. Its sections form a single-open accordion: opening one collapses the others, clicking the open heading collapses all, and each expanded section owns its scrolling while every heading remains visible. Collapsed sections retain their region wrapper but omit the content subtree until expansion; sidebar-owned scratchpad and intelligence drafts survive that lazy remount. Tools & Subagents separates active calls from terminal history and derives both directly from top-level tool messages still present in the host's retained transcript window; evicted calls are not cached. Ordinary tool activity rows open `DeesHarnessToolFullscreen` over the canonical call and follow in-place updates through `refreshMessages()`; subagent rows first emit `harness-subtask-open`. The inspector closes when the call is evicted, the session changes, or the sidebar disconnects, then restores the row's focus. An unhandled subagent request opens the same fullscreen inspector. Long activity labels use an ellipsis while descriptions use the 40px right-edge fade and reveal behavior. Session Intelligence keeps its exchange history scrollable above a docked, chat-style question composer. Set `.todos` explicitly, or leave it empty and the chat derives tasks from the newest todo tool call in `messages`; `showTodosPanel={false}` hides only that section. Unknown token metrics remain absent. The toolbar controls the session panel; host-owned navigation controls belong outside the chat component. In narrow containers the session panel becomes an accessible overlay; when the toolbar is disabled, an inline Session details control keeps it reachable. `showSessionSidebar={false}` disables the complete panel. Methods: `applyDelta()`, `refreshMessages(ids?)`, `focusComposer()`, `clearComposer()`, `scrollToBottom()`, `openSessionSidebar(section?)`, `openModelSelector()`, `openAttachmentPicker()`, and `focusPendingPermission()`. Section names use the exported `THarnessSessionSidebarSection` union. Capability launchers return false when their target is unavailable or locked, so command palettes can remain outside the shadow DOM. Events (also from children, all composed): `harness-send`, `harness-command`, `harness-starter-prompt`, `harness-abort`, `harness-held-resend`, `harness-held-discard`, `harness-input`, `harness-attachments-change`, `harness-attachment-error`, `harness-account-change`, `harness-model-change`, `harness-mode-change`, `harness-permission-response`, `harness-permission-link`, `harness-question-response`, `harness-question-link`, `harness-subtask-open`, `harness-scratchpad-save`, `harness-session-intelligence-ask`, `harness-session-intelligence-availability-action`.
|
|
5507
5540
|
|
|
5508
5541
|
Set `.todosAuthoritative=${true}` when an empty host-owned task list must suppress transcript-derived fallback. A changed `transcriptKey` also clears the previous session's unsent Session Intelligence question while preserving the existing scratchpad revision handling.
|
|
5509
5542
|
|
|
@@ -5633,6 +5666,46 @@ Inside the chat, permission cards render **inline with the messages**: pending r
|
|
|
5633
5666
|
|
|
5634
5667
|
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`.
|
|
5635
5668
|
|
|
5669
|
+
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.
|
|
5670
|
+
|
|
5671
|
+
With `itemsDeclinable` on a proposal of two or more changes, the reader may leave single changes out: each has an "Include" checkbox, and a change left out says "Left out". Confirm still answers `['confirm']`, and the response detail adds `declinedItemIds`, the left-out changes' ids, only when there are any; echo them on the request as `declinedItemIds`. Decline answers `['decline']` for the whole proposal. With every change left out, Confirm is unavailable. Without `itemsDeclinable`, a proposal is decided whole.
|
|
5672
|
+
|
|
5673
|
+
A decided proposal is read-only: the footer gives way to its state and the host's `outcome` (`IHarnessPermissionOutcome`) beside it. The answer tells the state (`['confirm']` confirmed, `['decline']` declined); the host sets `state: 'expired'` for a proposal that can no longer be decided and `state: 'failed'` for one whose changes could not be made. A proposal whose changes are under way (`outcome.tone: 'running'`) counts as confirmed even before the answer reaches the host. The card answers once: the first answer locks it, and so do `busy`, a remount with the same view state, and changes under way. `harnessProposalState(request)` returns the state and `harnessQuestionPending(request)` whether a question or proposal still waits; in the transcript a waiting one pins to the end and a decided, expired or failed one keeps its place.
|
|
5674
|
+
|
|
5675
|
+
`severity` (`info`, the default; `warning`; `danger`) works on questions and proposals alike. It shows as the title's icon (a warning sign, a stop sign) on the status tones' orange or red tile, an orange or red border while the card waits, and a red Confirm for `danger`; a screen reader hears "Warning:" or "Danger:" before the question. A change has a `severity` of its own: the card takes the highest of the proposal's and its changes' (`harnessQuestionSeverity(request)`), and each warning or danger change carries its sign and word.
|
|
5676
|
+
|
|
5677
|
+
A change that issued a secret, such as a new API key, carries it as `credential` (`IHarnessProposalCredential`, `{ label, value, note? }`). It is for the reader only. The card shows it masked, with the value not in the page, until the reader presses Show. Copy puts it on the clipboard and says so. Under it stands `note`, or by default that only the reader sees it and the agent does not. Revealing it is not kept in the view state. No event the card emits carries a `credential`. Pass a request through `harnessWithoutCredentials(request)` before it goes anywhere else, such as a log or the model's context.
|
|
5678
|
+
|
|
5679
|
+
```ts
|
|
5680
|
+
chat.questions = [{
|
|
5681
|
+
id: 'proposal-12',
|
|
5682
|
+
kind: 'proposal',
|
|
5683
|
+
severity: 'danger',
|
|
5684
|
+
question: 'Change the account every future payout goes to?',
|
|
5685
|
+
confirmLabel: 'Change account',
|
|
5686
|
+
items: [{
|
|
5687
|
+
id: 'payout-account',
|
|
5688
|
+
summary: 'Sends every future payout to the new account',
|
|
5689
|
+
label: 'Payout settings',
|
|
5690
|
+
href: '#settings/payout',
|
|
5691
|
+
changes: [{ label: 'IBAN', before: 'DE89 3704 0044 0532 0130 00', after: 'DE02 1203 0000 0000 2020 51' }],
|
|
5692
|
+
}],
|
|
5693
|
+
}];
|
|
5694
|
+
chat.addEventListener('harness-question-response', (event) => {
|
|
5695
|
+
// event.detail.answers is ['confirm'] or ['decline'];
|
|
5696
|
+
// with itemsDeclinable, a confirmation may name event.detail.declinedItemIds
|
|
5697
|
+
});
|
|
5698
|
+
// after the answer: keep the request, set response and the outcome as it runs
|
|
5699
|
+
request.response = ['confirm'];
|
|
5700
|
+
request.outcome = { tone: 'running', text: 'Changing the account…' };
|
|
5701
|
+
// or, where it could not be carried out
|
|
5702
|
+
request.state = 'failed';
|
|
5703
|
+
request.outcome = { tone: 'error', text: 'The bank refused the account.' };
|
|
5704
|
+
// a secret a change issued: shown to the reader, kept from the model
|
|
5705
|
+
request.items[0].credential = { label: 'API key', value: issuedKey };
|
|
5706
|
+
const forTheModel = harnessWithoutCredentials(request);
|
|
5707
|
+
```
|
|
5708
|
+
|
|
5636
5709
|
#### `DeesHarnessComposer`
|
|
5637
5710
|
|
|
5638
5711
|
An `uncertain` pending prompt says “Delivery unconfirmed”: the host has attempted dispatch but cannot confirm whether the harness took it. Keep that prompt with `pendingActionAvailable: false` until the host reconciles the outcome; it cannot be resent or withdrawn meanwhile. Consecutive assistant messages containing only reasoning share the first row's role, model, and time range while each message keeps its own collapsible reasoning trace and stable ID. User messages, tool calls, model changes, or assistant text break the run.
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '21.
|
|
6
|
+
version: '21.33.1',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
type IRealtimeChartPoint,
|
|
17
17
|
} from './realtime-updates.js';
|
|
18
18
|
import { createZonedTimeScale } from './zonedtimescale.js';
|
|
19
|
+
import { labelCoversTick, placePriceAxisLabels, priceAxisLabelHeight } from './priceaxislabels.js';
|
|
19
20
|
import { hexToRgba, getThemeColors, resolveChartColor, type TChartTone } from '../dees-chart-echarts-theme.js';
|
|
20
21
|
|
|
21
22
|
import { systemFontFamily } from '../../00fonts.js';
|
|
@@ -23,10 +24,12 @@ import { placeAnchored, scrollAncestors, visibleRect } from '../../00anchorplace
|
|
|
23
24
|
|
|
24
25
|
import type {
|
|
25
26
|
AreaData,
|
|
27
|
+
BarPrice,
|
|
26
28
|
CreatePriceLineOptions,
|
|
27
29
|
IChartApi,
|
|
28
30
|
IPriceLine,
|
|
29
31
|
ISeriesApi,
|
|
32
|
+
MismatchDirection,
|
|
30
33
|
MouseEventParams,
|
|
31
34
|
Time,
|
|
32
35
|
UTCTimestamp,
|
|
@@ -352,6 +355,22 @@ export class DeesChartArea extends DeesElement {
|
|
|
352
355
|
private tooltipScrollTargets: Array<HTMLElement | Window> = [];
|
|
353
356
|
/** Lightweight Charts formats the axis through this one function, which writes with the current `yAxisFormatter`. */
|
|
354
357
|
private readonly priceFormatter = (priceArg: number): string => this.yAxisFormatter(priceArg);
|
|
358
|
+
/**
|
|
359
|
+
* The price axis's tick labels. The axis draws the reference lines' labels over its tick labels
|
|
360
|
+
* and leaves a tick label under one in place, so that a tick next to a reference line showed
|
|
361
|
+
* through between two labels as a cut off value of its own; a tick label a label covers is
|
|
362
|
+
* left out, its grid line stays.
|
|
363
|
+
*/
|
|
364
|
+
private readonly tickmarksPriceFormatter = (pricesArg: BarPrice[]): string[] => {
|
|
365
|
+
const fontSize = this.chart?.options().layout.fontSize ?? 12;
|
|
366
|
+
const labelHeight = priceAxisLabelHeight(fontSize);
|
|
367
|
+
const labels = this.priceAxisLabelCoordinates(labelHeight);
|
|
368
|
+
const first = this.seriesApis.values().next().value;
|
|
369
|
+
return pricesArg.map((price) => {
|
|
370
|
+
const coordinate = labels.length > 0 && first ? first.priceToCoordinate(price) : null;
|
|
371
|
+
return coordinate !== null && labelCoversTick(labels, coordinate, labelHeight, fontSize) ? '' : this.yAxisFormatter(price);
|
|
372
|
+
});
|
|
373
|
+
};
|
|
355
374
|
/**
|
|
356
375
|
* The crosshair's time label, in the time zone and with the 24-hour clock of the time scale
|
|
357
376
|
* (`createZonedTimeScale`): the time alone while the plot shows a single day, with the date
|
|
@@ -766,6 +785,7 @@ export class DeesChartArea extends DeesElement {
|
|
|
766
785
|
this.applyYAxisScale(chartSeries);
|
|
767
786
|
this.computeStats(chartSeries);
|
|
768
787
|
this.pendingRealtimePrune = false;
|
|
788
|
+
this.relabelPriceTicks();
|
|
769
789
|
|
|
770
790
|
this.fitTimeAxis();
|
|
771
791
|
}
|
|
@@ -840,6 +860,7 @@ export class DeesChartArea extends DeesElement {
|
|
|
840
860
|
this.computeStats(chartSeries);
|
|
841
861
|
|
|
842
862
|
this.applyYAxisScale(chartSeries);
|
|
863
|
+
this.relabelPriceTicks();
|
|
843
864
|
}
|
|
844
865
|
|
|
845
866
|
private applyYAxisScale(series: ChartSeriesConfig) {
|
|
@@ -962,6 +983,38 @@ export class DeesChartArea extends DeesElement {
|
|
|
962
983
|
}
|
|
963
984
|
}
|
|
964
985
|
|
|
986
|
+
/**
|
|
987
|
+
* Where the price axis draws the reference lines' labels. The axis moves overlapping labels
|
|
988
|
+
* apart from the first series' last visible value, the way `placePriceAxisLabels` works out.
|
|
989
|
+
*/
|
|
990
|
+
private priceAxisLabelCoordinates(labelHeightArg: number): number[] {
|
|
991
|
+
const first = this.seriesApis.values().next().value;
|
|
992
|
+
if (!this.chart || !first) return [];
|
|
993
|
+
const coordinates: number[] = [];
|
|
994
|
+
for (const [key, lines] of this.priceLines) {
|
|
995
|
+
const api = this.seriesApis.get(key);
|
|
996
|
+
if (!api) continue;
|
|
997
|
+
for (const line of Object.values(lines)) {
|
|
998
|
+
const coordinate = api.priceToCoordinate(line.options().price);
|
|
999
|
+
if (coordinate !== null) coordinates.push(coordinate);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
if (coordinates.length === 0) return [];
|
|
1003
|
+
const range = this.chart.timeScale().getVisibleLogicalRange();
|
|
1004
|
+
const last = range ? first.dataByIndex(Math.ceil(range.to), -1 as MismatchDirection) : null;
|
|
1005
|
+
const center = last && 'value' in last ? first.priceToCoordinate(last.value) ?? 0 : 0;
|
|
1006
|
+
return placePriceAxisLabels(coordinates, center, labelHeightArg, this.chart.paneSize().height);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Has the price axis write its tick labels anew, for reference lines that moved or changed:
|
|
1011
|
+
* Lightweight Charts keeps the tick labels it wrote while its price range and height stay,
|
|
1012
|
+
* and writes them anew once its price scale is given options.
|
|
1013
|
+
*/
|
|
1014
|
+
private relabelPriceTicks(): void {
|
|
1015
|
+
this.chart?.priceScale('right').applyOptions({});
|
|
1016
|
+
}
|
|
1017
|
+
|
|
965
1018
|
/**
|
|
966
1019
|
* Whether a new `yAxisFormatter` writes other text than the one it replaces, for the values the
|
|
967
1020
|
* chart writes with it: across the price axis's visible range and the series' statistics. A
|
|
@@ -1110,7 +1163,11 @@ export class DeesChartArea extends DeesElement {
|
|
|
1110
1163
|
// a chart on a time scale is what `createChart()` makes, and `IChartApi` only narrows its options
|
|
1111
1164
|
this.chart = this.lcBundle.createChartEx(chartContainer, createZonedTimeScale(this.lcBundle, () => this.t.format), {
|
|
1112
1165
|
autoSize: true,
|
|
1113
|
-
localization: {
|
|
1166
|
+
localization: {
|
|
1167
|
+
priceFormatter: this.priceFormatter,
|
|
1168
|
+
tickmarksPriceFormatter: this.tickmarksPriceFormatter,
|
|
1169
|
+
timeFormatter: this.crosshairTimeFormatter,
|
|
1170
|
+
},
|
|
1114
1171
|
layout: {
|
|
1115
1172
|
background: { type: this.lcBundle.ColorType.Solid as any, color: 'transparent' },
|
|
1116
1173
|
textColor: getThemeColors(this.goBright).textSecondary,
|
|
@@ -1373,6 +1430,7 @@ export class DeesChartArea extends DeesElement {
|
|
|
1373
1430
|
if (!api) return;
|
|
1374
1431
|
this.updatePriceLines(seriesKey, api, s.data, this.resolveSeriesColor(s, index, isDark));
|
|
1375
1432
|
});
|
|
1433
|
+
this.relabelPriceTicks();
|
|
1376
1434
|
}
|
|
1377
1435
|
|
|
1378
1436
|
private startAutoScroll() {
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where Lightweight Charts draws the labels on a price axis, and which tick labels they cover.
|
|
3
|
+
*
|
|
4
|
+
* The axis writes its tick labels first and draws the labels of price lines over them, each an
|
|
5
|
+
* opaque box one line of text high. It leaves a tick label under such a box in place, so that a
|
|
6
|
+
* tick next to a reference line shows through as a cut off value of its own, and it does not
|
|
7
|
+
* say where it draws its labels: it moves them apart where they overlap. This works their places
|
|
8
|
+
* out the way the axis does (`PriceAxisWidget._fixLabelOverlap` and `recalculateOverlapping` in
|
|
9
|
+
* lightweight-charts 5.1 and 5.2), so that the chart can leave out the tick labels they cover.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** A label box's height: one line of text with a padding of 2.5 px per 12 px of font above and below it. */
|
|
13
|
+
export const priceAxisLabelHeight = (fontSizeArg: number): number => fontSizeArg + (2 * 2.5 * fontSizeArg) / 12;
|
|
14
|
+
|
|
15
|
+
interface IAxisLabel {
|
|
16
|
+
coordinate: number;
|
|
17
|
+
/** Where the axis draws the label, when not at its coordinate. */
|
|
18
|
+
placed: number | null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const placedAt = (labelArg: IAxisLabel): number => labelArg.placed ?? labelArg.coordinate;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Moves overlapping labels apart, one after the other from the axis's centre: those above it
|
|
25
|
+
* (`direction` 1) up, those below it (-1) down. A run of labels pushed out of the axis moves
|
|
26
|
+
* back, by no more than the room that was left before it.
|
|
27
|
+
*/
|
|
28
|
+
const moveApart = (labelsArg: IAxisLabel[], directionArg: 1 | -1, labelHeightArg: number, scaleHeightArg: number): void => {
|
|
29
|
+
if (labelsArg.length === 0) return;
|
|
30
|
+
let runStart = 0;
|
|
31
|
+
let roomBeforeRun = Math.max(0, directionArg === 1
|
|
32
|
+
? scaleHeightArg / 2 - (placedAt(labelsArg[0]) - labelHeightArg / 2)
|
|
33
|
+
: placedAt(labelsArg[0]) - labelHeightArg / 2 - scaleHeightArg / 2);
|
|
34
|
+
for (let index = 1; index < labelsArg.length; index++) {
|
|
35
|
+
const coordinate = placedAt(labelsArg[index]);
|
|
36
|
+
const previous = placedAt(labelsArg[index - 1]);
|
|
37
|
+
const overlaps = directionArg === 1 ? coordinate > previous - labelHeightArg : coordinate < previous + labelHeightArg;
|
|
38
|
+
if (!overlaps) {
|
|
39
|
+
runStart = index;
|
|
40
|
+
roomBeforeRun = directionArg === 1 ? previous - labelHeightArg - coordinate : coordinate - (previous + labelHeightArg);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const placed = previous - labelHeightArg * directionArg;
|
|
44
|
+
labelsArg[index].placed = placed;
|
|
45
|
+
const edge = placed - (directionArg * labelHeightArg) / 2;
|
|
46
|
+
const outside = directionArg === 1 ? edge < 0 : edge > scaleHeightArg;
|
|
47
|
+
if (outside && roomBeforeRun > 0) {
|
|
48
|
+
const shift = Math.min(directionArg === 1 ? -1 - edge : edge - scaleHeightArg, roomBeforeRun);
|
|
49
|
+
for (let later = runStart; later < labelsArg.length; later++) {
|
|
50
|
+
labelsArg[later].placed = placedAt(labelsArg[later]) + directionArg * shift;
|
|
51
|
+
}
|
|
52
|
+
roomBeforeRun -= shift;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Where the axis draws labels at the given coordinates, given in the order the axis lists them:
|
|
59
|
+
* by series, and a series' price lines in the order they were created. `centerArg` is the
|
|
60
|
+
* coordinate of the price scale's first series' last visible value; the labels at or above it
|
|
61
|
+
* move up where they overlap, the others down.
|
|
62
|
+
*/
|
|
63
|
+
export const placePriceAxisLabels = (
|
|
64
|
+
coordinatesArg: readonly number[],
|
|
65
|
+
centerArg: number,
|
|
66
|
+
labelHeightArg: number,
|
|
67
|
+
scaleHeightArg: number,
|
|
68
|
+
): number[] => {
|
|
69
|
+
const labels: IAxisLabel[] = coordinatesArg.map((coordinate) => ({ coordinate, placed: null }));
|
|
70
|
+
const above = labels.filter((label) => label.coordinate <= centerArg).sort((a, b) => b.coordinate - a.coordinate);
|
|
71
|
+
const below = labels.filter((label) => label.coordinate > centerArg);
|
|
72
|
+
// the label nearest the centre from above starts both runs
|
|
73
|
+
if (above.length > 0 && below.length > 0) below.push(above[0]);
|
|
74
|
+
below.sort((a, b) => a.coordinate - b.coordinate);
|
|
75
|
+
// a label within half its height of an edge is drawn whole, against that edge
|
|
76
|
+
const halfHeight = Math.floor(labelHeightArg / 2);
|
|
77
|
+
for (const label of labels) {
|
|
78
|
+
if (label.coordinate > -halfHeight && label.coordinate < halfHeight) label.placed = halfHeight;
|
|
79
|
+
if (label.coordinate > scaleHeightArg - halfHeight && label.coordinate < scaleHeightArg + halfHeight) {
|
|
80
|
+
label.placed = scaleHeightArg - halfHeight;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
moveApart(above, 1, labelHeightArg, scaleHeightArg);
|
|
84
|
+
moveApart(below, -1, labelHeightArg, scaleHeightArg);
|
|
85
|
+
return labels.map(placedAt);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Whether a label drawn at one of the coordinates covers a tick label at `tickArg`: the tick's
|
|
90
|
+
* text, one font size high around its coordinate, meets the label's box.
|
|
91
|
+
*/
|
|
92
|
+
export const labelCoversTick = (
|
|
93
|
+
labelCoordinatesArg: readonly number[],
|
|
94
|
+
tickArg: number,
|
|
95
|
+
labelHeightArg: number,
|
|
96
|
+
fontSizeArg: number,
|
|
97
|
+
): boolean => labelCoordinatesArg.some((label) => Math.abs(tickArg - label) < (labelHeightArg + fontSizeArg) / 2);
|
|
@@ -30,6 +30,10 @@ export const hintTypeIcons: Readonly<Record<THintType, string>> = {
|
|
|
30
30
|
error: 'lucide:CircleAlert',
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
/** Whether slotted nodes show anything: an element, or text that is not only white space. */
|
|
34
|
+
const hasHintContent = (nodes: Node[]): boolean =>
|
|
35
|
+
nodes.some((node) => node.nodeType === Node.ELEMENT_NODE || (node.textContent ?? '').trim().length > 0);
|
|
36
|
+
|
|
33
37
|
/**
|
|
34
38
|
* An inline advisory note next to the thing it explains. Use `text` for a plain
|
|
35
39
|
* sentence and the default slot for markup; both render when both are set.
|
|
@@ -95,12 +99,23 @@ export class DeesHint extends DeesElement {
|
|
|
95
99
|
margin-top: 1px;
|
|
96
100
|
}
|
|
97
101
|
|
|
102
|
+
/* Spans the hint, so slotted rows reach its padding rather than their longest line. */
|
|
98
103
|
.content {
|
|
104
|
+
flex: 1 1 auto;
|
|
99
105
|
min-width: 0;
|
|
100
106
|
color: var(--dees-color-text-secondary);
|
|
101
107
|
}
|
|
102
108
|
`];
|
|
103
109
|
|
|
110
|
+
public willUpdate(changedProperties: Map<PropertyKey, unknown>): void {
|
|
111
|
+
super.willUpdate(changedProperties);
|
|
112
|
+
// Content it holds from the start shows in its first render: slotchange only lands after it,
|
|
113
|
+
// and a hidden first frame would refuse focus to a control inside.
|
|
114
|
+
if (!this.hasUpdated)
|
|
115
|
+
this.hasSlottedContent = hasHintContent([...this.childNodes].flatMap((node) =>
|
|
116
|
+
node instanceof HTMLSlotElement ? node.assignedNodes({ flatten: true }) : [node]));
|
|
117
|
+
}
|
|
118
|
+
|
|
104
119
|
public render(): TemplateResult {
|
|
105
120
|
const isEmpty = !this.text && !this.hasSlottedContent;
|
|
106
121
|
return html`
|
|
@@ -112,8 +127,6 @@ export class DeesHint extends DeesElement {
|
|
|
112
127
|
}
|
|
113
128
|
|
|
114
129
|
private handleSlotChange = (eventArg: Event) => {
|
|
115
|
-
|
|
116
|
-
this.hasSlottedContent = assigned.some((node) =>
|
|
117
|
-
node.nodeType === Node.ELEMENT_NODE || (node.textContent ?? '').trim().length > 0);
|
|
130
|
+
this.hasSlottedContent = hasHintContent((eventArg.target as HTMLSlotElement).assignedNodes({ flatten: true }));
|
|
118
131
|
};
|
|
119
132
|
}
|
package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts
CHANGED
|
@@ -31,7 +31,7 @@ import type {
|
|
|
31
31
|
import { DeesHarnessMessage } from '../dees-harness-message/dees-harness-message.js';
|
|
32
32
|
import { DeesHarnessPermissionCard } from '../dees-harness-permission-card/dees-harness-permission-card.js';
|
|
33
33
|
import { DeesHarnessToolRegistry } from '../toolregistry.js';
|
|
34
|
-
import { harnessApplyMessageDelta, harnessRendersToolRow } from '../harness.helpers.js';
|
|
34
|
+
import { harnessApplyMessageDelta, harnessQuestionPending, harnessRendersToolRow } from '../harness.helpers.js';
|
|
35
35
|
import { harnessArrivalStyles } from '../harness.styles.js';
|
|
36
36
|
import { byTimelineOrder, HarnessQueueController, harnessQueueStyles } from './harness-queue.js';
|
|
37
37
|
import '../dees-harness-status/dees-harness-status.js';
|
|
@@ -617,9 +617,11 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
617
617
|
for (const question of this.questions) {
|
|
618
618
|
items.push({
|
|
619
619
|
kind: 'question' as const,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
620
|
+
// a pending question or proposal pins to the end; an answered,
|
|
621
|
+
// expired or failed one keeps its place in the flow
|
|
622
|
+
time: harnessQuestionPending(question)
|
|
623
|
+
? pinnedRequestTime
|
|
624
|
+
: (question.respondedAt ?? question.createdAt ?? 0),
|
|
623
625
|
insertionIndex: items.length,
|
|
624
626
|
key: `question:${question.id}`,
|
|
625
627
|
question,
|