@yankeguo/dsh-client-ui-devlead 0.4.2-rc.7 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +405 -193
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -827,6 +827,12 @@ window.__ModuleLoader__.load({
827
827
  return projects.length === 0 ? [] : [{ status, projects }];
828
828
  });
829
829
  }
830
+ function summarizeDevLeadBoardProjects(board) {
831
+ const groups = groupDevLeadBoardProjects(board);
832
+ const counts = { active: 0, blocked: 0, paused: 0, done: 0 };
833
+ for (const group of groups) counts[group.status] = group.projects.length;
834
+ return { groups, counts };
835
+ }
830
836
  function projectStatusTone(status) {
831
837
  switch (status) {
832
838
  case "blocked":
@@ -909,7 +915,7 @@ window.__ModuleLoader__.load({
909
915
  "aria-label": label,
910
916
  "data-devlead-board-open": "true",
911
917
  onClick: onOpen,
912
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.IconFlatListOutlineRegular, { size: 16 })
918
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.IconGaugeOutlineRegular, { size: 18 })
913
919
  }
914
920
  ) });
915
921
  }
@@ -945,6 +951,7 @@ window.__ModuleLoader__.load({
945
951
  debounceMs = 120,
946
952
  pollMs = 5e3,
947
953
  pollMaxMs = 3e4,
954
+ readTimeoutMs = 1e4,
948
955
  now = Date.now
949
956
  }) {
950
957
  const [state, setState] = (0, import_react.useState)(() => initialState(config));
@@ -953,9 +960,14 @@ window.__ModuleLoader__.load({
953
960
  const [watchGeneration, setWatchGeneration] = (0, import_react.useState)(0);
954
961
  const generation = (0, import_react.useRef)(0);
955
962
  const readAbort = (0, import_react.useRef)(void 0);
963
+ const readTimeout = (0, import_react.useRef)(void 0);
956
964
  const trailingRead = (0, import_react.useRef)(false);
957
965
  const refreshRead = (0, import_react.useCallback)((force = false, queueTrailing = false) => {
958
966
  if (config === void 0) {
967
+ if (readTimeout.current !== void 0) {
968
+ clearTimeout(readTimeout.current);
969
+ readTimeout.current = void 0;
970
+ }
959
971
  generation.current += 1;
960
972
  readAbort.current?.abort();
961
973
  readAbort.current = void 0;
@@ -966,11 +978,22 @@ window.__ModuleLoader__.load({
966
978
  if (queueTrailing) trailingRead.current = true;
967
979
  return;
968
980
  }
981
+ if (readTimeout.current !== void 0) {
982
+ clearTimeout(readTimeout.current);
983
+ readTimeout.current = void 0;
984
+ }
969
985
  const request = ++generation.current;
970
986
  trailingRead.current = false;
971
987
  readAbort.current?.abort();
972
988
  const controller = new AbortController();
973
989
  readAbort.current = controller;
990
+ const timeout = setTimeout(() => {
991
+ if (readTimeout.current === timeout) readTimeout.current = void 0;
992
+ if (generation.current !== request || controller.signal.aborted) return;
993
+ fail("read", new Error(`${config.fileLabel} read timed out after ${readTimeoutMs} ms`));
994
+ controller.abort();
995
+ }, readTimeoutMs);
996
+ readTimeout.current = timeout;
974
997
  setState((previous) => ({
975
998
  ...previous,
976
999
  status: previous.status === "disabled" ? "loading" : previous.status,
@@ -1034,6 +1057,8 @@ window.__ModuleLoader__.load({
1034
1057
  if (generation.current !== request || controller.signal.aborted) return;
1035
1058
  fail("read", error);
1036
1059
  } finally {
1060
+ clearTimeout(timeout);
1061
+ if (readTimeout.current === timeout) readTimeout.current = void 0;
1037
1062
  if (readAbort.current === controller) {
1038
1063
  readAbort.current = void 0;
1039
1064
  if (trailingRead.current && generation.current === request && !controller.signal.aborted) {
@@ -1045,7 +1070,7 @@ window.__ModuleLoader__.load({
1045
1070
  }
1046
1071
  }
1047
1072
  })();
1048
- }, [config, files, now, sessionId]);
1073
+ }, [config, files, now, readTimeoutMs, sessionId]);
1049
1074
  (0, import_react.useEffect)(() => {
1050
1075
  if (config === void 0) {
1051
1076
  setState(DISABLED);
@@ -1089,6 +1114,10 @@ window.__ModuleLoader__.load({
1089
1114
  if (timer !== void 0) clearTimeout(timer);
1090
1115
  generation.current += 1;
1091
1116
  watcher.abort();
1117
+ if (readTimeout.current !== void 0) {
1118
+ clearTimeout(readTimeout.current);
1119
+ readTimeout.current = void 0;
1120
+ }
1092
1121
  readAbort.current?.abort();
1093
1122
  };
1094
1123
  }, [config, debounceMs, files, refreshRead, sessionId, watchGeneration]);
@@ -1165,6 +1194,7 @@ window.__ModuleLoader__.load({
1165
1194
  debounceMs = 120,
1166
1195
  pollMs = 5e3,
1167
1196
  pollMaxMs = 3e4,
1197
+ readTimeoutMs = 1e4,
1168
1198
  now = Date.now
1169
1199
  }) {
1170
1200
  const fileConfig = (0, import_react2.useMemo)(() => config === void 0 ? void 0 : {
@@ -1182,6 +1212,7 @@ window.__ModuleLoader__.load({
1182
1212
  debounceMs,
1183
1213
  pollMs,
1184
1214
  pollMaxMs,
1215
+ readTimeoutMs,
1185
1216
  now
1186
1217
  });
1187
1218
  return {
@@ -1541,26 +1572,54 @@ window.__ModuleLoader__.load({
1541
1572
  const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
1542
1573
  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 });
1543
1574
  }
1544
- function ProjectField({ label, text, className = "", arrow }) {
1545
- if (text.trim().length === 0) return null;
1546
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: `devlead-board-field ${className}`.trim(), "aria-label": label, children: [
1547
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
1548
- arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1549
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
1550
- ] });
1575
+ function ProjectField({ label, text, section, className = "", arrow }) {
1576
+ const empty = text.trim().length === 0;
1577
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1578
+ "div",
1579
+ {
1580
+ className: `devlead-board-field ${className}`.trim(),
1581
+ "data-devlead-board-section": section,
1582
+ "data-empty": empty ? "true" : "false",
1583
+ "aria-label": empty ? void 0 : label,
1584
+ "aria-hidden": empty ? true : void 0,
1585
+ children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
1587
+ arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1588
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
1589
+ ]
1590
+ }
1591
+ );
1551
1592
  }
1552
- function statusDot(status) {
1593
+ function ProjectStatusIcon({ status }) {
1553
1594
  switch (status) {
1554
- case "blocked":
1555
- return "warning";
1556
1595
  case "active":
1557
- return "ongoing";
1558
- case "done":
1559
- return "done";
1596
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlayOutlineRegular, { size: 13 });
1597
+ case "blocked":
1598
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 13 });
1560
1599
  case "paused":
1561
- return "idle";
1600
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPauseOutlineRegular, { size: 13 });
1601
+ case "done":
1602
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconCheckCircleOutlineRegular, { size: 13 });
1562
1603
  }
1563
1604
  }
1605
+ function ProjectPriorityIcon({ priority, t }) {
1606
+ const label = t(`board.priority.${priority}`);
1607
+ 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)(
1608
+ "span",
1609
+ {
1610
+ className: "devlead-board-priority",
1611
+ "data-devlead-board-priority": priority,
1612
+ role: "img",
1613
+ "aria-label": label,
1614
+ title: label,
1615
+ tabIndex: 0,
1616
+ 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: [
1617
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 }),
1618
+ priority === "high" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 })
1619
+ ] }) })
1620
+ }
1621
+ ) });
1622
+ }
1564
1623
  function ProjectCard({ project, now, t, notesProject, onOpenNotes }) {
1565
1624
  const idPrefix = (0, import_react5.useId)();
1566
1625
  const [tasksOpen, setTasksOpen] = (0, import_react5.useState)(false);
@@ -1576,38 +1635,37 @@ window.__ModuleLoader__.load({
1576
1635
  "data-priority": project.priority,
1577
1636
  "aria-labelledby": `${idPrefix}-title`,
1578
1637
  children: [
1579
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("header", { className: "devlead-board-card-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-heading", children: [
1580
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-card-status", title: t(`board.status.${project.status}`), "aria-label": t(`board.status.${project.status}`), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: statusDot(project.status), size: 8 }) }),
1581
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1582
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1583
- ] }) }),
1584
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", title: project.workspace.path, children: project.workspace.path }),
1585
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-badges", children: [
1586
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) }),
1587
- latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1588
- "button",
1589
- {
1590
- type: "button",
1591
- className: "devlead-board-notes-chip",
1592
- "data-devlead-notes-chip": project.id,
1593
- "aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1594
- title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1595
- onClick: () => {
1596
- onOpenNotes(project.id);
1597
- },
1598
- children: [
1599
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
1600
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
1601
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
1602
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
1603
- ]
1604
- }
1605
- )
1638
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-card-header", "data-devlead-board-section": "title", children: [
1639
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-heading", children: [
1640
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1641
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1642
+ ] }),
1643
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectPriorityIcon, { priority: project.priority, t })
1606
1644
  ] }),
1607
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, className: "devlead-board-field-focus" }),
1608
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, className: "devlead-board-field-next", arrow: "\u2192" }),
1609
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, className: "devlead-board-field-goal" }),
1610
- project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
1645
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", "data-devlead-board-section": "workspace", title: project.workspace.path, children: project.workspace.path }),
1646
+ /* @__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)(
1647
+ "button",
1648
+ {
1649
+ type: "button",
1650
+ className: "devlead-board-notes-chip",
1651
+ "data-devlead-notes-chip": project.id,
1652
+ "aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1653
+ title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1654
+ onClick: () => {
1655
+ onOpenNotes(project.id);
1656
+ },
1657
+ children: [
1658
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
1661
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
1662
+ ]
1663
+ }
1664
+ ) }),
1665
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, section: "focus", className: "devlead-board-field-focus" }),
1666
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, section: "next", className: "devlead-board-field-next", arrow: "\u2192" }),
1667
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, section: "goal", className: "devlead-board-field-goal" }),
1668
+ /* @__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: [
1611
1669
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("h6", { children: [
1612
1670
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
1613
1671
  t("board.blockers")
@@ -1616,8 +1674,8 @@ window.__ModuleLoader__.load({
1616
1674
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: blocker.text, children: blocker.text }),
1617
1675
  /* @__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") }) })
1618
1676
  ] }, blocker.id)) })
1619
- ] }),
1620
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", title: progressText, children: [
1677
+ ] }) }),
1678
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", "data-devlead-board-section": "progress", title: progressText, children: [
1621
1679
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: progressText }),
1622
1680
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1623
1681
  "progress",
@@ -1634,6 +1692,7 @@ window.__ModuleLoader__.load({
1634
1692
  "details",
1635
1693
  {
1636
1694
  className: "devlead-board-tasks",
1695
+ "data-devlead-board-section": "tasks",
1637
1696
  "data-devlead-board-tasks": project.id,
1638
1697
  "aria-labelledby": `${idPrefix}-tasks`,
1639
1698
  open: tasksOpen,
@@ -1658,7 +1717,7 @@ window.__ModuleLoader__.load({
1658
1717
  ]
1659
1718
  }
1660
1719
  ),
1661
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", children: [
1720
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", "data-devlead-board-section": "footer", children: [
1662
1721
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 12 }),
1663
1722
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: project.updatedAt, now, t, label: t("board.project.updated") })
1664
1723
  ] })
@@ -1767,9 +1826,9 @@ window.__ModuleLoader__.load({
1767
1826
  const idPrefix = (0, import_react5.useId)();
1768
1827
  if (state.status === "disabled") return null;
1769
1828
  const board = state.board;
1770
- const groups = board === void 0 ? [] : groupDevLeadBoardProjects(board);
1771
- const counts = { active: 0, blocked: 0, paused: 0, done: 0 };
1772
- for (const project of board?.projects ?? []) counts[project.status] += 1;
1829
+ const summary = board === void 0 ? void 0 : summarizeDevLeadBoardProjects(board);
1830
+ const groups = summary?.groups ?? [];
1831
+ const counts = summary?.counts ?? { active: 0, blocked: 0, paused: 0, done: 0 };
1773
1832
  const blocked = counts.blocked;
1774
1833
  const refreshState = state.status === "error" ? "error" : autoRefresh === "paused" || watch === "ended" ? "warning" : state.refreshing || state.status === "loading" || watch === "connecting" ? "ongoing" : autoRefresh === "active" && state.status === "ready" ? "done" : "idle";
1775
1834
  const endedKey = autoRefresh === "active" ? "board.watch.ended" : autoRefresh === "paused" ? "board.watch.ended.paused" : "board.watch.ended.disabled";
@@ -1777,32 +1836,13 @@ window.__ModuleLoader__.load({
1777
1836
  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}`);
1778
1837
  const readerProject = notes?.selection === void 0 || board === void 0 ? void 0 : board.projects.find((project) => project.id === notes.selection?.projectId);
1779
1838
  const readerNotesProject = readerProject === void 0 || notes?.index.value === void 0 ? void 0 : devLeadNotesForProject(notes.index.value, readerProject);
1780
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
1839
+ 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: [
1781
1840
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-header", children: [
1782
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-row", children: [
1783
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-group", children: [
1784
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h3", { children: t("board.title") }),
1785
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
1786
- ] }),
1787
- /* @__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)(
1788
- import_dsh_client_ui_primitives3.Button,
1789
- {
1790
- variant: "ghost",
1791
- size: "sm",
1792
- className: "devlead-board-refresh",
1793
- "aria-label": t("board.refresh.action"),
1794
- "aria-busy": state.refreshing,
1795
- disabled: state.refreshing,
1796
- onClick: onRefresh,
1797
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1798
- }
1799
- ) })
1800
- ] }),
1801
1841
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-strip", children: [
1802
1842
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-live", "data-auto-refresh": autoRefresh, title: `${t("board.live")}: ${statusText}`, children: [
1803
1843
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 8 }),
1804
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: t("board.live") }),
1805
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "aria-hidden": "true", children: statusText }),
1844
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-live-label", "aria-hidden": "true", children: t("board.live") }),
1845
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-live-status", "aria-hidden": "true", children: statusText }),
1806
1846
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1807
1847
  "span",
1808
1848
  {
@@ -1815,20 +1855,48 @@ window.__ModuleLoader__.load({
1815
1855
  }
1816
1856
  )
1817
1857
  ] }),
1818
- board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
1819
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
1820
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
1821
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
1858
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-actions", children: [
1859
+ board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
1860
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
1861
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
1862
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
1863
+ ] }),
1864
+ /* @__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 }) })
1822
1865
  ] }),
1823
- /* @__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 }) })
1866
+ /* @__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)(
1867
+ import_dsh_client_ui_primitives3.Button,
1868
+ {
1869
+ variant: "ghost",
1870
+ size: "sm",
1871
+ className: "devlead-board-refresh",
1872
+ "aria-label": t("board.refresh.action"),
1873
+ "aria-busy": state.refreshing,
1874
+ disabled: state.refreshing,
1875
+ onClick: onRefresh,
1876
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1877
+ }
1878
+ ) })
1824
1879
  ] })
1825
1880
  ] }),
1826
- board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dl", { className: "devlead-board-kpis", "aria-label": t("board.kpi.aria"), children: ["active", "blocked", "paused", "done"].map((status) => {
1881
+ 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) => {
1827
1882
  const count = counts[status];
1828
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { "data-devlead-board-kpi": status, "data-tone": status, children: [
1829
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", { children: t(`board.status.${status}`) }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
1831
- ] }, status);
1883
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1884
+ "div",
1885
+ {
1886
+ "data-devlead-board-kpi": status,
1887
+ "data-tone": status,
1888
+ "data-empty": count === 0 ? "true" : "false",
1889
+ "data-emphasis": status === "blocked" && count > 0 ? "true" : "false",
1890
+ children: [
1891
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("dt", { children: [
1892
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-kpi-icon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectStatusIcon, { status }) }),
1893
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t(`board.status.${status}`) })
1894
+ ] }),
1895
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
1896
+ ]
1897
+ },
1898
+ status
1899
+ );
1832
1900
  }) })
1833
1901
  ] }),
1834
1902
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-content", children: [
@@ -2080,51 +2148,65 @@ window.__ModuleLoader__.load({
2080
2148
  ] });
2081
2149
  }
2082
2150
 
2151
+ // packages/client-ui/src/client/DevLeadSessionAccessibleMark.tsx
2152
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2153
+ function DevLeadSessionAccessibleMark({ sessionId, useSessions, t }) {
2154
+ const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2155
+ if (!enabled) return null;
2156
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "devlead-sr-only", "data-devlead-row-accessible": "lead", children: t("row.hover.enabled") });
2157
+ }
2158
+
2083
2159
  // packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
2084
2160
  var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
2085
- var import_jsx_runtime6 = require("react/jsx-runtime");
2161
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2086
2162
  function DevLeadSessionHoverMark({ sessionId, useSessions, t }) {
2087
2163
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2088
2164
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
2089
2165
  if (enabled) {
2090
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
2091
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "devlead-row-hover-active-dot" }) }),
2092
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: t("row.hover.enabled") })
2166
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
2167
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "devlead-row-hover-active-dot" }) }),
2168
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: t("row.hover.enabled") })
2093
2169
  ] });
2094
2170
  }
2095
2171
  if (!watched) return null;
2096
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
2097
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dsh_client_ui_primitives5.IconGoalOutlineRegular, { size: 14 }) }),
2098
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: t("row.hover.watched") })
2172
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
2173
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives5.IconGoalOutlineRegular, { size: 14 }) }),
2174
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: t("row.hover.watched") })
2099
2175
  ] });
2100
2176
  }
2101
2177
 
2102
2178
  // packages/client-ui/src/client/DevLeadSessionMark.tsx
2103
2179
  var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
2104
- var import_jsx_runtime7 = require("react/jsx-runtime");
2180
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2105
2181
  function DevLeadSessionMark({ sessionId, useSessions, t }) {
2106
2182
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2107
2183
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
2108
2184
  if (enabled) {
2109
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2185
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2110
2186
  "span",
2111
2187
  {
2112
- className: "devlead-sr-only",
2188
+ className: "devlead-row-mark devlead-row-mark-lead",
2113
2189
  role: "img",
2114
2190
  "aria-label": t("row.mark.aria"),
2115
- "data-devlead-active-mark": "true"
2191
+ title: t("row.mark.aria"),
2192
+ "data-devlead-active-mark": "true",
2193
+ "data-devlead-row-mark": "lead",
2194
+ children: [
2195
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_dsh_client_ui_primitives6.IconSparkleRegular, { size: 10 }),
2196
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "devlead-row-mark-lead-label", "aria-hidden": "true", children: t("row.mark.short") })
2197
+ ]
2116
2198
  }
2117
2199
  );
2118
2200
  }
2119
2201
  if (!watched) return null;
2120
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2202
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2121
2203
  "span",
2122
2204
  {
2123
2205
  className: "devlead-row-mark devlead-row-mark-watched",
2124
2206
  role: "img",
2125
2207
  "aria-label": t("row.watched.aria"),
2126
2208
  "data-devlead-row-mark": "watched",
2127
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
2209
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
2128
2210
  }
2129
2211
  );
2130
2212
  }
@@ -2140,6 +2222,7 @@ window.__ModuleLoader__.load({
2140
2222
  "count.running": "\u8FD0\u884C\u4E2D {count}",
2141
2223
  "count.missing": "{count} \u4E2A\u5DF2\u4E0D\u53EF\u7528",
2142
2224
  "row.mark.aria": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD",
2225
+ "row.mark.short": "LEAD",
2143
2226
  "row.watched.aria": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8",
2144
2227
  "row.hover.enabled": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD\uFF1A\u53EF\u8C03\u5EA6\u5E76\u5173\u6CE8\u5176\u4ED6\u4F1A\u8BDD\u3002",
2145
2228
  "row.hover.watched": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8\uFF1A\u5B83\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\u4F1A\u901A\u77E5 lead\uFF1B\u963B\u585E/\u5F85\u51B3\u7B56/\u63D0\u95EE\u4F1A\u8BF7\u6C42\u5524\u9192\uFF0C\u8FDB\u5EA6/\u544A\u77E5\u4EC5\u4F5C\u80CC\u666F\u3001\u4E0D\u5524\u9192\u3002",
@@ -2277,6 +2360,7 @@ window.__ModuleLoader__.load({
2277
2360
  "count.running": "{count} running",
2278
2361
  "count.missing": "{count} unavailable",
2279
2362
  "row.mark.aria": "Active DevLead Session",
2363
+ "row.mark.short": "LEAD",
2280
2364
  "row.watched.aria": "Watched by the active DevLead",
2281
2365
  "row.hover.enabled": "Active DevLead Session: this session can dispatch and watch other Sessions.",
2282
2366
  "row.hover.watched": "Watched by the active DevLead: its turn ends and mid-turn reports notify the lead; blocked/decision reports and questions request a wake, while progress/fyi are background context and do not wake.",
@@ -2730,9 +2814,12 @@ window.__ModuleLoader__.load({
2730
2814
  white-space: nowrap;
2731
2815
  }
2732
2816
 
2733
- /* Sidebar Session-row mark: a non-interactive glyph after the row's time
2734
- label. The seat is inline inside the row's 20px line box, so the icon can
2735
- never change the row height or the title's ellipsis width. */
2817
+ /* Sidebar Session-row marks never change the shell row's border, background,
2818
+ padding, height, position, or selection/focus treatment. Both marks share the
2819
+ trailing seat's inline flex layout: the time label naturally moves left for
2820
+ the active lead's small right-side badge, while hover/focus replaces the whole
2821
+ resting seat with the separate action strip. No absolute positioning means a
2822
+ badge cannot paint over either shell-owned neighbour. */
2736
2823
  .devlead-row-mark {
2737
2824
  display: inline-flex;
2738
2825
  flex: none;
@@ -2740,34 +2827,33 @@ window.__ModuleLoader__.load({
2740
2827
  color: var(--dsw-alias-label-secondary, GrayText);
2741
2828
  }
2742
2829
 
2743
- /* The active lead row gets the same business accent as the toolbar toggle,
2744
- painted as an overlay ring so the 32px row box, padding, and title lane never
2745
- move. Do not color or resize the shell row's border: it has a 3px transparent
2746
- border-inline (paint inset) but no top/bottom border, and an inset box-shadow
2747
- is clipped to the padding box, so either would look thicker/deeper on the
2748
- left/right than on top/bottom. The ::after overlay is positioned against the
2749
- row's border box (negative inline offsets cancel the transparent paint inset)
2750
- and draws one 1px border plus a light outer halo on all four sides at the
2751
- row's own radius. The row owns a stable data-row-key; :has scopes the
2752
- decoration to exactly the active row. The status hook stays mounted while the
2753
- shell hides the resting seat on hover, so the overlay survives hover/focus. */
2754
- [data-row-key^="session:"]:has([data-devlead-active-mark="true"]) {
2755
- position: relative;
2830
+ .devlead-row-mark-lead {
2831
+ gap: 2px;
2832
+ min-height: 12px;
2833
+ padding: 0 3px;
2834
+ border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 68%, transparent);
2835
+ border-radius: 999px;
2836
+ background: var(--dsw-specific-menu, Canvas);
2837
+ color: var(--dsw-alias-state-business-primary, #4176e6);
2838
+ font-size: 7px;
2839
+ font-weight: 700;
2840
+ line-height: 10px;
2841
+ letter-spacing: 0.04em;
2842
+ pointer-events: none;
2756
2843
  }
2757
2844
 
2758
- [data-row-key^="session:"]:has([data-devlead-active-mark="true"])::after {
2759
- content: '';
2760
- position: absolute;
2761
- inset: 0 calc(-1 * var(--dsh-sidebar-paint-inset, 3px));
2762
- border: 1px solid var(--dsw-alias-state-business-primary, #4176e6);
2763
- border-radius: inherit;
2764
- box-shadow: 0 0 0 2px var(--dsw-alias-state-business-tertiary, rgba(65, 118, 230, 0.12));
2765
- pointer-events: none;
2845
+ .devlead-row-mark-lead > svg {
2846
+ flex: none;
2766
2847
  }
2767
2848
 
2768
- /* A watched row uses a quieter shield than the active lead's mark: secondary
2769
- ink at reduced opacity stays legible in both palettes without competing with
2770
- the active ring. */
2849
+ @media (max-width: 480px) {
2850
+ .devlead-row-mark-lead-label {
2851
+ display: none;
2852
+ }
2853
+ }
2854
+
2855
+ /* A watched row uses a quieter target than the active lead's badge: secondary
2856
+ ink at reduced opacity stays legible without competing with selection. */
2771
2857
  .devlead-row-mark-watched {
2772
2858
  color: var(--dsw-alias-label-secondary, GrayText);
2773
2859
  opacity: 0.62;
@@ -2803,9 +2889,18 @@ window.__ModuleLoader__.load({
2803
2889
  /* Read-only board: quiet operational typography, no decorative gradients.
2804
2890
  Container queries follow the actual pane: 1 / 2 / 3 columns as room allows. */
2805
2891
  .devlead-board-open {
2892
+ display: inline-flex;
2806
2893
  flex: none;
2894
+ align-items: center;
2895
+ justify-content: center;
2807
2896
  width: 28px;
2808
- color: var(--dsw-alias-label-secondary, GrayText);
2897
+ height: 28px;
2898
+ padding: 0;
2899
+ color: var(--dsw-alias-label-primary, CanvasText);
2900
+ }
2901
+
2902
+ .devlead-board-open > svg {
2903
+ flex: none;
2809
2904
  }
2810
2905
 
2811
2906
  .devlead-board,
@@ -2837,9 +2932,8 @@ window.__ModuleLoader__.load({
2837
2932
  background: var(--dsw-specific-menu, Canvas);
2838
2933
  }
2839
2934
 
2840
- .devlead-board-title-row,
2841
- .devlead-board-title-group,
2842
2935
  .devlead-board-header-strip,
2936
+ .devlead-board-header-actions,
2843
2937
  .devlead-board-live,
2844
2938
  .devlead-board-meta,
2845
2939
  .devlead-board-card-header,
@@ -2852,17 +2946,6 @@ window.__ModuleLoader__.load({
2852
2946
  align-items: center;
2853
2947
  }
2854
2948
 
2855
- .devlead-board-title-row {
2856
- justify-content: space-between;
2857
- gap: 8px;
2858
- }
2859
-
2860
- .devlead-board-title-group {
2861
- flex: 1 1 auto;
2862
- gap: 7px;
2863
- }
2864
-
2865
- .devlead-board-title-group h3,
2866
2949
  .devlead-board-card-heading h5,
2867
2950
  .devlead-board-group h4,
2868
2951
  .devlead-board-placeholder h4,
@@ -2875,15 +2958,6 @@ window.__ModuleLoader__.load({
2875
2958
  font-weight: 650;
2876
2959
  }
2877
2960
 
2878
- .devlead-board-title-group h3 {
2879
- overflow: hidden;
2880
- font-size: 15px;
2881
- line-height: 22px;
2882
- letter-spacing: -0.015em;
2883
- text-overflow: ellipsis;
2884
- white-space: nowrap;
2885
- }
2886
-
2887
2961
  .devlead-board-refresh,
2888
2962
  .devlead-notes-back {
2889
2963
  flex: none;
@@ -2905,7 +2979,13 @@ window.__ModuleLoader__.load({
2905
2979
  flex-wrap: wrap;
2906
2980
  justify-content: space-between;
2907
2981
  gap: 3px 10px;
2908
- margin-top: 2px;
2982
+ }
2983
+
2984
+ .devlead-board-header-actions {
2985
+ flex: 0 1 auto;
2986
+ justify-content: flex-end;
2987
+ gap: 5px;
2988
+ margin-left: auto;
2909
2989
  }
2910
2990
 
2911
2991
  .devlead-board-live {
@@ -2917,7 +2997,17 @@ window.__ModuleLoader__.load({
2917
2997
  line-height: 16px;
2918
2998
  }
2919
2999
 
2920
- .devlead-board-live > span:last-child {
3000
+ .devlead-board-live-label {
3001
+ flex: none;
3002
+ color: var(--dsw-alias-label-primary, CanvasText);
3003
+ font-size: 9px;
3004
+ font-weight: 700;
3005
+ letter-spacing: 0.06em;
3006
+ text-transform: uppercase;
3007
+ }
3008
+
3009
+ .devlead-board-live-status {
3010
+ min-width: 0;
2921
3011
  overflow: hidden;
2922
3012
  text-overflow: ellipsis;
2923
3013
  white-space: nowrap;
@@ -2956,8 +3046,8 @@ window.__ModuleLoader__.load({
2956
3046
  .devlead-board-kpis {
2957
3047
  display: flex;
2958
3048
  min-width: 0;
2959
- gap: 5px;
2960
- margin: 7px 0 0;
3049
+ gap: 6px;
3050
+ margin: 8px 0 0;
2961
3051
  overflow-x: auto;
2962
3052
  scrollbar-width: none;
2963
3053
  }
@@ -2966,42 +3056,71 @@ window.__ModuleLoader__.load({
2966
3056
  display: none;
2967
3057
  }
2968
3058
 
3059
+ .devlead-board-kpis:focus-visible {
3060
+ outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
3061
+ outline-offset: 2px;
3062
+ }
3063
+
3064
+ /* One status vocabulary across KPI, banner, and card: active=business blue,
3065
+ blocked=warning amber, paused=neutral, done=success green. Priority never
3066
+ selects these colors. Empty counts retreat to neutral ink; only a non-zero
3067
+ blocked count earns the stronger fill and halo. */
2969
3068
  .devlead-board-kpis > div {
2970
3069
  display: inline-flex;
2971
3070
  flex: 1 0 auto;
2972
3071
  min-width: 0;
2973
- align-items: baseline;
3072
+ min-height: 28px;
3073
+ align-items: center;
2974
3074
  justify-content: center;
2975
- gap: 5px;
3075
+ gap: 7px;
2976
3076
  margin: 0;
2977
- padding: 2px 7px;
3077
+ padding: 3px 9px;
2978
3078
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2979
3079
  border-radius: 999px;
2980
3080
  background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
2981
3081
  }
2982
3082
 
2983
3083
  .devlead-board-kpis dt {
3084
+ display: inline-flex;
2984
3085
  min-width: 0;
3086
+ align-items: center;
3087
+ gap: 4px;
2985
3088
  overflow: hidden;
2986
3089
  color: var(--dsw-alias-label-secondary, GrayText);
2987
- font-size: 10px;
2988
- line-height: 15px;
2989
- text-overflow: ellipsis;
3090
+ font-size: 11px;
3091
+ line-height: 18px;
2990
3092
  white-space: nowrap;
2991
3093
  }
2992
3094
 
3095
+ .devlead-board-kpi-icon {
3096
+ display: inline-flex;
3097
+ flex: none;
3098
+ align-items: center;
3099
+ }
3100
+
2993
3101
  .devlead-board-kpis dd {
2994
3102
  flex: none;
2995
3103
  margin: 0;
2996
3104
  color: var(--dsw-alias-label-primary, CanvasText);
2997
- font-size: 11px;
3105
+ font-size: 14px;
3106
+ line-height: 18px;
2998
3107
  font-variant-numeric: tabular-nums;
2999
3108
  font-weight: 700;
3000
3109
  }
3001
3110
 
3111
+ .devlead-board-kpis > div[data-tone="active"] {
3112
+ border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
3113
+ background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 5%, transparent);
3114
+ }
3115
+
3116
+ .devlead-board-kpis > div[data-tone="active"] dd,
3117
+ .devlead-board-kpis > div[data-tone="active"] .devlead-board-kpi-icon {
3118
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3119
+ }
3120
+
3002
3121
  .devlead-board-kpis > div[data-tone="blocked"] {
3003
- border-color: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 48%, transparent);
3004
- color: var(--dsw-alias-state-warn-primary, #a15c00);
3122
+ border-color: var(--dsw-alias-state-warn-primary, #a15c00);
3123
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 6%, transparent);
3005
3124
  }
3006
3125
 
3007
3126
  .devlead-board-kpis > div[data-tone="blocked"] dd,
@@ -3009,10 +3128,32 @@ window.__ModuleLoader__.load({
3009
3128
  color: var(--dsw-alias-state-warn-primary, #a15c00);
3010
3129
  }
3011
3130
 
3012
- .devlead-board-kpis > div[data-tone="done"] dd {
3131
+ .devlead-board-kpis > div[data-tone="blocked"][data-emphasis="true"] {
3132
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3133
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3134
+ }
3135
+
3136
+ .devlead-board-kpis > div[data-tone="done"] {
3137
+ border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 38%, transparent);
3138
+ }
3139
+
3140
+ .devlead-board-kpis > div[data-tone="done"] dd,
3141
+ .devlead-board-kpis > div[data-tone="done"] .devlead-board-kpi-icon {
3013
3142
  color: var(--dsw-alias-state-success-primary, #2e7d32);
3014
3143
  }
3015
3144
 
3145
+ .devlead-board-kpis > div[data-empty="true"] {
3146
+ border-color: var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3147
+ background: transparent;
3148
+ box-shadow: none;
3149
+ }
3150
+
3151
+ .devlead-board-kpis > div[data-empty="true"] dt,
3152
+ .devlead-board-kpis > div[data-empty="true"] dd,
3153
+ .devlead-board-kpis > div[data-empty="true"] .devlead-board-kpi-icon {
3154
+ color: var(--dsw-alias-label-tertiary, GrayText);
3155
+ }
3156
+
3016
3157
  .devlead-board-content {
3017
3158
  flex: 1 1 auto;
3018
3159
  min-width: 0;
@@ -3149,66 +3290,97 @@ window.__ModuleLoader__.load({
3149
3290
  .devlead-board-cards {
3150
3291
  display: grid;
3151
3292
  grid-template-columns: minmax(0, 1fr);
3293
+ grid-auto-rows: 1fr;
3152
3294
  gap: 8px;
3153
3295
  min-width: 0;
3154
3296
  }
3155
3297
 
3156
3298
  .devlead-board-card {
3157
3299
  position: relative;
3300
+ display: flex;
3301
+ flex-direction: column;
3158
3302
  min-width: 0;
3159
3303
  max-width: 100%;
3160
- padding: 9px 10px 8px 12px;
3304
+ height: 100%;
3305
+ padding: 9px 10px 8px;
3161
3306
  overflow: hidden;
3162
3307
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3163
3308
  border-radius: var(--dsw-radius-md, 8px);
3164
3309
  background: var(--dsw-specific-menu, Canvas);
3165
- transition: border-color 120ms ease, box-shadow 120ms ease;
3166
- }
3167
-
3168
- .devlead-board-card::before {
3169
- position: absolute;
3170
- inset: 0 auto 0 0;
3171
- width: 3px;
3172
- background: var(--dsw-alias-label-tertiary, GrayText);
3173
- content: '';
3174
- pointer-events: none;
3175
- }
3176
-
3177
- .devlead-board-card[data-priority="high"]::before {
3178
- background: var(--dsw-alias-state-business-primary, #4176e6);
3310
+ transition: box-shadow 120ms ease;
3179
3311
  }
3180
3312
 
3181
- .devlead-board-card[data-priority="medium"]::before {
3182
- background: var(--dsw-alias-label-tertiary, GrayText);
3313
+ /* The complete four-side border and tinted surface belong to status alone.
3314
+ The existing priority Tag is the independent priority cue; no data-priority
3315
+ selector may recolor a card. */
3316
+ .devlead-board-card[data-status="active"] {
3317
+ border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 62%, transparent);
3318
+ background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 4%, var(--dsw-specific-menu, Canvas));
3183
3319
  }
3184
3320
 
3185
3321
  .devlead-board-card[data-status="blocked"] {
3186
3322
  border-color: var(--dsw-alias-state-warn-primary, #a15c00);
3187
- background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 5%, var(--dsw-specific-menu, Canvas));
3323
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 7%, var(--dsw-specific-menu, Canvas));
3188
3324
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3189
3325
  }
3190
3326
 
3191
- .devlead-board-card[data-status="blocked"]::before {
3192
- background: var(--dsw-alias-state-warn-primary, #a15c00);
3327
+ .devlead-board-card[data-status="paused"] {
3328
+ border-color: color-mix(in srgb, var(--dsw-alias-label-secondary, GrayText) 46%, transparent);
3329
+ background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, var(--dsw-specific-menu, Canvas));
3330
+ }
3331
+
3332
+ .devlead-board-card[data-status="done"] {
3333
+ border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 52%, transparent);
3334
+ background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 3%, var(--dsw-specific-menu, Canvas));
3193
3335
  }
3194
3336
 
3195
3337
  .devlead-board-card-header {
3196
- align-items: flex-start;
3338
+ align-items: center;
3339
+ gap: 6px;
3197
3340
  }
3198
3341
 
3199
3342
  .devlead-board-card-heading {
3200
3343
  display: grid;
3201
3344
  flex: 1 1 auto;
3202
- grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr);
3345
+ grid-template-columns: minmax(0, auto) minmax(0, 1fr);
3203
3346
  align-items: center;
3204
3347
  gap: 5px;
3205
3348
  min-width: 0;
3206
3349
  }
3207
3350
 
3208
- .devlead-board-card-status {
3351
+ .devlead-board-priority {
3209
3352
  display: inline-flex;
3353
+ flex: none;
3210
3354
  align-items: center;
3211
3355
  justify-content: center;
3356
+ width: 16px;
3357
+ height: 19px;
3358
+ color: var(--dsw-alias-label-tertiary, GrayText);
3359
+ }
3360
+
3361
+ .devlead-board-priority-glyph {
3362
+ display: inline-flex;
3363
+ flex-direction: column;
3364
+ align-items: center;
3365
+ justify-content: center;
3366
+ width: 16px;
3367
+ height: 19px;
3368
+ }
3369
+
3370
+ .devlead-board-priority-glyph > svg {
3371
+ flex: none;
3372
+ }
3373
+
3374
+ .devlead-board-priority-glyph > svg + svg {
3375
+ margin-top: -9px;
3376
+ }
3377
+
3378
+ .devlead-board-priority[data-devlead-board-priority="high"] {
3379
+ color: var(--dsw-alias-state-warn-primary, #a15c00);
3380
+ }
3381
+
3382
+ .devlead-board-priority[data-devlead-board-priority="medium"] {
3383
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3212
3384
  }
3213
3385
 
3214
3386
  .devlead-board-card-heading h5 {
@@ -3230,7 +3402,7 @@ window.__ModuleLoader__.load({
3230
3402
 
3231
3403
  .devlead-board-workspace {
3232
3404
  display: block;
3233
- margin: 1px 0 0 15px;
3405
+ margin: 1px 0 0;
3234
3406
  overflow: hidden;
3235
3407
  color: var(--dsw-alias-label-tertiary, GrayText);
3236
3408
  font-family: inherit;
@@ -3244,8 +3416,14 @@ window.__ModuleLoader__.load({
3244
3416
  flex-wrap: wrap;
3245
3417
  gap: 4px;
3246
3418
  min-width: 0;
3419
+ min-height: 28px;
3247
3420
  max-width: 100%;
3248
- margin-top: 5px;
3421
+ padding-top: 5px;
3422
+ }
3423
+
3424
+ .devlead-board-card-badges:empty {
3425
+ min-height: 0;
3426
+ padding-top: 0;
3249
3427
  }
3250
3428
 
3251
3429
  .devlead-board-card-badges > span {
@@ -3299,9 +3477,14 @@ window.__ModuleLoader__.load({
3299
3477
  margin-top: 7px;
3300
3478
  }
3301
3479
 
3480
+ .devlead-board-field[data-empty="true"] {
3481
+ visibility: hidden;
3482
+ }
3483
+
3302
3484
  .devlead-board-field p {
3303
3485
  display: -webkit-box;
3304
3486
  min-width: 0;
3487
+ min-height: 19px;
3305
3488
  margin: 0;
3306
3489
  overflow: hidden;
3307
3490
  overflow-wrap: anywhere;
@@ -3315,6 +3498,7 @@ window.__ModuleLoader__.load({
3315
3498
  }
3316
3499
 
3317
3500
  .devlead-board-field-focus p {
3501
+ min-height: 20px;
3318
3502
  color: var(--dsw-alias-label-primary, CanvasText);
3319
3503
  font-size: 14px;
3320
3504
  font-weight: 600;
@@ -3348,6 +3532,10 @@ window.__ModuleLoader__.load({
3348
3532
  font-size: 12px;
3349
3533
  }
3350
3534
 
3535
+ .devlead-board-blockers-slot {
3536
+ min-width: 0;
3537
+ }
3538
+
3351
3539
  .devlead-board-blockers {
3352
3540
  margin-top: 8px;
3353
3541
  padding: 7px 8px;
@@ -3547,7 +3735,8 @@ window.__ModuleLoader__.load({
3547
3735
  align-items: center;
3548
3736
  justify-content: flex-end;
3549
3737
  gap: 3px;
3550
- margin-top: 5px;
3738
+ margin-top: auto;
3739
+ padding-top: 5px;
3551
3740
  color: var(--dsw-alias-label-tertiary, GrayText);
3552
3741
  font-size: 10px;
3553
3742
  line-height: 14px;
@@ -3884,14 +4073,31 @@ window.__ModuleLoader__.load({
3884
4073
  }
3885
4074
 
3886
4075
  .devlead-board-card:focus-within {
3887
- border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 60%, transparent);
4076
+ box-shadow: 0 0 0 2px var(--dsw-alias-state-business-tertiary, rgba(65, 118, 230, 0.12));
3888
4077
  }
3889
4078
 
3890
- .devlead-board-card:focus-visible {
4079
+ .devlead-board-card:focus-visible,
4080
+ .devlead-board-priority:focus-visible {
3891
4081
  outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
3892
4082
  outline-offset: 2px;
3893
4083
  }
3894
4084
 
4085
+ /* Chromium shares each of the ten card-section tracks across one visual row.
4086
+ The flex column above remains the equal-height/footer fallback elsewhere. */
4087
+ @supports (grid-template-rows: subgrid) {
4088
+ .devlead-board-cards {
4089
+ grid-auto-rows: auto;
4090
+ }
4091
+
4092
+ .devlead-board-card {
4093
+ display: grid;
4094
+ grid-row: span 10;
4095
+ grid-template-rows: subgrid;
4096
+ row-gap: 0;
4097
+ height: auto;
4098
+ }
4099
+ }
4100
+
3895
4101
  @media (hover: hover) {
3896
4102
  .devlead-board-refresh:hover:not(:disabled),
3897
4103
  .devlead-notes-back:hover:not(:disabled),
@@ -3902,11 +4108,11 @@ window.__ModuleLoader__.load({
3902
4108
  }
3903
4109
 
3904
4110
  .devlead-board-card:hover {
3905
- border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
4111
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 10%, transparent);
3906
4112
  }
3907
4113
 
3908
4114
  .devlead-board-card[data-status="blocked"]:hover {
3909
- border-color: var(--dsw-alias-state-warn-primary, #a15c00);
4115
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 16%, transparent);
3910
4116
  }
3911
4117
 
3912
4118
  .devlead-board summary:hover {
@@ -4069,6 +4275,12 @@ window.__ModuleLoader__.load({
4069
4275
  order: 20,
4070
4276
  locale: NS
4071
4277
  }, DevLeadSessionMark));
4278
+ ctx.slots.inject("sidebar.session.row.leading", () => ctx.slots.register({
4279
+ name: "sidebar.session.row.leading",
4280
+ id: "devlead-accessible",
4281
+ order: 20,
4282
+ locale: NS
4283
+ }, DevLeadSessionAccessibleMark));
4072
4284
  ctx.slots.inject("sidebar.session.row.hover", () => ctx.slots.register({
4073
4285
  name: "sidebar.session.row.hover",
4074
4286
  id: "devlead",
@@ -4121,7 +4333,7 @@ window.__ModuleLoader__.load({
4121
4333
  order: 30,
4122
4334
  title: () => t("board.title"),
4123
4335
  description: () => t("board.guide"),
4124
- icon: import_dsh_client_ui_primitives7.IconFlatListOutlineRegular
4336
+ icon: import_dsh_client_ui_primitives7.IconGaugeOutlineRegular
4125
4337
  }]
4126
4338
  }));
4127
4339
  disposers.push(ctx.slots.inject("sidebar.right.pane.tab", () => ctx.slots.register({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-client-ui-devlead",
3
- "version": "0.4.2-rc.7",
3
+ "version": "0.4.2",
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.2-rc.7"
46
+ "@yankeguo/dsh-devlead-protocol": "0.4.2"
47
47
  },
48
48
  "engines": {
49
49
  "dsh": ">=0.2.2-rc.1 <0.3.0"