@design.estate/dees-catalog 21.32.3 → 21.33.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 +1545 -332
- 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 +22 -8
- package/dist_ts_web/elements/00group-kanban/dees-kanban/dees-kanban.js +265 -25
- package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.d.ts +5 -0
- package/dist_ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.js +70 -11
- 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 +7 -1
- package/dist_ts_web/elements/00group-kanban/kanban.demodata.js +49 -7
- package/dist_ts_web/elements/00group-kanban/kanban.dragcontroller.js +6 -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 +1 -1
- package/readme.md +76 -13
- 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 +21 -5
- package/ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts +256 -24
- package/ts_web/elements/00group-kanban/dees-kanban-column/dees-kanban-column.ts +67 -6
- 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 +62 -6
- package/ts_web/elements/00group-kanban/kanban.dragcontroller.ts +5 -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/ts_web/elements/00group-kanban/dees-kanban-ticket-detail/dees-kanban-ticket-detail.ts
CHANGED
|
@@ -14,12 +14,14 @@ import type {
|
|
|
14
14
|
IKanbanActivity,
|
|
15
15
|
IKanbanColumn,
|
|
16
16
|
IKanbanComment,
|
|
17
|
+
IKanbanEditConflict,
|
|
17
18
|
IKanbanPerson,
|
|
18
19
|
IKanbanProject,
|
|
19
20
|
IKanbanProvider,
|
|
20
21
|
IKanbanSource,
|
|
21
22
|
IKanbanTicket,
|
|
22
23
|
IKanbanTicketDraft,
|
|
24
|
+
TKanbanDraftField,
|
|
23
25
|
TKanbanLink,
|
|
24
26
|
TKanbanPriority,
|
|
25
27
|
} from '../interfaces.js';
|
|
@@ -29,6 +31,7 @@ import type {
|
|
|
29
31
|
} from '../../00group-input/dees-input-reference/interfaces.js';
|
|
30
32
|
import { kanbanStyles } from '../kanban.styles.js';
|
|
31
33
|
import {
|
|
34
|
+
kanbanDraftFields,
|
|
32
35
|
kanbanEvent,
|
|
33
36
|
kanbanHref,
|
|
34
37
|
kanbanInitials,
|
|
@@ -51,6 +54,7 @@ import '../../00group-input/dees-input-dropdown/dees-input-dropdown.js';
|
|
|
51
54
|
import '../../00group-input/dees-input-tags/dees-input-tags.js';
|
|
52
55
|
import '../../00group-input/dees-input-multitoggle/dees-input-multitoggle.js';
|
|
53
56
|
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
57
|
+
import '../../00group-feedback/dees-hint/dees-hint.js';
|
|
54
58
|
import '../dees-kanban-discussion/dees-kanban-discussion.js';
|
|
55
59
|
import '../dees-kanban-activity/dees-kanban-activity.js';
|
|
56
60
|
|
|
@@ -124,9 +128,16 @@ export class DeesKanbanTicketDetail extends DeesElement {
|
|
|
124
128
|
@property({ type: Boolean, reflect: true })
|
|
125
129
|
accessor showTicketKey = true;
|
|
126
130
|
|
|
131
|
+
/** The save of this ticket the provider refused as stale, while the board holds it. */
|
|
132
|
+
@property({ attribute: false })
|
|
133
|
+
accessor conflict: IKanbanEditConflict | undefined;
|
|
134
|
+
|
|
127
135
|
@state()
|
|
128
136
|
private accessor editing = false;
|
|
129
137
|
|
|
138
|
+
/** The reader pressed a button of the refusal, which leaves with its answer: the focus follows. */
|
|
139
|
+
private conflictFocus = false;
|
|
140
|
+
|
|
130
141
|
@state()
|
|
131
142
|
private accessor feed: 'comments' | 'history' = 'comments';
|
|
132
143
|
|
|
@@ -507,6 +518,72 @@ export class DeesKanbanTicketDetail extends DeesElement {
|
|
|
507
518
|
gap: 14px;
|
|
508
519
|
}
|
|
509
520
|
|
|
521
|
+
.conflict p + p,
|
|
522
|
+
.conflict p + dees-button {
|
|
523
|
+
margin-top: 8px;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.conflict-reason,
|
|
527
|
+
.conflict h3 {
|
|
528
|
+
color: var(--dees-color-text-primary);
|
|
529
|
+
font-weight: 600;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.conflict h3 {
|
|
533
|
+
font-size: inherit;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.conflict dl {
|
|
537
|
+
display: grid;
|
|
538
|
+
gap: 8px;
|
|
539
|
+
margin: 10px 0 0;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.kept,
|
|
543
|
+
.conflict-actions {
|
|
544
|
+
padding-top: 8px;
|
|
545
|
+
border-top: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.conflict-actions {
|
|
549
|
+
margin-top: 8px;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.kept {
|
|
553
|
+
display: grid;
|
|
554
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
555
|
+
grid-template-areas: 'name apply' 'value apply';
|
|
556
|
+
align-items: center;
|
|
557
|
+
gap: var(--dees-spacing-2xs) 12px;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.kept dt {
|
|
561
|
+
grid-area: name;
|
|
562
|
+
font-size: var(--dees-font-caption1-size);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.kept dd {
|
|
566
|
+
grid-area: value;
|
|
567
|
+
margin: 0;
|
|
568
|
+
min-width: 0;
|
|
569
|
+
color: var(--dees-color-text-primary);
|
|
570
|
+
overflow-wrap: anywhere;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.kept dd.text {
|
|
574
|
+
white-space: pre-wrap;
|
|
575
|
+
max-height: 9lh;
|
|
576
|
+
overflow-y: auto;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.kept dd .badge + .badge {
|
|
580
|
+
margin-left: 4px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.kept dees-button {
|
|
584
|
+
grid-area: apply;
|
|
585
|
+
}
|
|
586
|
+
|
|
510
587
|
@media (max-width: 700px) {
|
|
511
588
|
:host {
|
|
512
589
|
padding: 16px;
|
|
@@ -534,6 +611,127 @@ export class DeesKanbanTicketDetail extends DeesElement {
|
|
|
534
611
|
const previous = changed.get('ticket') as IKanbanTicket | undefined;
|
|
535
612
|
if (changed.has('ticket') && previous?.id !== this.ticket?.id)
|
|
536
613
|
this.editing = Boolean(this.draft);
|
|
614
|
+
// The pressed button left with the refusal's answer: on to the refusal's next button, else the title.
|
|
615
|
+
if (this.conflictFocus && changed.has('conflict') && this.conflict?.state !== 'reloading') {
|
|
616
|
+
this.conflictFocus = false;
|
|
617
|
+
const root = this.shadowRoot!;
|
|
618
|
+
const target =
|
|
619
|
+
root.querySelector<DeesElement>('.conflict dees-button') ??
|
|
620
|
+
root.querySelector<DeesElement>('.edit dees-input-text');
|
|
621
|
+
// A button this render added draws its face, which takes the focus, in its own first update.
|
|
622
|
+
void target?.updateComplete.then(() => target.focus());
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* A save the provider refused as stale, at the top of the edit: the server's reason and the
|
|
628
|
+
* reload, then what the person changed that the latest version does not hold, each change to
|
|
629
|
+
* apply on its own.
|
|
630
|
+
*/
|
|
631
|
+
private renderConflict(
|
|
632
|
+
ticket: IKanbanTicket,
|
|
633
|
+
conflict: IKanbanEditConflict,
|
|
634
|
+
parents: IKanbanTicket[],
|
|
635
|
+
projects: IKanbanProject[],
|
|
636
|
+
): TemplateResult {
|
|
637
|
+
const press = (type: 'kanban-ticket-reload' | 'kanban-conflict-dismiss') => () => {
|
|
638
|
+
this.conflictFocus = true;
|
|
639
|
+
kanbanEvent(this, type, { ticketId: ticket.id });
|
|
640
|
+
};
|
|
641
|
+
if (conflict.state !== 'reloaded') {
|
|
642
|
+
const reloading = conflict.state === 'reloading';
|
|
643
|
+
return html`<div class="conflict" role="alert">
|
|
644
|
+
<dees-hint type="warning">
|
|
645
|
+
<p class="conflict-reason">${conflict.message}</p>
|
|
646
|
+
<p>${this.t('kanban.conflictHint')}</p>
|
|
647
|
+
<dees-button
|
|
648
|
+
size="sm"
|
|
649
|
+
type="accent"
|
|
650
|
+
icon="lucide:RefreshCw"
|
|
651
|
+
text=${this.t('kanban.reloadTicket')}
|
|
652
|
+
.status=${reloading ? 'pending' : 'normal'}
|
|
653
|
+
.disabled=${reloading}
|
|
654
|
+
@clicked=${press('kanban-ticket-reload')}
|
|
655
|
+
></dees-button>
|
|
656
|
+
</dees-hint>
|
|
657
|
+
</div>`;
|
|
658
|
+
}
|
|
659
|
+
const fields = kanbanDraftFields.filter(field => field in conflict.edit);
|
|
660
|
+
return html`<section class="conflict" aria-labelledby="conflict-heading">
|
|
661
|
+
<dees-hint type="info">
|
|
662
|
+
<h3 id="conflict-heading">${this.t('kanban.yourEdit')}</h3>
|
|
663
|
+
<p>${this.t('kanban.yourEditHint')}</p>
|
|
664
|
+
<dl>${fields.map(field => {
|
|
665
|
+
const name = this.fieldName(ticket, field);
|
|
666
|
+
return html`<div class="kept" data-field=${field}>
|
|
667
|
+
<dt>${name}</dt>
|
|
668
|
+
<dd class=${field === 'title' || field === 'description' ? 'text' : ''}>${this.keptValue(
|
|
669
|
+
field,
|
|
670
|
+
conflict.edit,
|
|
671
|
+
parents,
|
|
672
|
+
projects,
|
|
673
|
+
)}</dd>
|
|
674
|
+
<dees-button
|
|
675
|
+
size="sm"
|
|
676
|
+
type="secondary"
|
|
677
|
+
text=${this.t('kanban.applyEdit')}
|
|
678
|
+
aria-label=${this.t('kanban.applyField', { field: name })}
|
|
679
|
+
@clicked=${() => {
|
|
680
|
+
this.conflictFocus = true;
|
|
681
|
+
kanbanEvent(this, 'kanban-conflict-apply', { ticketId: ticket.id, field });
|
|
682
|
+
}}
|
|
683
|
+
></dees-button>
|
|
684
|
+
</div>`;
|
|
685
|
+
})}</dl>
|
|
686
|
+
<div class="conflict-actions">
|
|
687
|
+
<dees-button
|
|
688
|
+
size="sm"
|
|
689
|
+
type="secondary"
|
|
690
|
+
text=${this.t('kanban.discardEdit')}
|
|
691
|
+
@clicked=${press('kanban-conflict-dismiss')}
|
|
692
|
+
></dees-button>
|
|
693
|
+
</div>
|
|
694
|
+
</dees-hint>
|
|
695
|
+
</section>`;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/** A draft field's name, as its control is labelled. */
|
|
699
|
+
private fieldName(ticket: IKanbanTicket, field: TKanbanDraftField): string {
|
|
700
|
+
switch (field) {
|
|
701
|
+
case 'title': return this.t('kanban.ticketTitle');
|
|
702
|
+
case 'description': return this.t('kanban.description');
|
|
703
|
+
case 'project': return this.t('kanban.project');
|
|
704
|
+
case 'priority': return this.t('kanban.priorityLabel');
|
|
705
|
+
case 'assigneeId': return this.t('kanban.assignee');
|
|
706
|
+
case 'parentId': return this.t(ticket.kind === 'task' ? 'kanban.epic' : 'kanban.parentTask');
|
|
707
|
+
case 'labels': return this.t('kanban.labels');
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/** A kept change's value, as its control shows it. */
|
|
712
|
+
private keptValue(
|
|
713
|
+
field: TKanbanDraftField,
|
|
714
|
+
edit: IKanbanEditConflict['edit'],
|
|
715
|
+
parents: IKanbanTicket[],
|
|
716
|
+
projects: IKanbanProject[],
|
|
717
|
+
): TemplateResult | string {
|
|
718
|
+
switch (field) {
|
|
719
|
+
case 'title': return edit.title ?? '';
|
|
720
|
+
case 'description': return edit.description || this.t('kanban.noDescription');
|
|
721
|
+
case 'project':
|
|
722
|
+
return edit.project ? kanbanProjectName(projects, edit.project) : this.t('kanban.noProject');
|
|
723
|
+
case 'priority': return this.t('kanban.priority', { priority: edit.priority ?? 'none' });
|
|
724
|
+
case 'assigneeId':
|
|
725
|
+
return edit.assigneeId
|
|
726
|
+
? this.people.find(person => person.id === edit.assigneeId)?.name ?? edit.assigneeId
|
|
727
|
+
: this.t('kanban.unassigned');
|
|
728
|
+
case 'parentId':
|
|
729
|
+
return parents.find(item => item.id === edit.parentId)?.title ?? this.t('kanban.none');
|
|
730
|
+
case 'labels':
|
|
731
|
+
return edit.labels?.length
|
|
732
|
+
? html`${edit.labels.map(label => html`<span class="badge">${label}</span>`)}`
|
|
733
|
+
: this.t('kanban.none');
|
|
734
|
+
}
|
|
537
735
|
}
|
|
538
736
|
|
|
539
737
|
private changeDraft(change: Partial<IKanbanTicketDraft>): void {
|
|
@@ -598,6 +796,7 @@ export class DeesKanbanTicketDetail extends DeesElement {
|
|
|
598
796
|
<section class="lead">
|
|
599
797
|
${this.editing && editable
|
|
600
798
|
? html`<div class="edit">
|
|
799
|
+
${this.conflict ? this.renderConflict(ticket, this.conflict, parents, projects) : ''}
|
|
601
800
|
<dees-input-text
|
|
602
801
|
label=${this.t('kanban.ticketTitle')}
|
|
603
802
|
.value=${draft.title}
|
|
@@ -620,7 +819,9 @@ export class DeesKanbanTicketDetail extends DeesElement {
|
|
|
620
819
|
size="sm"
|
|
621
820
|
type="accent"
|
|
622
821
|
text=${this.t('kanban.saveChanges')}
|
|
623
|
-
.disabled=${this.saving ||
|
|
822
|
+
.disabled=${this.saving ||
|
|
823
|
+
!draft.title.trim() ||
|
|
824
|
+
(this.conflict !== undefined && this.conflict.state !== 'reloaded')}
|
|
624
825
|
.status=${this.saving ? 'pending' : 'normal'}
|
|
625
826
|
@clicked=${() =>
|
|
626
827
|
kanbanEvent(this, 'kanban-ticket-save', { ticketId: ticket.id, draft })}
|
|
@@ -3,7 +3,19 @@ import type { TReferenceContent } from '../00group-input/dees-input-reference/in
|
|
|
3
3
|
export type TKanbanTicketKind = 'epic' | 'task' | 'subtask';
|
|
4
4
|
export type TKanbanPriority = 'none' | 'low' | 'normal' | 'high' | 'urgent';
|
|
5
5
|
export interface IKanbanPerson { id: string; name: string; }
|
|
6
|
-
export interface IKanbanColumn {
|
|
6
|
+
export interface IKanbanColumn {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
/** Marks completed subtasks. */
|
|
10
|
+
done?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Lets the reader fold the column to a narrow lane with its count and its newest three cards —
|
|
13
|
+
* the ones placed in it last, as a move appends — starting folded (`'collapsed'`) or open
|
|
14
|
+
* (`'expanded'`). A card dropped on a folded column lands at its end. Left out, the column always
|
|
15
|
+
* shows every card.
|
|
16
|
+
*/
|
|
17
|
+
collapsible?: 'collapsed' | 'expanded';
|
|
18
|
+
}
|
|
7
19
|
/** A project tickets belong to: a ticket's `project` is its `id`, the board shows its `name`. */
|
|
8
20
|
export interface IKanbanProject { id: string; name: string; }
|
|
9
21
|
/**
|
|
@@ -55,6 +67,8 @@ export interface IKanbanTicket {
|
|
|
55
67
|
updatedAt?: string;
|
|
56
68
|
createdBy?: IKanbanPerson;
|
|
57
69
|
updatedBy?: IKanbanPerson;
|
|
70
|
+
/** The ticket's server revision, advanced by every change to it. */
|
|
71
|
+
revision?: number;
|
|
58
72
|
/** UI capabilities; the provider must enforce authorization independently. */
|
|
59
73
|
permissions?: { edit?: boolean; move?: boolean; comment?: boolean; createChild?: boolean };
|
|
60
74
|
}
|
|
@@ -109,6 +123,8 @@ export interface IKanbanTicketDraft {
|
|
|
109
123
|
labels?: string[];
|
|
110
124
|
/** Left out, the ticket keeps its project. */
|
|
111
125
|
project?: string;
|
|
126
|
+
/** The ticket's `revision` the edit started from, sent back as `expectedRevision`. */
|
|
127
|
+
revision?: number;
|
|
112
128
|
}
|
|
113
129
|
export interface IKanbanMove {
|
|
114
130
|
ticketId: string;
|
|
@@ -121,9 +137,37 @@ export interface IKanbanCreate {
|
|
|
121
137
|
title: string;
|
|
122
138
|
columnId: string;
|
|
123
139
|
parentId?: string;
|
|
124
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* The project the person chose in the create dialog, which starts at the board's project filter,
|
|
142
|
+
* else the parent's project. A subtask takes its parent's. Left out, the ticket has no project.
|
|
143
|
+
*/
|
|
125
144
|
project?: string;
|
|
126
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* The error a provider's `updateTicket` throws when the ticket changed since `expectedRevision`:
|
|
148
|
+
* its `message` is the server's reason, shown to the person with an offer to reload the ticket.
|
|
149
|
+
*/
|
|
150
|
+
export interface IKanbanRevisionConflict extends Error {
|
|
151
|
+
code: 'revision_conflict';
|
|
152
|
+
}
|
|
153
|
+
/** A field of the edit draft the person writes or chooses. */
|
|
154
|
+
export type TKanbanDraftField = Exclude<keyof IKanbanTicketDraft, 'revision'>;
|
|
155
|
+
/**
|
|
156
|
+
* A save the provider refused with an `IKanbanRevisionConflict`, while the ticket's detail shows it:
|
|
157
|
+
* the server's reason and, once the ticket is reloaded, what the person changed, kept to apply to
|
|
158
|
+
* the latest version field by field.
|
|
159
|
+
*/
|
|
160
|
+
export interface IKanbanEditConflict {
|
|
161
|
+
/** The server's reason. */
|
|
162
|
+
message: string;
|
|
163
|
+
/**
|
|
164
|
+
* The fields the person changed, as they set them, where the reloaded ticket holds something
|
|
165
|
+
* else; empty until the reload.
|
|
166
|
+
*/
|
|
167
|
+
edit: Partial<Pick<IKanbanTicketDraft, TKanbanDraftField>>;
|
|
168
|
+
/** `stale` until the person reloads the ticket, `reloading` meanwhile, `reloaded` after. */
|
|
169
|
+
state: 'stale' | 'reloading' | 'reloaded';
|
|
170
|
+
}
|
|
127
171
|
/**
|
|
128
172
|
* The board's filters, as the reader chose them. A filter left out, or empty, does not narrow the
|
|
129
173
|
* board.
|
|
@@ -158,7 +202,15 @@ export interface IKanbanProvider {
|
|
|
158
202
|
/** The whole board again, for `refresh()`. */
|
|
159
203
|
loadBoard?: (signal: AbortSignal) => Promise<IKanbanBoardSnapshot>;
|
|
160
204
|
addComment?: (input: { ticketId: string; body: TReferenceContent }) => Promise<IKanbanComment>;
|
|
161
|
-
|
|
205
|
+
/**
|
|
206
|
+
* `expectedRevision` is the ticket's `revision` the edit started from; a provider that checks it
|
|
207
|
+
* refuses a stale edit with an `IKanbanRevisionConflict`.
|
|
208
|
+
*/
|
|
209
|
+
updateTicket?: (input: {
|
|
210
|
+
ticketId: string;
|
|
211
|
+
changes: IKanbanTicketChanges;
|
|
212
|
+
expectedRevision?: number;
|
|
213
|
+
}) => Promise<IKanbanTicket>;
|
|
162
214
|
/** Return all records whose order or column changed. */
|
|
163
215
|
moveTicket?: (input: IKanbanMove) => Promise<IKanbanTicket[]>;
|
|
164
216
|
createTicket?: (input: IKanbanCreate) => Promise<IKanbanTicket>;
|
|
@@ -22,6 +22,14 @@ export const kanbanDemoColumns: IKanbanColumn[] = [
|
|
|
22
22
|
{ id: 'done', title: 'Done', done: true },
|
|
23
23
|
];
|
|
24
24
|
|
|
25
|
+
/** A column for shipped work, folded to its newest cards until the reader opens it. */
|
|
26
|
+
export const kanbanDemoReleasedColumn: IKanbanColumn = {
|
|
27
|
+
id: 'released',
|
|
28
|
+
title: 'Released',
|
|
29
|
+
done: true,
|
|
30
|
+
collapsible: 'collapsed',
|
|
31
|
+
};
|
|
32
|
+
|
|
25
33
|
export const kanbanDemoProjects: IKanbanProject[] = [
|
|
26
34
|
{ id: 'app', name: 'Workspace app' },
|
|
27
35
|
{ id: 'catalog', name: 'Design catalog' },
|
|
@@ -29,6 +37,11 @@ export const kanbanDemoProjects: IKanbanProject[] = [
|
|
|
29
37
|
|
|
30
38
|
const [mara, jonas, alex] = kanbanDemoPeople;
|
|
31
39
|
|
|
40
|
+
export interface IKanbanDemoOptions {
|
|
41
|
+
/** Adds five shipped tasks in `kanbanDemoReleasedColumn`. */
|
|
42
|
+
released?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
export interface IKanbanDemo {
|
|
33
46
|
tickets: IKanbanTicket[];
|
|
34
47
|
provider: IKanbanProvider;
|
|
@@ -38,8 +51,40 @@ export interface IKanbanDemo {
|
|
|
38
51
|
actAs: (person: IKanbanPerson) => void;
|
|
39
52
|
}
|
|
40
53
|
|
|
41
|
-
|
|
42
|
-
|
|
54
|
+
/** Shipped tasks, one release each, the newest last. */
|
|
55
|
+
const releasedTickets = (): IKanbanTicket[] =>
|
|
56
|
+
[
|
|
57
|
+
['Remember the last board filters', 'app', '2.0.0'],
|
|
58
|
+
['Show who is viewing a ticket', 'app', '2.1.0'],
|
|
59
|
+
['Add the compact card density', 'catalog', '21.1.0'],
|
|
60
|
+
['Search tickets by key', 'app', '2.2.0'],
|
|
61
|
+
['Load the board in one request', 'app', '2.3.0'],
|
|
62
|
+
].map(([title, project, version], order) => ({
|
|
63
|
+
id: `released-${order + 1}`,
|
|
64
|
+
key: `CAT-${110 + order}`,
|
|
65
|
+
kind: 'task' as const,
|
|
66
|
+
title,
|
|
67
|
+
columnId: 'released',
|
|
68
|
+
order,
|
|
69
|
+
assignee: kanbanDemoPeople[order % kanbanDemoPeople.length],
|
|
70
|
+
project,
|
|
71
|
+
links: [
|
|
72
|
+
{ kind: 'release' as const, package: project === 'app' ? '@acme/workspace' : '@acme/catalog', version },
|
|
73
|
+
],
|
|
74
|
+
createdAt: `2026-09-0${order + 1}T09:00:00Z`,
|
|
75
|
+
createdBy: mara,
|
|
76
|
+
updatedAt: `2026-09-1${order}T15:00:00Z`,
|
|
77
|
+
updatedBy: mara,
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
/** The next revision of a ticket the provider changed. */
|
|
81
|
+
const revised = (ticket: IKanbanTicket): IKanbanTicket => ({
|
|
82
|
+
...ticket,
|
|
83
|
+
revision: (ticket.revision ?? 0) + 1,
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export const createKanbanDemo = (options: IKanbanDemoOptions = {}): IKanbanDemo => {
|
|
87
|
+
const seeded: IKanbanTicket[] = [
|
|
43
88
|
{
|
|
44
89
|
id: 'epic-1',
|
|
45
90
|
key: 'CAT-100',
|
|
@@ -227,7 +272,9 @@ export const createKanbanDemo = (): IKanbanDemo => {
|
|
|
227
272
|
assignee: alex,
|
|
228
273
|
project: 'catalog',
|
|
229
274
|
},
|
|
275
|
+
...options.released ? releasedTickets() : [],
|
|
230
276
|
];
|
|
277
|
+
let tickets = seeded.map(revised);
|
|
231
278
|
let comments: IKanbanComment[] = [
|
|
232
279
|
{
|
|
233
280
|
id: 'comment-1',
|
|
@@ -357,8 +404,14 @@ export const createKanbanDemo = (): IKanbanDemo => {
|
|
|
357
404
|
record(input.ticketId, 'commented');
|
|
358
405
|
return comment;
|
|
359
406
|
},
|
|
360
|
-
updateTicket: async ({ ticketId, changes }) => {
|
|
407
|
+
updateTicket: async ({ ticketId, changes, expectedRevision }) => {
|
|
361
408
|
const previous = tickets.find(ticket => ticket.id === ticketId)!;
|
|
409
|
+
// A server refuses an edit that started from an older revision, so it cannot undo a teammate's.
|
|
410
|
+
if (expectedRevision !== undefined && expectedRevision !== previous.revision)
|
|
411
|
+
throw Object.assign(
|
|
412
|
+
new Error(`${previous.updatedBy?.name ?? 'A teammate'} changed ${previous.key} while you were editing it.`),
|
|
413
|
+
{ code: 'revision_conflict' as const },
|
|
414
|
+
);
|
|
362
415
|
const next: IKanbanTicket = {
|
|
363
416
|
...previous,
|
|
364
417
|
...changes,
|
|
@@ -380,11 +433,11 @@ export const createKanbanDemo = (): IKanbanDemo => {
|
|
|
380
433
|
]),
|
|
381
434
|
);
|
|
382
435
|
if (!Object.keys(changed).length) return previous;
|
|
383
|
-
const ticket = {
|
|
436
|
+
const ticket = revised({
|
|
384
437
|
...next,
|
|
385
438
|
updatedAt: record(ticketId, 'updated', changed),
|
|
386
439
|
updatedBy: actor,
|
|
387
|
-
};
|
|
440
|
+
});
|
|
388
441
|
tickets = tickets.map(item => item.id === ticketId ? ticket : item);
|
|
389
442
|
return ticket;
|
|
390
443
|
},
|
|
@@ -407,7 +460,9 @@ export const createKanbanDemo = (): IKanbanDemo => {
|
|
|
407
460
|
updatedAt,
|
|
408
461
|
updatedBy: actor,
|
|
409
462
|
});
|
|
410
|
-
const changed = destination.map((item, order) =>
|
|
463
|
+
const changed = destination.map((item, order) =>
|
|
464
|
+
item.id === ticketId || item.order !== order ? revised({ ...item, order }) : item,
|
|
465
|
+
);
|
|
411
466
|
tickets = tickets.map(item => changed.find(moved => moved.id === item.id) ?? item);
|
|
412
467
|
return changed;
|
|
413
468
|
},
|
|
@@ -423,6 +478,7 @@ export const createKanbanDemo = (): IKanbanDemo => {
|
|
|
423
478
|
createdBy: actor,
|
|
424
479
|
updatedAt: createdAt,
|
|
425
480
|
updatedBy: actor,
|
|
481
|
+
revision: 1,
|
|
426
482
|
};
|
|
427
483
|
tickets = [...tickets, ticket];
|
|
428
484
|
return ticket;
|
|
@@ -310,6 +310,11 @@ export class KanbanDragController {
|
|
|
310
310
|
}
|
|
311
311
|
const columnId = column.column?.id;
|
|
312
312
|
if (!columnId) return;
|
|
313
|
+
// A collapsed column shows only its newest cards: a ticket stays where it is in it, or lands last.
|
|
314
|
+
if (column.collapsed)
|
|
315
|
+
return column.tickets.some(ticket => ticket.id === gesture.motion.ticket.id)
|
|
316
|
+
? this.authoritativeMove(gesture.motion.ticket.id)
|
|
317
|
+
: { ticketId: gesture.motion.ticket.id, columnId, beforeTicketId: undefined };
|
|
313
318
|
const tickets = sortKanbanTickets(column.tickets).filter(
|
|
314
319
|
ticket => ticket.id !== gesture.motion.ticket.id,
|
|
315
320
|
);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
IKanbanEditConflict,
|
|
2
3
|
IKanbanProject,
|
|
4
|
+
IKanbanRevisionConflict,
|
|
3
5
|
IKanbanTicket,
|
|
4
6
|
IKanbanTicketDraft,
|
|
7
|
+
TKanbanDraftField,
|
|
5
8
|
TKanbanLink,
|
|
6
9
|
TKanbanPriority,
|
|
7
10
|
} from './interfaces.js';
|
|
@@ -32,8 +35,58 @@ export const ticketDraft = (ticket: IKanbanTicket): IKanbanTicketDraft => ({
|
|
|
32
35
|
parentId: ticket.parentId ?? '',
|
|
33
36
|
labels: [...ticket.labels ?? []],
|
|
34
37
|
project: ticket.project ?? '',
|
|
38
|
+
...ticket.revision === undefined ? {} : { revision: ticket.revision },
|
|
35
39
|
});
|
|
36
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Which state of a ticket the board holds: its server `revision`, else its `updatedAt`. Undefined
|
|
43
|
+
* when the provider names neither.
|
|
44
|
+
*/
|
|
45
|
+
export const kanbanTicketVersion = (ticket: IKanbanTicket | undefined): string | undefined =>
|
|
46
|
+
ticket?.revision !== undefined ? `revision:${ticket.revision}` : ticket?.updatedAt;
|
|
47
|
+
|
|
48
|
+
/** The edit draft's fields, in the order the detail shows them. */
|
|
49
|
+
export const kanbanDraftFields: readonly TKanbanDraftField[] = [
|
|
50
|
+
'title',
|
|
51
|
+
'description',
|
|
52
|
+
'project',
|
|
53
|
+
'priority',
|
|
54
|
+
'assigneeId',
|
|
55
|
+
'parentId',
|
|
56
|
+
'labels',
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
const sameDraftField = (
|
|
60
|
+
field: TKanbanDraftField,
|
|
61
|
+
a: IKanbanTicketDraft,
|
|
62
|
+
b: IKanbanTicketDraft,
|
|
63
|
+
): boolean =>
|
|
64
|
+
field === 'labels'
|
|
65
|
+
? sameKanbanLabels(a.labels ?? [], b.labels ?? [])
|
|
66
|
+
: (a[field] ?? '') === (b[field] ?? '');
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* What an edit changed from the version it started at (`base`), as it set it, where the latest
|
|
70
|
+
* version (`latest`) holds something else: what the person may still want to apply to it.
|
|
71
|
+
*/
|
|
72
|
+
export const kanbanDraftChanges = (
|
|
73
|
+
base: IKanbanTicketDraft,
|
|
74
|
+
draft: IKanbanTicketDraft,
|
|
75
|
+
latest: IKanbanTicketDraft,
|
|
76
|
+
): IKanbanEditConflict['edit'] =>
|
|
77
|
+
Object.fromEntries(
|
|
78
|
+
kanbanDraftFields
|
|
79
|
+
.filter(field =>
|
|
80
|
+
draft[field] !== undefined &&
|
|
81
|
+
!sameDraftField(field, draft, base) &&
|
|
82
|
+
!sameDraftField(field, draft, latest))
|
|
83
|
+
.map(field => [field, draft[field]]),
|
|
84
|
+
) as IKanbanEditConflict['edit'];
|
|
85
|
+
|
|
86
|
+
/** Whether a provider refused an edit because the ticket changed since its `expectedRevision`. */
|
|
87
|
+
export const isKanbanRevisionConflict = (error: unknown): error is IKanbanRevisionConflict =>
|
|
88
|
+
error instanceof Error && (error as Partial<IKanbanRevisionConflict>).code === 'revision_conflict';
|
|
89
|
+
|
|
37
90
|
/** A project's name: its `IKanbanProject` name, else its id. */
|
|
38
91
|
export const kanbanProjectName = (projects: readonly IKanbanProject[], id: string): string =>
|
|
39
92
|
projects.find(project => project.id === id)?.name ?? id;
|
package/ts_web/i18n/de.ts
CHANGED
|
@@ -939,6 +939,17 @@ export default dcMessages.translation('de', {
|
|
|
939
939
|
'kanban.changeTo': '{before} → {after}',
|
|
940
940
|
'kanban.listAdded': 'hinzugefügt: {items}',
|
|
941
941
|
'kanban.listRemoved': 'entfernt: {items}',
|
|
942
|
+
'kanban.reloadTicket': 'Ticket neu laden',
|
|
943
|
+
'kanban.conflictHint': 'Laden Sie das Ticket neu, um die Änderung zu sehen. Ihre Änderungen bleiben erhalten, damit Sie sie erneut anwenden können.',
|
|
944
|
+
'kanban.yourEdit': 'Ihre Änderungen',
|
|
945
|
+
'kanban.yourEditHint': 'Das Formular zeigt jetzt den neuesten Stand. Übernehmen Sie die Änderungen, die Sie noch wollen.',
|
|
946
|
+
'kanban.applyEdit': 'Übernehmen',
|
|
947
|
+
'kanban.applyField': '{field} übernehmen',
|
|
948
|
+
'kanban.discardEdit': 'Verwerfen',
|
|
949
|
+
'kanban.collapseColumn': '{column} einklappen',
|
|
950
|
+
'kanban.expandColumn': '{column} ausklappen',
|
|
951
|
+
'kanban.showAll': '{count, plural, one {# Aufgabe anzeigen} other {Alle # Aufgaben anzeigen}}',
|
|
952
|
+
'kanban.titleRequired': 'Geben Sie einen Titel ein.',
|
|
942
953
|
'thread.timeline': 'Unterhaltung',
|
|
943
954
|
'thread.loading': 'Unterhaltung wird geladen …',
|
|
944
955
|
'thread.loadFailed': 'Die Unterhaltung konnte nicht geladen werden.',
|
|
@@ -1286,6 +1297,26 @@ export default dcMessages.translation('de', {
|
|
|
1286
1297
|
'question.custom': 'Antworten Sie in eigenen Worten …',
|
|
1287
1298
|
'question.send': 'Antwort senden',
|
|
1288
1299
|
'question.confirm': 'Bestätigen',
|
|
1300
|
+
'question.warning': 'Warnung:',
|
|
1301
|
+
'question.danger': 'Gefahr:',
|
|
1302
|
+
'question.items': 'Vorgeschlagene Änderungen',
|
|
1303
|
+
'question.proposalConfirm': 'Bestätigen',
|
|
1304
|
+
'question.proposalDecline': 'Ablehnen',
|
|
1305
|
+
'question.confirmed': 'Bestätigt',
|
|
1306
|
+
'question.declined': 'Abgelehnt',
|
|
1307
|
+
'question.expired': 'Abgelaufen',
|
|
1308
|
+
'question.failed': 'Fehlgeschlagen',
|
|
1309
|
+
'question.includeItem': 'Einbeziehen: {summary}',
|
|
1310
|
+
'question.leftOut': 'Ausgelassen',
|
|
1311
|
+
'question.credentialHidden': 'verborgen',
|
|
1312
|
+
'question.credentialShowShort': 'Zeigen',
|
|
1313
|
+
'question.credentialHideShort': 'Verbergen',
|
|
1314
|
+
'question.credentialShow': '{label} zeigen',
|
|
1315
|
+
'question.credentialHide': '{label} verbergen',
|
|
1316
|
+
'question.credentialCopy': '{label} kopieren',
|
|
1317
|
+
'question.credentialCopied': '{label} kopiert',
|
|
1318
|
+
'question.credentialCopyFailed': 'Kopieren fehlgeschlagen. Prüfen Sie den Zugriff auf die Zwischenablage und versuchen Sie es erneut.',
|
|
1319
|
+
'question.credentialNote': 'Nur Sie sehen dies. Der Agent erhält es nicht.',
|
|
1289
1320
|
'message.usage': '{input, number} ein · {output, number} aus · {total, number} Tokens insgesamt',
|
|
1290
1321
|
'todos.empty': 'Noch keine Aufgaben.',
|
|
1291
1322
|
'reasoning.thinking': 'Denkt nach',
|
package/ts_web/i18n/messages.ts
CHANGED
|
@@ -973,6 +973,17 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
|
|
|
973
973
|
'kanban.changeTo': { message: '{before} → {after}', description: 'A field\'s change in a ticket\'s history: {before} is its value before, {after} its value after.' },
|
|
974
974
|
'kanban.listAdded': { message: 'added {items}', description: 'Labels or links a change added, in a ticket\'s history; {items} is their list.' },
|
|
975
975
|
'kanban.listRemoved': { message: 'removed {items}', description: 'Labels or links a change removed, in a ticket\'s history; {items} is their list.' },
|
|
976
|
+
'kanban.reloadTicket': { message: 'Reload ticket', description: 'The button that loads a ticket again after the server refused a save because someone changed the ticket meanwhile.' },
|
|
977
|
+
'kanban.conflictHint': { message: 'Reload the ticket to see the change. Your edits are kept, so you can apply them again.', description: 'Below the server\'s reason, when it refused a save because the ticket changed meanwhile.' },
|
|
978
|
+
'kanban.yourEdit': { message: 'Your changes', description: 'The heading over the fields a person changed before their save was refused, kept to apply to the reloaded ticket.' },
|
|
979
|
+
'kanban.yourEditHint': { message: 'The form now shows the latest version. Apply the changes you still want.', description: 'Below "Your changes", after the ticket was loaded again.' },
|
|
980
|
+
'kanban.applyEdit': { message: 'Apply', description: 'The button that puts one kept change back into the edit.' },
|
|
981
|
+
'kanban.applyField': { message: 'Apply {field}', description: 'The accessible name of the button that puts one kept change back into the edit; {field} is the field\'s name, as "Title".' },
|
|
982
|
+
'kanban.discardEdit': { message: 'Discard', description: 'The button that throws away the kept changes.' },
|
|
983
|
+
'kanban.collapseColumn': { message: 'Collapse {column}', description: 'A column\'s button that folds it to a narrow lane; {column} is its title.' },
|
|
984
|
+
'kanban.expandColumn': { message: 'Expand {column}', description: 'A folded column\'s button that shows it whole again; {column} is its title.' },
|
|
985
|
+
'kanban.showAll': { message: '{count, plural, one {Show # task} other {Show all # tasks}}', description: 'The button below a folded column\'s newest tasks that shows the column whole; {count} is how many tasks it holds.' },
|
|
986
|
+
'kanban.titleRequired': { message: 'Enter a title.', description: 'Shown on the title field of the create dialog when it is confirmed empty.' },
|
|
976
987
|
|
|
977
988
|
// dees-thread
|
|
978
989
|
'thread.timeline': { message: 'Conversation', description: 'The thread\'s list of comments and events (its accessible name).' },
|
|
@@ -1356,6 +1367,26 @@ export const dcMessages = plugins.smarti18n.defineCatalog({
|
|
|
1356
1367
|
'question.custom': { message: 'Answer in your own words…', description: 'The field for an answer of the reader\'s own.' },
|
|
1357
1368
|
'question.send': { message: 'Send Answer', description: 'The button that sends the answer.' },
|
|
1358
1369
|
'question.confirm': { message: 'Confirm', description: 'The button that confirms the chosen answers.' },
|
|
1370
|
+
'question.warning': { message: 'Warning:', description: 'Said to assistive technology before a question or proposal that asks for care (orange, a warning sign).' },
|
|
1371
|
+
'question.danger': { message: 'Danger:', description: 'Said to assistive technology before a question or proposal that deletes, sends or cannot be taken back (red, a stop sign).' },
|
|
1372
|
+
'question.items': { message: 'Proposed changes', description: 'The list of changes a proposal makes (a list name).' },
|
|
1373
|
+
'question.proposalConfirm': { message: 'Confirm', description: 'The button that confirms a proposal: the agent then makes its changes.' },
|
|
1374
|
+
'question.proposalDecline': { message: 'Decline', description: 'The button that declines a proposal: nothing is changed.' },
|
|
1375
|
+
'question.confirmed': { message: 'Confirmed', description: 'Said on a proposal the reader confirmed.' },
|
|
1376
|
+
'question.declined': { message: 'Declined', description: 'Said on a proposal the reader declined.' },
|
|
1377
|
+
'question.expired': { message: 'Expired', description: 'Said on a proposal that can no longer be confirmed or declined.' },
|
|
1378
|
+
'question.failed': { message: 'Failed', description: 'Said on a confirmed proposal whose changes could not be made.' },
|
|
1379
|
+
'question.includeItem': { message: 'Include: {summary}', description: 'The checkbox that keeps a change in a proposal (checked) or leaves it out; {summary} is what the change does.' },
|
|
1380
|
+
'question.leftOut': { message: 'Left out', description: 'Said on a change the reader left out of a proposal: it is not made.' },
|
|
1381
|
+
'question.credentialHidden': { message: 'hidden', description: 'Said to assistive technology in place of a secret that is not shown.' },
|
|
1382
|
+
'question.credentialShowShort': { message: 'Show', description: 'The button that shows a secret a change issued, such as an API key.' },
|
|
1383
|
+
'question.credentialHideShort': { message: 'Hide', description: 'The button that hides that secret again.' },
|
|
1384
|
+
'question.credentialShow': { message: 'Show {label}', description: 'The show button\'s accessible name; {label} is what the secret is ("API key"). Keep the button\'s word in it.' },
|
|
1385
|
+
'question.credentialHide': { message: 'Hide {label}', description: 'The hide button\'s accessible name. Keep the button\'s word in it.' },
|
|
1386
|
+
'question.credentialCopy': { message: 'Copy {label}', description: 'The copy button\'s accessible name. Keep the button\'s word ("Copy") in it.' },
|
|
1387
|
+
'question.credentialCopied': { message: '{label} copied', description: 'Said once the secret is on the clipboard.' },
|
|
1388
|
+
'question.credentialCopyFailed': { message: 'Could not copy. Check clipboard access and try again.', description: 'Said when the clipboard refused the secret.' },
|
|
1389
|
+
'question.credentialNote': { message: 'Only you can see this. The agent is not shown it.', description: 'Under a secret a change issued: it stays on the reader\'s screen and does not go back to the agent.' },
|
|
1359
1390
|
'message.usage': { message: '{input, number} in · {output, number} out · {total, number} total tokens', description: 'A reply\'s token usage: tokens read, written and in total.' },
|
|
1360
1391
|
|
|
1361
1392
|
// dees-harness-todos, dees-harness-reasoning, dees-harness-status, dees-harness-thread-cut, dees-harness-usage
|