@design.estate/dees-catalog 22.1.0 → 22.2.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.
- package/dist_bundle/bundle.js +2062 -1354
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3SSZ4CDV.js → chunk-B6IKM3SA.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VIN4YGID.js → chunk-IASP6M5U.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-6I3PIV5F.js → chunk-ZPJBKBPH.js} +8 -6
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-6I3PIV5F.js.map → chunk-ZPJBKBPH.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-STYNV6A3.js → de-3ZAD2XFI.js} +8 -6
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-STYNV6A3.js.map → de-3ZAD2XFI.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PULP7K3X.js → dees-modal-CPEH77LV.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KEQHBOYE.js → dees-workspace-terminal-65M4HBRK.js} +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-resource-list/dees-harness-resource-list.d.ts +16 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-resource-list/dees-harness-resource-list.demo.js +458 -57
- package/dist_ts_web/elements/00group-harness/dees-harness-resource-list/dees-harness-resource-list.js +67 -34
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +22 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.js +61 -7
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +273 -27
- package/dist_ts_web/i18n/de.d.ts +16 -8
- package/dist_ts_web/i18n/de.js +7 -5
- package/dist_ts_web/i18n/messages.d.ts +16 -8
- package/dist_ts_web/i18n/messages.js +7 -5
- package/package.json +1 -1
- package/readme.md +4 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-resource-list/dees-harness-resource-list.demo.ts +504 -98
- package/ts_web/elements/00group-harness/dees-harness-resource-list/dees-harness-resource-list.ts +68 -33
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts +41 -2
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +271 -25
- package/ts_web/i18n/de.ts +6 -4
- package/ts_web/i18n/messages.ts +6 -4
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3SSZ4CDV.js.map → chunk-B6IKM3SA.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VIN4YGID.js.map → chunk-IASP6M5U.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PULP7K3X.js.map → dees-modal-CPEH77LV.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KEQHBOYE.js.map → dees-workspace-terminal-65M4HBRK.js.map} +0 -0
package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from '@design.estate/dees-element';
|
|
13
13
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
14
14
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
15
|
+
import { visuallyHidden } from '../../00visuallyhidden.js';
|
|
15
16
|
import { ScrollEdgeShadowController, scrollEdgeShadowStyles } from '../../00scrolledges.js';
|
|
16
17
|
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
17
18
|
import { harnessActivityStyles } from '../harness.styles.js';
|
|
@@ -47,6 +48,15 @@ type TKnownHarness = keyof typeof harnessGlyphs;
|
|
|
47
48
|
const isKnownHarness = (harnessArg: string): harnessArg is TKnownHarness => Object.hasOwn(harnessGlyphs, harnessArg);
|
|
48
49
|
const unknownHarnessGlyph = 'lucide:Bot';
|
|
49
50
|
|
|
51
|
+
/** The skeleton's placeholder rows: name and excerpt widths, and whether a chip stands in the row. */
|
|
52
|
+
const skeletonRows: readonly { name: string; excerpt: string; chip: boolean }[] = [
|
|
53
|
+
{ name: '11rem', excerpt: '72%', chip: true },
|
|
54
|
+
{ name: '8rem', excerpt: '54%', chip: false },
|
|
55
|
+
{ name: '13rem', excerpt: '64%', chip: true },
|
|
56
|
+
{ name: '9.5rem', excerpt: '46%', chip: true },
|
|
57
|
+
{ name: '7rem', excerpt: '58%', chip: false },
|
|
58
|
+
];
|
|
59
|
+
|
|
50
60
|
/** The roving-focus key of the Completed group's "more"/"fewer" button. */
|
|
51
61
|
const moreStopKey = 'more:completed';
|
|
52
62
|
|
|
@@ -64,8 +74,14 @@ interface IFocusStop {
|
|
|
64
74
|
* Each row is the harness glyph, which is also the status indicator (needs input: attention colour
|
|
65
75
|
* and a blink; working: a slow pulse; failed: red; completed: muted and still), the name, the first
|
|
66
76
|
* ticket as a chip ("+N" for more), and the age. The latest message excerpt joins the line only
|
|
67
|
-
* while the list's own container is wide.
|
|
68
|
-
*
|
|
77
|
+
* while the list's own container is wide. Every row of every group shares one set of column tracks,
|
|
78
|
+
* so names, excerpts, chips and ages each start on one edge; the name column is as wide as the
|
|
79
|
+
* longest name up to `--dees-harness-session-name-max` (20rem), and longer names end in an
|
|
80
|
+
* ellipsis. Under reduced motion the indicator keeps its colour and stops moving.
|
|
81
|
+
*
|
|
82
|
+
* The first load, `loading` without rows, draws placeholder rows on the same columns once it has
|
|
83
|
+
* taken 200 ms, so a quick load never flashes them, and says it is still loading after
|
|
84
|
+
* `stillLoadingAfter`. Rows that are already there stay while more load.
|
|
69
85
|
*
|
|
70
86
|
* The list is fed, never arranged: there is no add, group or reorder. Click, Enter or Space on a
|
|
71
87
|
* row emits `harness-session-row-select`; the chip emits `harness-session-ticket-select`. Right-click,
|
|
@@ -78,6 +94,9 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
78
94
|
public static demo = demoFunc;
|
|
79
95
|
public static demoGroups = ['Agent Chat'];
|
|
80
96
|
|
|
97
|
+
/** How long a first load runs, in milliseconds, before the list says it is still loading. */
|
|
98
|
+
public static stillLoadingAfter = 10_000;
|
|
99
|
+
|
|
81
100
|
private readonly t = dcLocalize(this);
|
|
82
101
|
|
|
83
102
|
@property({ attribute: false })
|
|
@@ -100,6 +119,10 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
100
119
|
@state()
|
|
101
120
|
accessor completedExpanded: boolean = false;
|
|
102
121
|
|
|
122
|
+
/** The first load has run past `stillLoadingAfter`. */
|
|
123
|
+
@state()
|
|
124
|
+
private accessor stillLoading: boolean = false;
|
|
125
|
+
|
|
103
126
|
/** The keyboard stop that takes Tab into the list. */
|
|
104
127
|
@state()
|
|
105
128
|
private accessor activeKey: string = '';
|
|
@@ -108,6 +131,7 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
108
131
|
private readonly scrollbars = new OverlayScrollbarController(this, () => this.scrollContainer);
|
|
109
132
|
/** The row focused before an update, focused again if the update moved it to another group. */
|
|
110
133
|
private focusBeforeUpdate: { key: string; part: 'main' | 'ticket' } | undefined;
|
|
134
|
+
private stillLoadingTimer: ReturnType<typeof setTimeout> | undefined;
|
|
111
135
|
|
|
112
136
|
public static styles = [
|
|
113
137
|
themeDefaultStyles,
|
|
@@ -142,6 +166,28 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
142
166
|
box-sizing: border-box;
|
|
143
167
|
}
|
|
144
168
|
|
|
169
|
+
/*
|
|
170
|
+
* One grid for every group: rows and their main buttons are subgrids, so each column (glyph,
|
|
171
|
+
* name, excerpt, chip, age) starts on one edge across all rows. The excerpt column exists only
|
|
172
|
+
* in the wide layout below.
|
|
173
|
+
*/
|
|
174
|
+
.columns {
|
|
175
|
+
display: grid;
|
|
176
|
+
grid-template-columns:
|
|
177
|
+
[glyph] auto
|
|
178
|
+
[name] minmax(0, 1fr)
|
|
179
|
+
[ticket] fit-content(50%)
|
|
180
|
+
[age] auto;
|
|
181
|
+
column-gap: var(--dees-spacing-sm);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.groupHeader,
|
|
185
|
+
.rows,
|
|
186
|
+
.moreButton,
|
|
187
|
+
.emptyNote {
|
|
188
|
+
grid-column: 1 / -1;
|
|
189
|
+
}
|
|
190
|
+
|
|
145
191
|
.groupHeader {
|
|
146
192
|
display: flex;
|
|
147
193
|
align-items: baseline;
|
|
@@ -165,7 +211,8 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
165
211
|
|
|
166
212
|
.rows {
|
|
167
213
|
display: grid;
|
|
168
|
-
|
|
214
|
+
grid-template-columns: subgrid;
|
|
215
|
+
row-gap: 1px;
|
|
169
216
|
margin: 0;
|
|
170
217
|
padding: 0;
|
|
171
218
|
list-style: none;
|
|
@@ -173,9 +220,10 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
173
220
|
|
|
174
221
|
.row {
|
|
175
222
|
position: relative;
|
|
176
|
-
display:
|
|
223
|
+
display: grid;
|
|
224
|
+
grid-column: 1 / -1;
|
|
225
|
+
grid-template-columns: subgrid;
|
|
177
226
|
align-items: center;
|
|
178
|
-
gap: var(--dees-spacing-sm);
|
|
179
227
|
min-width: 0;
|
|
180
228
|
min-height: var(--dees-control-height-lg);
|
|
181
229
|
padding: 0 var(--dees-spacing-sm) 0 0;
|
|
@@ -192,10 +240,10 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
192
240
|
|
|
193
241
|
.rowMain {
|
|
194
242
|
appearance: none;
|
|
195
|
-
display:
|
|
196
|
-
|
|
243
|
+
display: grid;
|
|
244
|
+
grid-column: glyph / ticket;
|
|
245
|
+
grid-template-columns: subgrid;
|
|
197
246
|
align-items: center;
|
|
198
|
-
gap: var(--dees-spacing-sm);
|
|
199
247
|
min-width: 0;
|
|
200
248
|
align-self: stretch;
|
|
201
249
|
margin: 0;
|
|
@@ -210,6 +258,15 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
210
258
|
cursor: inherit;
|
|
211
259
|
}
|
|
212
260
|
|
|
261
|
+
/* A row without a chip lends the chip's cell to its last text, as the line did before columns. */
|
|
262
|
+
.row:not(:has(.ticket)) .rowMain {
|
|
263
|
+
grid-column: glyph / age;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.row:not(:has(.ticket)) .name {
|
|
267
|
+
grid-column: name / age;
|
|
268
|
+
}
|
|
269
|
+
|
|
213
270
|
.rowMain:focus-visible {
|
|
214
271
|
outline: none;
|
|
215
272
|
}
|
|
@@ -221,7 +278,6 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
221
278
|
|
|
222
279
|
.indicator {
|
|
223
280
|
display: grid;
|
|
224
|
-
flex: 0 0 auto;
|
|
225
281
|
place-items: center;
|
|
226
282
|
width: 22px;
|
|
227
283
|
height: 22px;
|
|
@@ -257,7 +313,6 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
257
313
|
}
|
|
258
314
|
|
|
259
315
|
.name {
|
|
260
|
-
flex: 0 1 auto;
|
|
261
316
|
min-width: 0;
|
|
262
317
|
overflow: hidden;
|
|
263
318
|
text-overflow: ellipsis;
|
|
@@ -270,7 +325,6 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
270
325
|
|
|
271
326
|
.excerpt {
|
|
272
327
|
display: none;
|
|
273
|
-
flex: 1 1 0;
|
|
274
328
|
min-width: 0;
|
|
275
329
|
overflow: hidden;
|
|
276
330
|
color: var(--dees-color-text-muted);
|
|
@@ -281,10 +335,12 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
281
335
|
.ticket {
|
|
282
336
|
appearance: none;
|
|
283
337
|
display: inline-flex;
|
|
284
|
-
|
|
338
|
+
grid-column: ticket;
|
|
339
|
+
justify-self: end;
|
|
285
340
|
align-items: center;
|
|
286
341
|
gap: var(--dees-spacing-xs);
|
|
287
|
-
|
|
342
|
+
min-width: 0;
|
|
343
|
+
max-width: 100%;
|
|
288
344
|
height: 20px;
|
|
289
345
|
margin: 0;
|
|
290
346
|
padding: 0 var(--dees-spacing-xs);
|
|
@@ -315,7 +371,7 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
315
371
|
}
|
|
316
372
|
|
|
317
373
|
.age {
|
|
318
|
-
|
|
374
|
+
grid-column: age;
|
|
319
375
|
min-width: 3ch;
|
|
320
376
|
color: var(--dees-color-text-muted);
|
|
321
377
|
font-size: var(--dees-font-caption1-size, 12px);
|
|
@@ -348,6 +404,110 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
348
404
|
outline-offset: calc(-1 * var(--dees-line-width-focus-ring));
|
|
349
405
|
}
|
|
350
406
|
|
|
407
|
+
.loadingStatus {
|
|
408
|
+
${visuallyHidden}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/*
|
|
412
|
+
* The first load: placeholder rows on the rows' own columns and heights, so the real rows take
|
|
413
|
+
* their place without a shift. They stay invisible for 200 ms, so a quick load never flashes.
|
|
414
|
+
*/
|
|
415
|
+
.skeleton,
|
|
416
|
+
.skeletonRows,
|
|
417
|
+
.skeletonRow,
|
|
418
|
+
.skeletonMain {
|
|
419
|
+
display: grid;
|
|
420
|
+
grid-template-columns: subgrid;
|
|
421
|
+
align-items: center;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.skeleton {
|
|
425
|
+
grid-column: 1 / -1;
|
|
426
|
+
animation: harness-session-skeleton-reveal 1ms linear 200ms both;
|
|
427
|
+
--skeleton-base: var(--dees-color-fill-secondary);
|
|
428
|
+
--skeleton-glint: color-mix(in srgb, var(--dees-color-fill-secondary), var(--dees-color-text-primary) 12%);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@keyframes harness-session-skeleton-reveal {
|
|
432
|
+
from { visibility: hidden; }
|
|
433
|
+
to { visibility: visible; }
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.skeleton .groupHeader {
|
|
437
|
+
align-items: center;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* A line of header text, unseen, so the placeholder header is as tall as a real one. */
|
|
441
|
+
.skeleton .groupHeader::before {
|
|
442
|
+
content: '\\200b';
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.skeletonRows {
|
|
446
|
+
grid-column: 1 / -1;
|
|
447
|
+
row-gap: 1px;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.skeletonRow {
|
|
451
|
+
grid-column: 1 / -1;
|
|
452
|
+
min-height: var(--dees-control-height-lg);
|
|
453
|
+
padding: 0 var(--dees-spacing-sm) 0 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.skeletonMain {
|
|
457
|
+
grid-column: glyph / ticket;
|
|
458
|
+
padding: 0 0 0 var(--dees-spacing-xs);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.skeletonBar {
|
|
462
|
+
display: block;
|
|
463
|
+
max-width: 100%;
|
|
464
|
+
height: 10px;
|
|
465
|
+
border-radius: var(--dees-radius-full);
|
|
466
|
+
background: linear-gradient(
|
|
467
|
+
90deg,
|
|
468
|
+
var(--skeleton-base) 35%,
|
|
469
|
+
var(--skeleton-glint) 50%,
|
|
470
|
+
var(--skeleton-base) 65%
|
|
471
|
+
) 100% 0 / 300% 100%;
|
|
472
|
+
animation: harness-session-shimmer 1.6s linear infinite;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.skeletonGlyph {
|
|
476
|
+
width: 22px;
|
|
477
|
+
height: 22px;
|
|
478
|
+
border-radius: var(--dees-radius-sm);
|
|
479
|
+
corner-shape: var(--dees-corner-shape);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.skeletonExcerpt {
|
|
483
|
+
display: none;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.skeletonChip {
|
|
487
|
+
grid-column: ticket;
|
|
488
|
+
justify-self: end;
|
|
489
|
+
width: 3.5rem;
|
|
490
|
+
height: 20px;
|
|
491
|
+
border-radius: var(--dees-radius-xs);
|
|
492
|
+
corner-shape: var(--dees-corner-shape);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.skeletonAge {
|
|
496
|
+
grid-column: age;
|
|
497
|
+
justify-self: end;
|
|
498
|
+
width: 4ch;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* A first load that takes long says so, and the placeholders hold still. */
|
|
502
|
+
.skeleton.stalled .skeletonBar {
|
|
503
|
+
animation: none;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
@keyframes harness-session-shimmer {
|
|
507
|
+
from { background-position: 100% 0; }
|
|
508
|
+
to { background-position: 0 0; }
|
|
509
|
+
}
|
|
510
|
+
|
|
351
511
|
.emptyNote {
|
|
352
512
|
padding: var(--dees-spacing-lg);
|
|
353
513
|
color: var(--dees-color-text-secondary);
|
|
@@ -355,16 +515,32 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
355
515
|
text-align: center;
|
|
356
516
|
}
|
|
357
517
|
|
|
358
|
-
/*
|
|
518
|
+
/*
|
|
519
|
+
* Wide enough to read a line of the conversation beside its name: the name column is as wide
|
|
520
|
+
* as the longest name, up to the maximum, and every excerpt starts on the edge after it.
|
|
521
|
+
*/
|
|
359
522
|
@container harness-session-list (min-width: 720px) {
|
|
360
|
-
.
|
|
361
|
-
|
|
362
|
-
|
|
523
|
+
.columns {
|
|
524
|
+
grid-template-columns:
|
|
525
|
+
[glyph] auto
|
|
526
|
+
[name] fit-content(var(--dees-harness-session-name-max, 20rem))
|
|
527
|
+
[excerpt] minmax(0, 1fr)
|
|
528
|
+
[ticket] fit-content(50%)
|
|
529
|
+
[age] auto;
|
|
363
530
|
}
|
|
364
531
|
|
|
365
|
-
.excerpt
|
|
532
|
+
.excerpt,
|
|
533
|
+
.skeletonExcerpt {
|
|
366
534
|
display: block;
|
|
367
535
|
}
|
|
536
|
+
|
|
537
|
+
.row:not(:has(.ticket)) .name {
|
|
538
|
+
grid-column: name;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.row:not(:has(.ticket)) .excerpt {
|
|
542
|
+
grid-column: excerpt / age;
|
|
543
|
+
}
|
|
368
544
|
}
|
|
369
545
|
|
|
370
546
|
@media (hover: hover) {
|
|
@@ -403,7 +579,8 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
403
579
|
|
|
404
580
|
@media (prefers-reduced-motion: reduce) {
|
|
405
581
|
.indicator,
|
|
406
|
-
.row
|
|
582
|
+
.row,
|
|
583
|
+
.skeletonBar {
|
|
407
584
|
animation: none;
|
|
408
585
|
transition: none;
|
|
409
586
|
}
|
|
@@ -454,25 +631,62 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
454
631
|
public render(): TemplateResult {
|
|
455
632
|
const stops = this.focusStops();
|
|
456
633
|
const activeKey = this.resolveActiveKey(stops);
|
|
634
|
+
const firstLoad = this.isFirstLoad();
|
|
457
635
|
return html`
|
|
458
636
|
<div class="listFrame">
|
|
459
637
|
<div
|
|
460
638
|
class="list"
|
|
461
639
|
role="region"
|
|
462
640
|
aria-label=${this.t('sessionlist.label')}
|
|
641
|
+
aria-busy=${this.loading ? 'true' : 'false'}
|
|
463
642
|
@keydown=${this.handleKeydown}
|
|
464
643
|
>
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
: this.rows.length
|
|
644
|
+
<div class="columns">
|
|
645
|
+
${this.rows.length
|
|
468
646
|
? [...this.groupedRows].map(([stateArg, rows]) => this.renderGroup(stateArg, rows, activeKey))
|
|
469
|
-
:
|
|
647
|
+
: firstLoad
|
|
648
|
+
? this.renderSkeleton()
|
|
649
|
+
: html`<div class="emptyNote">${this.emptyText || this.t('sessionlist.empty')}</div>`}
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
<div class="loadingStatus" role="status">
|
|
653
|
+
${firstLoad ? this.t(this.stillLoading ? 'sessionlist.stillLoading' : 'sessionlist.loading') : ''}
|
|
470
654
|
</div>
|
|
471
655
|
${this.scrollEdges.renderShadows()}
|
|
472
656
|
</div>
|
|
473
657
|
`;
|
|
474
658
|
}
|
|
475
659
|
|
|
660
|
+
/** The first load: loading, with no rows to show yet. Rows already there stay while more load. */
|
|
661
|
+
private isFirstLoad(): boolean {
|
|
662
|
+
return this.loading && this.rows.length === 0;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/** Placeholder rows, hidden from assistive technology, which hears the loading status instead. */
|
|
666
|
+
private renderSkeleton(): TemplateResult {
|
|
667
|
+
return html`
|
|
668
|
+
${this.stillLoading
|
|
669
|
+
? html`<div class="emptyNote" aria-hidden="true">${this.t('sessionlist.stillLoading')}</div>`
|
|
670
|
+
: ''}
|
|
671
|
+
<div class="skeleton ${this.stillLoading ? 'stalled' : ''}" aria-hidden="true">
|
|
672
|
+
<div class="groupHeader"><span class="skeletonBar" style="width: 5rem"></span></div>
|
|
673
|
+
<div class="skeletonRows">
|
|
674
|
+
${skeletonRows.map((row) => html`
|
|
675
|
+
<div class="skeletonRow">
|
|
676
|
+
<div class="skeletonMain">
|
|
677
|
+
<span class="skeletonBar skeletonGlyph"></span>
|
|
678
|
+
<span class="skeletonBar" style=${`width: ${row.name}`}></span>
|
|
679
|
+
<span class="skeletonBar skeletonExcerpt" style=${`width: ${row.excerpt}`}></span>
|
|
680
|
+
</div>
|
|
681
|
+
${row.chip ? html`<span class="skeletonBar skeletonChip"></span>` : ''}
|
|
682
|
+
<span class="skeletonBar skeletonAge"></span>
|
|
683
|
+
</div>
|
|
684
|
+
`)}
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
`;
|
|
688
|
+
}
|
|
689
|
+
|
|
476
690
|
private renderGroup(
|
|
477
691
|
stateArg: THarnessSessionRowState,
|
|
478
692
|
rowsArg: IHarnessSessionRow[],
|
|
@@ -547,7 +761,7 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
547
761
|
>
|
|
548
762
|
<dees-icon icon=${glyph} iconSize="14" aria-hidden="true"></dees-icon>
|
|
549
763
|
</span>
|
|
550
|
-
<span class="name">${rowArg.name}</span>
|
|
764
|
+
<span class="name" title=${rowArg.name}>${rowArg.name}</span>
|
|
551
765
|
${rowArg.excerpt ? html`<span class="excerpt">${rowArg.excerpt}</span>` : ''}
|
|
552
766
|
</button>
|
|
553
767
|
${firstTicket
|
|
@@ -673,8 +887,40 @@ export class DeesHarnessSessionList extends DeesElement {
|
|
|
673
887
|
return stop;
|
|
674
888
|
}
|
|
675
889
|
|
|
890
|
+
public async connectedCallback(): Promise<void> {
|
|
891
|
+
await super.connectedCallback();
|
|
892
|
+
// A first load under way when the list left the page counts again from now.
|
|
893
|
+
if (this.isFirstLoad()) this.requestUpdate();
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
public async disconnectedCallback(): Promise<void> {
|
|
897
|
+
this.clearStillLoadingTimer();
|
|
898
|
+
this.stillLoading = false;
|
|
899
|
+
await super.disconnectedCallback();
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/** Counts a first load towards `stillLoadingAfter`, and forgets it once rows arrive or loading ends. */
|
|
903
|
+
private syncStillLoading(): void {
|
|
904
|
+
if (!this.isConnected || !this.isFirstLoad()) {
|
|
905
|
+
this.clearStillLoadingTimer();
|
|
906
|
+
this.stillLoading = false;
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
if (this.stillLoading || this.stillLoadingTimer) return;
|
|
910
|
+
this.stillLoadingTimer = setTimeout(() => {
|
|
911
|
+
this.stillLoadingTimer = undefined;
|
|
912
|
+
this.stillLoading = true;
|
|
913
|
+
}, DeesHarnessSessionList.stillLoadingAfter);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
private clearStillLoadingTimer(): void {
|
|
917
|
+
if (this.stillLoadingTimer) clearTimeout(this.stillLoadingTimer);
|
|
918
|
+
this.stillLoadingTimer = undefined;
|
|
919
|
+
}
|
|
920
|
+
|
|
676
921
|
public willUpdate(changedArg: Map<PropertyKey, unknown>): void {
|
|
677
922
|
super.willUpdate(changedArg);
|
|
923
|
+
this.syncStillLoading();
|
|
678
924
|
const focused = this.shadowRoot?.activeElement as HTMLElement | null | undefined;
|
|
679
925
|
if (!focused) {
|
|
680
926
|
this.focusBeforeUpdate = undefined;
|
package/ts_web/i18n/de.ts
CHANGED
|
@@ -1367,14 +1367,15 @@ export default dcMessages.translation('de', {
|
|
|
1367
1367
|
'usage.compact': '<total>{count}</total> Tokens',
|
|
1368
1368
|
'usage.in': '{count} ein',
|
|
1369
1369
|
'usage.out': '{count} aus',
|
|
1370
|
-
'resourcelist.empty': 'Noch keine Unterhaltungen.',
|
|
1370
|
+
'resourcelist.empty': '{kind, select, terminal {Noch keine Terminals.} browser {Noch keine Browser.} workspace {Noch keine Arbeitsbereiche.} resource {Noch keine Ressourcen.} none {Noch keine Unterhaltungen.} other {Noch keine Unterhaltungen.}}',
|
|
1371
1371
|
'resourcelist.dropHere': 'Hier ablegen',
|
|
1372
1372
|
'resourcelist.searchAll': 'Unterhaltungen und Ressourcen durchsuchen',
|
|
1373
|
-
'resourcelist.searchResources': 'Ressourcen durchsuchen',
|
|
1373
|
+
'resourcelist.searchResources': '{kind, select, terminal {Terminals durchsuchen} browser {Browser durchsuchen} workspace {Arbeitsbereiche durchsuchen} resource {Ressourcen durchsuchen} other {Ressourcen durchsuchen}}',
|
|
1374
|
+
'resourcelist.search': 'Suchen …',
|
|
1374
1375
|
'resourcelist.newGroup': 'Neue Gruppe',
|
|
1375
|
-
'resourcelist.loading': 'Unterhaltungen werden geladen …',
|
|
1376
|
+
'resourcelist.loading': '{kind, select, conversation {Unterhaltungen werden geladen …} terminal {Terminals werden geladen …} browser {Browser werden geladen …} workspace {Arbeitsbereiche werden geladen …} resource {Ressourcen werden geladen …} none {Wird geladen …} other {Wird geladen …}}',
|
|
1376
1377
|
'resourcelist.noMatchAll': 'Keine Unterhaltungen oder Ressourcen passen zu dieser Suche.',
|
|
1377
|
-
'resourcelist.noMatchResources': 'Keine Ressourcen passen zu dieser Suche.',
|
|
1378
|
+
'resourcelist.noMatchResources': '{kind, select, terminal {Keine Terminals passen zu dieser Suche.} browser {Keine Browser passen zu dieser Suche.} workspace {Keine Arbeitsbereiche passen zu dieser Suche.} resource {Keine Ressourcen passen zu dieser Suche.} other {Keine Ressourcen passen zu dieser Suche.}}',
|
|
1378
1379
|
'resourcelist.noMatch': 'Keine Unterhaltungen passen zu dieser Suche.',
|
|
1379
1380
|
'resourcelist.ungrouped': 'Ohne Gruppe',
|
|
1380
1381
|
'resourcelist.attention': '{count, number} erfordern Aufmerksamkeit',
|
|
@@ -1409,6 +1410,7 @@ export default dcMessages.translation('de', {
|
|
|
1409
1410
|
'sessionlist.label': 'Sitzungen',
|
|
1410
1411
|
'sessionlist.empty': 'Noch keine Sitzungen.',
|
|
1411
1412
|
'sessionlist.loading': 'Sitzungen werden geladen …',
|
|
1413
|
+
'sessionlist.stillLoading': 'Sitzungen werden noch geladen …',
|
|
1412
1414
|
'sessionlist.group': '{state, select, needs_input {Wartet auf Eingabe} working {In Arbeit} failed {Fehlgeschlagen} completed {Abgeschlossen} other {Sitzungen}}',
|
|
1413
1415
|
'sessionlist.harness': '{harness, select, claude {Claude Code} codex {Codex} flex {FlexHarness} opencode {OpenCode} other {Agent}}',
|
|
1414
1416
|
'sessionlist.indicator': '{harness} · {state, select, needs_input {wartet auf Eingabe} working {in Arbeit} failed {fehlgeschlagen} completed {abgeschlossen} other {aktiv}}',
|
package/ts_web/i18n/messages.ts
CHANGED
|
@@ -1441,14 +1441,15 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
|
|
|
1441
1441
|
'usage.out': { message: '{count} out', description: 'The usage chip: tokens written; {count} is formatted.' },
|
|
1442
1442
|
|
|
1443
1443
|
// dees-harness-resource-list
|
|
1444
|
-
'resourcelist.empty': { message: 'No conversations yet.', description: 'Said by an empty list, while the host names nothing.' },
|
|
1444
|
+
'resourcelist.empty': { message: '{kind, select, terminal {No terminals yet.} browser {No browsers yet.} workspace {No workspaces yet.} resource {No resources yet.} none {No conversations yet.} other {No conversations yet.}}', description: 'Said by an empty list, while the host names nothing; {kind} is what the list shows.' },
|
|
1445
1445
|
'resourcelist.dropHere': { message: 'Drop here', description: 'The gap where a dragged row will land.' },
|
|
1446
1446
|
'resourcelist.searchAll': { message: 'Search conversations and resources', description: 'The search field while the list shows resources too.' },
|
|
1447
|
-
'resourcelist.searchResources': { message: 'Search resources', description: 'The search field while the list shows resources only.' },
|
|
1447
|
+
'resourcelist.searchResources': { message: '{kind, select, terminal {Search terminals} browser {Search browsers} workspace {Search workspaces} resource {Search resources} other {Search resources}}', description: 'The search field while the list shows resources only; {kind} is their kind.' },
|
|
1448
|
+
'resourcelist.search': { message: 'Search…', description: 'The search field while the list cannot tell what it shows.' },
|
|
1448
1449
|
'resourcelist.newGroup': { message: 'New group', description: 'The button that creates a group.' },
|
|
1449
|
-
'resourcelist.loading': { message: 'Loading conversations…', description: 'Said while the list loads.' },
|
|
1450
|
+
'resourcelist.loading': { message: '{kind, select, conversation {Loading conversations…} terminal {Loading terminals…} browser {Loading browsers…} workspace {Loading workspaces…} resource {Loading resources…} none {Loading…} other {Loading…}}', description: 'Said while the list loads; {kind} is what the list shows, when it can tell.' },
|
|
1450
1451
|
'resourcelist.noMatchAll': { message: 'No conversations or resources match this search.', description: 'Said when nothing matches the search.' },
|
|
1451
|
-
'resourcelist.noMatchResources': { message: 'No resources match this search.', description: 'Said when no resource matches the search and there are no conversations.' },
|
|
1452
|
+
'resourcelist.noMatchResources': { message: '{kind, select, terminal {No terminals match this search.} browser {No browsers match this search.} workspace {No workspaces match this search.} resource {No resources match this search.} other {No resources match this search.}}', description: 'Said when no resource matches the search and there are no conversations; {kind} is their kind.' },
|
|
1452
1453
|
'resourcelist.noMatch': { message: 'No conversations match this search.', description: 'Said when no conversation matches the search.' },
|
|
1453
1454
|
'resourcelist.ungrouped': { message: 'Ungrouped', description: 'The section of rows in no group.' },
|
|
1454
1455
|
'resourcelist.attention': { message: '{count, number} need attention', description: 'A group\'s badge (its name): rows that need attention.' },
|
|
@@ -1484,6 +1485,7 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
|
|
|
1484
1485
|
'sessionlist.label': { message: 'Sessions', description: 'The list of every session (its name).' },
|
|
1485
1486
|
'sessionlist.empty': { message: 'No sessions yet.', description: 'Said by an empty list, while the host names nothing.' },
|
|
1486
1487
|
'sessionlist.loading': { message: 'Loading sessions…', description: 'Said while the list loads.' },
|
|
1488
|
+
'sessionlist.stillLoading': { message: 'Still loading sessions…', description: 'Said when the first load of the list takes long.' },
|
|
1487
1489
|
'sessionlist.group': { message: '{state, select, needs_input {Needs input} working {Working} failed {Failed} completed {Completed} other {Sessions}}', description: 'A group heading: the state its sessions share.' },
|
|
1488
1490
|
'sessionlist.harness': { message: '{harness, select, claude {Claude Code} codex {Codex} flex {FlexHarness} opencode {OpenCode} other {Agent}}', description: 'The product a session runs in; product names stay as they are.' },
|
|
1489
1491
|
'sessionlist.indicator': { message: '{harness} · {state, select, needs_input {needs input} working {working} failed {failed} completed {completed} other {active}}', description: 'A row\'s status mark (its name): the harness, then the session\'s state.' },
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-3SSZ4CDV.js.map → chunk-B6IKM3SA.js.map}
RENAMED
|
File without changes
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-VIN4YGID.js.map → chunk-IASP6M5U.js.map}
RENAMED
|
File without changes
|
|
File without changes
|