@yankeguo/dsh-client-ui-devlead 0.4.2-rc.9 → 0.4.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +185 -111
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -40,6 +40,7 @@ window.__ModuleLoader__.load({
|
|
|
40
40
|
var DEVLEAD_WATCH_PROJECTION_KEY = "devLeadWatch";
|
|
41
41
|
var DEVLEAD_COMMAND_NAME = "devlead";
|
|
42
42
|
var DEVLEAD_ERROR_EXCERPT_MAX = 240;
|
|
43
|
+
var DEVLEAD_ASSISTANT_EXCERPT_MAX = 4096;
|
|
43
44
|
var DEVLEAD_REPORT_KINDS = [
|
|
44
45
|
"progress",
|
|
45
46
|
"blocked",
|
|
@@ -94,9 +95,11 @@ window.__ModuleLoader__.load({
|
|
|
94
95
|
function notificationLine(notification) {
|
|
95
96
|
const who = sessionRefLabel(notification.sessionId, notification.sessionTitle);
|
|
96
97
|
const error = presentLine(notification.error);
|
|
97
|
-
const
|
|
98
|
+
const summary = typeof notification.summary === "string" ? excerptLine(notification.summary, DEVLEAD_ASSISTANT_EXCERPT_MAX) : void 0;
|
|
99
|
+
const detail = error ?? (summary === void 0 ? void 0 : `${summary}${notification.summaryTruncated === true ? " [truncated]" : ""}`);
|
|
98
100
|
const suffix = detail === void 0 ? "" : `: ${detail}`;
|
|
99
|
-
|
|
101
|
+
const interrupt = notification.cancelledByLeadInterrupt === true ? " (cancelled by your interrupt)" : "";
|
|
102
|
+
return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${interrupt}${suffix}`;
|
|
100
103
|
}
|
|
101
104
|
var REPORT_KIND_LABELS = {
|
|
102
105
|
progress: "progress",
|
|
@@ -163,6 +166,9 @@ window.__ModuleLoader__.load({
|
|
|
163
166
|
function createDevLeadBoardSchema(isAbsolutePath) {
|
|
164
167
|
const projectSchema2 = import_zod.z.object({
|
|
165
168
|
id: idSchema,
|
|
169
|
+
// Optional only at the durable decode boundary so schema-v1 files written
|
|
170
|
+
// before project-local CAS remain readable; the Host backfills and persists it.
|
|
171
|
+
revision: import_zod.z.number().int().nonnegative().safe().optional(),
|
|
166
172
|
workspace: import_zod.z.object({
|
|
167
173
|
path: import_zod.z.string().min(1).max(DEVLEAD_BOARD_PATH_MAX).refine(isAbsolutePath, {
|
|
168
174
|
message: "workspace path must be absolute"
|
|
@@ -218,7 +224,10 @@ window.__ModuleLoader__.load({
|
|
|
218
224
|
});
|
|
219
225
|
}
|
|
220
226
|
});
|
|
221
|
-
})
|
|
227
|
+
}).transform((board) => ({
|
|
228
|
+
...board,
|
|
229
|
+
projects: board.projects.map((project) => ({ ...project, revision: project.revision ?? board.revision }))
|
|
230
|
+
}));
|
|
222
231
|
return boardSchema;
|
|
223
232
|
}
|
|
224
233
|
|
|
@@ -1572,25 +1581,23 @@ window.__ModuleLoader__.load({
|
|
|
1572
1581
|
const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
|
|
1573
1582
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("time", { dateTime: iso, title: label === void 0 ? iso : `${label}: ${iso}`, "aria-label": label === void 0 ? void 0 : `${label} ${text}`, children: text });
|
|
1574
1583
|
}
|
|
1575
|
-
function ProjectField({ label, text, className = "", arrow }) {
|
|
1576
|
-
|
|
1577
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
return "idle";
|
|
1593
|
-
}
|
|
1584
|
+
function ProjectField({ label, text, section, className = "", arrow }) {
|
|
1585
|
+
const empty = text.trim().length === 0;
|
|
1586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1587
|
+
"div",
|
|
1588
|
+
{
|
|
1589
|
+
className: `devlead-board-field ${className}`.trim(),
|
|
1590
|
+
"data-devlead-board-section": section,
|
|
1591
|
+
"data-empty": empty ? "true" : "false",
|
|
1592
|
+
"aria-label": empty ? void 0 : label,
|
|
1593
|
+
"aria-hidden": empty ? true : void 0,
|
|
1594
|
+
children: [
|
|
1595
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
|
|
1596
|
+
arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
|
|
1597
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
|
|
1598
|
+
]
|
|
1599
|
+
}
|
|
1600
|
+
);
|
|
1594
1601
|
}
|
|
1595
1602
|
function ProjectStatusIcon({ status }) {
|
|
1596
1603
|
switch (status) {
|
|
@@ -1604,6 +1611,24 @@ window.__ModuleLoader__.load({
|
|
|
1604
1611
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconCheckCircleOutlineRegular, { size: 13 });
|
|
1605
1612
|
}
|
|
1606
1613
|
}
|
|
1614
|
+
function ProjectPriorityIcon({ priority, t }) {
|
|
1615
|
+
const label = t(`board.priority.${priority}`);
|
|
1616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label, side: "left", delayMs: 300, openOnClick: true, portal: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1617
|
+
"span",
|
|
1618
|
+
{
|
|
1619
|
+
className: "devlead-board-priority",
|
|
1620
|
+
"data-devlead-board-priority": priority,
|
|
1621
|
+
role: "img",
|
|
1622
|
+
"aria-label": label,
|
|
1623
|
+
title: label,
|
|
1624
|
+
tabIndex: 0,
|
|
1625
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-priority-glyph", "aria-hidden": "true", children: priority === "low" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronDownOutlineRegular, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1626
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 }),
|
|
1627
|
+
priority === "high" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 })
|
|
1628
|
+
] }) })
|
|
1629
|
+
}
|
|
1630
|
+
) });
|
|
1631
|
+
}
|
|
1607
1632
|
function ProjectCard({ project, now, t, notesProject, onOpenNotes }) {
|
|
1608
1633
|
const idPrefix = (0, import_react5.useId)();
|
|
1609
1634
|
const [tasksOpen, setTasksOpen] = (0, import_react5.useState)(false);
|
|
@@ -1619,38 +1644,37 @@ window.__ModuleLoader__.load({
|
|
|
1619
1644
|
"data-priority": project.priority,
|
|
1620
1645
|
"aria-labelledby": `${idPrefix}-title`,
|
|
1621
1646
|
children: [
|
|
1622
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
1623
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-badges", children: [
|
|
1629
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) }),
|
|
1630
|
-
latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1631
|
-
"button",
|
|
1632
|
-
{
|
|
1633
|
-
type: "button",
|
|
1634
|
-
className: "devlead-board-notes-chip",
|
|
1635
|
-
"data-devlead-notes-chip": project.id,
|
|
1636
|
-
"aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
|
|
1637
|
-
title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
|
|
1638
|
-
onClick: () => {
|
|
1639
|
-
onOpenNotes(project.id);
|
|
1640
|
-
},
|
|
1641
|
-
children: [
|
|
1642
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
|
|
1643
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
|
|
1644
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
|
|
1645
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
|
|
1646
|
-
]
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1647
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-card-header", "data-devlead-board-section": "title", children: [
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-heading", children: [
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
|
|
1651
|
+
] }),
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectPriorityIcon, { priority: project.priority, t })
|
|
1649
1653
|
] }),
|
|
1650
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1651
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", "data-devlead-board-section": "workspace", title: project.workspace.path, children: project.workspace.path }),
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "devlead-board-card-badges", "data-devlead-board-section": "meta", children: latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1656
|
+
"button",
|
|
1657
|
+
{
|
|
1658
|
+
type: "button",
|
|
1659
|
+
className: "devlead-board-notes-chip",
|
|
1660
|
+
"data-devlead-notes-chip": project.id,
|
|
1661
|
+
"aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
|
|
1662
|
+
title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
|
|
1663
|
+
onClick: () => {
|
|
1664
|
+
onOpenNotes(project.id);
|
|
1665
|
+
},
|
|
1666
|
+
children: [
|
|
1667
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
|
|
1668
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
|
|
1669
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
|
|
1670
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
) }),
|
|
1674
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, section: "focus", className: "devlead-board-field-focus" }),
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, section: "next", className: "devlead-board-field-next", arrow: "\u2192" }),
|
|
1676
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, section: "goal", className: "devlead-board-field-goal" }),
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "devlead-board-blockers-slot", "data-devlead-board-section": "blockers", "data-empty": project.blockers.length === 0 ? "true" : "false", children: project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
|
|
1654
1678
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("h6", { children: [
|
|
1655
1679
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
|
|
1656
1680
|
t("board.blockers")
|
|
@@ -1659,8 +1683,8 @@ window.__ModuleLoader__.load({
|
|
|
1659
1683
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: blocker.text, children: blocker.text }),
|
|
1660
1684
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-blocker-since", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: blocker.since, now, t, label: t("board.blocker.since") }) })
|
|
1661
1685
|
] }, blocker.id)) })
|
|
1662
|
-
] }),
|
|
1663
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", title: progressText, children: [
|
|
1686
|
+
] }) }),
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", "data-devlead-board-section": "progress", title: progressText, children: [
|
|
1664
1688
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: progressText }),
|
|
1665
1689
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1666
1690
|
"progress",
|
|
@@ -1677,6 +1701,7 @@ window.__ModuleLoader__.load({
|
|
|
1677
1701
|
"details",
|
|
1678
1702
|
{
|
|
1679
1703
|
className: "devlead-board-tasks",
|
|
1704
|
+
"data-devlead-board-section": "tasks",
|
|
1680
1705
|
"data-devlead-board-tasks": project.id,
|
|
1681
1706
|
"aria-labelledby": `${idPrefix}-tasks`,
|
|
1682
1707
|
open: tasksOpen,
|
|
@@ -1701,7 +1726,7 @@ window.__ModuleLoader__.load({
|
|
|
1701
1726
|
]
|
|
1702
1727
|
}
|
|
1703
1728
|
),
|
|
1704
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", children: [
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", "data-devlead-board-section": "footer", children: [
|
|
1705
1730
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 12 }),
|
|
1706
1731
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: project.updatedAt, now, t, label: t("board.project.updated") })
|
|
1707
1732
|
] })
|
|
@@ -1820,27 +1845,8 @@ window.__ModuleLoader__.load({
|
|
|
1820
1845
|
const announcementText = state.status === "error" ? t("board.refresh.error") : watch === "ended" ? t(endedKey) : autoRefresh === "paused" ? t("board.autoRefresh.paused") : watch === "connecting" ? t("board.watch.connecting") : t(`board.autoRefresh.${autoRefresh}`);
|
|
1821
1846
|
const readerProject = notes?.selection === void 0 || board === void 0 ? void 0 : board.projects.find((project) => project.id === notes.selection?.projectId);
|
|
1822
1847
|
const readerNotesProject = readerProject === void 0 || notes?.index.value === void 0 ? void 0 : devLeadNotesForProject(notes.index.value, readerProject);
|
|
1823
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
|
|
1848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, "aria-label": t("board.title"), children: [
|
|
1824
1849
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-header", children: [
|
|
1825
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-row", children: [
|
|
1826
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-group", children: [
|
|
1827
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h3", { children: t("board.title") }),
|
|
1828
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
|
|
1829
|
-
] }),
|
|
1830
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1831
|
-
import_dsh_client_ui_primitives3.Button,
|
|
1832
|
-
{
|
|
1833
|
-
variant: "ghost",
|
|
1834
|
-
size: "sm",
|
|
1835
|
-
className: "devlead-board-refresh",
|
|
1836
|
-
"aria-label": t("board.refresh.action"),
|
|
1837
|
-
"aria-busy": state.refreshing,
|
|
1838
|
-
disabled: state.refreshing,
|
|
1839
|
-
onClick: onRefresh,
|
|
1840
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
|
|
1841
|
-
}
|
|
1842
|
-
) })
|
|
1843
|
-
] }),
|
|
1844
1850
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-strip", children: [
|
|
1845
1851
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-live", "data-auto-refresh": autoRefresh, title: `${t("board.live")}: ${statusText}`, children: [
|
|
1846
1852
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 8 }),
|
|
@@ -1858,12 +1864,27 @@ window.__ModuleLoader__.load({
|
|
|
1858
1864
|
}
|
|
1859
1865
|
)
|
|
1860
1866
|
] }),
|
|
1861
|
-
|
|
1862
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("
|
|
1863
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
1864
|
-
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-actions", children: [
|
|
1868
|
+
board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
|
|
1869
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
|
|
1870
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
|
|
1871
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
|
|
1872
|
+
] }),
|
|
1873
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-revision", title: t("board.revision.full", { revision: board.revision }), children: t("board.revision", { revision: board.revision }) })
|
|
1865
1874
|
] }),
|
|
1866
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1875
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1876
|
+
import_dsh_client_ui_primitives3.Button,
|
|
1877
|
+
{
|
|
1878
|
+
variant: "ghost",
|
|
1879
|
+
size: "sm",
|
|
1880
|
+
className: "devlead-board-refresh",
|
|
1881
|
+
"aria-label": t("board.refresh.action"),
|
|
1882
|
+
"aria-busy": state.refreshing,
|
|
1883
|
+
disabled: state.refreshing,
|
|
1884
|
+
onClick: onRefresh,
|
|
1885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
|
|
1886
|
+
}
|
|
1887
|
+
) })
|
|
1867
1888
|
] })
|
|
1868
1889
|
] }),
|
|
1869
1890
|
board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dl", { className: "devlead-board-kpis", "aria-label": t("board.kpi.aria"), tabIndex: 0, children: ["blocked", "active", "paused", "done"].map((status) => {
|
|
@@ -2920,9 +2941,8 @@ window.__ModuleLoader__.load({
|
|
|
2920
2941
|
background: var(--dsw-specific-menu, Canvas);
|
|
2921
2942
|
}
|
|
2922
2943
|
|
|
2923
|
-
.devlead-board-title-row,
|
|
2924
|
-
.devlead-board-title-group,
|
|
2925
2944
|
.devlead-board-header-strip,
|
|
2945
|
+
.devlead-board-header-actions,
|
|
2926
2946
|
.devlead-board-live,
|
|
2927
2947
|
.devlead-board-meta,
|
|
2928
2948
|
.devlead-board-card-header,
|
|
@@ -2935,17 +2955,6 @@ window.__ModuleLoader__.load({
|
|
|
2935
2955
|
align-items: center;
|
|
2936
2956
|
}
|
|
2937
2957
|
|
|
2938
|
-
.devlead-board-title-row {
|
|
2939
|
-
justify-content: space-between;
|
|
2940
|
-
gap: 8px;
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
.devlead-board-title-group {
|
|
2944
|
-
flex: 1 1 auto;
|
|
2945
|
-
gap: 7px;
|
|
2946
|
-
}
|
|
2947
|
-
|
|
2948
|
-
.devlead-board-title-group h3,
|
|
2949
2958
|
.devlead-board-card-heading h5,
|
|
2950
2959
|
.devlead-board-group h4,
|
|
2951
2960
|
.devlead-board-placeholder h4,
|
|
@@ -2958,15 +2967,6 @@ window.__ModuleLoader__.load({
|
|
|
2958
2967
|
font-weight: 650;
|
|
2959
2968
|
}
|
|
2960
2969
|
|
|
2961
|
-
.devlead-board-title-group h3 {
|
|
2962
|
-
overflow: hidden;
|
|
2963
|
-
font-size: 15px;
|
|
2964
|
-
line-height: 22px;
|
|
2965
|
-
letter-spacing: -0.015em;
|
|
2966
|
-
text-overflow: ellipsis;
|
|
2967
|
-
white-space: nowrap;
|
|
2968
|
-
}
|
|
2969
|
-
|
|
2970
2970
|
.devlead-board-refresh,
|
|
2971
2971
|
.devlead-notes-back {
|
|
2972
2972
|
flex: none;
|
|
@@ -2988,7 +2988,13 @@ window.__ModuleLoader__.load({
|
|
|
2988
2988
|
flex-wrap: wrap;
|
|
2989
2989
|
justify-content: space-between;
|
|
2990
2990
|
gap: 3px 10px;
|
|
2991
|
-
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.devlead-board-header-actions {
|
|
2994
|
+
flex: 0 1 auto;
|
|
2995
|
+
justify-content: flex-end;
|
|
2996
|
+
gap: 5px;
|
|
2997
|
+
margin-left: auto;
|
|
2992
2998
|
}
|
|
2993
2999
|
|
|
2994
3000
|
.devlead-board-live {
|
|
@@ -3293,14 +3299,18 @@ window.__ModuleLoader__.load({
|
|
|
3293
3299
|
.devlead-board-cards {
|
|
3294
3300
|
display: grid;
|
|
3295
3301
|
grid-template-columns: minmax(0, 1fr);
|
|
3302
|
+
grid-auto-rows: 1fr;
|
|
3296
3303
|
gap: 8px;
|
|
3297
3304
|
min-width: 0;
|
|
3298
3305
|
}
|
|
3299
3306
|
|
|
3300
3307
|
.devlead-board-card {
|
|
3301
3308
|
position: relative;
|
|
3309
|
+
display: flex;
|
|
3310
|
+
flex-direction: column;
|
|
3302
3311
|
min-width: 0;
|
|
3303
3312
|
max-width: 100%;
|
|
3313
|
+
height: 100%;
|
|
3304
3314
|
padding: 9px 10px 8px;
|
|
3305
3315
|
overflow: hidden;
|
|
3306
3316
|
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
@@ -3334,22 +3344,52 @@ window.__ModuleLoader__.load({
|
|
|
3334
3344
|
}
|
|
3335
3345
|
|
|
3336
3346
|
.devlead-board-card-header {
|
|
3337
|
-
align-items:
|
|
3347
|
+
align-items: center;
|
|
3348
|
+
gap: 6px;
|
|
3338
3349
|
}
|
|
3339
3350
|
|
|
3340
3351
|
.devlead-board-card-heading {
|
|
3341
3352
|
display: grid;
|
|
3342
3353
|
flex: 1 1 auto;
|
|
3343
|
-
grid-template-columns:
|
|
3354
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr);
|
|
3344
3355
|
align-items: center;
|
|
3345
3356
|
gap: 5px;
|
|
3346
3357
|
min-width: 0;
|
|
3347
3358
|
}
|
|
3348
3359
|
|
|
3349
|
-
.devlead-board-
|
|
3360
|
+
.devlead-board-priority {
|
|
3350
3361
|
display: inline-flex;
|
|
3362
|
+
flex: none;
|
|
3351
3363
|
align-items: center;
|
|
3352
3364
|
justify-content: center;
|
|
3365
|
+
width: 16px;
|
|
3366
|
+
height: 19px;
|
|
3367
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
.devlead-board-priority-glyph {
|
|
3371
|
+
display: inline-flex;
|
|
3372
|
+
flex-direction: column;
|
|
3373
|
+
align-items: center;
|
|
3374
|
+
justify-content: center;
|
|
3375
|
+
width: 16px;
|
|
3376
|
+
height: 19px;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
.devlead-board-priority-glyph > svg {
|
|
3380
|
+
flex: none;
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
.devlead-board-priority-glyph > svg + svg {
|
|
3384
|
+
margin-top: -9px;
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
.devlead-board-priority[data-devlead-board-priority="high"] {
|
|
3388
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
.devlead-board-priority[data-devlead-board-priority="medium"] {
|
|
3392
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
3353
3393
|
}
|
|
3354
3394
|
|
|
3355
3395
|
.devlead-board-card-heading h5 {
|
|
@@ -3371,7 +3411,7 @@ window.__ModuleLoader__.load({
|
|
|
3371
3411
|
|
|
3372
3412
|
.devlead-board-workspace {
|
|
3373
3413
|
display: block;
|
|
3374
|
-
margin: 1px 0 0
|
|
3414
|
+
margin: 1px 0 0;
|
|
3375
3415
|
overflow: hidden;
|
|
3376
3416
|
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3377
3417
|
font-family: inherit;
|
|
@@ -3385,8 +3425,14 @@ window.__ModuleLoader__.load({
|
|
|
3385
3425
|
flex-wrap: wrap;
|
|
3386
3426
|
gap: 4px;
|
|
3387
3427
|
min-width: 0;
|
|
3428
|
+
min-height: 28px;
|
|
3388
3429
|
max-width: 100%;
|
|
3389
|
-
|
|
3430
|
+
padding-top: 5px;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
.devlead-board-card-badges:empty {
|
|
3434
|
+
min-height: 0;
|
|
3435
|
+
padding-top: 0;
|
|
3390
3436
|
}
|
|
3391
3437
|
|
|
3392
3438
|
.devlead-board-card-badges > span {
|
|
@@ -3440,9 +3486,14 @@ window.__ModuleLoader__.load({
|
|
|
3440
3486
|
margin-top: 7px;
|
|
3441
3487
|
}
|
|
3442
3488
|
|
|
3489
|
+
.devlead-board-field[data-empty="true"] {
|
|
3490
|
+
visibility: hidden;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3443
3493
|
.devlead-board-field p {
|
|
3444
3494
|
display: -webkit-box;
|
|
3445
3495
|
min-width: 0;
|
|
3496
|
+
min-height: 19px;
|
|
3446
3497
|
margin: 0;
|
|
3447
3498
|
overflow: hidden;
|
|
3448
3499
|
overflow-wrap: anywhere;
|
|
@@ -3456,6 +3507,7 @@ window.__ModuleLoader__.load({
|
|
|
3456
3507
|
}
|
|
3457
3508
|
|
|
3458
3509
|
.devlead-board-field-focus p {
|
|
3510
|
+
min-height: 20px;
|
|
3459
3511
|
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3460
3512
|
font-size: 14px;
|
|
3461
3513
|
font-weight: 600;
|
|
@@ -3489,6 +3541,10 @@ window.__ModuleLoader__.load({
|
|
|
3489
3541
|
font-size: 12px;
|
|
3490
3542
|
}
|
|
3491
3543
|
|
|
3544
|
+
.devlead-board-blockers-slot {
|
|
3545
|
+
min-width: 0;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3492
3548
|
.devlead-board-blockers {
|
|
3493
3549
|
margin-top: 8px;
|
|
3494
3550
|
padding: 7px 8px;
|
|
@@ -3688,7 +3744,8 @@ window.__ModuleLoader__.load({
|
|
|
3688
3744
|
align-items: center;
|
|
3689
3745
|
justify-content: flex-end;
|
|
3690
3746
|
gap: 3px;
|
|
3691
|
-
margin-top:
|
|
3747
|
+
margin-top: auto;
|
|
3748
|
+
padding-top: 5px;
|
|
3692
3749
|
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3693
3750
|
font-size: 10px;
|
|
3694
3751
|
line-height: 14px;
|
|
@@ -4028,11 +4085,28 @@ window.__ModuleLoader__.load({
|
|
|
4028
4085
|
box-shadow: 0 0 0 2px var(--dsw-alias-state-business-tertiary, rgba(65, 118, 230, 0.12));
|
|
4029
4086
|
}
|
|
4030
4087
|
|
|
4031
|
-
.devlead-board-card:focus-visible
|
|
4088
|
+
.devlead-board-card:focus-visible,
|
|
4089
|
+
.devlead-board-priority:focus-visible {
|
|
4032
4090
|
outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
|
|
4033
4091
|
outline-offset: 2px;
|
|
4034
4092
|
}
|
|
4035
4093
|
|
|
4094
|
+
/* Chromium shares each of the ten card-section tracks across one visual row.
|
|
4095
|
+
The flex column above remains the equal-height/footer fallback elsewhere. */
|
|
4096
|
+
@supports (grid-template-rows: subgrid) {
|
|
4097
|
+
.devlead-board-cards {
|
|
4098
|
+
grid-auto-rows: auto;
|
|
4099
|
+
}
|
|
4100
|
+
|
|
4101
|
+
.devlead-board-card {
|
|
4102
|
+
display: grid;
|
|
4103
|
+
grid-row: span 10;
|
|
4104
|
+
grid-template-rows: subgrid;
|
|
4105
|
+
row-gap: 0;
|
|
4106
|
+
height: auto;
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4036
4110
|
@media (hover: hover) {
|
|
4037
4111
|
.devlead-board-refresh:hover:not(:disabled),
|
|
4038
4112
|
.devlead-notes-back:hover:not(:disabled),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yankeguo/dsh-client-ui-devlead",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3-rc.1",
|
|
4
4
|
"description": "DevLead surfaces: the mode toggle and status strip, Session sidebar marks, and a read-only right-Sidebar project board.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.3.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@yankeguo/dsh-devlead-protocol": "0.4.
|
|
46
|
+
"@yankeguo/dsh-devlead-protocol": "0.4.3-rc.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"dsh": ">=0.2.2-rc.1 <0.3.0"
|