feat(tasks-ui): one task window everywhere, cards are their own detail entry
Round-three review feedback: - NO PER-CARD DETAIL BUTTON: the ellipsis control is gone from graph cards and tree rows — the card IS the affordance, and clicking it opens the detail window (the transcript jump moved inside as the primary button). Fold aggregates keep click-to-expand. - ONE TASK WINDOW: every task surface (board row, agent node task line, the node detail list, and creating a task) now opens the same non-fullscreen DRAGGABLE window (TaskWindow.tsx + its TaskPopover shell): markdown description by default, 编辑 switches the same card to multi-line editing, plus owner reassignment, complete/reopen and a two-step delete. The board lost its overflow menu and its Modal entirely; create uses the same window in create mode. - REUSE: TaskPopover (4 call sites), MultilineField (the plugin's own multi-line input — the host primitive set has none), OwnerPicker, TaskCreateButton, and the shared glyph/TaskLine helpers across both modes. - 3 new copy keys across zh/en/ja and the 18 third-language dictionaries. Tests: the node-click spec now asserts the detail window (and that the jump button inside it navigates), a new spec pins 'no nested control inside a card', and two more cover the shared window: markdown-first view then multi-line edit posting an 'edit' with the current revision, and immediate owner reassignment. Full suite 1406 passed / 133 files.
This commit is contained in:
1 parent
e41f10afc9
commit
7cbfc766a1
31 files changed
+799
-347
No files matched your search
@@ -223,6 +223,7 @@
|
||||
|
||||
.taskLine {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-top: 3px;
|
||||
@@ -240,6 +241,16 @@
|
||||
color: var(--dsw-alias-state-business-primary);
|
||||
}
|
||||
|
||||
.taskLine:hover .taskSubject {
|
||||
color: var(--dsw-alias-label-primary);
|
||||
}
|
||||
|
||||
.taskLine:focus-visible {
|
||||
outline: 2px solid var(--dsw-alias-state-business-primary);
|
||||
outline-offset: 1px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.taskSubject {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -699,6 +710,38 @@
|
||||
color: var(--dsw-alias-state-warn-primary);
|
||||
}
|
||||
|
||||
/* ── Task window: markdown view + multi-line edit ──────────────────────── */
|
||||
|
||||
.taskMarkdown {
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
padding: 2px 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
color: var(--dsw-alias-label-primary);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.taskTextarea {
|
||||
width: 100%;
|
||||
min-height: 120px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid var(--dsw-alias-border-l4);
|
||||
border-radius: 3px;
|
||||
background: var(--dsw-alias-bg-base);
|
||||
color: var(--dsw-alias-label-primary);
|
||||
font-family: var(--ds-font-family-code);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.5;
|
||||
resize: vertical;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.taskTextarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--dsw-alias-state-business-primary);
|
||||
}
|
||||
|
||||
/* ── Task create/edit dialog ───────────────────────────────────────────── */
|
||||
|
||||
.taskForm {
|
||||
@@ -836,8 +879,14 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
width: 100%;
|
||||
padding: 3px 5px;
|
||||
border-radius: 3px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.teamTask > * {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.teamTask:hover {
|
||||
|
||||
Reference in new issue
Block a user