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

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 (3) hide show
  1. package/README.md +32 -8
  2. package/lib/client.js +1355 -571
  3. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -161,7 +161,7 @@ window.__ModuleLoader__.load({
161
161
  updatedAt: timestampSchema
162
162
  }).strict();
163
163
  function createDevLeadBoardSchema(isAbsolutePath) {
164
- const projectSchema = import_zod.z.object({
164
+ const projectSchema2 = import_zod.z.object({
165
165
  id: idSchema,
166
166
  workspace: import_zod.z.object({
167
167
  path: import_zod.z.string().min(1).max(DEVLEAD_BOARD_PATH_MAX).refine(isAbsolutePath, {
@@ -183,7 +183,7 @@ window.__ModuleLoader__.load({
183
183
  revision: import_zod.z.number().int().nonnegative().safe(),
184
184
  updatedAt: timestampSchema,
185
185
  updatedBy: import_zod.z.object({ sessionId: idSchema, title: titleSchema }).strict(),
186
- projects: import_zod.z.array(projectSchema).max(DEVLEAD_BOARD_MAX_PROJECTS)
186
+ projects: import_zod.z.array(projectSchema2).max(DEVLEAD_BOARD_MAX_PROJECTS)
187
187
  }).strict().superRefine((board, context) => {
188
188
  const projectIds = /* @__PURE__ */ new Set();
189
189
  const workspacePaths = /* @__PURE__ */ new Set();
@@ -222,6 +222,130 @@ window.__ModuleLoader__.load({
222
222
  return boardSchema;
223
223
  }
224
224
 
225
+ // packages/protocol/src/notes.ts
226
+ var import_zod2 = require("zod");
227
+ var DEVLEAD_NOTES_SCHEMA_VERSION = 1;
228
+ var DEVLEAD_NOTES_DIR_NAME = "notes";
229
+ var DEVLEAD_NOTES_INDEX_FILE_NAME = "index.json";
230
+ var DEVLEAD_NOTES_INDEX_MAX_BYTES = 128 * 1024;
231
+ var DEVLEAD_NOTES_NOTE_MAX_BYTES = 256 * 1024;
232
+ var DEVLEAD_NOTES_MAX_PROJECTS = 50;
233
+ var DEVLEAD_NOTES_MAX_PER_PROJECT = 100;
234
+ var DEVLEAD_NOTES_ID_MAX = 128;
235
+ var DEVLEAD_NOTES_DIRECTORY_MAX = 128;
236
+ var DEVLEAD_NOTES_TITLE_MAX = 200;
237
+ var DEVLEAD_NOTES_SUMMARY_MAX = 500;
238
+ var DEVLEAD_NOTES_PATH_MAX = 512;
239
+ var DEVLEAD_NOTES_TIMESTAMP_MAX = 64;
240
+ var timestampSchema2 = import_zod2.z.string().max(DEVLEAD_NOTES_TIMESTAMP_MAX).pipe(import_zod2.z.iso.datetime());
241
+ var projectIdSchema = import_zod2.z.string().min(1).max(DEVLEAD_NOTES_ID_MAX);
242
+ var titleSchema2 = import_zod2.z.string().min(1).max(DEVLEAD_NOTES_TITLE_MAX);
243
+ var summarySchema = import_zod2.z.string().max(DEVLEAD_NOTES_SUMMARY_MAX);
244
+ var WINDOWS_RESERVED_NAMES = /* @__PURE__ */ new Set([
245
+ "CON",
246
+ "PRN",
247
+ "AUX",
248
+ "NUL",
249
+ ...Array.from({ length: 9 }, (_, index) => `COM${index + 1}`),
250
+ ...Array.from({ length: 9 }, (_, index) => `LPT${index + 1}`)
251
+ ]);
252
+ function isWindowsReservedName(value) {
253
+ const normalized = value.replace(/[. ]+$/gu, "");
254
+ const basename = normalized.split(".", 1)[0]?.replace(/ +$/gu, "").toUpperCase() ?? "";
255
+ return WINDOWS_RESERVED_NAMES.has(basename);
256
+ }
257
+ var noteIdSchema = projectIdSchema.regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/u, {
258
+ message: "note id must start with an alphanumeric and contain only alphanumerics, dot, underscore, or dash"
259
+ }).refine((value) => !isWindowsReservedName(value), {
260
+ message: "note id must not be a Windows reserved device name"
261
+ });
262
+ var directorySchema = import_zod2.z.string().min(1).max(DEVLEAD_NOTES_DIRECTORY_MAX).regex(/^[a-z0-9][a-z0-9._-]*$/u, {
263
+ message: "directory must be a sanitized lowercase POSIX segment"
264
+ }).refine((value) => value !== "." && value !== "..", {
265
+ message: "directory must not be a traversal segment"
266
+ }).refine((value) => !isWindowsReservedName(value), {
267
+ message: "directory must not be a Windows reserved device name"
268
+ });
269
+ var relativePathSchema = import_zod2.z.string().min(1).max(DEVLEAD_NOTES_PATH_MAX).refine((value) => !value.includes("\\"), { message: "note path must use POSIX separators" }).refine((value) => !value.startsWith("/"), { message: "note path must be relative to the notes root" }).refine((value) => value.split("/").every((segment) => segment.length > 0 && segment !== "." && segment !== ".."), {
270
+ message: "note path must not contain empty or traversal segments"
271
+ });
272
+ var noteSchema = import_zod2.z.object({
273
+ id: noteIdSchema,
274
+ title: titleSchema2,
275
+ summary: summarySchema,
276
+ updatedAt: timestampSchema2,
277
+ bytes: import_zod2.z.number().int().nonnegative().max(DEVLEAD_NOTES_NOTE_MAX_BYTES),
278
+ path: relativePathSchema
279
+ }).strict();
280
+ var projectSchema = import_zod2.z.object({
281
+ id: projectIdSchema,
282
+ directory: directorySchema,
283
+ notes: import_zod2.z.array(noteSchema).max(DEVLEAD_NOTES_MAX_PER_PROJECT)
284
+ }).strict();
285
+ var indexSchema = import_zod2.z.object({
286
+ schemaVersion: import_zod2.z.literal(DEVLEAD_NOTES_SCHEMA_VERSION),
287
+ revision: import_zod2.z.number().int().nonnegative().safe(),
288
+ updatedAt: timestampSchema2,
289
+ projects: import_zod2.z.array(projectSchema).max(DEVLEAD_NOTES_MAX_PROJECTS)
290
+ }).strict().superRefine((index, context) => {
291
+ const projectIds = /* @__PURE__ */ new Set();
292
+ const directories = /* @__PURE__ */ new Set();
293
+ const paths = /* @__PURE__ */ new Set();
294
+ index.projects.forEach((project, projectIndex) => {
295
+ if (projectIds.has(project.id)) {
296
+ context.addIssue({
297
+ code: "custom",
298
+ path: ["projects", projectIndex, "id"],
299
+ message: `duplicate project id "${project.id}"`
300
+ });
301
+ }
302
+ projectIds.add(project.id);
303
+ if (directories.has(project.directory)) {
304
+ context.addIssue({
305
+ code: "custom",
306
+ path: ["projects", projectIndex, "directory"],
307
+ message: `duplicate project directory "${project.directory}"`
308
+ });
309
+ }
310
+ directories.add(project.directory);
311
+ const noteIds = /* @__PURE__ */ new Set();
312
+ project.notes.forEach((note, noteIndex) => {
313
+ const portableId = note.id.toLowerCase();
314
+ if (noteIds.has(portableId)) {
315
+ context.addIssue({
316
+ code: "custom",
317
+ path: ["projects", projectIndex, "notes", noteIndex, "id"],
318
+ message: `duplicate note id "${note.id}" ignoring case`
319
+ });
320
+ }
321
+ noteIds.add(portableId);
322
+ const expectedPath = `${project.directory}/${note.id}.md`;
323
+ if (note.path !== expectedPath) {
324
+ context.addIssue({
325
+ code: "custom",
326
+ path: ["projects", projectIndex, "notes", noteIndex, "path"],
327
+ message: `note path must be "${expectedPath}"`
328
+ });
329
+ }
330
+ const portablePath = note.path.toLowerCase();
331
+ if (paths.has(portablePath)) {
332
+ context.addIssue({
333
+ code: "custom",
334
+ path: ["projects", projectIndex, "notes", noteIndex, "path"],
335
+ message: `duplicate note path "${note.path}" ignoring case`
336
+ });
337
+ }
338
+ paths.add(portablePath);
339
+ });
340
+ });
341
+ });
342
+ function createDevLeadNotesIndexSchema() {
343
+ return indexSchema;
344
+ }
345
+ function parseDevLeadNotesIndex(value) {
346
+ return createDevLeadNotesIndexSchema().parse(value);
347
+ }
348
+
225
349
  // packages/client-ui/src/client/format.ts
226
350
  var TRANSITION_LABEL_KEYS = {
227
351
  completed: "transition.completed",
@@ -791,10 +915,13 @@ window.__ModuleLoader__.load({
791
915
  }
792
916
 
793
917
  // packages/client-ui/src/client/DevLeadBoardPanel.tsx
794
- var import_react2 = require("react");
918
+ var import_react5 = require("react");
795
919
  var import_dsh_client_ui_primitives3 = require("@deepseek-ai/dsh-client-ui-primitives");
796
920
 
797
921
  // packages/client-ui/src/client/useBoardFile.ts
922
+ var import_react2 = require("react");
923
+
924
+ // packages/client-ui/src/client/useWorkspaceFile.ts
798
925
  var import_react = require("react");
799
926
  var DISABLED = { status: "disabled", refreshing: false };
800
927
  function initialState(config) {
@@ -810,7 +937,7 @@ window.__ModuleLoader__.load({
810
937
  if (typeof document === "undefined") return true;
811
938
  return document.visibilityState !== "hidden" && (typeof document.hasFocus !== "function" || document.hasFocus());
812
939
  }
813
- function useBoardFile({
940
+ function useWorkspaceFile({
814
941
  sessionId,
815
942
  config,
816
943
  files,
@@ -864,44 +991,39 @@ window.__ModuleLoader__.load({
864
991
  };
865
992
  void (async () => {
866
993
  try {
867
- const metadata = await files.stat(sessionId, config.boardPath, controller.signal);
994
+ const metadata = await files.stat(sessionId, config.path, controller.signal);
868
995
  if (generation.current !== request || controller.signal.aborted) return;
869
996
  if (!metadata.ok) {
870
- if (isNotFound(metadata)) {
871
- settle({ status: "empty", refreshing: false });
872
- } else {
873
- fail("read", metadata.error);
874
- }
997
+ if (isNotFound(metadata)) settle({ status: "empty", refreshing: false });
998
+ else fail("read", metadata.error);
875
999
  return;
876
1000
  }
877
- if (metadata.value.bytes !== void 0 && metadata.value.bytes > DEVLEAD_BOARD_MAX_BYTES) {
878
- fail("parse", new DevLeadBoardParseError(`board file exceeds ${DEVLEAD_BOARD_MAX_BYTES} bytes`));
1001
+ if (metadata.value.bytes !== void 0 && metadata.value.bytes > config.maxBytes) {
1002
+ fail("parse", config.parseError(`${config.fileLabel} exceeds ${config.maxBytes} bytes`));
879
1003
  return;
880
1004
  }
881
- const content = await files.readBytes(sessionId, config.boardPath, {}, controller.signal);
1005
+ const content = await files.readBytes(sessionId, config.path, {}, controller.signal);
882
1006
  if (generation.current !== request || controller.signal.aborted) return;
883
1007
  if (!content.ok) {
884
- if (isNotFound(content)) {
885
- settle({ status: "empty", refreshing: false });
886
- } else {
887
- fail("read", content.error);
888
- }
1008
+ if (isNotFound(content)) settle({ status: "empty", refreshing: false });
1009
+ else fail("read", content.error);
889
1010
  return;
890
1011
  }
891
- if (!content.value.eof || content.value.data.byteLength > DEVLEAD_BOARD_MAX_BYTES) {
892
- fail("parse", new DevLeadBoardParseError("board file is truncated or too large"));
1012
+ if (!content.value.eof || content.value.data.byteLength > config.maxBytes) {
1013
+ fail("parse", config.parseError(`${config.fileLabel} is truncated or too large`));
893
1014
  return;
894
1015
  }
895
- let board;
1016
+ let value;
896
1017
  try {
897
- board = parseDevLeadBoardBytes(content.value.data, config.pathPlatform);
1018
+ value = config.parse(content.value.data);
898
1019
  } catch (error) {
899
1020
  fail("parse", error);
900
1021
  return;
901
1022
  }
902
1023
  settle({
903
1024
  status: "ready",
904
- board,
1025
+ value,
1026
+ valuePath: config.path,
905
1027
  lastSuccessAt: new Date(now()).toISOString(),
906
1028
  refreshing: false
907
1029
  });
@@ -940,7 +1062,7 @@ window.__ModuleLoader__.load({
940
1062
  };
941
1063
  const pump = async () => {
942
1064
  try {
943
- const stream = files.changes(sessionId, config.boardPath, watcher.signal);
1065
+ const stream = files.changes(sessionId, config.path, watcher.signal);
944
1066
  try {
945
1067
  for await (const frame of stream) {
946
1068
  if (disposed) return;
@@ -1013,9 +1135,7 @@ window.__ModuleLoader__.load({
1013
1135
  timer = setTimeout(() => {
1014
1136
  timer = void 0;
1015
1137
  refreshRead();
1016
- if (state.status === "empty" || state.status === "error") {
1017
- delay = Math.min(delay * 2, pollMaxMs);
1018
- }
1138
+ if (state.status === "empty" || state.status === "error") delay = Math.min(delay * 2, pollMaxMs);
1019
1139
  schedule();
1020
1140
  }, delay);
1021
1141
  };
@@ -1028,21 +1148,348 @@ window.__ModuleLoader__.load({
1028
1148
  refreshRead(true);
1029
1149
  if (config !== void 0) setWatchGeneration((current) => current + 1);
1030
1150
  }, [config, refreshRead]);
1031
- return { ...state, watch, autoRefresh, refresh };
1151
+ const staleValue = config !== void 0 && state.valuePath !== void 0 && state.valuePath !== config.path;
1152
+ const currentState = staleValue ? { status: "loading", refreshing: true } : state;
1153
+ return { ...currentState, watch, autoRefresh, refresh };
1032
1154
  }
1033
1155
 
1034
- // packages/client-ui/src/client/DevLeadBoardPanel.tsx
1156
+ // packages/client-ui/src/client/useBoardFile.ts
1157
+ function useBoardFile({
1158
+ sessionId,
1159
+ config,
1160
+ files,
1161
+ visible = true,
1162
+ debounceMs = 120,
1163
+ pollMs = 5e3,
1164
+ pollMaxMs = 3e4,
1165
+ now = Date.now
1166
+ }) {
1167
+ const fileConfig = (0, import_react2.useMemo)(() => config === void 0 ? void 0 : {
1168
+ path: config.boardPath,
1169
+ maxBytes: DEVLEAD_BOARD_MAX_BYTES,
1170
+ fileLabel: "board file",
1171
+ parse: (bytes) => parseDevLeadBoardBytes(bytes, config.pathPlatform),
1172
+ parseError: (message, options) => new DevLeadBoardParseError(message, options)
1173
+ }, [config]);
1174
+ const { value, watch, autoRefresh, refresh, ...state } = useWorkspaceFile({
1175
+ sessionId,
1176
+ config: fileConfig,
1177
+ files,
1178
+ visible,
1179
+ debounceMs,
1180
+ pollMs,
1181
+ pollMaxMs,
1182
+ now
1183
+ });
1184
+ return {
1185
+ ...state,
1186
+ ...value === void 0 ? {} : { board: value },
1187
+ watch,
1188
+ autoRefresh,
1189
+ refresh
1190
+ };
1191
+ }
1192
+
1193
+ // packages/client-ui/src/client/notes.ts
1194
+ var import_react3 = require("react");
1195
+ var DevLeadNotesParseError = class extends Error {
1196
+ constructor(message, options) {
1197
+ super(message, options);
1198
+ this.name = "DevLeadNotesParseError";
1199
+ }
1200
+ };
1201
+ function decodeUtf8(bytes, label) {
1202
+ try {
1203
+ return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
1204
+ } catch (error) {
1205
+ throw new DevLeadNotesParseError(`${label} is not valid UTF-8`, { cause: error });
1206
+ }
1207
+ }
1208
+ function parseDevLeadNotesIndexBytes(bytes) {
1209
+ if (bytes.byteLength > DEVLEAD_NOTES_INDEX_MAX_BYTES) {
1210
+ throw new DevLeadNotesParseError(`notes index exceeds ${DEVLEAD_NOTES_INDEX_MAX_BYTES} bytes`);
1211
+ }
1212
+ let value;
1213
+ try {
1214
+ value = JSON.parse(decodeUtf8(bytes, "notes index"));
1215
+ } catch (error) {
1216
+ if (error instanceof DevLeadNotesParseError) throw error;
1217
+ throw new DevLeadNotesParseError("notes index is not valid JSON", { cause: error });
1218
+ }
1219
+ try {
1220
+ return parseDevLeadNotesIndex(value);
1221
+ } catch (error) {
1222
+ throw new DevLeadNotesParseError("notes schema v1 validation failed", { cause: error });
1223
+ }
1224
+ }
1225
+ function parseDevLeadNoteBytes(bytes) {
1226
+ if (bytes.byteLength > DEVLEAD_NOTES_NOTE_MAX_BYTES) {
1227
+ throw new DevLeadNotesParseError(`note file exceeds ${DEVLEAD_NOTES_NOTE_MAX_BYTES} bytes`);
1228
+ }
1229
+ return { markdown: decodeUtf8(bytes, "note file") };
1230
+ }
1231
+ function deriveDevLeadNotesPaths(config) {
1232
+ const separator = config.pathPlatform === "win32" ? "\\" : "/";
1233
+ const alternate = config.pathPlatform === "win32" ? "/" : "\\";
1234
+ const cut = Math.max(config.boardPath.lastIndexOf(separator), config.boardPath.lastIndexOf(alternate));
1235
+ let directory = config.boardPath.slice(0, Math.max(0, cut));
1236
+ if (directory.length === 0 && config.pathPlatform === "posix") directory = "/";
1237
+ const root = `${directory}${directory.endsWith(separator) ? "" : separator}${DEVLEAD_NOTES_DIR_NAME}`;
1238
+ return { root, indexPath: `${root}${separator}${DEVLEAD_NOTES_INDEX_FILE_NAME}`, pathPlatform: config.pathPlatform };
1239
+ }
1240
+ function resolveDevLeadNotePath(paths, metadata) {
1241
+ if (metadata.path.length === 0 || metadata.path.includes("\0") || metadata.path.includes("\\") || metadata.path.startsWith("/") || metadata.path.split("/").some((segment) => segment.length === 0 || segment === "." || segment === "..")) {
1242
+ throw new DevLeadNotesParseError("note metadata path escapes the notes root");
1243
+ }
1244
+ const separator = paths.pathPlatform === "win32" ? "\\" : "/";
1245
+ return `${paths.root}${metadata.path.split("/").map((segment) => `${separator}${segment}`).join("")}`;
1246
+ }
1247
+ function devLeadNotesForProject(index, project) {
1248
+ return index.projects.find((candidate) => candidate.id === project.id);
1249
+ }
1250
+ function sortDevLeadNotes(notes) {
1251
+ return [...notes].sort((left, right) => Date.parse(right.updatedAt) - Date.parse(left.updatedAt) || left.id.localeCompare(right.id));
1252
+ }
1253
+ function useDevLeadNotesIndex({ sessionId, config, files, visible = true, debounceMs = 120, pollMs = 5e3, pollMaxMs = 3e4, now = Date.now }) {
1254
+ const paths = (0, import_react3.useMemo)(() => config === void 0 ? void 0 : deriveDevLeadNotesPaths(config), [config]);
1255
+ const fileConfig = (0, import_react3.useMemo)(() => paths === void 0 ? void 0 : {
1256
+ path: paths.indexPath,
1257
+ maxBytes: DEVLEAD_NOTES_INDEX_MAX_BYTES,
1258
+ fileLabel: "notes index",
1259
+ parse: parseDevLeadNotesIndexBytes,
1260
+ parseError: (message, options) => new DevLeadNotesParseError(message, options)
1261
+ }, [paths]);
1262
+ return useWorkspaceFile({ sessionId, config: fileConfig, files, visible, debounceMs, pollMs, pollMaxMs, now });
1263
+ }
1264
+ function useDevLeadNote({ sessionId, paths, metadata, files, visible = true, debounceMs = 120, pollMs = 5e3, pollMaxMs = 3e4, now = Date.now }) {
1265
+ const fileConfig = (0, import_react3.useMemo)(() => {
1266
+ if (paths === void 0 || metadata === void 0) return void 0;
1267
+ return {
1268
+ path: resolveDevLeadNotePath(paths, metadata),
1269
+ maxBytes: DEVLEAD_NOTES_NOTE_MAX_BYTES,
1270
+ fileLabel: "note file",
1271
+ parse: parseDevLeadNoteBytes,
1272
+ parseError: (message, options) => new DevLeadNotesParseError(message, options)
1273
+ };
1274
+ }, [metadata?.id, metadata?.path, metadata?.bytes, paths?.root, paths?.pathPlatform]);
1275
+ return useWorkspaceFile({ sessionId, config: fileConfig, files, visible: visible && metadata !== void 0, debounceMs, pollMs, pollMaxMs, now });
1276
+ }
1277
+
1278
+ // packages/client-ui/src/client/Markdown.tsx
1279
+ var import_react4 = require("react");
1035
1280
  var import_jsx_runtime3 = require("react/jsx-runtime");
1281
+ function safeDevLeadMarkdownHref(destination) {
1282
+ try {
1283
+ const url = new URL(destination);
1284
+ return url.protocol === "https:" || url.protocol === "http:" ? url.href : void 0;
1285
+ } catch {
1286
+ return void 0;
1287
+ }
1288
+ }
1289
+ function inline(text, context) {
1290
+ if (context.depth > 12) return [text];
1291
+ const nodes = [];
1292
+ let plain = "";
1293
+ let position = 0;
1294
+ let sequence = 0;
1295
+ const flush = () => {
1296
+ if (plain.length === 0) return;
1297
+ nodes.push(plain);
1298
+ plain = "";
1299
+ };
1300
+ const key = (kind) => `${context.prefix}-${kind}-${sequence++}`;
1301
+ const nested = (value, kind) => inline(value, {
1302
+ depth: context.depth + 1,
1303
+ prefix: key(kind)
1304
+ });
1305
+ while (position < text.length) {
1306
+ const rest = text.slice(position);
1307
+ if (rest.startsWith("`")) {
1308
+ const end = text.indexOf("`", position + 1);
1309
+ if (end > position + 1) {
1310
+ flush();
1311
+ nodes.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { children: text.slice(position + 1, end) }, key("code")));
1312
+ position = end + 1;
1313
+ continue;
1314
+ }
1315
+ }
1316
+ if (rest.startsWith("[")) {
1317
+ const match = /^\[([^\]\n]+)\]\(([^)\n]+)\)/u.exec(rest);
1318
+ if (match !== null) {
1319
+ flush();
1320
+ const label = match[1] ?? "";
1321
+ const destination = (match[2] ?? "").trim();
1322
+ const href = safeDevLeadMarkdownHref(destination);
1323
+ if (href === void 0) {
1324
+ nodes.push(match[0]);
1325
+ } else {
1326
+ nodes.push(
1327
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("a", { href, target: "_blank", rel: "noreferrer noopener", children: nested(label, "link") }, key("link"))
1328
+ );
1329
+ }
1330
+ position += match[0].length;
1331
+ continue;
1332
+ }
1333
+ }
1334
+ const delimiter = rest.startsWith("**") || rest.startsWith("__") ? rest.slice(0, 2) : rest.startsWith("~~") ? "~~" : rest.startsWith("*") || rest.startsWith("_") ? rest[0] ?? "" : "";
1335
+ if (delimiter.length > 0) {
1336
+ const end = text.indexOf(delimiter, position + delimiter.length);
1337
+ if (end > position + delimiter.length) {
1338
+ const content = text.slice(position + delimiter.length, end);
1339
+ flush();
1340
+ if (delimiter === "**" || delimiter === "__") nodes.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: nested(content, "strong") }, key("strong")));
1341
+ else if (delimiter === "~~") nodes.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("del", { children: nested(content, "del") }, key("del")));
1342
+ else nodes.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("em", { children: nested(content, "em") }, key("em")));
1343
+ position = end + delimiter.length;
1344
+ continue;
1345
+ }
1346
+ }
1347
+ plain += text[position] ?? "";
1348
+ position += 1;
1349
+ }
1350
+ flush();
1351
+ return nodes;
1352
+ }
1353
+ var LIST_PATTERN = /^ {0,3}([-+*]|\d+[.)])\s+(.+)$/u;
1354
+ var HEADING_PATTERN = /^ {0,3}(#{1,6})\s+(.+)$/u;
1355
+ var FENCE_PATTERN = /^ {0,3}(`{3,}|~{3,})(.*)$/u;
1356
+ function blockStart(line) {
1357
+ return HEADING_PATTERN.test(line) || FENCE_PATTERN.test(line) || LIST_PATTERN.test(line) || /^ {0,3}>/u.test(line);
1358
+ }
1359
+ function blocks(source, depth, prefix) {
1360
+ if (depth > 8) return [/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: source }, `${prefix}-deep`)];
1361
+ const lines = source.replaceAll("\r\n", "\n").replaceAll("\r", "\n").split("\n");
1362
+ const output = [];
1363
+ let index = 0;
1364
+ let sequence = 0;
1365
+ const key = (kind) => `${prefix}-${kind}-${sequence++}`;
1366
+ while (index < lines.length) {
1367
+ const line = lines[index] ?? "";
1368
+ if (line.trim().length === 0) {
1369
+ index += 1;
1370
+ continue;
1371
+ }
1372
+ const fence = FENCE_PATTERN.exec(line);
1373
+ if (fence !== null) {
1374
+ const marker = fence[1] ?? "```";
1375
+ const info = (fence[2] ?? "").trim();
1376
+ const content = [];
1377
+ index += 1;
1378
+ while (index < lines.length) {
1379
+ const candidate = lines[index] ?? "";
1380
+ const closing = FENCE_PATTERN.exec(candidate);
1381
+ if (closing !== null && (closing[1] ?? "")[0] === marker[0] && (closing[1] ?? "").length >= marker.length) {
1382
+ index += 1;
1383
+ break;
1384
+ }
1385
+ content.push(candidate);
1386
+ index += 1;
1387
+ }
1388
+ output.push(
1389
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("pre", { "data-language": info.length > 0 ? info : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("code", { children: [
1390
+ content.join("\n"),
1391
+ content.length > 0 ? "\n" : ""
1392
+ ] }) }, key("pre"))
1393
+ );
1394
+ continue;
1395
+ }
1396
+ const heading = HEADING_PATTERN.exec(line);
1397
+ if (heading !== null) {
1398
+ const level = Math.min(6, (heading[1] ?? "#").length);
1399
+ output.push((0, import_react4.createElement)(`h${level}`, { key: key("heading") }, ...inline(heading[2] ?? "", {
1400
+ depth: 0,
1401
+ prefix: key("inline")
1402
+ })));
1403
+ index += 1;
1404
+ continue;
1405
+ }
1406
+ if (/^ {0,3}>/u.test(line)) {
1407
+ const quoted = [];
1408
+ while (index < lines.length && /^ {0,3}>/u.test(lines[index] ?? "")) {
1409
+ quoted.push((lines[index] ?? "").replace(/^ {0,3}> ?/u, ""));
1410
+ index += 1;
1411
+ }
1412
+ output.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("blockquote", { children: blocks(quoted.join("\n"), depth + 1, key("quoted")) }, key("quote")));
1413
+ continue;
1414
+ }
1415
+ const list = LIST_PATTERN.exec(line);
1416
+ if (list !== null) {
1417
+ const ordered = /^\d/u.test(list[1] ?? "");
1418
+ const items = [];
1419
+ let start = ordered ? Number.parseInt(list[1] ?? "1", 10) : 1;
1420
+ while (index < lines.length) {
1421
+ const item = LIST_PATTERN.exec(lines[index] ?? "");
1422
+ if (item === null || /^\d/u.test(item[1] ?? "") !== ordered) break;
1423
+ items.push(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: inline(item[2] ?? "", { depth: 0, prefix: key("item-inline") }) }, key("item")));
1424
+ index += 1;
1425
+ }
1426
+ output.push((0, import_react4.createElement)(ordered ? "ol" : "ul", {
1427
+ key: key("list"),
1428
+ ...ordered && start !== 1 ? { start } : {}
1429
+ }, ...items));
1430
+ continue;
1431
+ }
1432
+ const paragraph = [line];
1433
+ index += 1;
1434
+ while (index < lines.length) {
1435
+ const candidate = lines[index] ?? "";
1436
+ if (candidate.trim().length === 0 || blockStart(candidate)) break;
1437
+ paragraph.push(candidate);
1438
+ index += 1;
1439
+ }
1440
+ output.push(
1441
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: paragraph.map((part, partIndex) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react4.Fragment, { children: [
1442
+ partIndex > 0 && "\n",
1443
+ inline(part, { depth: 0, prefix: key("inline") })
1444
+ ] }, key("line"))) }, key("paragraph"))
1445
+ );
1446
+ }
1447
+ return output;
1448
+ }
1449
+ function DevLeadMarkdown({ markdown, className = "devlead-markdown" }) {
1450
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className, children: blocks(markdown, 0, "md") });
1451
+ }
1452
+
1453
+ // packages/client-ui/src/client/DevLeadBoardPanel.tsx
1454
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1036
1455
  function DevLeadBoardPanel({ sessionId, files, useWorkspaces, useSessions, useTabInfo, t }) {
1037
1456
  const sessions = useSessions((snapshot) => snapshot);
1038
1457
  const visible = useTabInfo().tab.visible;
1039
1458
  const summary = sessions.byId[sessionId];
1040
1459
  const resolved = resolveDevLeadBoardSessionConfig(sessionId, summary, currentDevLeadBoardConfig());
1041
- const config = (0, import_react2.useMemo)(() => resolved, [resolved?.boardPath, resolved?.pathPlatform]);
1460
+ const config = (0, import_react5.useMemo)(() => resolved, [resolved?.boardPath, resolved?.pathPlatform]);
1042
1461
  const { refresh, watch, autoRefresh, ...state } = useBoardFile({ sessionId, config, files, visible });
1462
+ const notesPaths = (0, import_react5.useMemo)(() => config === void 0 ? void 0 : deriveDevLeadNotesPaths(config), [config]);
1463
+ const notesIndex = useDevLeadNotesIndex({ sessionId, config, files, visible });
1464
+ const [selection, setSelection] = (0, import_react5.useState)();
1465
+ (0, import_react5.useEffect)(() => {
1466
+ setSelection(void 0);
1467
+ }, [config?.boardPath]);
1468
+ const readerProjectId = selection?.projectId;
1469
+ const previousReaderProject = (0, import_react5.useRef)(void 0);
1470
+ (0, import_react5.useEffect)(() => {
1471
+ if (typeof document === "undefined") return;
1472
+ if (readerProjectId !== void 0) {
1473
+ document.querySelector(".devlead-notes-back")?.focus();
1474
+ } else if (previousReaderProject.current !== void 0) {
1475
+ const trigger = previousReaderProject.current;
1476
+ for (const button of document.querySelectorAll("[data-devlead-notes-chip]")) {
1477
+ if (button.dataset.devleadNotesChip === trigger) {
1478
+ button.focus();
1479
+ break;
1480
+ }
1481
+ }
1482
+ }
1483
+ previousReaderProject.current = readerProjectId;
1484
+ }, [readerProjectId]);
1485
+ const boardProject = selection === void 0 || state.board === void 0 ? void 0 : state.board.projects.find((project) => project.id === selection.projectId);
1486
+ const notesProject = boardProject === void 0 || notesIndex.value === void 0 ? void 0 : devLeadNotesForProject(notesIndex.value, boardProject);
1487
+ const projectNotes = sortDevLeadNotes(notesProject?.notes ?? []);
1488
+ const metadata = projectNotes.find((note2) => note2.id === selection?.noteId) ?? projectNotes[0];
1489
+ const note = useDevLeadNote({ sessionId, paths: notesPaths, metadata, files, visible: visible && selection !== void 0 });
1043
1490
  const workspaces = useWorkspaces((snapshot) => snapshot);
1044
- const [now, setNow] = (0, import_react2.useState)(() => Date.now());
1045
- (0, import_react2.useEffect)(() => {
1491
+ const [now, setNow] = (0, import_react5.useState)(() => Date.now());
1492
+ (0, import_react5.useEffect)(() => {
1046
1493
  const timer = setInterval(() => {
1047
1494
  setNow(Date.now());
1048
1495
  }, 6e4);
@@ -1051,7 +1498,13 @@ window.__ModuleLoader__.load({
1051
1498
  };
1052
1499
  }, []);
1053
1500
  const unlisted = state.status === "ready" && state.board !== void 0 ? unlistedDevLeadWorkspaces(state.board, workspaces.items, sessions.byId, config?.pathPlatform) : [];
1054
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1501
+ const openNotes = (projectId) => {
1502
+ const project = state.board?.projects.find((candidate) => candidate.id === projectId);
1503
+ if (project === void 0 || notesIndex.value === void 0) return;
1504
+ const latest = sortDevLeadNotes(devLeadNotesForProject(notesIndex.value, project)?.notes ?? [])[0];
1505
+ if (latest !== void 0) setSelection({ projectId, noteId: latest.id });
1506
+ };
1507
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1055
1508
  DevLeadBoardPanelView,
1056
1509
  {
1057
1510
  state,
@@ -1063,70 +1516,107 @@ window.__ModuleLoader__.load({
1063
1516
  workspaceError: workspaces.state === "error",
1064
1517
  sessionPhase: sessions.phase,
1065
1518
  watch,
1066
- autoRefresh
1519
+ autoRefresh,
1520
+ notes: notesPaths === void 0 ? void 0 : {
1521
+ paths: notesPaths,
1522
+ index: notesIndex,
1523
+ note,
1524
+ selection,
1525
+ onOpen: openNotes,
1526
+ onSelect: (noteId) => {
1527
+ setSelection((current) => current === void 0 ? current : { ...current, noteId });
1528
+ },
1529
+ onClose: () => {
1530
+ setSelection(void 0);
1531
+ }
1532
+ }
1067
1533
  }
1068
1534
  );
1069
1535
  }
1070
- function RelativeTime({ iso, now, t }) {
1536
+ function RelativeTime({ iso, now, t, label }) {
1071
1537
  const relative = boardRelativeTime(iso, now);
1072
1538
  const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
1073
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("time", { dateTime: iso, title: iso, children: text });
1539
+ 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 });
1074
1540
  }
1075
- function ProjectField({ label, text, className = "", arrow = "\u2192" }) {
1541
+ function ProjectField({ label, text, className = "", arrow }) {
1076
1542
  if (text.trim().length === 0) return null;
1077
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: `devlead-board-field ${className}`.trim(), children: [
1078
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-field-label", children: [
1079
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1080
- label
1081
- ] }),
1082
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { title: text, children: text })
1543
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: `devlead-board-field ${className}`.trim(), "aria-label": label, children: [
1544
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
1545
+ arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1546
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
1083
1547
  ] });
1084
1548
  }
1085
- function ProjectCard({ project, now, t }) {
1086
- const idPrefix = (0, import_react2.useId)();
1549
+ function statusDot(status) {
1550
+ switch (status) {
1551
+ case "blocked":
1552
+ return "warning";
1553
+ case "active":
1554
+ return "ongoing";
1555
+ case "done":
1556
+ return "done";
1557
+ case "paused":
1558
+ return "idle";
1559
+ }
1560
+ }
1561
+ function ProjectCard({ project, now, t, notesProject, onOpenNotes }) {
1562
+ const idPrefix = (0, import_react5.useId)();
1563
+ const [tasksOpen, setTasksOpen] = (0, import_react5.useState)(false);
1087
1564
  const progress = taskProgress(project);
1088
1565
  const progressText = t("board.tasks.progress", { done: progress.done, total: progress.total });
1089
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1566
+ const latestNote = sortDevLeadNotes(notesProject?.notes ?? [])[0];
1567
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1090
1568
  "article",
1091
1569
  {
1092
1570
  className: "devlead-board-card",
1093
1571
  "data-devlead-board-project": project.id,
1094
1572
  "data-status": project.status,
1095
- tabIndex: 0,
1573
+ "data-priority": project.priority,
1096
1574
  "aria-labelledby": `${idPrefix}-title`,
1097
1575
  children: [
1098
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("header", { className: "devlead-board-card-header", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-card-heading", children: [
1099
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1100
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1576
+ /* @__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: [
1577
+ /* @__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 }) }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1579
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1101
1580
  ] }) }),
1102
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-workspace", title: project.workspace.path, children: project.workspace.path }),
1103
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-card-badges", children: [
1104
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-board-status": project.status, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Pill, { className: "devlead-board-status", children: t(`board.status.${project.status}`) }) }),
1105
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) })
1581
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", title: project.workspace.path, children: project.workspace.path }),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-badges", children: [
1583
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) }),
1584
+ latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1585
+ "button",
1586
+ {
1587
+ type: "button",
1588
+ className: "devlead-board-notes-chip",
1589
+ "data-devlead-notes-chip": project.id,
1590
+ "aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1591
+ title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1592
+ onClick: () => {
1593
+ onOpenNotes(project.id);
1594
+ },
1595
+ children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
1598
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
1599
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
1600
+ ]
1601
+ }
1602
+ )
1106
1603
  ] }),
1107
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, className: "devlead-board-field-focus" }),
1108
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, className: "devlead-board-field-next", arrow: "\u2197" }),
1109
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, className: "devlead-board-field-goal", arrow: "\xB7" }),
1110
- project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
1111
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("h6", { children: [
1112
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, className: "devlead-board-field-focus" }),
1605
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, className: "devlead-board-field-next", arrow: "\u2192" }),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, className: "devlead-board-field-goal" }),
1607
+ project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
1608
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("h6", { children: [
1609
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
1113
1610
  t("board.blockers")
1114
1611
  ] }),
1115
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { children: project.blockers.map((blocker) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { children: [
1116
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { title: blocker.text, children: blocker.text }),
1117
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-blocker-since", children: [
1118
- t("board.blocker.since"),
1119
- " ",
1120
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: blocker.since, now, t })
1121
- ] })
1612
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { children: project.blockers.map((blocker) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("li", { children: [
1613
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: blocker.text, children: blocker.text }),
1614
+ /* @__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") }) })
1122
1615
  ] }, blocker.id)) })
1123
1616
  ] }),
1124
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-progress", children: [
1125
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-progress-heading", children: [
1126
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t("board.tasks.label") }),
1127
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.tasks.count", { done: progress.done, total: progress.total }) })
1128
- ] }),
1129
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1617
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", title: progressText, children: [
1618
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: progressText }),
1619
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1130
1620
  "progress",
1131
1621
  {
1132
1622
  "data-devlead-board-progress": project.id,
@@ -1137,76 +1627,125 @@ window.__ModuleLoader__.load({
1137
1627
  }
1138
1628
  )
1139
1629
  ] }),
1140
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1630
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1141
1631
  "details",
1142
1632
  {
1143
1633
  className: "devlead-board-tasks",
1144
1634
  "data-devlead-board-tasks": project.id,
1145
1635
  "aria-labelledby": `${idPrefix}-tasks`,
1636
+ open: tasksOpen,
1637
+ onToggle: (event) => {
1638
+ setTasksOpen(event.currentTarget.open);
1639
+ },
1146
1640
  children: [
1147
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("summary", { id: `${idPrefix}-tasks`, children: t("board.tasks.summary", { done: progress.done, total: progress.total }) }),
1148
- project.tasks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "devlead-board-muted", children: t("board.tasks.empty") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { children: project.tasks.map((task) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { "data-task-status": task.status, children: [
1149
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-task-heading", children: [
1150
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-task-title", title: task.title, children: task.title }),
1151
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: taskStatusTone(task.status), children: t(`board.task.status.${task.status}`) })
1641
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("summary", { id: `${idPrefix}-tasks`, "aria-label": t("board.tasks.summary", { done: progress.done, total: progress.total }), children: [
1642
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t("board.tasks.details") }),
1643
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: t("board.tasks.count", { done: progress.done, total: progress.total }) })
1644
+ ] }),
1645
+ project.tasks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "devlead-board-muted", children: t("board.tasks.empty") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { children: project.tasks.map((task) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("li", { "data-task-status": task.status, children: [
1646
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-task-heading", children: [
1647
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-task-title", title: task.title, children: task.title }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: taskStatusTone(task.status), children: t(`board.task.status.${task.status}`) })
1152
1649
  ] }),
1153
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-task-meta", children: [
1154
- task.ownerSessionId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("code", { title: task.ownerSessionId, children: [
1155
- t("board.task.owner"),
1156
- " ",
1157
- truncateSessionId(task.ownerSessionId)
1158
- ] }),
1159
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: task.updatedAt, now, t })
1650
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-task-meta", children: [
1651
+ task.ownerSessionId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { title: task.ownerSessionId, "aria-label": t("board.task.owner"), children: truncateSessionId(task.ownerSessionId) }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: task.updatedAt, now, t })
1160
1653
  ] })
1161
1654
  ] }, task.id)) })
1162
1655
  ]
1163
1656
  }
1164
1657
  ),
1165
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("footer", { className: "devlead-board-card-footer", children: [
1166
- t("board.project.updated"),
1167
- " ",
1168
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: project.updatedAt, now, t })
1658
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", children: [
1659
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 12 }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: project.updatedAt, now, t, label: t("board.project.updated") })
1169
1661
  ] })
1170
1662
  ]
1171
1663
  }
1172
1664
  );
1173
1665
  }
1174
- function ProjectGroup({ group, idPrefix, now, t }) {
1666
+ function ProjectGroup({ group, idPrefix, now, t, notes }) {
1175
1667
  const headingId = `${idPrefix}-group-${group.status}`;
1176
1668
  const secondary = group.status === "paused" || group.status === "done";
1177
- const cards = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "devlead-board-cards", children: group.projects.map((project) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectCard, { project, now, t }, project.id)) });
1669
+ const cards = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "devlead-board-cards", children: group.projects.map((project) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1670
+ ProjectCard,
1671
+ {
1672
+ project,
1673
+ now,
1674
+ t,
1675
+ notesProject: notes?.index.value === void 0 ? void 0 : devLeadNotesForProject(notes.index.value, project),
1676
+ onOpenNotes: notes?.onOpen
1677
+ },
1678
+ project.id
1679
+ )) });
1178
1680
  if (secondary) {
1179
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1180
- "details",
1181
- {
1182
- className: "devlead-board-group devlead-board-secondary",
1183
- "data-board-group": group.status,
1184
- "aria-labelledby": headingId,
1185
- children: [
1186
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("summary", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("h4", { id: headingId, children: [
1187
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t(`board.status.${group.status}`) }),
1188
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
1189
- ] }) }),
1190
- cards
1191
- ]
1192
- }
1193
- );
1681
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("details", { className: "devlead-board-group devlead-board-secondary", "data-board-group": group.status, "aria-labelledby": headingId, children: [
1682
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("summary", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("h4", { id: headingId, children: [
1683
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t(`board.status.${group.status}`) }),
1684
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
1685
+ ] }) }),
1686
+ cards
1687
+ ] });
1194
1688
  }
1195
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1196
- "section",
1689
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-group", "data-board-group": group.status, "aria-labelledby": headingId, children: [
1690
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-group-header", children: [
1691
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { id: headingId, children: t(`board.status.${group.status}`) }),
1692
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
1693
+ ] }),
1694
+ cards
1695
+ ] });
1696
+ }
1697
+ function NotesState({ kind, t, message }) {
1698
+ const error = kind === "error";
1699
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-notes-state", "data-devlead-notes-state": kind, role: error ? "alert" : "status", children: [
1700
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: error ? "!" : kind === "loading" ? "\xB7\xB7\xB7" : "\u25CB" }),
1701
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { children: t(`board.notes.${kind}`) }),
1702
+ message !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { title: message, children: message })
1703
+ ] });
1704
+ }
1705
+ function NoteList({ notes, selected, now, t, onSelect }) {
1706
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("nav", { className: "devlead-notes-list", "aria-label": t("board.notes.list"), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { children: notes.map((note) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1707
+ "button",
1197
1708
  {
1198
- className: "devlead-board-group",
1199
- "data-board-group": group.status,
1200
- "aria-labelledby": headingId,
1709
+ type: "button",
1710
+ "data-devlead-note": note.id,
1711
+ "aria-current": note.id === selected ? "page" : void 0,
1712
+ onClick: () => {
1713
+ onSelect(note.id);
1714
+ },
1201
1715
  children: [
1202
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "devlead-board-group-header", children: [
1203
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { id: headingId, children: t(`board.status.${group.status}`) }),
1204
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
1205
- ] }),
1206
- cards
1716
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { title: note.title, children: note.title }),
1717
+ note.summary.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: note.summary, children: note.summary }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: note.updatedAt, now, t })
1207
1719
  ]
1208
1720
  }
1209
- );
1721
+ ) }, note.id)) }) });
1722
+ }
1723
+ function DevLeadNotesReader({ project, notesProject, notes, now, t }) {
1724
+ const idPrefix = (0, import_react5.useId)();
1725
+ const sorted = sortDevLeadNotes(notesProject?.notes ?? []);
1726
+ const metadata = sorted.find((note) => note.id === notes.selection?.noteId) ?? sorted[0];
1727
+ const expectedPath = metadata === void 0 ? void 0 : resolveDevLeadNotePath(notes.paths, metadata);
1728
+ const documentReady = notes.note.status === "ready" && notes.note.value !== void 0 && notes.note.valuePath === expectedPath;
1729
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-notes-reader", "data-devlead-notes-reader": project.id, "aria-labelledby": `${idPrefix}-title`, children: [
1730
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-notes-reader-header", children: [
1731
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.notes.back"), side: "right", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Button, { variant: "ghost", size: "sm", className: "devlead-notes-back", "aria-label": t("board.notes.back"), onClick: notes.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronLeftOutlineRegular, { size: 16 }) }) }),
1732
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
1733
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h3", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1734
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t("board.notes.count", { count: sorted.length }) })
1735
+ ] })
1736
+ ] }),
1737
+ notes.index.status === "loading" || notes.index.status === "disabled" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "loading", t }) : notes.index.status === "empty" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "empty", t }) : notes.index.status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "error", t, message: notes.index.error?.message }) : metadata === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "empty", t }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-notes-reader-body", children: [
1738
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NoteList, { notes: sorted, selected: metadata.id, now, t, onSelect: notes.onSelect }),
1739
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("article", { className: "devlead-note-document", "data-devlead-note-document": metadata.id, children: [
1740
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { children: [
1741
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { title: metadata.title, children: metadata.title }),
1742
+ metadata.summary.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: metadata.summary }),
1743
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: metadata.updatedAt, now, t, label: t("board.project.updated") })
1744
+ ] }),
1745
+ notes.note.status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "error", t, message: notes.note.error?.message }) : notes.note.status === "empty" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "note-empty", t }) : !documentReady ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NotesState, { kind: "loading", t }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DevLeadMarkdown, { markdown: notes.note.value?.markdown ?? "" })
1746
+ ] })
1747
+ ] })
1748
+ ] });
1210
1749
  }
1211
1750
  function DevLeadBoardPanelView({
1212
1751
  state,
@@ -1218,9 +1757,10 @@ window.__ModuleLoader__.load({
1218
1757
  workspaceError = false,
1219
1758
  sessionPhase = "ready",
1220
1759
  watch = "live",
1221
- autoRefresh = "active"
1760
+ autoRefresh = "active",
1761
+ notes
1222
1762
  }) {
1223
- const idPrefix = (0, import_react2.useId)();
1763
+ const idPrefix = (0, import_react5.useId)();
1224
1764
  if (state.status === "disabled") return null;
1225
1765
  const board = state.board;
1226
1766
  const groups = board === void 0 ? [] : groupDevLeadBoardProjects(board);
@@ -1230,14 +1770,17 @@ window.__ModuleLoader__.load({
1230
1770
  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";
1231
1771
  const endedKey = autoRefresh === "active" ? "board.watch.ended" : autoRefresh === "paused" ? "board.watch.ended.paused" : "board.watch.ended.disabled";
1232
1772
  const statusText = state.status === "error" ? t("board.refresh.error") : watch === "ended" ? t(endedKey) : autoRefresh === "paused" ? t("board.autoRefresh.paused") : state.refreshing || state.status === "loading" ? t("board.refresh.loading") : watch === "connecting" ? t("board.watch.connecting") : t(`board.autoRefresh.${autoRefresh}`);
1233
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
1234
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "devlead-board-header", children: [
1235
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-title-row", children: [
1236
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-title-group", children: [
1237
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { children: t("board.title") }),
1238
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
1773
+ 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}`);
1774
+ const readerProject = notes?.selection === void 0 || board === void 0 ? void 0 : board.projects.find((project) => project.id === notes.selection?.projectId);
1775
+ const readerNotesProject = readerProject === void 0 || notes?.index.value === void 0 ? void 0 : devLeadNotesForProject(notes.index.value, readerProject);
1776
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
1777
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-header", children: [
1778
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-row", children: [
1779
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-group", children: [
1780
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h3", { children: t("board.title") }),
1781
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
1239
1782
  ] }),
1240
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1783
+ /* @__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)(
1241
1784
  import_dsh_client_ui_primitives3.Button,
1242
1785
  {
1243
1786
  variant: "ghost",
@@ -1247,113 +1790,112 @@ window.__ModuleLoader__.load({
1247
1790
  "aria-busy": state.refreshing,
1248
1791
  disabled: state.refreshing,
1249
1792
  onClick: onRefresh,
1250
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1793
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1251
1794
  }
1252
1795
  ) })
1253
1796
  ] }),
1254
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1255
- "div",
1256
- {
1257
- className: "devlead-board-live",
1258
- "data-auto-refresh": autoRefresh,
1259
- role: "status",
1260
- "aria-live": "polite",
1261
- "aria-atomic": "true",
1262
- children: [
1263
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 9 }),
1264
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.live") }),
1265
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: statusText })
1266
- ]
1267
- }
1268
- ),
1269
- board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dl", { className: "devlead-board-kpis", "aria-label": t("board.kpi.aria"), children: ["active", "blocked", "paused", "done"].map((status) => {
1797
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-strip", children: [
1798
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-live", "data-auto-refresh": autoRefresh, title: `${t("board.live")}: ${statusText}`, children: [
1799
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 8 }),
1800
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: t("board.live") }),
1801
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "aria-hidden": "true", children: statusText }),
1802
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1803
+ "span",
1804
+ {
1805
+ className: "devlead-sr-only",
1806
+ "data-devlead-board-live-announcement": "true",
1807
+ role: "status",
1808
+ "aria-live": "polite",
1809
+ "aria-atomic": "true",
1810
+ children: announcementText
1811
+ }
1812
+ )
1813
+ ] }),
1814
+ board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
1815
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
1816
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
1817
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
1818
+ ] }),
1819
+ /* @__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 }) })
1820
+ ] })
1821
+ ] }),
1822
+ 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) => {
1270
1823
  const count = counts[status];
1271
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { "data-devlead-board-kpi": status, "data-tone": status, children: [
1272
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dt", { children: t(`board.status.${status}`) }),
1273
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
1824
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { "data-devlead-board-kpi": status, "data-tone": status, children: [
1825
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", { children: t(`board.status.${status}`) }),
1826
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
1274
1827
  ] }, status);
1275
- }) }),
1276
- board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-meta", children: [
1277
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-updated", children: [
1278
- t("board.updated"),
1279
- " ",
1280
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: board.updatedAt, now, t })
1281
- ] }),
1282
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-revision", title: t("board.revision.full", { revision: board.revision }), children: t("board.revision", { revision: board.revision }) })
1283
- ] })
1828
+ }) })
1284
1829
  ] }),
1285
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-content", children: [
1286
- state.status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", role: "status", "data-devlead-board-loading": "true", children: [
1287
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\xB7\xB7\xB7" }),
1288
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.loading") }),
1289
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.loading.description") })
1830
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-content", children: [
1831
+ state.status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-placeholder", role: "status", "data-devlead-board-loading": "true", children: [
1832
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\xB7\xB7\xB7" }),
1833
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { children: t("board.loading") }),
1834
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.loading.description") })
1290
1835
  ] }),
1291
- state.status === "empty" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "file", children: [
1292
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u25CB" }),
1293
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.empty.title") }),
1294
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.empty.description") })
1836
+ state.status === "empty" && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "file", children: [
1837
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u25CB" }),
1838
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { children: t("board.empty.title") }),
1839
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.empty.description") })
1295
1840
  ] }),
1296
- state.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-error", role: "alert", "data-devlead-board-error": state.error?.kind ?? "read", children: [
1297
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 20 }) }),
1298
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t(state.error?.kind === "parse" ? "board.error.parse" : "board.error.read") }),
1299
- state.lastSuccessAt !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("p", { children: [
1841
+ state.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-error", role: "alert", "data-devlead-board-error": state.error?.kind ?? "read", children: [
1842
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 20 }) }),
1843
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { children: t(state.error?.kind === "parse" ? "board.error.parse" : "board.error.read") }),
1844
+ state.lastSuccessAt !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("p", { children: [
1300
1845
  t("board.lastSuccess"),
1301
1846
  " ",
1302
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: state.lastSuccessAt, now, t })
1847
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: state.lastSuccessAt, now, t })
1303
1848
  ] }),
1304
- state.error !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-error-detail", title: state.error.message, children: state.error.message }),
1305
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_dsh_client_ui_primitives3.Button, { variant: "outline", size: "sm", onClick: onRefresh, disabled: state.refreshing, children: [
1306
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 14 }),
1849
+ state.error !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-error-detail", title: state.error.message, children: state.error.message }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_dsh_client_ui_primitives3.Button, { variant: "outline", size: "sm", onClick: onRefresh, disabled: state.refreshing, children: [
1851
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 14 }),
1307
1852
  t("board.retry")
1308
1853
  ] })
1309
1854
  ] }),
1310
- state.status === "ready" && board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
1311
- blocked > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-blocked-notice", role: "status", children: [
1312
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 16 }),
1313
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.blocked.notice", { count: blocked }) })
1855
+ state.status === "ready" && board !== void 0 && readerProject !== void 0 && notes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DevLeadNotesReader, { project: readerProject, notesProject: readerNotesProject, notes, now, t }),
1856
+ state.status === "ready" && board !== void 0 && readerProject === void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1857
+ blocked > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-blocked-notice", role: "status", children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 16 }),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: t("board.blocked.notice", { count: blocked }) })
1860
+ ] }),
1861
+ notes?.index.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-notes-notice", role: "status", title: notes.index.error?.message, children: [
1862
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconListPenOutlineRegular, { size: 13 }),
1863
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t("board.notes.unavailable") })
1314
1864
  ] }),
1315
- board.projects.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "projects", children: [
1316
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u2713" }),
1317
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.emptyProjects.title") }),
1318
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.emptyProjects.description") })
1865
+ board.projects.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "projects", children: [
1866
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u2713" }),
1867
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h4", { children: t("board.emptyProjects.title") }),
1868
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.emptyProjects.description") })
1319
1869
  ] }),
1320
- groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectGroup, { group, idPrefix, now, t }, group.status))
1870
+ groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectGroup, { group, idPrefix, now, t, notes }, group.status))
1321
1871
  ] }),
1322
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1323
- "details",
1324
- {
1325
- className: "devlead-board-unlisted devlead-board-secondary",
1326
- "data-devlead-board-unlisted": "true",
1327
- "aria-labelledby": `${idPrefix}-unlisted`,
1328
- children: [
1329
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("summary", { id: `${idPrefix}-unlisted`, children: [
1330
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t("board.unlisted.title") }),
1331
- unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: unlisted.length })
1332
- ] }),
1333
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-unlisted-body", children: [
1334
- state.status !== "ready" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.unavailable") }),
1335
- state.status === "ready" && workspaceError && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { role: "alert", children: t("board.unlisted.error") }),
1336
- state.status === "ready" && !workspaceError && workspacePhase === "pending" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.pending") }),
1337
- state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.empty") }),
1338
- state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "devlead-board-unlisted-list", children: unlisted.map((workspace) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { "data-devlead-board-unlisted-project": workspace.workspaceId, children: [
1339
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { title: workspace.title, children: workspace.title }),
1340
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { title: workspace.path, children: workspace.path }),
1341
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
1342
- t("board.unlisted.sessions", { count: workspace.sessionCount }),
1343
- " \xB7 ",
1344
- sessionPhase === "pending" && workspace.sessionCount > 0 ? t("board.unlisted.activityPending") : workspace.lastActivityAt === void 0 ? t("board.unlisted.noActivity") : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: workspace.lastActivityAt, now, t })
1345
- ] })
1346
- ] }, workspace.workspaceId)) })
1872
+ readerProject === void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("details", { className: "devlead-board-unlisted devlead-board-secondary", "data-devlead-board-unlisted": "true", "aria-labelledby": `${idPrefix}-unlisted`, children: [
1873
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("summary", { id: `${idPrefix}-unlisted`, children: [
1874
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: t("board.unlisted.title") }),
1875
+ unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: unlisted.length })
1876
+ ] }),
1877
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-unlisted-body", children: [
1878
+ state.status !== "ready" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.unlisted.unavailable") }),
1879
+ state.status === "ready" && workspaceError && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { role: "alert", children: t("board.unlisted.error") }),
1880
+ state.status === "ready" && !workspaceError && workspacePhase === "pending" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.unlisted.pending") }),
1881
+ state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { children: t("board.unlisted.empty") }),
1882
+ state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { className: "devlead-board-unlisted-list", children: unlisted.map((workspace) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("li", { "data-devlead-board-unlisted-project": workspace.workspaceId, children: [
1883
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { title: workspace.title, children: workspace.title }),
1884
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { title: workspace.path, children: workspace.path }),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
1886
+ t("board.unlisted.sessions", { count: workspace.sessionCount }),
1887
+ " \xB7 ",
1888
+ sessionPhase === "pending" && workspace.sessionCount > 0 ? t("board.unlisted.activityPending") : workspace.lastActivityAt === void 0 ? t("board.unlisted.noActivity") : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: workspace.lastActivityAt, now, t })
1347
1889
  ] })
1348
- ]
1349
- }
1350
- )
1890
+ ] }, workspace.workspaceId)) })
1891
+ ] })
1892
+ ] })
1351
1893
  ] })
1352
1894
  ] });
1353
1895
  }
1354
1896
 
1355
1897
  // packages/client-ui/src/client/DevLeadIconToggle.tsx
1356
- var import_react4 = require("react");
1898
+ var import_react7 = require("react");
1357
1899
  var import_dsh_client_ui_primitives4 = require("@deepseek-ai/dsh-client-ui-primitives");
1358
1900
 
1359
1901
  // packages/client-ui/src/client/results.ts
@@ -1442,19 +1984,19 @@ window.__ModuleLoader__.load({
1442
1984
  }
1443
1985
 
1444
1986
  // packages/client-ui/src/client/useDevLeadAdmission.ts
1445
- var import_react3 = require("react");
1987
+ var import_react6 = require("react");
1446
1988
  function useDevLeadAdmission(executeCommand, resetKey) {
1447
- const [state, dispatch] = (0, import_react3.useReducer)(devLeadAdmissionReducer, DEVLEAD_ADMISSION_IDLE);
1448
- const [gate] = (0, import_react3.useState)(createDevLeadAdmissionGate);
1449
- const aliveRef = (0, import_react3.useRef)(true);
1450
- (0, import_react3.useEffect)(() => {
1989
+ const [state, dispatch] = (0, import_react6.useReducer)(devLeadAdmissionReducer, DEVLEAD_ADMISSION_IDLE);
1990
+ const [gate] = (0, import_react6.useState)(createDevLeadAdmissionGate);
1991
+ const aliveRef = (0, import_react6.useRef)(true);
1992
+ (0, import_react6.useEffect)(() => {
1451
1993
  aliveRef.current = true;
1452
1994
  return () => {
1453
1995
  aliveRef.current = false;
1454
1996
  };
1455
1997
  }, []);
1456
- const resetKeyRef = (0, import_react3.useRef)(resetKey);
1457
- (0, import_react3.useEffect)(() => {
1998
+ const resetKeyRef = (0, import_react6.useRef)(resetKey);
1999
+ (0, import_react6.useEffect)(() => {
1458
2000
  resetKeyRef.current = resetKey;
1459
2001
  dispatch({ type: "reset" });
1460
2002
  }, [resetKey]);
@@ -1473,13 +2015,13 @@ window.__ModuleLoader__.load({
1473
2015
  }
1474
2016
 
1475
2017
  // packages/client-ui/src/client/DevLeadIconToggle.tsx
1476
- var import_jsx_runtime4 = require("react/jsx-runtime");
2018
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1477
2019
  function DevLeadIconToggle({ useSession, useProjection, executeCommand, t }) {
1478
2020
  const subagent = useSession((snapshot) => snapshot.subagent !== null) ?? false;
1479
2021
  const projection = useProjection(DEVLEAD_PROJECTION_KEY);
1480
2022
  const enabled = projection?.enabled ?? false;
1481
2023
  const { pending, failure, run } = useDevLeadAdmission(executeCommand, enabled);
1482
- const [attempt, setAttempt] = (0, import_react4.useState)("on");
2024
+ const [attempt, setAttempt] = (0, import_react7.useState)("on");
1483
2025
  if (subagent) return null;
1484
2026
  if (projection === void 0) return null;
1485
2027
  const direction = enabled ? "off" : "on";
@@ -1494,8 +2036,8 @@ window.__ModuleLoader__.load({
1494
2036
  attempt === "off" ? "toggle.failed.status.disable" : "toggle.failed.status",
1495
2037
  { message: failureText }
1496
2038
  );
1497
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1498
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2039
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
2040
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1499
2041
  import_dsh_client_ui_primitives4.Tooltip,
1500
2042
  {
1501
2043
  label,
@@ -1504,7 +2046,7 @@ window.__ModuleLoader__.load({
1504
2046
  maxWidth: 300,
1505
2047
  portal: true,
1506
2048
  openOnClick: failure !== null,
1507
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2049
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1508
2050
  import_dsh_client_ui_primitives4.Button,
1509
2051
  {
1510
2052
  variant: "ghost",
@@ -1523,44 +2065,44 @@ window.__ModuleLoader__.load({
1523
2065
  run(`/${DEVLEAD_COMMAND_NAME} ${direction}`);
1524
2066
  },
1525
2067
  children: [
1526
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives4.IconUsersOutlineRegular, { size: 16 }),
1527
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-toggle-label", children: t("toggle.label") })
2068
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dsh_client_ui_primitives4.IconUsersOutlineRegular, { size: 16 }),
2069
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-toggle-label", children: t("toggle.label") })
1528
2070
  ]
1529
2071
  }
1530
2072
  )
1531
2073
  }
1532
2074
  ),
1533
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: status })
2075
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: status })
1534
2076
  ] });
1535
2077
  }
1536
2078
 
1537
2079
  // packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
1538
2080
  var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
1539
- var import_jsx_runtime5 = require("react/jsx-runtime");
2081
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1540
2082
  function DevLeadSessionHoverMark({ sessionId, useSessions, t }) {
1541
2083
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
1542
2084
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
1543
2085
  if (enabled) {
1544
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
1545
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-active-dot" }) }),
1546
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: t("row.hover.enabled") })
2086
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
2087
+ /* @__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" }) }),
2088
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: t("row.hover.enabled") })
1547
2089
  ] });
1548
2090
  }
1549
2091
  if (!watched) return null;
1550
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
1551
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dsh_client_ui_primitives5.IconGoalOutlineRegular, { size: 14 }) }),
1552
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: t("row.hover.watched") })
2092
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
2093
+ /* @__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 }) }),
2094
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: t("row.hover.watched") })
1553
2095
  ] });
1554
2096
  }
1555
2097
 
1556
2098
  // packages/client-ui/src/client/DevLeadSessionMark.tsx
1557
2099
  var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
1558
- var import_jsx_runtime6 = require("react/jsx-runtime");
2100
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1559
2101
  function DevLeadSessionMark({ sessionId, useSessions, t }) {
1560
2102
  const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
1561
2103
  const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
1562
2104
  if (enabled) {
1563
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2105
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1564
2106
  "span",
1565
2107
  {
1566
2108
  className: "devlead-sr-only",
@@ -1571,14 +2113,14 @@ window.__ModuleLoader__.load({
1571
2113
  );
1572
2114
  }
1573
2115
  if (!watched) return null;
1574
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2116
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1575
2117
  "span",
1576
2118
  {
1577
2119
  className: "devlead-row-mark devlead-row-mark-watched",
1578
2120
  role: "img",
1579
2121
  "aria-label": t("row.watched.aria"),
1580
2122
  "data-devlead-row-mark": "watched",
1581
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
2123
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
1582
2124
  }
1583
2125
  );
1584
2126
  }
@@ -1678,7 +2220,18 @@ window.__ModuleLoader__.load({
1678
2220
  "board.tasks.count": "{done}/{total}",
1679
2221
  "board.tasks.progress": "\u4EFB\u52A1\u8FDB\u5EA6\uFF1A{total} \u9879\u4E2D\u5DF2\u5B8C\u6210 {done} \u9879",
1680
2222
  "board.tasks.summary": "\u67E5\u770B\u4EFB\u52A1\u8BE6\u60C5\uFF08{done}/{total} \u5DF2\u5B8C\u6210\uFF09",
2223
+ "board.tasks.details": "\u4EFB\u52A1",
1681
2224
  "board.tasks.empty": "\u8FD8\u6CA1\u6709\u4EFB\u52A1",
2225
+ "board.notes.open": "\u6253\u5F00\u9879\u76EE\u7B14\u8BB0\uFF0C\u5171 {count} \u7BC7\uFF0C\u6700\u8FD1\uFF1A{title}",
2226
+ "board.notes.short": "\u7B14\u8BB0",
2227
+ "board.notes.count": "{count} \u7BC7\u7B14\u8BB0",
2228
+ "board.notes.list": "\u9879\u76EE\u7B14\u8BB0\u5217\u8868",
2229
+ "board.notes.back": "\u8FD4\u56DE\u9879\u76EE\u770B\u677F",
2230
+ "board.notes.loading": "\u6B63\u5728\u8BFB\u53D6\u9879\u76EE\u7B14\u8BB0\u2026",
2231
+ "board.notes.empty": "\u8FD9\u4E2A\u9879\u76EE\u8FD8\u6CA1\u6709\u7B14\u8BB0",
2232
+ "board.notes.error": "\u9879\u76EE\u7B14\u8BB0\u8BFB\u53D6\u5931\u8D25",
2233
+ "board.notes.note-empty": "\u8FD9\u7BC7\u7B14\u8BB0\u6682\u65F6\u4E0D\u53EF\u7528",
2234
+ "board.notes.unavailable": "\u7B14\u8BB0\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u770B\u677F\u4E0D\u53D7\u5F71\u54CD",
1682
2235
  "board.task.owner": "\u8D1F\u8D23\u4F1A\u8BDD",
1683
2236
  "board.task.status.todo": "\u5F85\u529E",
1684
2237
  "board.task.status.doing": "\u8FDB\u884C\u4E2D",
@@ -1804,7 +2357,18 @@ window.__ModuleLoader__.load({
1804
2357
  "board.tasks.count": "{done}/{total}",
1805
2358
  "board.tasks.progress": "Task progress: {done} of {total} complete",
1806
2359
  "board.tasks.summary": "View task details ({done}/{total} done)",
2360
+ "board.tasks.details": "Tasks",
1807
2361
  "board.tasks.empty": "No tasks yet",
2362
+ "board.notes.open": "Open project notes: {count} note(s), latest: {title}",
2363
+ "board.notes.short": "Notes",
2364
+ "board.notes.count": "{count} note(s)",
2365
+ "board.notes.list": "Project notes",
2366
+ "board.notes.back": "Back to project board",
2367
+ "board.notes.loading": "Reading project notes\u2026",
2368
+ "board.notes.empty": "This project has no notes yet",
2369
+ "board.notes.error": "Could not read project notes",
2370
+ "board.notes.note-empty": "This note is temporarily unavailable",
2371
+ "board.notes.unavailable": "Notes are temporarily unavailable; the board is unaffected",
1808
2372
  "board.task.owner": "Owner",
1809
2373
  "board.task.status.todo": "To do",
1810
2374
  "board.task.status.doing": "Doing",
@@ -2232,9 +2796,8 @@ window.__ModuleLoader__.load({
2232
2796
  align-items: center;
2233
2797
  }
2234
2798
 
2235
- /* Read-only project board: a compact operational overview above a responsive
2236
- project canvas. All colors and elevation come from the Harness theme tokens;
2237
- container queries respond to the actual Sidebar width, not the window. */
2799
+ /* Read-only board: quiet operational typography, no decorative gradients.
2800
+ Container queries follow the actual pane: 1 / 2 / 3 columns as room allows. */
2238
2801
  .devlead-board-open {
2239
2802
  flex: none;
2240
2803
  width: 28px;
@@ -2259,27 +2822,20 @@ window.__ModuleLoader__.load({
2259
2822
  color: var(--dsw-alias-label-primary, CanvasText);
2260
2823
  font-family: inherit;
2261
2824
  font-size: 13px;
2262
- line-height: 20px;
2825
+ line-height: 19px;
2263
2826
  }
2264
2827
 
2265
2828
  .devlead-board-header {
2266
- position: relative;
2267
2829
  flex: none;
2268
2830
  min-width: 0;
2269
- padding: 14px;
2270
- overflow: hidden;
2831
+ padding: 10px 11px 9px;
2271
2832
  border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2272
- background:
2273
- linear-gradient(
2274
- 135deg,
2275
- color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 7%, transparent),
2276
- transparent 68%
2277
- ),
2278
- var(--dsw-specific-menu, Canvas);
2833
+ background: var(--dsw-specific-menu, Canvas);
2279
2834
  }
2280
2835
 
2281
2836
  .devlead-board-title-row,
2282
2837
  .devlead-board-title-group,
2838
+ .devlead-board-header-strip,
2283
2839
  .devlead-board-live,
2284
2840
  .devlead-board-meta,
2285
2841
  .devlead-board-card-header,
@@ -2294,13 +2850,12 @@ window.__ModuleLoader__.load({
2294
2850
 
2295
2851
  .devlead-board-title-row {
2296
2852
  justify-content: space-between;
2297
- gap: 10px;
2853
+ gap: 8px;
2298
2854
  }
2299
2855
 
2300
2856
  .devlead-board-title-group {
2301
2857
  flex: 1 1 auto;
2302
- flex-wrap: wrap;
2303
- gap: 8px;
2858
+ gap: 7px;
2304
2859
  }
2305
2860
 
2306
2861
  .devlead-board-title-group h3,
@@ -2308,7 +2863,8 @@ window.__ModuleLoader__.load({
2308
2863
  .devlead-board-group h4,
2309
2864
  .devlead-board-placeholder h4,
2310
2865
  .devlead-board-error h4,
2311
- .devlead-board-blockers h6 {
2866
+ .devlead-board-blockers h6,
2867
+ .devlead-notes-state h4 {
2312
2868
  min-width: 0;
2313
2869
  margin: 0;
2314
2870
  font: inherit;
@@ -2317,22 +2873,20 @@ window.__ModuleLoader__.load({
2317
2873
 
2318
2874
  .devlead-board-title-group h3 {
2319
2875
  overflow: hidden;
2320
- font-size: 16px;
2321
- line-height: 24px;
2322
- letter-spacing: -0.01em;
2876
+ font-size: 15px;
2877
+ line-height: 22px;
2878
+ letter-spacing: -0.015em;
2323
2879
  text-overflow: ellipsis;
2324
2880
  white-space: nowrap;
2325
2881
  }
2326
2882
 
2327
- .devlead-board-refresh {
2883
+ .devlead-board-refresh,
2884
+ .devlead-notes-back {
2328
2885
  flex: none;
2329
2886
  width: 28px;
2330
2887
  border-radius: var(--dsw-radius-md, 8px);
2331
2888
  color: var(--dsw-alias-label-secondary, GrayText);
2332
- transition:
2333
- color 120ms ease,
2334
- background-color 120ms ease,
2335
- transform 120ms ease;
2889
+ transition: color 120ms ease, background-color 120ms ease;
2336
2890
  }
2337
2891
 
2338
2892
  .devlead-board-refresh[aria-busy="true"] > svg {
@@ -2343,49 +2897,83 @@ window.__ModuleLoader__.load({
2343
2897
  to { transform: rotate(360deg); }
2344
2898
  }
2345
2899
 
2346
- .devlead-board-live {
2900
+ .devlead-board-header-strip {
2347
2901
  flex-wrap: wrap;
2348
- gap: 3px 6px;
2349
- margin-top: 5px;
2350
- color: var(--dsw-alias-label-secondary, GrayText);
2351
- font-size: 11px;
2352
- line-height: 18px;
2902
+ justify-content: space-between;
2903
+ gap: 3px 10px;
2904
+ margin-top: 2px;
2353
2905
  }
2354
2906
 
2355
- .devlead-board-live > strong {
2356
- color: var(--dsw-alias-state-success-primary, #2e7d32);
2907
+ .devlead-board-live {
2908
+ flex: 1 1 180px;
2909
+ gap: 5px;
2910
+ overflow: hidden;
2911
+ color: var(--dsw-alias-label-secondary, GrayText);
2357
2912
  font-size: 10px;
2358
- font-weight: 700;
2359
- letter-spacing: 0.09em;
2360
- text-transform: uppercase;
2913
+ line-height: 16px;
2914
+ }
2915
+
2916
+ .devlead-board-live > span:last-child {
2917
+ overflow: hidden;
2918
+ text-overflow: ellipsis;
2919
+ white-space: nowrap;
2361
2920
  }
2362
2921
 
2363
- .devlead-board-live[data-auto-refresh="paused"] > strong {
2922
+ .devlead-board-live[data-auto-refresh="paused"] {
2364
2923
  color: var(--dsw-alias-state-warn-primary, #a15c00);
2365
2924
  }
2366
2925
 
2367
- .devlead-board-live[data-auto-refresh="disabled"] > strong {
2926
+ .devlead-board-meta {
2927
+ flex: 0 1 auto;
2928
+ justify-content: flex-end;
2929
+ gap: 7px;
2368
2930
  color: var(--dsw-alias-label-tertiary, GrayText);
2931
+ font-size: 10px;
2932
+ line-height: 16px;
2933
+ }
2934
+
2935
+ .devlead-board-updated {
2936
+ display: inline-flex;
2937
+ min-width: 0;
2938
+ align-items: center;
2939
+ gap: 3px;
2940
+ white-space: nowrap;
2941
+ }
2942
+
2943
+ .devlead-board-revision {
2944
+ flex: none;
2945
+ padding: 0 5px;
2946
+ border-radius: var(--dsw-radius-sm, 4px);
2947
+ background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
2948
+ color: var(--dsw-alias-label-secondary, GrayText);
2949
+ font-variant-numeric: tabular-nums;
2369
2950
  }
2370
2951
 
2371
2952
  .devlead-board-kpis {
2372
- display: grid;
2373
- grid-template-columns: repeat(4, minmax(0, 1fr));
2374
- gap: 6px;
2953
+ display: flex;
2375
2954
  min-width: 0;
2376
- margin: 12px 0 0;
2955
+ gap: 5px;
2956
+ margin: 7px 0 0;
2957
+ overflow-x: auto;
2958
+ scrollbar-width: none;
2959
+ }
2960
+
2961
+ .devlead-board-kpis::-webkit-scrollbar {
2962
+ display: none;
2377
2963
  }
2378
2964
 
2379
2965
  .devlead-board-kpis > div {
2380
- display: flex;
2966
+ display: inline-flex;
2967
+ flex: 1 0 auto;
2381
2968
  min-width: 0;
2969
+ align-items: baseline;
2970
+ justify-content: center;
2971
+ gap: 5px;
2382
2972
  margin: 0;
2383
- padding: 7px 8px;
2384
- overflow: hidden;
2973
+ padding: 2px 7px;
2385
2974
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2386
- border-radius: var(--dsw-radius-md, 8px);
2387
- background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 3%, transparent);
2388
- flex-direction: column-reverse;
2975
+ border-radius: 999px;
2976
+ background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
2389
2977
  }
2390
2978
 
2391
2979
  .devlead-board-kpis dt {
@@ -2393,35 +2981,23 @@ window.__ModuleLoader__.load({
2393
2981
  overflow: hidden;
2394
2982
  color: var(--dsw-alias-label-secondary, GrayText);
2395
2983
  font-size: 10px;
2396
- line-height: 16px;
2984
+ line-height: 15px;
2397
2985
  text-overflow: ellipsis;
2398
2986
  white-space: nowrap;
2399
2987
  }
2400
2988
 
2401
2989
  .devlead-board-kpis dd {
2402
- min-width: 0;
2990
+ flex: none;
2403
2991
  margin: 0;
2404
- overflow: hidden;
2405
2992
  color: var(--dsw-alias-label-primary, CanvasText);
2406
- font-size: 19px;
2993
+ font-size: 11px;
2407
2994
  font-variant-numeric: tabular-nums;
2408
2995
  font-weight: 700;
2409
- line-height: 23px;
2410
- text-overflow: ellipsis;
2411
- }
2412
-
2413
- .devlead-board-kpis > div[data-tone="active"] {
2414
- border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 34%, transparent);
2415
- background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 8%, transparent);
2416
- }
2417
-
2418
- .devlead-board-kpis > div[data-tone="active"] dd {
2419
- color: var(--dsw-alias-state-business-primary, #4176e6);
2420
2996
  }
2421
2997
 
2422
2998
  .devlead-board-kpis > div[data-tone="blocked"] {
2423
- border-color: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 58%, transparent);
2424
- background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
2999
+ border-color: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 48%, transparent);
3000
+ color: var(--dsw-alias-state-warn-primary, #a15c00);
2425
3001
  }
2426
3002
 
2427
3003
  .devlead-board-kpis > div[data-tone="blocked"] dd,
@@ -2433,56 +3009,28 @@ window.__ModuleLoader__.load({
2433
3009
  color: var(--dsw-alias-state-success-primary, #2e7d32);
2434
3010
  }
2435
3011
 
2436
- .devlead-board-meta {
2437
- flex-wrap: wrap;
2438
- justify-content: space-between;
2439
- gap: 4px 12px;
2440
- margin-top: 9px;
2441
- color: var(--dsw-alias-label-tertiary, GrayText);
2442
- font-size: 11px;
2443
- line-height: 16px;
2444
- }
2445
-
2446
- .devlead-board-updated {
2447
- min-width: 0;
2448
- overflow: hidden;
2449
- text-overflow: ellipsis;
2450
- white-space: nowrap;
2451
- }
2452
-
2453
- .devlead-board-revision {
2454
- flex: none;
2455
- margin-left: auto;
2456
- padding: 0 6px;
2457
- border-radius: var(--dsw-radius-sm, 4px);
2458
- background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
2459
- color: var(--dsw-alias-label-secondary, GrayText);
2460
- font-family: inherit;
2461
- font-variant-numeric: tabular-nums;
2462
- }
2463
-
2464
3012
  .devlead-board-content {
2465
3013
  flex: 1 1 auto;
2466
3014
  min-width: 0;
2467
3015
  min-height: 0;
2468
- padding: 12px;
3016
+ padding: 9px;
2469
3017
  overflow-x: hidden;
2470
3018
  overflow-y: auto;
2471
3019
  overscroll-behavior: contain;
2472
3020
  }
2473
3021
 
2474
3022
  .devlead-board-placeholder,
2475
- .devlead-board-error {
3023
+ .devlead-board-error,
3024
+ .devlead-notes-state {
2476
3025
  display: flex;
2477
3026
  align-items: center;
2478
3027
  max-width: 100%;
2479
- min-height: 180px;
2480
- margin: 8px 0;
2481
- padding: 28px 18px;
3028
+ min-height: 150px;
3029
+ margin: 5px 0;
3030
+ padding: 24px 16px;
2482
3031
  overflow: hidden;
2483
3032
  border: 1px dashed var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2484
3033
  border-radius: var(--dsw-radius-lg, 12px);
2485
- background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
2486
3034
  color: var(--dsw-alias-label-secondary, GrayText);
2487
3035
  text-align: center;
2488
3036
  flex-direction: column;
@@ -2493,15 +3041,13 @@ window.__ModuleLoader__.load({
2493
3041
  display: inline-flex;
2494
3042
  align-items: center;
2495
3043
  justify-content: center;
2496
- width: 38px;
2497
- height: 38px;
2498
- margin-bottom: 10px;
2499
- border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 28%, transparent);
3044
+ width: 34px;
3045
+ height: 34px;
3046
+ margin-bottom: 8px;
3047
+ border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2500
3048
  border-radius: 999px;
2501
- background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 8%, transparent);
2502
- color: var(--dsw-alias-state-business-primary, #4176e6);
2503
- font-size: 19px;
2504
- font-weight: 600;
3049
+ color: var(--dsw-alias-label-secondary, GrayText);
3050
+ font-size: 17px;
2505
3051
  line-height: 1;
2506
3052
  }
2507
3053
 
@@ -2509,32 +3055,26 @@ window.__ModuleLoader__.load({
2509
3055
  .devlead-board-error p,
2510
3056
  .devlead-board-unlisted-body p {
2511
3057
  max-width: 42ch;
2512
- margin: 6px 0 0;
3058
+ margin: 5px 0 0;
2513
3059
  overflow-wrap: anywhere;
2514
3060
  }
2515
3061
 
2516
3062
  .devlead-board-error {
2517
3063
  border-style: solid;
2518
3064
  border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 60%, transparent);
2519
- background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 6%, transparent);
2520
3065
  color: var(--dsw-alias-label-error, #c0392b);
2521
3066
  }
2522
3067
 
2523
- .devlead-board-error .devlead-board-state-mark {
2524
- border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 34%, transparent);
2525
- background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 10%, transparent);
2526
- color: var(--dsw-alias-state-error-primary, #c0392b);
2527
- }
2528
-
2529
- .devlead-board-error-detail {
3068
+ .devlead-board-error-detail,
3069
+ .devlead-notes-state code {
2530
3070
  display: -webkit-box;
2531
3071
  max-width: 100%;
2532
- margin: 12px 0;
3072
+ margin: 9px 0;
2533
3073
  overflow: hidden;
2534
3074
  overflow-wrap: anywhere;
2535
3075
  color: var(--dsw-alias-label-secondary, GrayText);
2536
3076
  font-family: inherit;
2537
- font-size: 12px;
3077
+ font-size: 11px;
2538
3078
  white-space: pre-wrap;
2539
3079
  -webkit-box-orient: vertical;
2540
3080
  -webkit-line-clamp: 4;
@@ -2543,15 +3083,12 @@ window.__ModuleLoader__.load({
2543
3083
  .devlead-board-blocked-notice {
2544
3084
  display: flex;
2545
3085
  align-items: flex-start;
2546
- gap: 8px;
2547
- min-width: 0;
2548
- margin-bottom: 12px;
2549
- padding: 10px 12px;
2550
- overflow: hidden;
3086
+ gap: 7px;
3087
+ margin-bottom: 9px;
3088
+ padding: 8px 10px;
2551
3089
  border: 1px solid var(--dsw-alias-state-warn-primary, #a15c00);
2552
- border-radius: var(--dsw-radius-lg, 12px);
2553
- background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
2554
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 7%, transparent);
3090
+ border-radius: var(--dsw-radius-md, 8px);
3091
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 10%, transparent);
2555
3092
  color: var(--dsw-alias-state-warn-primary, #a15c00);
2556
3093
  }
2557
3094
 
@@ -2561,34 +3098,41 @@ window.__ModuleLoader__.load({
2561
3098
  }
2562
3099
 
2563
3100
  .devlead-board-blocked-notice > strong {
2564
- min-width: 0;
2565
3101
  overflow-wrap: anywhere;
2566
3102
  font-weight: 650;
2567
3103
  }
2568
3104
 
3105
+ .devlead-board-notes-notice {
3106
+ display: flex;
3107
+ align-items: center;
3108
+ gap: 5px;
3109
+ margin: 0 2px 8px;
3110
+ color: var(--dsw-alias-label-tertiary, GrayText);
3111
+ font-size: 11px;
3112
+ }
3113
+
2569
3114
  .devlead-board-group {
2570
3115
  min-width: 0;
2571
3116
  max-width: 100%;
2572
3117
  }
2573
3118
 
2574
3119
  .devlead-board-group + .devlead-board-group {
2575
- margin-top: 16px;
3120
+ margin-top: 12px;
2576
3121
  }
2577
3122
 
2578
3123
  .devlead-board-group-header {
2579
3124
  display: flex;
2580
3125
  align-items: center;
2581
3126
  justify-content: space-between;
2582
- gap: 8px;
2583
- min-width: 0;
2584
- margin: 0 2px 8px;
3127
+ gap: 7px;
3128
+ margin: 0 2px 6px;
2585
3129
  color: var(--dsw-alias-label-secondary, GrayText);
2586
3130
  }
2587
3131
 
2588
3132
  .devlead-board-group-header h4 {
2589
3133
  overflow: hidden;
2590
- font-size: 12px;
2591
- letter-spacing: 0.04em;
3134
+ font-size: 11px;
3135
+ letter-spacing: 0.045em;
2592
3136
  text-overflow: ellipsis;
2593
3137
  text-transform: uppercase;
2594
3138
  white-space: nowrap;
@@ -2601,7 +3145,7 @@ window.__ModuleLoader__.load({
2601
3145
  .devlead-board-cards {
2602
3146
  display: grid;
2603
3147
  grid-template-columns: minmax(0, 1fr);
2604
- gap: 10px;
3148
+ gap: 8px;
2605
3149
  min-width: 0;
2606
3150
  }
2607
3151
 
@@ -2609,64 +3153,80 @@ window.__ModuleLoader__.load({
2609
3153
  position: relative;
2610
3154
  min-width: 0;
2611
3155
  max-width: 100%;
2612
- padding: 13px;
3156
+ padding: 9px 10px 8px 12px;
2613
3157
  overflow: hidden;
2614
3158
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2615
- border-radius: var(--dsw-radius-lg, 12px);
3159
+ border-radius: var(--dsw-radius-md, 8px);
2616
3160
  background: var(--dsw-specific-menu, Canvas);
2617
- box-shadow: var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
2618
- transition:
2619
- border-color 140ms ease,
2620
- box-shadow 140ms ease,
2621
- transform 140ms ease;
3161
+ transition: border-color 120ms ease, box-shadow 120ms ease;
3162
+ }
3163
+
3164
+ .devlead-board-card::before {
3165
+ position: absolute;
3166
+ inset: 0 auto 0 0;
3167
+ width: 3px;
3168
+ background: var(--dsw-alias-label-tertiary, GrayText);
3169
+ content: '';
3170
+ pointer-events: none;
3171
+ }
3172
+
3173
+ .devlead-board-card[data-priority="high"]::before {
3174
+ background: var(--dsw-alias-state-business-primary, #4176e6);
3175
+ }
3176
+
3177
+ .devlead-board-card[data-priority="medium"]::before {
3178
+ background: var(--dsw-alias-label-tertiary, GrayText);
2622
3179
  }
2623
3180
 
2624
3181
  .devlead-board-card[data-status="blocked"] {
2625
3182
  border-color: var(--dsw-alias-state-warn-primary, #a15c00);
2626
- background:
2627
- linear-gradient(
2628
- 145deg,
2629
- color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 9%, transparent),
2630
- transparent 52%
2631
- ),
2632
- var(--dsw-specific-menu, Canvas);
2633
- box-shadow:
2634
- 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 15%, transparent),
2635
- var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
3183
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 5%, var(--dsw-specific-menu, Canvas));
3184
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
2636
3185
  }
2637
3186
 
2638
3187
  .devlead-board-card[data-status="blocked"]::before {
2639
- position: absolute;
2640
- inset: 0 auto 0 0;
2641
- width: 3px;
2642
3188
  background: var(--dsw-alias-state-warn-primary, #a15c00);
2643
- content: '';
2644
- pointer-events: none;
2645
3189
  }
2646
3190
 
2647
3191
  .devlead-board-card-header {
2648
3192
  align-items: flex-start;
2649
- flex-wrap: wrap;
2650
- gap: 8px;
2651
3193
  }
2652
3194
 
2653
3195
  .devlead-board-card-heading {
2654
- flex: 1 1 130px;
3196
+ display: grid;
3197
+ flex: 1 1 auto;
3198
+ grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr);
3199
+ align-items: center;
3200
+ gap: 5px;
2655
3201
  min-width: 0;
2656
3202
  }
2657
3203
 
3204
+ .devlead-board-card-status {
3205
+ display: inline-flex;
3206
+ align-items: center;
3207
+ justify-content: center;
3208
+ }
3209
+
2658
3210
  .devlead-board-card-heading h5 {
2659
3211
  overflow: hidden;
2660
- color: var(--dsw-alias-label-primary, CanvasText);
2661
- font-size: 14px;
2662
- line-height: 21px;
3212
+ font-size: 13px;
3213
+ line-height: 19px;
2663
3214
  text-overflow: ellipsis;
2664
3215
  white-space: nowrap;
2665
3216
  }
2666
3217
 
2667
3218
  .devlead-board-project-id {
3219
+ overflow: hidden;
3220
+ color: var(--dsw-alias-label-tertiary, GrayText);
3221
+ font-family: inherit;
3222
+ font-size: 9px;
3223
+ text-overflow: ellipsis;
3224
+ white-space: nowrap;
3225
+ }
3226
+
3227
+ .devlead-board-workspace {
2668
3228
  display: block;
2669
- margin-top: 1px;
3229
+ margin: 1px 0 0 15px;
2670
3230
  overflow: hidden;
2671
3231
  color: var(--dsw-alias-label-tertiary, GrayText);
2672
3232
  font-family: inherit;
@@ -2677,73 +3237,68 @@ window.__ModuleLoader__.load({
2677
3237
  }
2678
3238
 
2679
3239
  .devlead-board-card-badges {
2680
- flex: 0 1 auto;
2681
3240
  flex-wrap: wrap;
2682
- justify-content: flex-start;
2683
- gap: 5px;
2684
- margin-top: 6px;
3241
+ gap: 4px;
2685
3242
  min-width: 0;
2686
3243
  max-width: 100%;
3244
+ margin-top: 5px;
2687
3245
  }
2688
3246
 
2689
- .devlead-board-status {
2690
- pointer-events: none;
2691
- font-weight: 600;
3247
+ .devlead-board-card-badges > span {
3248
+ font-size: 10px;
2692
3249
  }
2693
3250
 
2694
- [data-board-status="blocked"] .devlead-board-status {
2695
- color: var(--dsw-alias-state-warn-primary, #a15c00);
3251
+ .devlead-board-notes-chip {
3252
+ display: inline-flex;
3253
+ flex: 0 1 auto;
3254
+ align-items: center;
3255
+ gap: 4px;
3256
+ min-width: 0;
3257
+ max-width: 100%;
3258
+ min-height: 28px;
3259
+ margin: 0;
3260
+ padding: 2px 8px;
3261
+ overflow: hidden;
3262
+ border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3263
+ border-radius: 999px;
3264
+ background: transparent;
3265
+ color: var(--dsw-alias-label-secondary, GrayText);
3266
+ cursor: pointer;
3267
+ font: inherit;
3268
+ font-size: 10px;
2696
3269
  }
2697
3270
 
2698
- [data-board-status="active"] .devlead-board-status {
2699
- color: var(--dsw-alias-state-business-primary, #4176e6);
3271
+ .devlead-board-notes-chip > svg,
3272
+ .devlead-board-notes-chip > strong {
3273
+ flex: none;
2700
3274
  }
2701
3275
 
2702
- [data-board-status="done"] .devlead-board-status {
2703
- color: var(--dsw-alias-state-success-primary, #2e7d32);
3276
+ .devlead-board-notes-chip > strong {
3277
+ font-variant-numeric: tabular-nums;
2704
3278
  }
2705
3279
 
2706
- .devlead-board-workspace {
2707
- display: block;
2708
- max-width: 100%;
2709
- margin-top: 6px;
3280
+ .devlead-board-notes-chip > .devlead-board-notes-chip-label {
3281
+ flex: none;
3282
+ color: var(--dsw-alias-label-primary, CanvasText);
3283
+ font-weight: 600;
3284
+ }
3285
+
3286
+ .devlead-board-notes-chip > span {
3287
+ min-width: 0;
2710
3288
  overflow: hidden;
2711
- color: var(--dsw-alias-label-tertiary, GrayText);
2712
- font-family: inherit;
2713
- font-size: 11px;
2714
- line-height: 17px;
2715
3289
  text-overflow: ellipsis;
2716
3290
  white-space: nowrap;
2717
3291
  }
2718
3292
 
2719
3293
  .devlead-board-field {
2720
3294
  min-width: 0;
2721
- margin-top: 10px;
2722
- }
2723
-
2724
- .devlead-board-field-label {
2725
- display: flex;
2726
- align-items: center;
2727
- gap: 5px;
2728
- color: var(--dsw-alias-label-tertiary, GrayText);
2729
- font-size: 10px;
2730
- font-weight: 600;
2731
- letter-spacing: 0.035em;
2732
- line-height: 16px;
2733
- text-transform: uppercase;
2734
- }
2735
-
2736
- .devlead-board-field-arrow {
2737
- flex: none;
2738
- color: var(--dsw-alias-state-business-primary, #4176e6);
2739
- font-size: 13px;
2740
- line-height: 1;
3295
+ margin-top: 7px;
2741
3296
  }
2742
3297
 
2743
3298
  .devlead-board-field p {
2744
3299
  display: -webkit-box;
2745
3300
  min-width: 0;
2746
- margin: 3px 0 0;
3301
+ margin: 0;
2747
3302
  overflow: hidden;
2748
3303
  overflow-wrap: anywhere;
2749
3304
  white-space: pre-wrap;
@@ -2751,49 +3306,51 @@ window.__ModuleLoader__.load({
2751
3306
  -webkit-line-clamp: 2;
2752
3307
  }
2753
3308
 
2754
- .devlead-board-field-goal {
2755
- margin-top: 8px;
2756
- }
2757
-
2758
- .devlead-board-field-goal .devlead-board-field-label,
2759
- .devlead-board-field-goal .devlead-board-field-arrow,
2760
- .devlead-board-field-goal p {
2761
- color: var(--dsw-alias-label-tertiary, GrayText);
2762
- }
2763
-
2764
- .devlead-board-field-goal p {
2765
- font-size: 12px;
2766
- -webkit-line-clamp: 1;
2767
- }
2768
-
2769
3309
  .devlead-board-field-focus {
2770
- margin-top: 11px;
2771
- padding: 8px 9px;
2772
- border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 14%, transparent);
2773
- border-radius: var(--dsw-radius-md, 8px);
2774
- background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 5%, transparent);
3310
+ margin-top: 8px;
2775
3311
  }
2776
3312
 
2777
3313
  .devlead-board-field-focus p {
2778
3314
  color: var(--dsw-alias-label-primary, CanvasText);
2779
3315
  font-size: 14px;
2780
3316
  font-weight: 600;
2781
- line-height: 21px;
3317
+ line-height: 20px;
2782
3318
  -webkit-line-clamp: 3;
2783
3319
  }
2784
3320
 
2785
- .devlead-board-field-next p {
3321
+ .devlead-board-field-next {
3322
+ display: flex;
3323
+ align-items: flex-start;
3324
+ gap: 6px;
2786
3325
  color: var(--dsw-alias-label-secondary, GrayText);
2787
3326
  }
2788
3327
 
3328
+ .devlead-board-field-arrow {
3329
+ flex: none;
3330
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3331
+ font-size: 14px;
3332
+ line-height: 19px;
3333
+ }
3334
+
3335
+ .devlead-board-field-next p {
3336
+ flex: 1 1 auto;
3337
+ }
3338
+
3339
+ .devlead-board-field-goal {
3340
+ margin-top: 5px;
3341
+ padding-left: 12px;
3342
+ border-left: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3343
+ color: var(--dsw-alias-label-tertiary, GrayText);
3344
+ font-size: 12px;
3345
+ }
3346
+
2789
3347
  .devlead-board-blockers {
2790
- min-width: 0;
2791
- margin-top: 11px;
2792
- padding: 9px 10px;
3348
+ margin-top: 8px;
3349
+ padding: 7px 8px;
2793
3350
  overflow: hidden;
2794
- border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 40%, transparent);
3351
+ border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 42%, transparent);
2795
3352
  border-radius: var(--dsw-radius-md, 8px);
2796
- background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 10%, transparent);
3353
+ background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 8%, transparent);
2797
3354
  color: var(--dsw-alias-state-warn-primary, #a15c00);
2798
3355
  }
2799
3356
 
@@ -2801,20 +3358,20 @@ window.__ModuleLoader__.load({
2801
3358
  display: flex;
2802
3359
  align-items: center;
2803
3360
  gap: 5px;
2804
- font-size: 12px;
3361
+ font-size: 11px;
2805
3362
  }
2806
3363
 
2807
3364
  .devlead-board-blockers ul,
2808
3365
  .devlead-board-tasks ul {
2809
3366
  min-width: 0;
2810
- margin: 6px 0 0;
3367
+ margin: 5px 0 0;
2811
3368
  padding: 0;
2812
3369
  list-style: none;
2813
3370
  }
2814
3371
 
2815
3372
  .devlead-board-blockers li + li {
2816
- margin-top: 8px;
2817
- padding-top: 8px;
3373
+ margin-top: 6px;
3374
+ padding-top: 6px;
2818
3375
  border-top: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 24%, transparent);
2819
3376
  }
2820
3377
 
@@ -2829,37 +3386,32 @@ window.__ModuleLoader__.load({
2829
3386
 
2830
3387
  .devlead-board-blocker-since {
2831
3388
  display: block;
2832
- margin-top: 2px;
3389
+ margin-top: 1px;
2833
3390
  color: var(--dsw-alias-label-secondary, GrayText);
2834
- font-size: 11px;
3391
+ font-size: 10px;
2835
3392
  }
2836
3393
 
2837
3394
  .devlead-board-progress {
2838
- min-width: 0;
2839
- margin-top: 12px;
3395
+ margin-top: 8px;
2840
3396
  }
2841
3397
 
2842
3398
  .devlead-board-progress-heading {
2843
- justify-content: space-between;
2844
- gap: 8px;
2845
- margin-bottom: 5px;
3399
+ justify-content: flex-end;
3400
+ height: 13px;
2846
3401
  color: var(--dsw-alias-label-secondary, GrayText);
2847
- font-size: 11px;
2848
- line-height: 16px;
3402
+ font-size: 10px;
3403
+ line-height: 13px;
2849
3404
  }
2850
3405
 
2851
3406
  .devlead-board-progress-heading > strong {
2852
- flex: none;
2853
- color: var(--dsw-alias-label-primary, CanvasText);
2854
3407
  font-variant-numeric: tabular-nums;
2855
- font-weight: 650;
3408
+ font-weight: 600;
2856
3409
  }
2857
3410
 
2858
3411
  .devlead-board-progress progress {
2859
3412
  display: block;
2860
3413
  width: 100%;
2861
- max-width: 100%;
2862
- height: 6px;
3414
+ height: 2px;
2863
3415
  overflow: hidden;
2864
3416
  appearance: none;
2865
3417
  border: 0;
@@ -2869,35 +3421,25 @@ window.__ModuleLoader__.load({
2869
3421
  }
2870
3422
 
2871
3423
  .devlead-board-progress progress::-webkit-progress-bar {
2872
- border-radius: 999px;
2873
3424
  background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
2874
3425
  }
2875
3426
 
2876
3427
  .devlead-board-progress progress::-webkit-progress-value {
2877
- border-radius: 999px;
2878
3428
  background: var(--dsw-alias-state-business-primary, #4176e6);
2879
3429
  }
2880
3430
 
2881
3431
  .devlead-board-progress progress::-moz-progress-bar {
2882
- border-radius: 999px;
2883
3432
  background: var(--dsw-alias-state-business-primary, #4176e6);
2884
3433
  }
2885
3434
 
2886
- .devlead-board-card[data-status="blocked"] .devlead-board-progress progress {
2887
- color: var(--dsw-alias-state-warn-primary, #a15c00);
2888
- }
2889
-
2890
- .devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-webkit-progress-value {
2891
- background: var(--dsw-alias-state-warn-primary, #a15c00);
2892
- }
2893
-
3435
+ .devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-webkit-progress-value,
2894
3436
  .devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-moz-progress-bar {
2895
3437
  background: var(--dsw-alias-state-warn-primary, #a15c00);
2896
3438
  }
2897
3439
 
2898
3440
  .devlead-board-tasks {
2899
3441
  min-width: 0;
2900
- margin-top: 9px;
3442
+ margin-top: 6px;
2901
3443
  border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2902
3444
  }
2903
3445
 
@@ -2919,9 +3461,8 @@ window.__ModuleLoader__.load({
2919
3461
  margin-left: auto;
2920
3462
  color: var(--dsw-alias-label-tertiary, GrayText);
2921
3463
  content: '\u203A';
2922
- font-size: 17px;
3464
+ font-size: 16px;
2923
3465
  font-weight: 400;
2924
- line-height: 16px;
2925
3466
  transform: rotate(0deg);
2926
3467
  transition: transform 120ms ease;
2927
3468
  }
@@ -2933,24 +3474,31 @@ window.__ModuleLoader__.load({
2933
3474
  .devlead-board-tasks > summary {
2934
3475
  display: flex;
2935
3476
  align-items: center;
2936
- gap: 8px;
2937
- padding: 8px 2px 2px;
3477
+ gap: 6px;
3478
+ padding: 6px 1px 0;
2938
3479
  overflow: hidden;
2939
3480
  font-size: 11px;
2940
- line-height: 18px;
2941
- text-overflow: ellipsis;
2942
- white-space: nowrap;
3481
+ }
3482
+
3483
+ .devlead-board-tasks > summary strong {
3484
+ margin-left: auto;
3485
+ font-size: 10px;
3486
+ font-variant-numeric: tabular-nums;
3487
+ }
3488
+
3489
+ .devlead-board-tasks > summary::after {
3490
+ margin-left: 1px;
2943
3491
  }
2944
3492
 
2945
3493
  .devlead-board-tasks li {
2946
3494
  min-width: 0;
2947
- padding: 8px 0;
3495
+ padding: 6px 0;
2948
3496
  border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
2949
3497
  }
2950
3498
 
2951
3499
  .devlead-board-task-heading {
2952
3500
  align-items: flex-start;
2953
- gap: 8px;
3501
+ gap: 7px;
2954
3502
  }
2955
3503
 
2956
3504
  .devlead-board-task-title {
@@ -2964,20 +3512,26 @@ window.__ModuleLoader__.load({
2964
3512
  -webkit-line-clamp: 2;
2965
3513
  }
2966
3514
 
2967
- .devlead-board-task-heading > span:last-child {
2968
- flex: none;
3515
+ /* The native task disclosure is also the keyboard-accessible full-content
3516
+ view: opening it removes every informational clamp, not only the task list's
3517
+ visibility. Hover titles remain a shortcut, never the only complete copy. */
3518
+ .devlead-board-card:has(.devlead-board-tasks[open]) .devlead-board-field p,
3519
+ .devlead-board-card:has(.devlead-board-tasks[open]) .devlead-board-blockers li > span:first-child,
3520
+ .devlead-board-card:has(.devlead-board-tasks[open]) .devlead-board-task-title {
3521
+ display: block;
3522
+ overflow: visible;
3523
+ -webkit-line-clamp: unset;
2969
3524
  }
2970
3525
 
2971
3526
  .devlead-board-task-meta {
2972
3527
  flex-wrap: wrap;
2973
- gap: 4px 8px;
2974
- margin-top: 3px;
3528
+ gap: 3px 7px;
3529
+ margin-top: 2px;
2975
3530
  color: var(--dsw-alias-label-tertiary, GrayText);
2976
- font-size: 11px;
3531
+ font-size: 10px;
2977
3532
  }
2978
3533
 
2979
3534
  .devlead-board-task-meta code {
2980
- min-width: 0;
2981
3535
  overflow: hidden;
2982
3536
  font-family: inherit;
2983
3537
  text-overflow: ellipsis;
@@ -2985,14 +3539,14 @@ window.__ModuleLoader__.load({
2985
3539
  }
2986
3540
 
2987
3541
  .devlead-board-card-footer {
2988
- margin-top: 8px;
2989
- overflow: hidden;
3542
+ display: flex;
3543
+ align-items: center;
3544
+ justify-content: flex-end;
3545
+ gap: 3px;
3546
+ margin-top: 5px;
2990
3547
  color: var(--dsw-alias-label-tertiary, GrayText);
2991
3548
  font-size: 10px;
2992
- line-height: 16px;
2993
- text-align: right;
2994
- text-overflow: ellipsis;
2995
- white-space: nowrap;
3549
+ line-height: 14px;
2996
3550
  }
2997
3551
 
2998
3552
  .devlead-board-muted {
@@ -3002,23 +3556,20 @@ window.__ModuleLoader__.load({
3002
3556
  .devlead-board-secondary {
3003
3557
  min-width: 0;
3004
3558
  max-width: 100%;
3005
- margin-top: 12px;
3559
+ margin-top: 9px;
3006
3560
  overflow: hidden;
3007
3561
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3008
- border-radius: var(--dsw-radius-lg, 12px);
3562
+ border-radius: var(--dsw-radius-md, 8px);
3009
3563
  background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
3010
3564
  }
3011
3565
 
3012
3566
  .devlead-board-secondary > summary {
3013
3567
  display: flex;
3014
3568
  align-items: center;
3015
- gap: 8px;
3016
- min-height: 42px;
3017
- padding: 9px 11px;
3569
+ gap: 7px;
3570
+ min-height: 36px;
3571
+ padding: 7px 9px;
3018
3572
  overflow: hidden;
3019
- transition:
3020
- color 120ms ease,
3021
- background-color 120ms ease;
3022
3573
  }
3023
3574
 
3024
3575
  .devlead-board-secondary > summary > h4 {
@@ -3026,11 +3577,9 @@ window.__ModuleLoader__.load({
3026
3577
  flex: 1 1 auto;
3027
3578
  align-items: center;
3028
3579
  justify-content: space-between;
3029
- gap: 8px;
3580
+ gap: 7px;
3030
3581
  overflow: hidden;
3031
- color: var(--dsw-alias-label-secondary, GrayText);
3032
- font-size: 12px;
3033
- line-height: 20px;
3582
+ font-size: 11px;
3034
3583
  }
3035
3584
 
3036
3585
  .devlead-board-secondary > summary > h4 > span:first-child,
@@ -3046,31 +3595,23 @@ window.__ModuleLoader__.load({
3046
3595
  }
3047
3596
 
3048
3597
  .devlead-board-secondary > .devlead-board-cards {
3049
- padding: 10px;
3050
- }
3051
-
3052
- .devlead-board-secondary .devlead-board-card {
3053
- box-shadow: none;
3598
+ padding: 8px;
3054
3599
  }
3055
3600
 
3056
3601
  .devlead-board-unlisted-body {
3057
- min-width: 0;
3058
- padding: 10px 11px;
3059
- overflow: hidden;
3602
+ padding: 8px 9px;
3060
3603
  color: var(--dsw-alias-label-secondary, GrayText);
3061
3604
  font-size: 12px;
3062
3605
  }
3063
3606
 
3064
3607
  .devlead-board-unlisted-list {
3065
- min-width: 0;
3066
3608
  margin: 0;
3067
3609
  padding: 0;
3068
3610
  list-style: none;
3069
3611
  }
3070
3612
 
3071
3613
  .devlead-board-unlisted-list li {
3072
- min-width: 0;
3073
- padding: 8px 0;
3614
+ padding: 7px 0;
3074
3615
  overflow: hidden;
3075
3616
  border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3076
3617
  }
@@ -3083,8 +3624,6 @@ window.__ModuleLoader__.load({
3083
3624
  .devlead-board-unlisted-list code,
3084
3625
  .devlead-board-unlisted-list span {
3085
3626
  display: block;
3086
- min-width: 0;
3087
- max-width: 100%;
3088
3627
  overflow: hidden;
3089
3628
  text-overflow: ellipsis;
3090
3629
  white-space: nowrap;
@@ -3101,12 +3640,241 @@ window.__ModuleLoader__.load({
3101
3640
  font-size: 11px;
3102
3641
  }
3103
3642
 
3104
- .devlead-board-unlisted-list span {
3643
+ /* Immersive notes: two reading lanes on wide panes, stacked on narrow panes. */
3644
+ .devlead-board-content:has(.devlead-notes-reader) {
3645
+ padding: 0;
3646
+ overflow: hidden;
3647
+ }
3648
+
3649
+ .devlead-notes-reader {
3650
+ display: flex;
3651
+ min-width: 0;
3652
+ min-height: 0;
3653
+ height: 100%;
3654
+ flex-direction: column;
3655
+ }
3656
+
3657
+ .devlead-notes-reader-header {
3658
+ display: flex;
3659
+ flex: none;
3660
+ align-items: center;
3661
+ gap: 8px;
3662
+ min-width: 0;
3663
+ padding: 9px 11px;
3664
+ border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3665
+ }
3666
+
3667
+ .devlead-notes-reader-header > div {
3668
+ min-width: 0;
3669
+ }
3670
+
3671
+ .devlead-notes-reader-header h3 {
3672
+ margin: 0;
3673
+ overflow: hidden;
3674
+ font-size: 14px;
3675
+ line-height: 20px;
3676
+ text-overflow: ellipsis;
3677
+ white-space: nowrap;
3678
+ }
3679
+
3680
+ .devlead-notes-reader-header span {
3681
+ color: var(--dsw-alias-label-tertiary, GrayText);
3682
+ font-size: 10px;
3683
+ }
3684
+
3685
+ .devlead-notes-reader > .devlead-notes-state {
3686
+ flex: 1 1 auto;
3687
+ margin: 10px;
3688
+ }
3689
+
3690
+ .devlead-notes-reader-body {
3691
+ display: grid;
3692
+ flex: 1 1 auto;
3693
+ grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
3694
+ min-width: 0;
3695
+ min-height: 0;
3696
+ }
3697
+
3698
+ .devlead-notes-list {
3699
+ min-width: 0;
3700
+ min-height: 0;
3701
+ overflow-x: hidden;
3702
+ overflow-y: auto;
3703
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3704
+ background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
3705
+ }
3706
+
3707
+ .devlead-notes-list ul {
3708
+ margin: 0;
3709
+ padding: 6px;
3710
+ list-style: none;
3711
+ }
3712
+
3713
+ .devlead-notes-list button {
3714
+ display: flex;
3715
+ width: 100%;
3716
+ min-width: 0;
3717
+ margin: 0;
3718
+ padding: 7px 8px;
3719
+ border: 0;
3720
+ border-radius: var(--dsw-radius-md, 8px);
3721
+ background: transparent;
3722
+ color: var(--dsw-alias-label-secondary, GrayText);
3723
+ cursor: pointer;
3724
+ font: inherit;
3725
+ text-align: left;
3726
+ flex-direction: column;
3727
+ }
3728
+
3729
+ .devlead-notes-list button[aria-current="page"] {
3730
+ background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
3731
+ color: var(--dsw-alias-label-primary, CanvasText);
3732
+ }
3733
+
3734
+ .devlead-notes-list strong,
3735
+ .devlead-notes-list button > span {
3736
+ max-width: 100%;
3737
+ overflow: hidden;
3738
+ text-overflow: ellipsis;
3739
+ }
3740
+
3741
+ .devlead-notes-list strong {
3742
+ color: var(--dsw-alias-label-primary, CanvasText);
3743
+ font-size: 12px;
3744
+ white-space: nowrap;
3745
+ }
3746
+
3747
+ .devlead-notes-list button > span {
3748
+ display: -webkit-box;
3749
+ margin-top: 2px;
3750
+ overflow-wrap: anywhere;
3751
+ font-size: 11px;
3752
+ -webkit-box-orient: vertical;
3753
+ -webkit-line-clamp: 2;
3754
+ }
3755
+
3756
+ .devlead-notes-list time {
3105
3757
  margin-top: 3px;
3758
+ color: var(--dsw-alias-label-tertiary, GrayText);
3759
+ font-size: 10px;
3760
+ }
3761
+
3762
+ .devlead-note-document {
3763
+ min-width: 0;
3764
+ min-height: 0;
3765
+ padding: 16px clamp(14px, 4vw, 34px) 30px;
3766
+ overflow-x: hidden;
3767
+ overflow-y: auto;
3768
+ overscroll-behavior: contain;
3769
+ }
3770
+
3771
+ .devlead-note-document > header {
3772
+ margin-bottom: 16px;
3773
+ padding-bottom: 11px;
3774
+ border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3775
+ }
3776
+
3777
+ .devlead-note-document > header h4 {
3778
+ margin: 0;
3779
+ overflow-wrap: anywhere;
3780
+ font-size: 20px;
3781
+ line-height: 28px;
3782
+ letter-spacing: -0.02em;
3783
+ }
3784
+
3785
+ .devlead-note-document > header p {
3786
+ margin: 5px 0;
3787
+ color: var(--dsw-alias-label-secondary, GrayText);
3788
+ overflow-wrap: anywhere;
3789
+ }
3790
+
3791
+ .devlead-note-document > header time {
3792
+ color: var(--dsw-alias-label-tertiary, GrayText);
3793
+ font-size: 11px;
3794
+ }
3795
+
3796
+ .devlead-markdown {
3797
+ max-width: 76ch;
3798
+ color: var(--dsw-alias-label-primary, CanvasText);
3799
+ font-size: 13px;
3800
+ line-height: 1.7;
3801
+ overflow-wrap: anywhere;
3802
+ }
3803
+
3804
+ .devlead-markdown h1,
3805
+ .devlead-markdown h2,
3806
+ .devlead-markdown h3,
3807
+ .devlead-markdown h4,
3808
+ .devlead-markdown h5,
3809
+ .devlead-markdown h6 {
3810
+ margin: 1.35em 0 0.5em;
3811
+ line-height: 1.3;
3812
+ letter-spacing: -0.012em;
3813
+ }
3814
+
3815
+ .devlead-markdown h1 { font-size: 1.55em; }
3816
+ .devlead-markdown h2 { font-size: 1.35em; }
3817
+ .devlead-markdown h3 { font-size: 1.18em; }
3818
+ .devlead-markdown h4,
3819
+ .devlead-markdown h5,
3820
+ .devlead-markdown h6 { font-size: 1em; }
3821
+
3822
+ .devlead-markdown p {
3823
+ margin: 0.7em 0;
3824
+ white-space: pre-wrap;
3825
+ }
3826
+
3827
+ .devlead-markdown ul,
3828
+ .devlead-markdown ol {
3829
+ margin: 0.65em 0;
3830
+ padding-left: 1.6em;
3831
+ }
3832
+
3833
+ .devlead-markdown li + li {
3834
+ margin-top: 0.25em;
3835
+ }
3836
+
3837
+ .devlead-markdown blockquote {
3838
+ margin: 0.8em 0;
3839
+ padding: 2px 0 2px 12px;
3840
+ border-left: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
3841
+ color: var(--dsw-alias-label-secondary, GrayText);
3842
+ }
3843
+
3844
+ .devlead-markdown code {
3845
+ padding: 0.1em 0.35em;
3846
+ border-radius: var(--dsw-radius-sm, 4px);
3847
+ background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
3848
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
3849
+ font-size: 0.9em;
3850
+ }
3851
+
3852
+ .devlead-markdown pre {
3853
+ max-width: 100%;
3854
+ margin: 0.8em 0;
3855
+ padding: 11px 12px;
3856
+ overflow-x: auto;
3857
+ border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3858
+ border-radius: var(--dsw-radius-md, 8px);
3859
+ background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 4%, transparent);
3860
+ }
3861
+
3862
+ .devlead-markdown pre code {
3863
+ padding: 0;
3864
+ background: transparent;
3865
+ white-space: pre;
3866
+ overflow-wrap: normal;
3867
+ }
3868
+
3869
+ .devlead-markdown a {
3870
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3871
+ text-decoration: underline;
3872
+ text-underline-offset: 2px;
3106
3873
  }
3107
3874
 
3108
3875
  .devlead-board button:focus-visible,
3109
- .devlead-board summary:focus-visible {
3876
+ .devlead-board summary:focus-visible,
3877
+ .devlead-board a:focus-visible {
3110
3878
  outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
3111
3879
  outline-offset: 2px;
3112
3880
  }
@@ -3121,67 +3889,83 @@ window.__ModuleLoader__.load({
3121
3889
  }
3122
3890
 
3123
3891
  @media (hover: hover) {
3124
- .devlead-board-refresh:hover:not(:disabled) {
3892
+ .devlead-board-refresh:hover:not(:disabled),
3893
+ .devlead-notes-back:hover:not(:disabled),
3894
+ .devlead-board-notes-chip:hover:not(:disabled),
3895
+ .devlead-notes-list button:hover {
3125
3896
  background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
3126
3897
  color: var(--dsw-alias-label-primary, CanvasText);
3127
- transform: rotate(12deg);
3128
3898
  }
3129
3899
 
3130
3900
  .devlead-board-card:hover {
3131
3901
  border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
3132
- box-shadow: var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
3133
- transform: translateY(-1px);
3134
3902
  }
3135
3903
 
3136
3904
  .devlead-board-card[data-status="blocked"]:hover {
3137
3905
  border-color: var(--dsw-alias-state-warn-primary, #a15c00);
3138
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
3139
3906
  }
3140
3907
 
3141
3908
  .devlead-board summary:hover {
3142
3909
  color: var(--dsw-alias-label-primary, CanvasText);
3143
3910
  }
3144
-
3145
- .devlead-board-secondary > summary:hover {
3146
- background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
3147
- }
3148
3911
  }
3149
3912
 
3150
3913
  @container devlead-board (min-width: 620px) {
3151
- .devlead-board-group:not(.devlead-board-secondary) > .devlead-board-cards {
3914
+ .devlead-board-group > .devlead-board-cards {
3152
3915
  grid-template-columns: repeat(2, minmax(0, 1fr));
3153
3916
  }
3917
+ }
3154
3918
 
3155
- .devlead-board-card {
3156
- padding: 14px;
3919
+ @container devlead-board (min-width: 980px) {
3920
+ .devlead-board-group > .devlead-board-cards {
3921
+ grid-template-columns: repeat(3, minmax(0, 1fr));
3157
3922
  }
3158
3923
  }
3159
3924
 
3160
- @container devlead-board (max-width: 340px) {
3161
- .devlead-board-kpis {
3925
+ @container devlead-board (max-width: 560px) {
3926
+ .devlead-notes-reader-body {
3927
+ grid-template-columns: minmax(0, 1fr);
3928
+ grid-template-rows: minmax(0, auto) minmax(0, 1fr);
3929
+ }
3930
+
3931
+ .devlead-notes-list {
3932
+ max-height: 172px;
3933
+ border-right: 0;
3934
+ border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
3935
+ }
3936
+
3937
+ .devlead-notes-list ul {
3938
+ display: grid;
3162
3939
  grid-template-columns: repeat(2, minmax(0, 1fr));
3940
+ gap: 3px;
3163
3941
  }
3164
3942
  }
3165
3943
 
3166
- @media (max-width: 480px) {
3944
+ @container devlead-board (max-width: 340px) {
3167
3945
  .devlead-board-header {
3168
- padding: 11px 10px;
3946
+ padding-inline: 8px;
3169
3947
  }
3170
3948
 
3171
3949
  .devlead-board-content {
3172
- padding: 10px;
3950
+ padding: 7px;
3173
3951
  }
3174
3952
 
3175
- .devlead-board-card {
3176
- padding: 11px;
3953
+ .devlead-board-content:has(.devlead-notes-reader) {
3954
+ padding: 0;
3177
3955
  }
3178
3956
 
3179
- .devlead-board-live {
3180
- align-items: flex-start;
3957
+ .devlead-board-kpis > div {
3958
+ padding-inline: 5px;
3181
3959
  }
3182
3960
 
3183
- .devlead-board-live > span {
3184
- flex: 1 1 150px;
3961
+ .devlead-notes-list ul {
3962
+ grid-template-columns: minmax(0, 1fr);
3963
+ }
3964
+ }
3965
+
3966
+ @media (max-width: 480px) {
3967
+ .devlead-note-document {
3968
+ padding: 13px 12px 24px;
3185
3969
  }
3186
3970
  }
3187
3971