@design.estate/dees-catalog 22.4.0 → 22.5.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 (60) hide show
  1. package/dist_bundle/bundle.js +381 -175
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-RITCTBBY.js → chunk-K2WA4NFI.js} +2 -2
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-IGD4DLG4.js → chunk-OFVHJYUS.js} +3 -3
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MK42UYWT.js → chunk-TCT6JQUS.js} +5 -2
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MK42UYWT.js.map → chunk-TCT6JQUS.js.map} +1 -1
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-TN6FRTSU.js → de-VUUYAWTZ.js} +5 -2
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-VUUYAWTZ.js.map +1 -0
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PLLCPO5V.js → dees-modal-KNFCFUX6.js} +3 -3
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-7N6EXGH6.js → dees-workspace-terminal-GCBL7RVQ.js} +4 -4
  11. package/dist_ts_web/00_commitinfo_data.js +1 -1
  12. package/dist_ts_web/demos/appui.state.d.ts +7 -0
  13. package/dist_ts_web/demos/charts.d.ts +14 -0
  14. package/dist_ts_web/demos/charts.js +62 -20
  15. package/dist_ts_web/elements/00firstload.d.ts +24 -0
  16. package/dist_ts_web/elements/00firstload.js +52 -0
  17. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.d.ts +29 -1
  18. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.js +64 -15
  19. package/dist_ts_web/elements/00group-chart/dees-chart-frame.d.ts +15 -0
  20. package/dist_ts_web/elements/00group-chart/dees-chart-frame.js +20 -2
  21. package/dist_ts_web/elements/00group-chart/dees-chart-gauge/component.d.ts +2 -0
  22. package/dist_ts_web/elements/00group-chart/dees-chart-gauge/component.js +3 -1
  23. package/dist_ts_web/elements/00group-chart/dees-chart-line/component.d.ts +33 -0
  24. package/dist_ts_web/elements/00group-chart/dees-chart-line/component.js +104 -8
  25. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +4 -0
  26. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +22 -2
  27. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.d.ts +16 -1
  28. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.demo.js +9 -2
  29. package/dist_ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.js +55 -6
  30. package/dist_ts_web/elements/00group-harness/harness.records.js +16 -3
  31. package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +3 -3
  32. package/dist_ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.js +3 -3
  33. package/dist_ts_web/i18n/de.d.ts +12 -0
  34. package/dist_ts_web/i18n/de.js +4 -1
  35. package/dist_ts_web/i18n/messages.d.ts +12 -0
  36. package/dist_ts_web/i18n/messages.js +4 -1
  37. package/package.json +2 -2
  38. package/readme.md +41 -2
  39. package/ts_web/00_commitinfo_data.ts +1 -1
  40. package/ts_web/demos/charts.ts +48 -18
  41. package/ts_web/elements/{00group-kanban/kanban.firstload.ts → 00firstload.ts} +8 -7
  42. package/ts_web/elements/00group-chart/dees-chart-echarts-base.ts +55 -4
  43. package/ts_web/elements/00group-chart/dees-chart-frame.ts +31 -1
  44. package/ts_web/elements/00group-chart/dees-chart-gauge/component.ts +2 -0
  45. package/ts_web/elements/00group-chart/dees-chart-line/component.ts +100 -7
  46. package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +10 -0
  47. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.demo.ts +9 -1
  48. package/ts_web/elements/00group-harness/dees-harness-session-sidebar/dees-harness-session-sidebar.ts +43 -4
  49. package/ts_web/elements/00group-harness/harness.records.ts +15 -2
  50. package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +2 -2
  51. package/ts_web/elements/00group-kanban/dees-kanban-activity/dees-kanban-activity.ts +2 -2
  52. package/ts_web/i18n/de.ts +3 -0
  53. package/ts_web/i18n/messages.ts +3 -0
  54. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-TN6FRTSU.js.map +0 -1
  55. package/dist_ts_web/elements/00group-kanban/kanban.firstload.d.ts +0 -23
  56. package/dist_ts_web/elements/00group-kanban/kanban.firstload.js +0 -51
  57. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-RITCTBBY.js.map → chunk-K2WA4NFI.js.map} +0 -0
  58. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-IGD4DLG4.js.map → chunk-OFVHJYUS.js.map} +0 -0
  59. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PLLCPO5V.js.map → dees-modal-KNFCFUX6.js.map} +0 -0
  60. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-7N6EXGH6.js.map → dees-workspace-terminal-GCBL7RVQ.js.map} +0 -0
@@ -115,6 +115,20 @@ export class DeesChartLine extends DeesChartEchartsBase {
115
115
  @property({ type: Boolean, reflect: true })
116
116
  accessor fillArea: boolean = false;
117
117
 
118
+ /**
119
+ * Stacks the series: each is drawn on top of the ones before it, so the topmost line is their
120
+ * total at each moment. A value above zero stacks on the values above zero beneath it, one below
121
+ * zero under those below zero. Where a series states no value at a moment another series states
122
+ * one, it adds there what its own drawing reads: with `step` its value before, with `line` its
123
+ * line between the two values around the moment; nothing with `points`, before its first value,
124
+ * after its last or beside a missing one. With `fillArea`, each series tints the band between its
125
+ * line and the one beneath it evenly in its colour. The value axis includes zero, and a series
126
+ * switched off in the legend leaves the stack. The tooltip, the legend and the text summary keep
127
+ * each series' own values.
128
+ */
129
+ @property({ type: Boolean, reflect: true })
130
+ accessor stacked: boolean = false;
131
+
118
132
  /**
119
133
  * Marks every value with a dot. Turn off for long series, where a dot on every value crowds the
120
134
  * line: `line` and `step` then draw the line alone, and while the pointer is over the plot, the
@@ -192,6 +206,7 @@ export class DeesChartLine extends DeesChartEchartsBase {
192
206
  changedProperties.has('presentation') ||
193
207
  changedProperties.has('includeZero') ||
194
208
  changedProperties.has('fillArea') ||
209
+ changedProperties.has('stacked') ||
195
210
  changedProperties.has('showMarkers') ||
196
211
  changedProperties.has('showLegend') ||
197
212
  changedProperties.has('valueFormatter') ||
@@ -346,6 +361,66 @@ export class DeesChartLine extends DeesChartEchartsBase {
346
361
  return { origin: 0, color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops } };
347
362
  }
348
363
 
364
+ /**
365
+ * The series on the moments any of them states, in time order, as a stack needs them: ECharts
366
+ * stacks values on a time axis by their index, so each series takes a row of the same moments.
367
+ * At a moment a series states, its value (or `null`); at one it does not, what its drawing reads
368
+ * there, marked `derived`: under `step` its value before, under `line` its line between the
369
+ * values around the moment. `null` under `points`, before its first value, after its last and
370
+ * beside a missing one, where its drawing reads nothing.
371
+ */
372
+ public static stackRows(
373
+ normalizedArg: Array<Array<[number, number | null]>>,
374
+ presentationArg: TChartLinePresentation,
375
+ ): Array<Array<{ time: number; value: number | null; derived: boolean }>> {
376
+ const moments = DeesChartLine.allMoments(normalizedArg);
377
+ return normalizedArg.map((points) => {
378
+ let next = 0;
379
+ return moments.map((time) => {
380
+ while (next < points.length && points[next][0] < time) next++;
381
+ if (points[next]?.[0] === time) return { time, value: points[next][1], derived: false };
382
+ const before = points[next - 1]?.[1] ?? null;
383
+ const after = points[next]?.[1] ?? null;
384
+ if (presentationArg === 'points' || before === null || after === null) return { time, value: null, derived: false };
385
+ const value = presentationArg === 'step'
386
+ ? before
387
+ : before + (after - before) * (time - points[next - 1][0]) / (points[next][0] - points[next - 1][0]);
388
+ return { time, value, derived: true };
389
+ });
390
+ });
391
+ }
392
+
393
+ /** Every moment of the series, stated or missing, in time order and each once. */
394
+ private static allMoments(normalizedArg: Array<Array<[number, number | null]>>): number[] {
395
+ const moments: number[] = [];
396
+ for (const points of normalizedArg) for (const [time] of points) moments.push(time);
397
+ moments.sort((left, right) => left - right);
398
+ return moments.filter((moment, index) => index === 0 || moment !== moments[index - 1]);
399
+ }
400
+
401
+ /**
402
+ * Where each shown series' line runs in the stack, moment by moment, as ECharts stacks them
403
+ * (`samesign`): a value adds the top of the nearest shown series beneath it whose top lies on
404
+ * its side of zero. `null` where the series has no value, and for a series switched off.
405
+ */
406
+ private static stackTops(
407
+ rowsArg: Array<Array<{ value: number | null }>>,
408
+ shownArg: boolean[],
409
+ ): Array<Array<number | null>> {
410
+ const tops: Array<Array<number | null>> = [];
411
+ rowsArg.forEach((row, index) => {
412
+ tops[index] = row.map(({ value }, at) => {
413
+ if (!shownArg[index] || value === null) return null;
414
+ for (let below = index - 1; below >= 0; below--) {
415
+ const top = tops[below][at];
416
+ if (top !== null && ((value >= 0 && top > 0) || (value <= 0 && top < 0))) return value + top;
417
+ }
418
+ return value;
419
+ });
420
+ });
421
+ return tops;
422
+ }
423
+
349
424
  /**
350
425
  * The values of a series that state no neighbour before or after them: no line reaches them,
351
426
  * so a drawing without dots would not show them at all.
@@ -388,6 +463,8 @@ export class DeesChartLine extends DeesChartEchartsBase {
388
463
  } : undefined;
389
464
  const ticks = this.timeAxis ? this.labelTimeAxis(length) : undefined;
390
465
  const filled = this.fillArea && this.presentation !== 'points';
466
+ const stacked = this.stacked;
467
+ const rows = stacked ? DeesChartLine.stackRows(normalized, this.presentation) : undefined;
391
468
  const alpha = this.goBright ? areaAlpha.bright : areaAlpha.dark;
392
469
  // Without markers a line draws no dots: ECharts draws the dots of the moment the pointer is
393
470
  // nearest while it is there, and a value no line reaches keeps its dot, drawn by a series of
@@ -400,7 +477,14 @@ export class DeesChartLine extends DeesChartEchartsBase {
400
477
  return {
401
478
  name: series.name,
402
479
  type: 'line' as const,
403
- data: normalized[index],
480
+ // stacked, each series on every moment; a value its drawing reads between two it states
481
+ // takes no dot and no tooltip
482
+ data: rows
483
+ ? rows[index].map(({ time, value, derived }) => derived
484
+ ? { value: [time, value], derived: true, symbol: 'none' }
485
+ : [time, value])
486
+ : normalized[index],
487
+ ...(stacked ? { stack: 'total', stackStrategy: 'samesign' } : {}),
404
488
  connectNulls: false,
405
489
  showSymbol: !dotless,
406
490
  symbol: 'circle',
@@ -408,14 +492,23 @@ export class DeesChartLine extends DeesChartEchartsBase {
408
492
  step: this.presentation === 'step' ? 'end' : false,
409
493
  itemStyle: dotStyle(color),
410
494
  lineStyle: this.presentation === 'points' ? { width: 0, opacity: 0 } : { width: 2, color },
411
- areaStyle: filled ? DeesChartLine.areaFill(color, alpha, normalized[index]) : undefined,
495
+ areaStyle: filled
496
+ ? stacked ? { color, opacity: alpha } : DeesChartLine.areaFill(color, alpha, normalized[index])
497
+ : undefined,
412
498
  emphasis: this.presentation === 'points'
413
499
  ? { scale: 1.4, lineStyle: { width: 0, opacity: 0 } }
414
500
  : { scale: 1.4, lineStyle: { width: 2 } },
415
501
  };
416
502
  });
503
+ // stacked, a lone value's dot sits where its series runs in the stack
504
+ const shown = this.series.map((series) => this.legendShown(series.name));
505
+ const tops = rows && dotless ? DeesChartLine.stackTops(rows, shown) : undefined;
417
506
  const loneDots = dotless ? this.series.flatMap((series, index) => {
418
- const lone = DeesChartLine.loneValues(normalized[index]);
507
+ const lone = rows
508
+ ? DeesChartLine.loneValues(rows[index].map(({ time, value }) => [time, value] as [number, number | null]))
509
+ .map(([time]): [number, number] => [time, tops![index][rows[index].findIndex((row) => row.time === time)]!])
510
+ .filter(([, top]) => top !== null && top !== undefined)
511
+ : DeesChartLine.loneValues(normalized[index]);
419
512
  return lone.length === 0 ? [] : [{
420
513
  name: series.name,
421
514
  type: 'line' as const,
@@ -440,8 +533,8 @@ export class DeesChartLine extends DeesChartEchartsBase {
440
533
  trigger: 'axis',
441
534
  axisPointer: { type: 'line', snap: true, lineStyle: { color: colors.borderStrong } },
442
535
  formatter: (params: any) => {
443
- const stated = (params as Array<{ value: [number, number | null]; color: string; seriesName: string }>)
444
- .filter((param) => param.value[1] !== null);
536
+ const stated = (params as Array<{ value: [number, number | null]; data: unknown; color: string; seriesName: string }>)
537
+ .filter((param) => param.value[1] !== null && !(param.data as { derived?: boolean } | null)?.derived);
445
538
  if (stated.length === 0) return '';
446
539
  return `<strong>${timeFormatter(stated[0].value[0])}</strong>`
447
540
  + stated.map((param) => `<br/>${reading(param.color, param.seriesName, param.value[1]!)}`).join('');
@@ -450,7 +543,7 @@ export class DeesChartLine extends DeesChartEchartsBase {
450
543
  trigger: 'item',
451
544
  formatter: (params: any) => {
452
545
  const [time, value] = params.value as [number, number | null];
453
- if (value === null) return '';
546
+ if (value === null || params.data?.derived) return '';
454
547
  return `<strong>${timeFormatter(time)}</strong><br/>${reading(params.color, params.seriesName, value)}`;
455
548
  },
456
549
  },
@@ -478,7 +571,7 @@ export class DeesChartLine extends DeesChartEchartsBase {
478
571
  },
479
572
  yAxis: {
480
573
  type: 'value',
481
- scale: !(this.includeZero || filled),
574
+ scale: !(this.includeZero || filled || stacked),
482
575
  axisLine: { show: false },
483
576
  axisLabel: {
484
577
  color: colors.textMuted,
@@ -171,6 +171,14 @@ export class DeesHarnessChat extends DeesElement {
171
171
  @property({ reflect: true })
172
172
  accessor selectedWorkerId: string = '';
173
173
 
174
+ /** Forwarded to the session sidebar; see `DeesHarnessSessionSidebar.workersHeading`. */
175
+ @property({ reflect: true })
176
+ accessor workersHeading: string = '';
177
+
178
+ /** Forwarded to the session sidebar; see `DeesHarnessSessionSidebar.workerQuestionCounts`. */
179
+ @property({ attribute: false })
180
+ accessor workerQuestionCounts: Record<string, number> = {};
181
+
174
182
  @property({ type: Boolean, reflect: true })
175
183
  accessor sessionIntelligenceEnabled: boolean = false;
176
184
 
@@ -881,6 +889,8 @@ export class DeesHarnessChat extends DeesElement {
881
889
  .attachedResources=${this.attachedResources}
882
890
  .workers=${this.workers}
883
891
  .selectedWorkerId=${this.selectedWorkerId}
892
+ .workersHeading=${this.workersHeading}
893
+ .workerQuestionCounts=${this.workerQuestionCounts}
884
894
  .intelligenceEnabled=${this.sessionIntelligenceEnabled}
885
895
  .intelligenceAvailabilityStatus=${this.intelligenceAvailabilityStatus}
886
896
  .intelligenceUnavailableReason=${this.intelligenceUnavailableReason}
@@ -70,6 +70,7 @@ const workers: IHarnessSessionMeta[] = [
70
70
  state: 'working',
71
71
  statusLabel: 'Working',
72
72
  harness: { id: 'claude', name: 'Claude Code' },
73
+ projectLabel: 'storefront',
73
74
  preview: 'SHOP-41 · Cache keys use the route manifest hash',
74
75
  },
75
76
  {
@@ -78,6 +79,7 @@ const workers: IHarnessSessionMeta[] = [
78
79
  state: 'attention',
79
80
  statusLabel: 'Needs input',
80
81
  harness: { id: 'codex', name: 'Codex' },
82
+ projectLabel: 'storefront',
81
83
  preview: 'SHOP-44 · Which version goes out first?',
82
84
  },
83
85
  {
@@ -86,10 +88,14 @@ const workers: IHarnessSessionMeta[] = [
86
88
  state: 'finished',
87
89
  statusLabel: 'Stopped',
88
90
  harness: { id: 'claude', name: 'Claude Code' },
91
+ projectLabel: 'catalog',
89
92
  preview: 'SHOP-39',
90
93
  },
91
94
  ];
92
95
 
96
+ /** Questions the workers have open for their owner, by worker id: the release notes ask two. */
97
+ const workerQuestionCounts: Record<string, number> = { 'worker-release': 2 };
98
+
93
99
  const draftScratchpad: IHarnessScratchpad = {
94
100
  id: 'draft',
95
101
  text: '',
@@ -117,7 +123,7 @@ const showEvent = (event: CustomEvent) => {
117
123
  });
118
124
  };
119
125
 
120
- export const demoFunc = () => demoPage('Session details', 'Tasks, workers, context usage, scratchpad, attached resources and session intelligence alongside a conversation.', html`
126
+ export const demoFunc = () => demoPage('Session details', 'Tasks, workers, context usage, scratchpad, attached resources and session intelligence alongside a conversation. The third panel names its workers "Direct reports": each row states its harness, project and task, and a badge counts the questions a worker has open for its owner.', html`
121
127
  <style>
122
128
  .harnessSessionSidebarDemos {
123
129
  display: flex;
@@ -161,6 +167,8 @@ export const demoFunc = () => demoPage('Session details', 'Tasks, workers, conte
161
167
  <dees-harness-session-sidebar
162
168
  .showTasks=${false}
163
169
  .workers=${workers}
170
+ workersHeading="Direct reports"
171
+ .workerQuestionCounts=${workerQuestionCounts}
164
172
  selectedWorkerId="worker-release"
165
173
  .scratchpad=${scratchpad}
166
174
  @harness-worker-open=${showEvent}
@@ -46,6 +46,7 @@ import { DeesHarnessToolFullscreen } from '../dees-harness-tool-card/dees-harnes
46
46
  import '../dees-harness-todos/dees-harness-todos.js';
47
47
  import '../dees-harness-overflow-text.js';
48
48
  import '../../00group-button/dees-button/dees-button.js';
49
+ import '../../00group-feedback/dees-badge/dees-badge.js';
49
50
  import '../../00group-utility/dees-icon/dees-icon.js';
50
51
 
51
52
  const { repeat } = directives;
@@ -123,6 +124,21 @@ export class DeesHarnessSessionSidebar extends DeesElement {
123
124
  @property({ reflect: true })
124
125
  accessor selectedWorkerId: string = '';
125
126
 
127
+ /**
128
+ * The workers section's name, such as "Direct reports"; while empty, the catalog's word
129
+ * (`sidebar.workers`).
130
+ */
131
+ @property({ reflect: true })
132
+ accessor workersHeading: string = '';
133
+
134
+ /**
135
+ * How many questions each worker has open for its owner, by worker id. A row with a count above
136
+ * zero shows it in a badge after its title, and its name says it to a screen reader; a worker missing
137
+ * here shows none.
138
+ */
139
+ @property({ attribute: false })
140
+ accessor workerQuestionCounts: Record<string, number> = {};
141
+
126
142
  @property({ type: Boolean, reflect: true })
127
143
  accessor intelligenceEnabled: boolean = false;
128
144
 
@@ -526,6 +542,10 @@ export class DeesHarnessSessionSidebar extends DeesElement {
526
542
  white-space: nowrap;
527
543
  }
528
544
 
545
+ .workerQuestions {
546
+ flex: none;
547
+ }
548
+
529
549
  .workerItem[aria-current='true'] {
530
550
  background: var(--dees-color-fill-secondary);
531
551
  }
@@ -1294,7 +1314,7 @@ export class DeesHarnessSessionSidebar extends DeesElement {
1294
1314
  const workers = this.workers ?? [];
1295
1315
  return this.renderSection(
1296
1316
  'workers',
1297
- this.t('sidebar.workers'),
1317
+ this.workersHeading.trim() || this.t('sidebar.workers'),
1298
1318
  'lucide:Users',
1299
1319
  workers.length
1300
1320
  ? html`
@@ -1311,18 +1331,27 @@ export class DeesHarnessSessionSidebar extends DeesElement {
1311
1331
  );
1312
1332
  }
1313
1333
 
1314
- /** One worker: its harness, name and state over what it works on, as one button that opens it. */
1334
+ /**
1335
+ * One worker: its harness, name, open questions and state over its project and what it works on,
1336
+ * as one button that opens it.
1337
+ */
1315
1338
  private renderWorker(workerArg: IHarnessSessionMeta): TemplateResult {
1316
1339
  const title = workerArg.title || workerArg.id;
1317
- const meta = [workerArg.harness?.name, workerArg.preview?.trim()].filter(Boolean).join(' · ');
1340
+ const meta = [workerArg.harness?.name, workerArg.projectLabel?.trim(), workerArg.preview?.trim()]
1341
+ .filter(Boolean).join(' · ');
1318
1342
  const current = this.selectedWorkerId !== '' && this.selectedWorkerId === workerArg.id;
1343
+ const rawQuestions = this.workerQuestionCounts?.[workerArg.id];
1344
+ const questions = Number.isFinite(rawQuestions) && rawQuestions > 0 ? Math.floor(rawQuestions) : 0;
1345
+ const questionsText = questions ? this.t('sidebar.openQuestions', { count: questions }) : '';
1319
1346
  return html`
1320
1347
  <button
1321
1348
  class=${`resourceItem workerItem state-${workerArg.state ?? 'normal'}`}
1322
1349
  type="button"
1323
1350
  data-worker-id=${workerArg.id}
1324
1351
  aria-current=${current ? 'true' : 'false'}
1325
- aria-label=${this.t('sidebar.openWorker', { title })}
1352
+ aria-label=${questions
1353
+ ? this.t('sidebar.openWorkerQuestions', { title, questions: questionsText })
1354
+ : this.t('sidebar.openWorker', { title })}
1326
1355
  @click=${() => this.openWorker(workerArg)}
1327
1356
  >
1328
1357
  <span class="resourceIcon">
@@ -1331,6 +1360,16 @@ export class DeesHarnessSessionSidebar extends DeesElement {
1331
1360
  <span class="resourceCopy">
1332
1361
  <span class="resourceTitleRow">
1333
1362
  <span class="resourceTitle" title=${title}>${title}</span>
1363
+ ${questions
1364
+ ? html`<dees-badge
1365
+ class="workerQuestions"
1366
+ type="warning"
1367
+ size="compact"
1368
+ rounded
1369
+ title=${questionsText}
1370
+ .text=${this.t.format.number(questions)}
1371
+ ></dees-badge>`
1372
+ : ''}
1334
1373
  ${workerArg.statusLabel ? html`<span class="resourceState">${workerArg.statusLabel}</span>` : ''}
1335
1374
  </span>
1336
1375
  ${meta
@@ -38,6 +38,7 @@ export const harnessRecordStyles: CSSResult = css`
38
38
  }
39
39
 
40
40
  .item {
41
+ container: harness-record / inline-size;
41
42
  display: grid;
42
43
  gap: 4px;
43
44
  padding: 8px 12px;
@@ -80,14 +81,15 @@ export const harnessRecordStyles: CSSResult = css`
80
81
 
81
82
  .changes {
82
83
  display: grid;
83
- grid-template-columns: auto minmax(0, 1fr);
84
+ grid-template-columns: minmax(0, 1fr) minmax(8rem, 1fr);
84
85
  gap: var(--dees-spacing-2xs) var(--dees-spacing-md);
85
86
  margin: 0;
86
87
  }
87
88
 
88
89
  .changes dt {
89
90
  color: var(--dees-color-text-secondary);
90
- white-space: nowrap;
91
+ min-width: 0;
92
+ overflow-wrap: anywhere;
91
93
  }
92
94
 
93
95
  .changes dd {
@@ -96,6 +98,17 @@ export const harnessRecordStyles: CSSResult = css`
96
98
  overflow-wrap: anywhere;
97
99
  }
98
100
 
101
+ /* A record in a narrow assistant still needs readable values, even in a wide window. */
102
+ @container harness-record (max-width: 320px) {
103
+ .changes {
104
+ grid-template-columns: minmax(0, 1fr);
105
+ }
106
+
107
+ .changes dd:not(:last-child) {
108
+ margin-block-end: var(--dees-spacing-xs);
109
+ }
110
+ }
111
+
99
112
  .before {
100
113
  color: var(--dees-color-text-secondary);
101
114
  text-decoration: line-through;
@@ -80,7 +80,7 @@ import { visuallyHidden } from '../../00visuallyhidden.js';
80
80
  import { nextFrame } from '../../00overlay.js';
81
81
  import { demoFunc } from './dees-kanban.demo.js';
82
82
  import { KanbanDragController } from '../kanban.dragcontroller.js';
83
- import { KanbanFirstLoadController } from '../kanban.firstload.js';
83
+ import { FirstLoadController } from '../../00firstload.js';
84
84
  import { kanbanSkeletonStyles } from '../kanban.styles.js';
85
85
  import '../dees-kanban-column/dees-kanban-column.js';
86
86
  import '../../00group-overlay/dees-popover/dees-popover.js';
@@ -286,7 +286,7 @@ export class DeesKanban extends DeesElement {
286
286
  input => this.persistMove(input),
287
287
  () => !this.pendingTicketId,
288
288
  );
289
- private readonly firstLoad = new KanbanFirstLoadController(
289
+ private readonly firstLoad = new FirstLoadController(
290
290
  this,
291
291
  () => this.isFirstLoad(),
292
292
  () => DeesKanban.stillLoadingAfter,
@@ -18,7 +18,7 @@ import type {
18
18
  TKanbanPriority,
19
19
  } from '../interfaces.js';
20
20
  import { kanbanFeedStyles, kanbanSkeletonStyles, kanbanStyles } from '../kanban.styles.js';
21
- import { KanbanFirstLoadController } from '../kanban.firstload.js';
21
+ import { FirstLoadController } from '../../00firstload.js';
22
22
  import { visuallyHidden } from '../../00visuallyhidden.js';
23
23
  import {
24
24
  kanbanEvent,
@@ -71,7 +71,7 @@ export class DeesKanbanActivity extends DeesElement {
71
71
 
72
72
  private readonly t = dcLocalize(this);
73
73
 
74
- private readonly firstLoad = new KanbanFirstLoadController(
74
+ private readonly firstLoad = new FirstLoadController(
75
75
  this,
76
76
  () => this.isFirstLoad(),
77
77
  () => DeesKanbanActivity.stillLoadingAfter,
package/ts_web/i18n/de.ts CHANGED
@@ -243,6 +243,7 @@ export default dcMessages.translation('de', {
243
243
  'chart.untitled': 'Unbenanntes Diagramm',
244
244
  'chart.loadFailed': 'Das Diagramm konnte nicht geladen werden.',
245
245
  'chart.loading': 'Diagramm wird geladen …',
246
+ 'chart.stillLoading': 'Diagramm wird noch geladen …',
246
247
  'chart.noData': 'Keine Daten für diesen Zeitraum',
247
248
  'chart.series': 'Datenreihen',
248
249
  'chart.seriesSummary': '{name}: {values}',
@@ -1237,6 +1238,8 @@ export default dcMessages.translation('de', {
1237
1238
  'sidebar.workers': 'Worker',
1238
1239
  'sidebar.noWorkers': 'Keine Worker.',
1239
1240
  'sidebar.openWorker': '{title} öffnen',
1241
+ 'sidebar.openWorkerQuestions': '{title} öffnen, {questions}',
1242
+ 'sidebar.openQuestions': '{count, plural, one {# offene Frage} other {# offene Fragen}}',
1240
1243
  'sidebar.intelligence': 'Sitzungsassistent',
1241
1244
  'sidebar.checking': 'Verfügbarkeit von {heading} wird geprüft …',
1242
1245
  'sidebar.unavailable': '{heading} ist nicht verfügbar.',
@@ -269,6 +269,7 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
269
269
  'chart.untitled': { message: 'Untitled Chart', description: 'A chart\'s heading while its host gives it none.' },
270
270
  'chart.loadFailed': { message: 'The chart could not be loaded.', description: 'Said in place of a chart whose library failed to load.' },
271
271
  'chart.loading': { message: 'Loading chart…', description: 'Said while a chart loads.' },
272
+ 'chart.stillLoading': { message: 'Still loading chart…', description: 'Said when the first load of a chart\'s data takes long.' },
272
273
  'chart.noData': { message: 'No data for this period', description: 'Said by a chart without data.' },
273
274
  'chart.series': { message: 'Chart series', description: 'The chart\'s legend, a group of series toggles.' },
274
275
  'chart.seriesSummary': { message: '{name}: {values}', description: 'A series in a chart\'s text alternative; {name} is the series, {values} its readings, separated by commas.' },
@@ -1291,6 +1292,8 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
1291
1292
  'sidebar.workers': { message: 'Workers', description: 'The section of the sessions this session runs, such as a driver\'s workers.' },
1292
1293
  'sidebar.noWorkers': { message: 'No workers.', description: 'Said in that section while the session runs none.' },
1293
1294
  'sidebar.openWorker': { message: 'Open {title}', description: 'A worker\'s row (its name); {title} is the worker\'s name.' },
1295
+ 'sidebar.openWorkerQuestions': { message: 'Open {title}, {questions}', description: 'A worker\'s row while it has questions open for its owner; {title} is the worker\'s name, {questions} how many questions (sidebar.openQuestions).' },
1296
+ 'sidebar.openQuestions': { message: '{count, plural, one {# open question} other {# open questions}}', description: 'How many questions a worker has open for its owner, on its row\'s badge.' },
1294
1297
  'sidebar.intelligence': { message: 'Session Intelligence', description: 'The name of the section that answers questions about the session, while the host names none.' },
1295
1298
  'sidebar.checking': { message: 'Checking {heading} availability…', description: 'Said while it is checked whether that section can answer; {heading} is its name.' },
1296
1299
  'sidebar.unavailable': { message: '{heading} is unavailable.', description: 'Said when that section cannot answer.' },