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

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 +237 -90
  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 {
@@ -1561,6 +1592,18 @@ window.__ModuleLoader__.load({
1561
1592
  return "idle";
1562
1593
  }
1563
1594
  }
1595
+ function ProjectStatusIcon({ status }) {
1596
+ switch (status) {
1597
+ case "active":
1598
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlayOutlineRegular, { size: 13 });
1599
+ case "blocked":
1600
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 13 });
1601
+ case "paused":
1602
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPauseOutlineRegular, { size: 13 });
1603
+ case "done":
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconCheckCircleOutlineRegular, { size: 13 });
1605
+ }
1606
+ }
1564
1607
  function ProjectCard({ project, now, t, notesProject, onOpenNotes }) {
1565
1608
  const idPrefix = (0, import_react5.useId)();
1566
1609
  const [tasksOpen, setTasksOpen] = (0, import_react5.useState)(false);
@@ -1767,9 +1810,9 @@ window.__ModuleLoader__.load({
1767
1810
  const idPrefix = (0, import_react5.useId)();
1768
1811
  if (state.status === "disabled") return null;
1769
1812
  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;
1813
+ const summary = board === void 0 ? void 0 : summarizeDevLeadBoardProjects(board);
1814
+ const groups = summary?.groups ?? [];
1815
+ const counts = summary?.counts ?? { active: 0, blocked: 0, paused: 0, done: 0 };
1773
1816
  const blocked = counts.blocked;
1774
1817
  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
1818
  const endedKey = autoRefresh === "active" ? "board.watch.ended" : autoRefresh === "paused" ? "board.watch.ended.paused" : "board.watch.ended.disabled";
@@ -1801,8 +1844,8 @@ window.__ModuleLoader__.load({
1801
1844
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-strip", children: [
1802
1845
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-live", "data-auto-refresh": autoRefresh, title: `${t("board.live")}: ${statusText}`, children: [
1803
1846
  /* @__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 }),
1847
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-live-label", "aria-hidden": "true", children: t("board.live") }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-live-status", "aria-hidden": "true", children: statusText }),
1806
1849
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1807
1850
  "span",
1808
1851
  {
@@ -1823,12 +1866,25 @@ window.__ModuleLoader__.load({
1823
1866
  /* @__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 }) })
1824
1867
  ] })
1825
1868
  ] }),
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) => {
1869
+ 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
1870
  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);
1871
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1872
+ "div",
1873
+ {
1874
+ "data-devlead-board-kpi": status,
1875
+ "data-tone": status,
1876
+ "data-empty": count === 0 ? "true" : "false",
1877
+ "data-emphasis": status === "blocked" && count > 0 ? "true" : "false",
1878
+ children: [
1879
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("dt", { children: [
1880
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-kpi-icon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectStatusIcon, { status }) }),
1881
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t(`board.status.${status}`) })
1882
+ ] }),
1883
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
1884
+ ]
1885
+ },
1886
+ status
1887
+ );
1832
1888
  }) })
1833
1889
  ] }),
1834
1890
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-content", children: [
@@ -2080,51 +2136,65 @@ window.__ModuleLoader__.load({
2080
2136
  ] });
2081
2137
  }
2082
2138
 
2139
+ // packages/client-ui/src/client/DevLeadSessionAccessibleMark.tsx
2140
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2141
+ function DevLeadSessionAccessibleMark({ sessionId, useSessions, t }) {
2142
+ const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2143
+ if (!enabled) return null;
2144
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "devlead-sr-only", "data-devlead-row-accessible": "lead", children: t("row.hover.enabled") });
2145
+ }
2146
+
2083
2147
  // packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
2084
2148
  var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
2085
- var import_jsx_runtime6 = require("react/jsx-runtime");
2149
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2086
2150
  function DevLeadSessionHoverMark({ sessionId, useSessions, t }) {
2087
2151
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2088
2152
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
2089
2153
  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") })
2154
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
2155
+ /* @__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" }) }),
2156
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: t("row.hover.enabled") })
2093
2157
  ] });
2094
2158
  }
2095
2159
  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") })
2160
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
2161
+ /* @__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 }) }),
2162
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: t("row.hover.watched") })
2099
2163
  ] });
2100
2164
  }
2101
2165
 
2102
2166
  // packages/client-ui/src/client/DevLeadSessionMark.tsx
2103
2167
  var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
2104
- var import_jsx_runtime7 = require("react/jsx-runtime");
2168
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2105
2169
  function DevLeadSessionMark({ sessionId, useSessions, t }) {
2106
2170
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
2107
2171
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
2108
2172
  if (enabled) {
2109
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2173
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2110
2174
  "span",
2111
2175
  {
2112
- className: "devlead-sr-only",
2176
+ className: "devlead-row-mark devlead-row-mark-lead",
2113
2177
  role: "img",
2114
2178
  "aria-label": t("row.mark.aria"),
2115
- "data-devlead-active-mark": "true"
2179
+ title: t("row.mark.aria"),
2180
+ "data-devlead-active-mark": "true",
2181
+ "data-devlead-row-mark": "lead",
2182
+ children: [
2183
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_dsh_client_ui_primitives6.IconSparkleRegular, { size: 10 }),
2184
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "devlead-row-mark-lead-label", "aria-hidden": "true", children: t("row.mark.short") })
2185
+ ]
2116
2186
  }
2117
2187
  );
2118
2188
  }
2119
2189
  if (!watched) return null;
2120
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2190
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2121
2191
  "span",
2122
2192
  {
2123
2193
  className: "devlead-row-mark devlead-row-mark-watched",
2124
2194
  role: "img",
2125
2195
  "aria-label": t("row.watched.aria"),
2126
2196
  "data-devlead-row-mark": "watched",
2127
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
2197
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
2128
2198
  }
2129
2199
  );
2130
2200
  }
@@ -2140,6 +2210,7 @@ window.__ModuleLoader__.load({
2140
2210
  "count.running": "\u8FD0\u884C\u4E2D {count}",
2141
2211
  "count.missing": "{count} \u4E2A\u5DF2\u4E0D\u53EF\u7528",
2142
2212
  "row.mark.aria": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD",
2213
+ "row.mark.short": "LEAD",
2143
2214
  "row.watched.aria": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8",
2144
2215
  "row.hover.enabled": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD\uFF1A\u53EF\u8C03\u5EA6\u5E76\u5173\u6CE8\u5176\u4ED6\u4F1A\u8BDD\u3002",
2145
2216
  "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 +2348,7 @@ window.__ModuleLoader__.load({
2277
2348
  "count.running": "{count} running",
2278
2349
  "count.missing": "{count} unavailable",
2279
2350
  "row.mark.aria": "Active DevLead Session",
2351
+ "row.mark.short": "LEAD",
2280
2352
  "row.watched.aria": "Watched by the active DevLead",
2281
2353
  "row.hover.enabled": "Active DevLead Session: this session can dispatch and watch other Sessions.",
2282
2354
  "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 +2802,12 @@ window.__ModuleLoader__.load({
2730
2802
  white-space: nowrap;
2731
2803
  }
2732
2804
 
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. */
2805
+ /* Sidebar Session-row marks never change the shell row's border, background,
2806
+ padding, height, position, or selection/focus treatment. Both marks share the
2807
+ trailing seat's inline flex layout: the time label naturally moves left for
2808
+ the active lead's small right-side badge, while hover/focus replaces the whole
2809
+ resting seat with the separate action strip. No absolute positioning means a
2810
+ badge cannot paint over either shell-owned neighbour. */
2736
2811
  .devlead-row-mark {
2737
2812
  display: inline-flex;
2738
2813
  flex: none;
@@ -2740,34 +2815,33 @@ window.__ModuleLoader__.load({
2740
2815
  color: var(--dsw-alias-label-secondary, GrayText);
2741
2816
  }
2742
2817
 
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;
2818
+ .devlead-row-mark-lead {
2819
+ gap: 2px;
2820
+ min-height: 12px;
2821
+ padding: 0 3px;
2822
+ border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 68%, transparent);
2823
+ border-radius: 999px;
2824
+ background: var(--dsw-specific-menu, Canvas);
2825
+ color: var(--dsw-alias-state-business-primary, #4176e6);
2826
+ font-size: 7px;
2827
+ font-weight: 700;
2828
+ line-height: 10px;
2829
+ letter-spacing: 0.04em;
2830
+ pointer-events: none;
2756
2831
  }
2757
2832
 
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;
2833
+ .devlead-row-mark-lead > svg {
2834
+ flex: none;
2766
2835
  }
2767
2836
 
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. */
2837
+ @media (max-width: 480px) {
2838
+ .devlead-row-mark-lead-label {
2839
+ display: none;
2840
+ }
2841
+ }
2842
+
2843
+ /* A watched row uses a quieter target than the active lead's badge: secondary
2844
+ ink at reduced opacity stays legible without competing with selection. */
2771
2845
  .devlead-row-mark-watched {
2772
2846
  color: var(--dsw-alias-label-secondary, GrayText);
2773
2847
  opacity: 0.62;
@@ -2803,9 +2877,18 @@ window.__ModuleLoader__.load({
2803
2877
  /* Read-only board: quiet operational typography, no decorative gradients.
2804
2878
  Container queries follow the actual pane: 1 / 2 / 3 columns as room allows. */
2805
2879
  .devlead-board-open {
2880
+ display: inline-flex;
2806
2881
  flex: none;
2882
+ align-items: center;
2883
+ justify-content: center;
2807
2884
  width: 28px;
2808
- color: var(--dsw-alias-label-secondary, GrayText);
2885
+ height: 28px;
2886
+ padding: 0;
2887
+ color: var(--dsw-alias-label-primary, CanvasText);
2888
+ }
2889
+
2890
+ .devlead-board-open > svg {
2891
+ flex: none;
2809
2892
  }
2810
2893
 
2811
2894
  .devlead-board,
@@ -2917,7 +3000,17 @@ window.__ModuleLoader__.load({
2917
3000
  line-height: 16px;
2918
3001
  }
2919
3002
 
2920
- .devlead-board-live > span:last-child {
3003
+ .devlead-board-live-label {
3004
+ flex: none;
3005
+ color: var(--dsw-alias-label-primary, CanvasText);
3006
+ font-size: 9px;
3007
+ font-weight: 700;
3008
+ letter-spacing: 0.06em;
3009
+ text-transform: uppercase;
3010
+ }
3011
+
3012
+ .devlead-board-live-status {
3013
+ min-width: 0;
2921
3014
  overflow: hidden;
2922
3015
  text-overflow: ellipsis;
2923
3016
  white-space: nowrap;
@@ -2956,8 +3049,8 @@ window.__ModuleLoader__.load({
2956
3049
  .devlead-board-kpis {
2957
3050
  display: flex;
2958
3051
  min-width: 0;
2959
- gap: 5px;
2960
- margin: 7px 0 0;
3052
+ gap: 6px;
3053
+ margin: 8px 0 0;
2961
3054
  overflow-x: auto;
2962
3055
  scrollbar-width: none;
2963
3056
  }
@@ -2966,42 +3059,71 @@ window.__ModuleLoader__.load({
2966
3059
  display: none;
2967
3060
  }
2968
3061
 
3062
+ .devlead-board-kpis:focus-visible {
3063
+ outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
3064
+ outline-offset: 2px;
3065
+ }
3066
+
3067
+ /* One status vocabulary across KPI, banner, and card: active=business blue,
3068
+ blocked=warning amber, paused=neutral, done=success green. Priority never
3069
+ selects these colors. Empty counts retreat to neutral ink; only a non-zero
3070
+ blocked count earns the stronger fill and halo. */
2969
3071
  .devlead-board-kpis > div {
2970
3072
  display: inline-flex;
2971
3073
  flex: 1 0 auto;
2972
3074
  min-width: 0;
2973
- align-items: baseline;
3075
+ min-height: 28px;
3076
+ align-items: center;
2974
3077
  justify-content: center;
2975
- gap: 5px;
3078
+ gap: 7px;
2976
3079
  margin: 0;
2977
- padding: 2px 7px;
3080
+ padding: 3px 9px;
2978
3081
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2979
3082
  border-radius: 999px;
2980
3083
  background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
2981
3084
  }
2982
3085
 
2983
3086
  .devlead-board-kpis dt {
3087
+ display: inline-flex;
2984
3088
  min-width: 0;
3089
+ align-items: center;
3090
+ gap: 4px;
2985
3091
  overflow: hidden;
2986
3092
  color: var(--dsw-alias-label-secondary, GrayText);
2987
- font-size: 10px;
2988
- line-height: 15px;
2989
- text-overflow: ellipsis;
3093
+ font-size: 11px;
3094
+ line-height: 18px;
2990
3095
  white-space: nowrap;
2991
3096
  }
2992
3097
 
3098
+ .devlead-board-kpi-icon {
3099
+ display: inline-flex;
3100
+ flex: none;
3101
+ align-items: center;
3102
+ }
3103
+
2993
3104
  .devlead-board-kpis dd {
2994
3105
  flex: none;
2995
3106
  margin: 0;
2996
3107
  color: var(--dsw-alias-label-primary, CanvasText);
2997
- font-size: 11px;
3108
+ font-size: 14px;
3109
+ line-height: 18px;
2998
3110
  font-variant-numeric: tabular-nums;
2999
3111
  font-weight: 700;
3000
3112
  }
3001
3113
 
3114
+ .devlead-board-kpis > div[data-tone="active"] {
3115
+ border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
3116
+ background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 5%, transparent);
3117
+ }
3118
+
3119
+ .devlead-board-kpis > div[data-tone="active"] dd,
3120
+ .devlead-board-kpis > div[data-tone="active"] .devlead-board-kpi-icon {
3121
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3122
+ }
3123
+
3002
3124
  .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);
3125
+ border-color: var(--dsw-alias-state-warn-primary, #a15c00);
3126
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 6%, transparent);
3005
3127
  }
3006
3128
 
3007
3129
  .devlead-board-kpis > div[data-tone="blocked"] dd,
@@ -3009,10 +3131,32 @@ window.__ModuleLoader__.load({
3009
3131
  color: var(--dsw-alias-state-warn-primary, #a15c00);
3010
3132
  }
3011
3133
 
3012
- .devlead-board-kpis > div[data-tone="done"] dd {
3134
+ .devlead-board-kpis > div[data-tone="blocked"][data-emphasis="true"] {
3135
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3136
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3137
+ }
3138
+
3139
+ .devlead-board-kpis > div[data-tone="done"] {
3140
+ border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 38%, transparent);
3141
+ }
3142
+
3143
+ .devlead-board-kpis > div[data-tone="done"] dd,
3144
+ .devlead-board-kpis > div[data-tone="done"] .devlead-board-kpi-icon {
3013
3145
  color: var(--dsw-alias-state-success-primary, #2e7d32);
3014
3146
  }
3015
3147
 
3148
+ .devlead-board-kpis > div[data-empty="true"] {
3149
+ border-color: var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3150
+ background: transparent;
3151
+ box-shadow: none;
3152
+ }
3153
+
3154
+ .devlead-board-kpis > div[data-empty="true"] dt,
3155
+ .devlead-board-kpis > div[data-empty="true"] dd,
3156
+ .devlead-board-kpis > div[data-empty="true"] .devlead-board-kpi-icon {
3157
+ color: var(--dsw-alias-label-tertiary, GrayText);
3158
+ }
3159
+
3016
3160
  .devlead-board-content {
3017
3161
  flex: 1 1 auto;
3018
3162
  min-width: 0;
@@ -3157,39 +3301,36 @@ window.__ModuleLoader__.load({
3157
3301
  position: relative;
3158
3302
  min-width: 0;
3159
3303
  max-width: 100%;
3160
- padding: 9px 10px 8px 12px;
3304
+ padding: 9px 10px 8px;
3161
3305
  overflow: hidden;
3162
3306
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3163
3307
  border-radius: var(--dsw-radius-md, 8px);
3164
3308
  background: var(--dsw-specific-menu, Canvas);
3165
- transition: border-color 120ms ease, box-shadow 120ms ease;
3309
+ transition: box-shadow 120ms ease;
3166
3310
  }
3167
3311
 
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);
3179
- }
3180
-
3181
- .devlead-board-card[data-priority="medium"]::before {
3182
- background: var(--dsw-alias-label-tertiary, GrayText);
3312
+ /* The complete four-side border and tinted surface belong to status alone.
3313
+ The existing priority Tag is the independent priority cue; no data-priority
3314
+ selector may recolor a card. */
3315
+ .devlead-board-card[data-status="active"] {
3316
+ border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 62%, transparent);
3317
+ background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 4%, var(--dsw-specific-menu, Canvas));
3183
3318
  }
3184
3319
 
3185
3320
  .devlead-board-card[data-status="blocked"] {
3186
3321
  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));
3322
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 7%, var(--dsw-specific-menu, Canvas));
3188
3323
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3189
3324
  }
3190
3325
 
3191
- .devlead-board-card[data-status="blocked"]::before {
3192
- background: var(--dsw-alias-state-warn-primary, #a15c00);
3326
+ .devlead-board-card[data-status="paused"] {
3327
+ border-color: color-mix(in srgb, var(--dsw-alias-label-secondary, GrayText) 46%, transparent);
3328
+ background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, var(--dsw-specific-menu, Canvas));
3329
+ }
3330
+
3331
+ .devlead-board-card[data-status="done"] {
3332
+ border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 52%, transparent);
3333
+ background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #2e7d32) 3%, var(--dsw-specific-menu, Canvas));
3193
3334
  }
3194
3335
 
3195
3336
  .devlead-board-card-header {
@@ -3884,7 +4025,7 @@ window.__ModuleLoader__.load({
3884
4025
  }
3885
4026
 
3886
4027
  .devlead-board-card:focus-within {
3887
- border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 60%, transparent);
4028
+ box-shadow: 0 0 0 2px var(--dsw-alias-state-business-tertiary, rgba(65, 118, 230, 0.12));
3888
4029
  }
3889
4030
 
3890
4031
  .devlead-board-card:focus-visible {
@@ -3902,11 +4043,11 @@ window.__ModuleLoader__.load({
3902
4043
  }
3903
4044
 
3904
4045
  .devlead-board-card:hover {
3905
- border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
4046
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 10%, transparent);
3906
4047
  }
3907
4048
 
3908
4049
  .devlead-board-card[data-status="blocked"]:hover {
3909
- border-color: var(--dsw-alias-state-warn-primary, #a15c00);
4050
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 16%, transparent);
3910
4051
  }
3911
4052
 
3912
4053
  .devlead-board summary:hover {
@@ -4069,6 +4210,12 @@ window.__ModuleLoader__.load({
4069
4210
  order: 20,
4070
4211
  locale: NS
4071
4212
  }, DevLeadSessionMark));
4213
+ ctx.slots.inject("sidebar.session.row.leading", () => ctx.slots.register({
4214
+ name: "sidebar.session.row.leading",
4215
+ id: "devlead-accessible",
4216
+ order: 20,
4217
+ locale: NS
4218
+ }, DevLeadSessionAccessibleMark));
4072
4219
  ctx.slots.inject("sidebar.session.row.hover", () => ctx.slots.register({
4073
4220
  name: "sidebar.session.row.hover",
4074
4221
  id: "devlead",
@@ -4121,7 +4268,7 @@ window.__ModuleLoader__.load({
4121
4268
  order: 30,
4122
4269
  title: () => t("board.title"),
4123
4270
  description: () => t("board.guide"),
4124
- icon: import_dsh_client_ui_primitives7.IconFlatListOutlineRegular
4271
+ icon: import_dsh_client_ui_primitives7.IconGaugeOutlineRegular
4125
4272
  }]
4126
4273
  }));
4127
4274
  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-rc.9",
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-rc.9"
47
47
  },
48
48
  "engines": {
49
49
  "dsh": ">=0.2.2-rc.1 <0.3.0"