@yankeguo/dsh-client-ui-devlead 0.4.2-rc.2 → 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.
- package/README.md +55 -11
- package/lib/client.js +1944 -442
- 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
|
|
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(
|
|
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
|
|
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) {
|
|
@@ -806,28 +933,41 @@ window.__ModuleLoader__.load({
|
|
|
806
933
|
function isNotFound(result) {
|
|
807
934
|
return !result.ok && result.error.code === "workspace-file/not-found";
|
|
808
935
|
}
|
|
809
|
-
function
|
|
936
|
+
function panelPageActive() {
|
|
937
|
+
if (typeof document === "undefined") return true;
|
|
938
|
+
return document.visibilityState !== "hidden" && (typeof document.hasFocus !== "function" || document.hasFocus());
|
|
939
|
+
}
|
|
940
|
+
function useWorkspaceFile({
|
|
810
941
|
sessionId,
|
|
811
942
|
config,
|
|
812
943
|
files,
|
|
944
|
+
visible = true,
|
|
813
945
|
debounceMs = 120,
|
|
814
|
-
pollMs =
|
|
946
|
+
pollMs = 5e3,
|
|
815
947
|
pollMaxMs = 3e4,
|
|
816
948
|
now = Date.now
|
|
817
949
|
}) {
|
|
818
950
|
const [state, setState] = (0, import_react.useState)(() => initialState(config));
|
|
819
951
|
const [watch, setWatch] = (0, import_react.useState)(config === void 0 ? "disabled" : "connecting");
|
|
952
|
+
const [autoRefresh, setAutoRefresh] = (0, import_react.useState)(() => config === void 0 ? "disabled" : visible && panelPageActive() ? "active" : "paused");
|
|
820
953
|
const [watchGeneration, setWatchGeneration] = (0, import_react.useState)(0);
|
|
821
954
|
const generation = (0, import_react.useRef)(0);
|
|
822
955
|
const readAbort = (0, import_react.useRef)(void 0);
|
|
823
|
-
const
|
|
956
|
+
const trailingRead = (0, import_react.useRef)(false);
|
|
957
|
+
const refreshRead = (0, import_react.useCallback)((force = false, queueTrailing = false) => {
|
|
824
958
|
if (config === void 0) {
|
|
825
959
|
generation.current += 1;
|
|
826
960
|
readAbort.current?.abort();
|
|
961
|
+
readAbort.current = void 0;
|
|
827
962
|
setState(DISABLED);
|
|
828
963
|
return;
|
|
829
964
|
}
|
|
965
|
+
if (!force && readAbort.current !== void 0 && !readAbort.current.signal.aborted) {
|
|
966
|
+
if (queueTrailing) trailingRead.current = true;
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
830
969
|
const request = ++generation.current;
|
|
970
|
+
trailingRead.current = false;
|
|
831
971
|
readAbort.current?.abort();
|
|
832
972
|
const controller = new AbortController();
|
|
833
973
|
readAbort.current = controller;
|
|
@@ -851,50 +991,55 @@ window.__ModuleLoader__.load({
|
|
|
851
991
|
};
|
|
852
992
|
void (async () => {
|
|
853
993
|
try {
|
|
854
|
-
const metadata = await files.stat(sessionId, config.
|
|
994
|
+
const metadata = await files.stat(sessionId, config.path, controller.signal);
|
|
855
995
|
if (generation.current !== request || controller.signal.aborted) return;
|
|
856
996
|
if (!metadata.ok) {
|
|
857
|
-
if (isNotFound(metadata)) {
|
|
858
|
-
|
|
859
|
-
} else {
|
|
860
|
-
fail("read", metadata.error);
|
|
861
|
-
}
|
|
997
|
+
if (isNotFound(metadata)) settle({ status: "empty", refreshing: false });
|
|
998
|
+
else fail("read", metadata.error);
|
|
862
999
|
return;
|
|
863
1000
|
}
|
|
864
|
-
if (metadata.value.bytes !== void 0 && metadata.value.bytes >
|
|
865
|
-
fail("parse",
|
|
1001
|
+
if (metadata.value.bytes !== void 0 && metadata.value.bytes > config.maxBytes) {
|
|
1002
|
+
fail("parse", config.parseError(`${config.fileLabel} exceeds ${config.maxBytes} bytes`));
|
|
866
1003
|
return;
|
|
867
1004
|
}
|
|
868
|
-
const content = await files.readBytes(sessionId, config.
|
|
1005
|
+
const content = await files.readBytes(sessionId, config.path, {}, controller.signal);
|
|
869
1006
|
if (generation.current !== request || controller.signal.aborted) return;
|
|
870
1007
|
if (!content.ok) {
|
|
871
|
-
if (isNotFound(content)) {
|
|
872
|
-
|
|
873
|
-
} else {
|
|
874
|
-
fail("read", content.error);
|
|
875
|
-
}
|
|
1008
|
+
if (isNotFound(content)) settle({ status: "empty", refreshing: false });
|
|
1009
|
+
else fail("read", content.error);
|
|
876
1010
|
return;
|
|
877
1011
|
}
|
|
878
|
-
if (!content.value.eof || content.value.data.byteLength >
|
|
879
|
-
fail("parse",
|
|
1012
|
+
if (!content.value.eof || content.value.data.byteLength > config.maxBytes) {
|
|
1013
|
+
fail("parse", config.parseError(`${config.fileLabel} is truncated or too large`));
|
|
880
1014
|
return;
|
|
881
1015
|
}
|
|
882
|
-
let
|
|
1016
|
+
let value;
|
|
883
1017
|
try {
|
|
884
|
-
|
|
1018
|
+
value = config.parse(content.value.data);
|
|
885
1019
|
} catch (error) {
|
|
886
1020
|
fail("parse", error);
|
|
887
1021
|
return;
|
|
888
1022
|
}
|
|
889
1023
|
settle({
|
|
890
1024
|
status: "ready",
|
|
891
|
-
|
|
1025
|
+
value,
|
|
1026
|
+
valuePath: config.path,
|
|
892
1027
|
lastSuccessAt: new Date(now()).toISOString(),
|
|
893
1028
|
refreshing: false
|
|
894
1029
|
});
|
|
895
1030
|
} catch (error) {
|
|
896
1031
|
if (generation.current !== request || controller.signal.aborted) return;
|
|
897
1032
|
fail("read", error);
|
|
1033
|
+
} finally {
|
|
1034
|
+
if (readAbort.current === controller) {
|
|
1035
|
+
readAbort.current = void 0;
|
|
1036
|
+
if (trailingRead.current && generation.current === request && !controller.signal.aborted) {
|
|
1037
|
+
trailingRead.current = false;
|
|
1038
|
+
queueMicrotask(() => {
|
|
1039
|
+
if (generation.current === request && !controller.signal.aborted) refreshRead();
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
898
1043
|
}
|
|
899
1044
|
})();
|
|
900
1045
|
}, [config, files, now, sessionId]);
|
|
@@ -912,18 +1057,18 @@ window.__ModuleLoader__.load({
|
|
|
912
1057
|
if (timer !== void 0) clearTimeout(timer);
|
|
913
1058
|
timer = setTimeout(() => {
|
|
914
1059
|
timer = void 0;
|
|
915
|
-
refreshRead();
|
|
1060
|
+
refreshRead(false, true);
|
|
916
1061
|
}, debounceMs);
|
|
917
1062
|
};
|
|
918
1063
|
const pump = async () => {
|
|
919
1064
|
try {
|
|
920
|
-
const stream = files.changes(sessionId, config.
|
|
1065
|
+
const stream = files.changes(sessionId, config.path, watcher.signal);
|
|
921
1066
|
try {
|
|
922
1067
|
for await (const frame of stream) {
|
|
923
1068
|
if (disposed) return;
|
|
924
1069
|
if (frame.kind === "ready") {
|
|
925
1070
|
setWatch("live");
|
|
926
|
-
refreshRead();
|
|
1071
|
+
refreshRead(false, true);
|
|
927
1072
|
} else if (frame.kind === "change") schedule();
|
|
928
1073
|
}
|
|
929
1074
|
} finally {
|
|
@@ -945,14 +1090,52 @@ window.__ModuleLoader__.load({
|
|
|
945
1090
|
};
|
|
946
1091
|
}, [config, debounceMs, files, refreshRead, sessionId, watchGeneration]);
|
|
947
1092
|
(0, import_react.useEffect)(() => {
|
|
948
|
-
if (config === void 0
|
|
1093
|
+
if (config === void 0) {
|
|
1094
|
+
setAutoRefresh("disabled");
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
if (!visible) {
|
|
1098
|
+
setAutoRefresh("paused");
|
|
1099
|
+
return;
|
|
1100
|
+
}
|
|
1101
|
+
if (typeof document === "undefined") {
|
|
1102
|
+
setAutoRefresh("active");
|
|
1103
|
+
refreshRead();
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
const sync = (resume) => {
|
|
1107
|
+
const active = resume && panelPageActive();
|
|
1108
|
+
setAutoRefresh(active ? "active" : "paused");
|
|
1109
|
+
if (active) refreshRead();
|
|
1110
|
+
};
|
|
1111
|
+
const onVisibility = () => {
|
|
1112
|
+
sync(document.visibilityState !== "hidden");
|
|
1113
|
+
};
|
|
1114
|
+
const onFocus = () => {
|
|
1115
|
+
sync(true);
|
|
1116
|
+
};
|
|
1117
|
+
const onBlur = () => {
|
|
1118
|
+
setAutoRefresh("paused");
|
|
1119
|
+
};
|
|
1120
|
+
sync(panelPageActive());
|
|
1121
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
1122
|
+
window.addEventListener("focus", onFocus);
|
|
1123
|
+
window.addEventListener("blur", onBlur);
|
|
1124
|
+
return () => {
|
|
1125
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
1126
|
+
window.removeEventListener("focus", onFocus);
|
|
1127
|
+
window.removeEventListener("blur", onBlur);
|
|
1128
|
+
};
|
|
1129
|
+
}, [config, refreshRead, visible]);
|
|
1130
|
+
(0, import_react.useEffect)(() => {
|
|
1131
|
+
if (config === void 0 || autoRefresh !== "active") return;
|
|
949
1132
|
let delay = pollMs;
|
|
950
1133
|
let timer;
|
|
951
1134
|
const schedule = () => {
|
|
952
1135
|
timer = setTimeout(() => {
|
|
953
1136
|
timer = void 0;
|
|
954
1137
|
refreshRead();
|
|
955
|
-
delay = Math.min(delay * 2, pollMaxMs);
|
|
1138
|
+
if (state.status === "empty" || state.status === "error") delay = Math.min(delay * 2, pollMaxMs);
|
|
956
1139
|
schedule();
|
|
957
1140
|
}, delay);
|
|
958
1141
|
};
|
|
@@ -960,25 +1143,353 @@ window.__ModuleLoader__.load({
|
|
|
960
1143
|
return () => {
|
|
961
1144
|
if (timer !== void 0) clearTimeout(timer);
|
|
962
1145
|
};
|
|
963
|
-
}, [config, pollMs, pollMaxMs, refreshRead, state.status]);
|
|
1146
|
+
}, [autoRefresh, config, pollMs, pollMaxMs, refreshRead, state.status]);
|
|
964
1147
|
const refresh = (0, import_react.useCallback)(() => {
|
|
965
|
-
refreshRead();
|
|
1148
|
+
refreshRead(true);
|
|
966
1149
|
if (config !== void 0) setWatchGeneration((current) => current + 1);
|
|
967
1150
|
}, [config, refreshRead]);
|
|
968
|
-
|
|
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 };
|
|
969
1154
|
}
|
|
970
1155
|
|
|
971
|
-
// packages/client-ui/src/client/
|
|
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");
|
|
972
1280
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
973
|
-
function
|
|
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");
|
|
1455
|
+
function DevLeadBoardPanel({ sessionId, files, useWorkspaces, useSessions, useTabInfo, t }) {
|
|
974
1456
|
const sessions = useSessions((snapshot) => snapshot);
|
|
1457
|
+
const visible = useTabInfo().tab.visible;
|
|
975
1458
|
const summary = sessions.byId[sessionId];
|
|
976
1459
|
const resolved = resolveDevLeadBoardSessionConfig(sessionId, summary, currentDevLeadBoardConfig());
|
|
977
|
-
const config = (0,
|
|
978
|
-
const { refresh, watch, ...state } = useBoardFile({ sessionId, config, files });
|
|
1460
|
+
const config = (0, import_react5.useMemo)(() => resolved, [resolved?.boardPath, resolved?.pathPlatform]);
|
|
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 });
|
|
979
1490
|
const workspaces = useWorkspaces((snapshot) => snapshot);
|
|
980
|
-
const [now, setNow] = (0,
|
|
981
|
-
(0,
|
|
1491
|
+
const [now, setNow] = (0, import_react5.useState)(() => Date.now());
|
|
1492
|
+
(0, import_react5.useEffect)(() => {
|
|
982
1493
|
const timer = setInterval(() => {
|
|
983
1494
|
setNow(Date.now());
|
|
984
1495
|
}, 6e4);
|
|
@@ -987,7 +1498,13 @@ window.__ModuleLoader__.load({
|
|
|
987
1498
|
};
|
|
988
1499
|
}, []);
|
|
989
1500
|
const unlisted = state.status === "ready" && state.board !== void 0 ? unlistedDevLeadWorkspaces(state.board, workspaces.items, sessions.byId, config?.pathPlatform) : [];
|
|
990
|
-
|
|
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)(
|
|
991
1508
|
DevLeadBoardPanelView,
|
|
992
1509
|
{
|
|
993
1510
|
state,
|
|
@@ -998,74 +1515,235 @@ window.__ModuleLoader__.load({
|
|
|
998
1515
|
workspacePhase: workspaces.phase,
|
|
999
1516
|
workspaceError: workspaces.state === "error",
|
|
1000
1517
|
sessionPhase: sessions.phase,
|
|
1001
|
-
watch
|
|
1518
|
+
watch,
|
|
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
|
+
}
|
|
1002
1533
|
}
|
|
1003
1534
|
);
|
|
1004
1535
|
}
|
|
1005
|
-
function RelativeTime({ iso, now, t }) {
|
|
1536
|
+
function RelativeTime({ iso, now, t, label }) {
|
|
1006
1537
|
const relative = boardRelativeTime(iso, now);
|
|
1007
1538
|
const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
|
|
1008
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1009
1540
|
}
|
|
1010
|
-
function ProjectField({ label, text, className = "" }) {
|
|
1541
|
+
function ProjectField({ label, text, className = "", arrow }) {
|
|
1011
1542
|
if (text.trim().length === 0) return null;
|
|
1012
|
-
return /* @__PURE__ */ (0,
|
|
1013
|
-
/* @__PURE__ */ (0,
|
|
1014
|
-
/* @__PURE__ */ (0,
|
|
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 })
|
|
1015
1547
|
] });
|
|
1016
1548
|
}
|
|
1017
|
-
function
|
|
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);
|
|
1018
1564
|
const progress = taskProgress(project);
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
/* @__PURE__ */ (0,
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1565
|
+
const progressText = t("board.tasks.progress", { done: progress.done, total: progress.total });
|
|
1566
|
+
const latestNote = sortDevLeadNotes(notesProject?.notes ?? [])[0];
|
|
1567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1568
|
+
"article",
|
|
1569
|
+
{
|
|
1570
|
+
className: "devlead-board-card",
|
|
1571
|
+
"data-devlead-board-project": project.id,
|
|
1572
|
+
"data-status": project.status,
|
|
1573
|
+
"data-priority": project.priority,
|
|
1574
|
+
"aria-labelledby": `${idPrefix}-title`,
|
|
1575
|
+
children: [
|
|
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 })
|
|
1580
|
+
] }) }),
|
|
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
|
+
)
|
|
1054
1603
|
] }),
|
|
1055
|
-
/* @__PURE__ */ (0,
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
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 }),
|
|
1610
|
+
t("board.blockers")
|
|
1060
1611
|
] }),
|
|
1061
|
-
/* @__PURE__ */ (0,
|
|
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") }) })
|
|
1615
|
+
] }, blocker.id)) })
|
|
1616
|
+
] }),
|
|
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)(
|
|
1620
|
+
"progress",
|
|
1621
|
+
{
|
|
1622
|
+
"data-devlead-board-progress": project.id,
|
|
1623
|
+
max: Math.max(1, progress.total),
|
|
1624
|
+
value: progress.done,
|
|
1625
|
+
"aria-label": progressText,
|
|
1626
|
+
"aria-valuetext": progressText
|
|
1627
|
+
}
|
|
1628
|
+
)
|
|
1629
|
+
] }),
|
|
1630
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1631
|
+
"details",
|
|
1632
|
+
{
|
|
1633
|
+
className: "devlead-board-tasks",
|
|
1634
|
+
"data-devlead-board-tasks": project.id,
|
|
1635
|
+
"aria-labelledby": `${idPrefix}-tasks`,
|
|
1636
|
+
open: tasksOpen,
|
|
1637
|
+
onToggle: (event) => {
|
|
1638
|
+
setTasksOpen(event.currentTarget.open);
|
|
1639
|
+
},
|
|
1640
|
+
children: [
|
|
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}`) })
|
|
1649
|
+
] }),
|
|
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 })
|
|
1653
|
+
] })
|
|
1654
|
+
] }, task.id)) })
|
|
1655
|
+
]
|
|
1656
|
+
}
|
|
1657
|
+
),
|
|
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") })
|
|
1062
1661
|
] })
|
|
1063
|
-
]
|
|
1662
|
+
]
|
|
1663
|
+
}
|
|
1664
|
+
);
|
|
1665
|
+
}
|
|
1666
|
+
function ProjectGroup({ group, idPrefix, now, t, notes }) {
|
|
1667
|
+
const headingId = `${idPrefix}-group-${group.status}`;
|
|
1668
|
+
const secondary = group.status === "paused" || group.status === "done";
|
|
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
|
+
)) });
|
|
1680
|
+
if (secondary) {
|
|
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
|
+
] });
|
|
1688
|
+
}
|
|
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",
|
|
1708
|
+
{
|
|
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
|
+
},
|
|
1715
|
+
children: [
|
|
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 })
|
|
1719
|
+
]
|
|
1720
|
+
}
|
|
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
|
+
] })
|
|
1064
1736
|
] }),
|
|
1065
|
-
/* @__PURE__ */ (0,
|
|
1066
|
-
|
|
1067
|
-
" ",
|
|
1068
|
-
|
|
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
|
+
] })
|
|
1069
1747
|
] })
|
|
1070
1748
|
] });
|
|
1071
1749
|
}
|
|
@@ -1078,23 +1756,31 @@ window.__ModuleLoader__.load({
|
|
|
1078
1756
|
workspacePhase = "ready",
|
|
1079
1757
|
workspaceError = false,
|
|
1080
1758
|
sessionPhase = "ready",
|
|
1081
|
-
watch = "live"
|
|
1759
|
+
watch = "live",
|
|
1760
|
+
autoRefresh = "active",
|
|
1761
|
+
notes
|
|
1082
1762
|
}) {
|
|
1083
|
-
const idPrefix = (0,
|
|
1763
|
+
const idPrefix = (0, import_react5.useId)();
|
|
1084
1764
|
if (state.status === "disabled") return null;
|
|
1085
1765
|
const board = state.board;
|
|
1086
|
-
const blocked = board?.projects.filter((project) => project.status === "blocked").length ?? 0;
|
|
1087
1766
|
const groups = board === void 0 ? [] : groupDevLeadBoardProjects(board);
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1767
|
+
const counts = { active: 0, blocked: 0, paused: 0, done: 0 };
|
|
1768
|
+
for (const project of board?.projects ?? []) counts[project.status] += 1;
|
|
1769
|
+
const blocked = counts.blocked;
|
|
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";
|
|
1771
|
+
const endedKey = autoRefresh === "active" ? "board.watch.ended" : autoRefresh === "paused" ? "board.watch.ended.paused" : "board.watch.ended.disabled";
|
|
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}`);
|
|
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") })
|
|
1096
1782
|
] }),
|
|
1097
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
1098
1784
|
import_dsh_client_ui_primitives3.Button,
|
|
1099
1785
|
{
|
|
1100
1786
|
variant: "ghost",
|
|
@@ -1104,78 +1790,102 @@ window.__ModuleLoader__.load({
|
|
|
1104
1790
|
"aria-busy": state.refreshing,
|
|
1105
1791
|
disabled: state.refreshing,
|
|
1106
1792
|
onClick: onRefresh,
|
|
1107
|
-
children: /* @__PURE__ */ (0,
|
|
1793
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
|
|
1108
1794
|
}
|
|
1109
1795
|
) })
|
|
1110
1796
|
] }),
|
|
1111
|
-
/* @__PURE__ */ (0,
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
/* @__PURE__ */ (0,
|
|
1116
|
-
|
|
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 }) })
|
|
1117
1820
|
] })
|
|
1118
|
-
] })
|
|
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) => {
|
|
1823
|
+
const count = counts[status];
|
|
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 })
|
|
1827
|
+
] }, status);
|
|
1828
|
+
}) })
|
|
1119
1829
|
] }),
|
|
1120
|
-
/* @__PURE__ */ (0,
|
|
1121
|
-
state.status === "loading" && /* @__PURE__ */ (0,
|
|
1122
|
-
|
|
1123
|
-
/* @__PURE__ */ (0,
|
|
1124
|
-
/* @__PURE__ */ (0,
|
|
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") })
|
|
1835
|
+
] }),
|
|
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") })
|
|
1125
1840
|
] }),
|
|
1126
|
-
state.status === "error" && /* @__PURE__ */ (0,
|
|
1127
|
-
/* @__PURE__ */ (0,
|
|
1128
|
-
|
|
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: [
|
|
1129
1845
|
t("board.lastSuccess"),
|
|
1130
1846
|
" ",
|
|
1131
|
-
/* @__PURE__ */ (0,
|
|
1847
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: state.lastSuccessAt, now, t })
|
|
1132
1848
|
] }),
|
|
1133
|
-
state.error !== void 0 && /* @__PURE__ */ (0,
|
|
1134
|
-
/* @__PURE__ */ (0,
|
|
1135
|
-
/* @__PURE__ */ (0,
|
|
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 }),
|
|
1136
1852
|
t("board.retry")
|
|
1137
1853
|
] })
|
|
1138
1854
|
] }),
|
|
1139
|
-
state.status === "ready" && board !== void 0 && /* @__PURE__ */ (0,
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
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 }) })
|
|
1143
1860
|
] }),
|
|
1144
|
-
|
|
1145
|
-
/* @__PURE__ */ (0,
|
|
1146
|
-
/* @__PURE__ */ (0,
|
|
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") })
|
|
1147
1864
|
] }),
|
|
1148
|
-
|
|
1149
|
-
"
|
|
1150
|
-
{
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
children: [
|
|
1155
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "devlead-board-group-header", children: [
|
|
1156
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { id: `${idPrefix}-group-${group.status}`, children: t(`board.status.${group.status}`) }),
|
|
1157
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
|
|
1158
|
-
] }),
|
|
1159
|
-
/* @__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)) })
|
|
1160
|
-
]
|
|
1161
|
-
},
|
|
1162
|
-
group.status
|
|
1163
|
-
))
|
|
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") })
|
|
1869
|
+
] }),
|
|
1870
|
+
groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectGroup, { group, idPrefix, now, t, notes }, group.status))
|
|
1164
1871
|
] }),
|
|
1165
|
-
/* @__PURE__ */ (0,
|
|
1166
|
-
/* @__PURE__ */ (0,
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
state.status
|
|
1172
|
-
state.status === "ready" &&
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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: [
|
|
1176
1886
|
t("board.unlisted.sessions", { count: workspace.sessionCount }),
|
|
1177
1887
|
" \xB7 ",
|
|
1178
|
-
sessionPhase === "pending" && workspace.sessionCount > 0 ? t("board.unlisted.activityPending") : workspace.lastActivityAt === void 0 ? t("board.unlisted.noActivity") : /* @__PURE__ */ (0,
|
|
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 })
|
|
1179
1889
|
] })
|
|
1180
1890
|
] }, workspace.workspaceId)) })
|
|
1181
1891
|
] })
|
|
@@ -1185,7 +1895,7 @@ window.__ModuleLoader__.load({
|
|
|
1185
1895
|
}
|
|
1186
1896
|
|
|
1187
1897
|
// packages/client-ui/src/client/DevLeadIconToggle.tsx
|
|
1188
|
-
var
|
|
1898
|
+
var import_react7 = require("react");
|
|
1189
1899
|
var import_dsh_client_ui_primitives4 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1190
1900
|
|
|
1191
1901
|
// packages/client-ui/src/client/results.ts
|
|
@@ -1274,19 +1984,19 @@ window.__ModuleLoader__.load({
|
|
|
1274
1984
|
}
|
|
1275
1985
|
|
|
1276
1986
|
// packages/client-ui/src/client/useDevLeadAdmission.ts
|
|
1277
|
-
var
|
|
1987
|
+
var import_react6 = require("react");
|
|
1278
1988
|
function useDevLeadAdmission(executeCommand, resetKey) {
|
|
1279
|
-
const [state, dispatch] = (0,
|
|
1280
|
-
const [gate] = (0,
|
|
1281
|
-
const aliveRef = (0,
|
|
1282
|
-
(0,
|
|
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)(() => {
|
|
1283
1993
|
aliveRef.current = true;
|
|
1284
1994
|
return () => {
|
|
1285
1995
|
aliveRef.current = false;
|
|
1286
1996
|
};
|
|
1287
1997
|
}, []);
|
|
1288
|
-
const resetKeyRef = (0,
|
|
1289
|
-
(0,
|
|
1998
|
+
const resetKeyRef = (0, import_react6.useRef)(resetKey);
|
|
1999
|
+
(0, import_react6.useEffect)(() => {
|
|
1290
2000
|
resetKeyRef.current = resetKey;
|
|
1291
2001
|
dispatch({ type: "reset" });
|
|
1292
2002
|
}, [resetKey]);
|
|
@@ -1305,13 +2015,13 @@ window.__ModuleLoader__.load({
|
|
|
1305
2015
|
}
|
|
1306
2016
|
|
|
1307
2017
|
// packages/client-ui/src/client/DevLeadIconToggle.tsx
|
|
1308
|
-
var
|
|
2018
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1309
2019
|
function DevLeadIconToggle({ useSession, useProjection, executeCommand, t }) {
|
|
1310
2020
|
const subagent = useSession((snapshot) => snapshot.subagent !== null) ?? false;
|
|
1311
2021
|
const projection = useProjection(DEVLEAD_PROJECTION_KEY);
|
|
1312
2022
|
const enabled = projection?.enabled ?? false;
|
|
1313
2023
|
const { pending, failure, run } = useDevLeadAdmission(executeCommand, enabled);
|
|
1314
|
-
const [attempt, setAttempt] = (0,
|
|
2024
|
+
const [attempt, setAttempt] = (0, import_react7.useState)("on");
|
|
1315
2025
|
if (subagent) return null;
|
|
1316
2026
|
if (projection === void 0) return null;
|
|
1317
2027
|
const direction = enabled ? "off" : "on";
|
|
@@ -1326,8 +2036,8 @@ window.__ModuleLoader__.load({
|
|
|
1326
2036
|
attempt === "off" ? "toggle.failed.status.disable" : "toggle.failed.status",
|
|
1327
2037
|
{ message: failureText }
|
|
1328
2038
|
);
|
|
1329
|
-
return /* @__PURE__ */ (0,
|
|
1330
|
-
/* @__PURE__ */ (0,
|
|
2039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1331
2041
|
import_dsh_client_ui_primitives4.Tooltip,
|
|
1332
2042
|
{
|
|
1333
2043
|
label,
|
|
@@ -1336,7 +2046,7 @@ window.__ModuleLoader__.load({
|
|
|
1336
2046
|
maxWidth: 300,
|
|
1337
2047
|
portal: true,
|
|
1338
2048
|
openOnClick: failure !== null,
|
|
1339
|
-
children: /* @__PURE__ */ (0,
|
|
2049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1340
2050
|
import_dsh_client_ui_primitives4.Button,
|
|
1341
2051
|
{
|
|
1342
2052
|
variant: "ghost",
|
|
@@ -1355,44 +2065,44 @@ window.__ModuleLoader__.load({
|
|
|
1355
2065
|
run(`/${DEVLEAD_COMMAND_NAME} ${direction}`);
|
|
1356
2066
|
},
|
|
1357
2067
|
children: [
|
|
1358
|
-
/* @__PURE__ */ (0,
|
|
1359
|
-
/* @__PURE__ */ (0,
|
|
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") })
|
|
1360
2070
|
]
|
|
1361
2071
|
}
|
|
1362
2072
|
)
|
|
1363
2073
|
}
|
|
1364
2074
|
),
|
|
1365
|
-
/* @__PURE__ */ (0,
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: status })
|
|
1366
2076
|
] });
|
|
1367
2077
|
}
|
|
1368
2078
|
|
|
1369
2079
|
// packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
|
|
1370
2080
|
var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1371
|
-
var
|
|
2081
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1372
2082
|
function DevLeadSessionHoverMark({ sessionId, useSessions, t }) {
|
|
1373
2083
|
const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
|
|
1374
2084
|
const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
|
|
1375
2085
|
if (enabled) {
|
|
1376
|
-
return /* @__PURE__ */ (0,
|
|
1377
|
-
/* @__PURE__ */ (0,
|
|
1378
|
-
/* @__PURE__ */ (0,
|
|
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") })
|
|
1379
2089
|
] });
|
|
1380
2090
|
}
|
|
1381
2091
|
if (!watched) return null;
|
|
1382
|
-
return /* @__PURE__ */ (0,
|
|
1383
|
-
/* @__PURE__ */ (0,
|
|
1384
|
-
/* @__PURE__ */ (0,
|
|
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") })
|
|
1385
2095
|
] });
|
|
1386
2096
|
}
|
|
1387
2097
|
|
|
1388
2098
|
// packages/client-ui/src/client/DevLeadSessionMark.tsx
|
|
1389
2099
|
var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1390
|
-
var
|
|
2100
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1391
2101
|
function DevLeadSessionMark({ sessionId, useSessions, t }) {
|
|
1392
2102
|
const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
|
|
1393
2103
|
const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
|
|
1394
2104
|
if (enabled) {
|
|
1395
|
-
return /* @__PURE__ */ (0,
|
|
2105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1396
2106
|
"span",
|
|
1397
2107
|
{
|
|
1398
2108
|
className: "devlead-sr-only",
|
|
@@ -1403,14 +2113,14 @@ window.__ModuleLoader__.load({
|
|
|
1403
2113
|
);
|
|
1404
2114
|
}
|
|
1405
2115
|
if (!watched) return null;
|
|
1406
|
-
return /* @__PURE__ */ (0,
|
|
2116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1407
2117
|
"span",
|
|
1408
2118
|
{
|
|
1409
2119
|
className: "devlead-row-mark devlead-row-mark-watched",
|
|
1410
2120
|
role: "img",
|
|
1411
2121
|
"aria-label": t("row.watched.aria"),
|
|
1412
2122
|
"data-devlead-row-mark": "watched",
|
|
1413
|
-
children: /* @__PURE__ */ (0,
|
|
2123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
|
|
1414
2124
|
}
|
|
1415
2125
|
);
|
|
1416
2126
|
}
|
|
@@ -1473,13 +2183,23 @@ window.__ModuleLoader__.load({
|
|
|
1473
2183
|
"board.guide": "\u67E5\u770B lead \u7EF4\u62A4\u7684\u9879\u76EE\u72B6\u6001\u3001\u7126\u70B9\u3001\u963B\u585E\u4E0E\u4EFB\u52A1\uFF1B\u7528\u6237\u53EA\u8BFB\u3002",
|
|
1474
2184
|
"board.readonly": "\u53EA\u8BFB",
|
|
1475
2185
|
"board.revision": "r{revision}",
|
|
2186
|
+
"board.revision.full": "\u770B\u677F\u4FEE\u8BA2\u7248\u672C {revision}",
|
|
2187
|
+
"board.updated": "\u770B\u677F\u66F4\u65B0\u4E8E",
|
|
2188
|
+
"board.live": "Live",
|
|
2189
|
+
"board.autoRefresh.active": "\u81EA\u52A8\u5237\u65B0\u5DF2\u5F00\u542F",
|
|
2190
|
+
"board.autoRefresh.paused": "\u81EA\u52A8\u5237\u65B0\u5DF2\u6682\u505C",
|
|
2191
|
+
"board.autoRefresh.disabled": "\u81EA\u52A8\u5237\u65B0\u5DF2\u5173\u95ED",
|
|
2192
|
+
"board.kpi.aria": "\u9879\u76EE\u72B6\u6001\u6982\u89C8",
|
|
2193
|
+
"board.kpi.value": "{status}\uFF1A{count} \u4E2A\u9879\u76EE",
|
|
1476
2194
|
"board.refresh.action": "\u5237\u65B0\u9879\u76EE\u770B\u677F",
|
|
1477
|
-
"board.refresh.loading": "\u8BFB\u53D6\
|
|
1478
|
-
"board.refresh.error": "\
|
|
2195
|
+
"board.refresh.loading": "\u6B63\u5728\u8BFB\u53D6\u6700\u65B0\u5185\u5BB9",
|
|
2196
|
+
"board.refresh.error": "\u8BFB\u53D6\u5931\u8D25",
|
|
1479
2197
|
"board.refresh.ready": "\u6B63\u5E38",
|
|
1480
2198
|
"board.refresh.empty": "\u6682\u65E0\u6570\u636E",
|
|
1481
|
-
"board.watch.connecting": "\u6B63\u5728\u8FDE\u63A5\u81EA\u52A8\
|
|
1482
|
-
"board.watch.ended": "\
|
|
2199
|
+
"board.watch.connecting": "\u6B63\u5728\u8FDE\u63A5\u6587\u4EF6\u76D1\u542C\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u5DF2\u5F00\u542F",
|
|
2200
|
+
"board.watch.ended": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u4ECD\u5F00\u542F",
|
|
2201
|
+
"board.watch.ended.paused": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u5DF2\u6682\u505C",
|
|
2202
|
+
"board.watch.ended.disabled": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u8BF7\u624B\u52A8\u5237\u65B0",
|
|
1483
2203
|
"board.time.now": "\u521A\u521A",
|
|
1484
2204
|
"board.time.minutes": "{count} \u5206\u949F\u524D",
|
|
1485
2205
|
"board.time.hours": "{count} \u5C0F\u65F6\u524D",
|
|
@@ -1496,8 +2216,22 @@ window.__ModuleLoader__.load({
|
|
|
1496
2216
|
"board.field.next": "\u4E0B\u4E00\u6B65",
|
|
1497
2217
|
"board.blockers": "\u963B\u585E\u9879",
|
|
1498
2218
|
"board.blocker.since": "\u59CB\u4E8E",
|
|
1499
|
-
"board.tasks.
|
|
2219
|
+
"board.tasks.label": "\u4EFB\u52A1\u8FDB\u5EA6",
|
|
2220
|
+
"board.tasks.count": "{done}/{total}",
|
|
2221
|
+
"board.tasks.progress": "\u4EFB\u52A1\u8FDB\u5EA6\uFF1A{total} \u9879\u4E2D\u5DF2\u5B8C\u6210 {done} \u9879",
|
|
2222
|
+
"board.tasks.summary": "\u67E5\u770B\u4EFB\u52A1\u8BE6\u60C5\uFF08{done}/{total} \u5DF2\u5B8C\u6210\uFF09",
|
|
2223
|
+
"board.tasks.details": "\u4EFB\u52A1",
|
|
1500
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",
|
|
1501
2235
|
"board.task.owner": "\u8D1F\u8D23\u4F1A\u8BDD",
|
|
1502
2236
|
"board.task.status.todo": "\u5F85\u529E",
|
|
1503
2237
|
"board.task.status.doing": "\u8FDB\u884C\u4E2D",
|
|
@@ -1505,6 +2239,7 @@ window.__ModuleLoader__.load({
|
|
|
1505
2239
|
"board.task.status.done": "\u5DF2\u5B8C\u6210",
|
|
1506
2240
|
"board.project.updated": "\u66F4\u65B0\u4E8E",
|
|
1507
2241
|
"board.loading": "\u6B63\u5728\u8BFB\u53D6\u9879\u76EE\u770B\u677F\u2026",
|
|
2242
|
+
"board.loading.description": "\u6B63\u5728\u540C\u6B65\u9879\u76EE\u3001\u4EFB\u52A1\u4E0E\u963B\u585E\u72B6\u6001\uFF0C\u8BF7\u7A0D\u5019\u3002",
|
|
1508
2243
|
"board.empty.title": "\u8FD8\u6CA1\u6709\u770B\u677F\u6570\u636E",
|
|
1509
2244
|
"board.empty.description": "lead AI \u9996\u6B21\u901A\u8FC7\u770B\u677F\u5DE5\u5177\u5199\u5165\u540E\uFF0C\u9879\u76EE\u4F1A\u663E\u793A\u5728\u8FD9\u91CC\u3002",
|
|
1510
2245
|
"board.emptyProjects.title": "\u770B\u677F\u4E2D\u8FD8\u6CA1\u6709\u9879\u76EE",
|
|
@@ -1585,13 +2320,23 @@ window.__ModuleLoader__.load({
|
|
|
1585
2320
|
"board.guide": "Read lead-maintained project status, focus, blockers, and tasks. Read-only for people.",
|
|
1586
2321
|
"board.readonly": "Read-only",
|
|
1587
2322
|
"board.revision": "r{revision}",
|
|
2323
|
+
"board.revision.full": "Board revision {revision}",
|
|
2324
|
+
"board.updated": "Board updated",
|
|
2325
|
+
"board.live": "Live",
|
|
2326
|
+
"board.autoRefresh.active": "Auto refresh on",
|
|
2327
|
+
"board.autoRefresh.paused": "Auto refresh paused",
|
|
2328
|
+
"board.autoRefresh.disabled": "Auto refresh off",
|
|
2329
|
+
"board.kpi.aria": "Project status overview",
|
|
2330
|
+
"board.kpi.value": "{status}: {count} project(s)",
|
|
1588
2331
|
"board.refresh.action": "Refresh project board",
|
|
1589
|
-
"board.refresh.loading": "Reading",
|
|
1590
|
-
"board.refresh.error": "
|
|
2332
|
+
"board.refresh.loading": "Reading the latest content",
|
|
2333
|
+
"board.refresh.error": "Read failed",
|
|
1591
2334
|
"board.refresh.ready": "Up to date",
|
|
1592
2335
|
"board.refresh.empty": "No data",
|
|
1593
|
-
"board.watch.connecting": "Connecting
|
|
1594
|
-
"board.watch.ended": "
|
|
2336
|
+
"board.watch.connecting": "Connecting file watch; automatic polling is on",
|
|
2337
|
+
"board.watch.ended": "File watch disconnected; automatic polling is still on",
|
|
2338
|
+
"board.watch.ended.paused": "File watch disconnected; automatic polling is paused",
|
|
2339
|
+
"board.watch.ended.disabled": "File watch disconnected; refresh manually",
|
|
1595
2340
|
"board.time.now": "just now",
|
|
1596
2341
|
"board.time.minutes": "{count} min ago",
|
|
1597
2342
|
"board.time.hours": "{count} hr ago",
|
|
@@ -1608,8 +2353,22 @@ window.__ModuleLoader__.load({
|
|
|
1608
2353
|
"board.field.next": "Next",
|
|
1609
2354
|
"board.blockers": "Blockers",
|
|
1610
2355
|
"board.blocker.since": "since",
|
|
1611
|
-
"board.tasks.
|
|
2356
|
+
"board.tasks.label": "Task progress",
|
|
2357
|
+
"board.tasks.count": "{done}/{total}",
|
|
2358
|
+
"board.tasks.progress": "Task progress: {done} of {total} complete",
|
|
2359
|
+
"board.tasks.summary": "View task details ({done}/{total} done)",
|
|
2360
|
+
"board.tasks.details": "Tasks",
|
|
1612
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",
|
|
1613
2372
|
"board.task.owner": "Owner",
|
|
1614
2373
|
"board.task.status.todo": "To do",
|
|
1615
2374
|
"board.task.status.doing": "Doing",
|
|
@@ -1617,6 +2376,7 @@ window.__ModuleLoader__.load({
|
|
|
1617
2376
|
"board.task.status.done": "Done",
|
|
1618
2377
|
"board.project.updated": "Updated",
|
|
1619
2378
|
"board.loading": "Reading the project board\u2026",
|
|
2379
|
+
"board.loading.description": "Syncing projects, tasks, and blockers. This will only take a moment.",
|
|
1620
2380
|
"board.empty.title": "No board data yet",
|
|
1621
2381
|
"board.empty.description": "Projects appear here after the lead AI first writes through the board tool.",
|
|
1622
2382
|
"board.emptyProjects.title": "No projects on the board yet",
|
|
@@ -2036,8 +2796,8 @@ window.__ModuleLoader__.load({
|
|
|
2036
2796
|
align-items: center;
|
|
2037
2797
|
}
|
|
2038
2798
|
|
|
2039
|
-
/* Read-only
|
|
2040
|
-
|
|
2799
|
+
/* Read-only board: quiet operational typography, no decorative gradients.
|
|
2800
|
+
Container queries follow the actual pane: 1 / 2 / 3 columns as room allows. */
|
|
2041
2801
|
.devlead-board-open {
|
|
2042
2802
|
flex: none;
|
|
2043
2803
|
width: 28px;
|
|
@@ -2050,6 +2810,7 @@ window.__ModuleLoader__.load({
|
|
|
2050
2810
|
}
|
|
2051
2811
|
|
|
2052
2812
|
.devlead-board {
|
|
2813
|
+
container: devlead-board / inline-size;
|
|
2053
2814
|
display: flex;
|
|
2054
2815
|
flex-direction: column;
|
|
2055
2816
|
width: 100%;
|
|
@@ -2061,23 +2822,27 @@ window.__ModuleLoader__.load({
|
|
|
2061
2822
|
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2062
2823
|
font-family: inherit;
|
|
2063
2824
|
font-size: 13px;
|
|
2064
|
-
line-height:
|
|
2825
|
+
line-height: 19px;
|
|
2065
2826
|
}
|
|
2066
2827
|
|
|
2067
2828
|
.devlead-board-header {
|
|
2068
2829
|
flex: none;
|
|
2069
2830
|
min-width: 0;
|
|
2070
|
-
padding:
|
|
2831
|
+
padding: 10px 11px 9px;
|
|
2071
2832
|
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2833
|
+
background: var(--dsw-specific-menu, Canvas);
|
|
2072
2834
|
}
|
|
2073
2835
|
|
|
2074
2836
|
.devlead-board-title-row,
|
|
2075
2837
|
.devlead-board-title-group,
|
|
2838
|
+
.devlead-board-header-strip,
|
|
2839
|
+
.devlead-board-live,
|
|
2076
2840
|
.devlead-board-meta,
|
|
2077
2841
|
.devlead-board-card-header,
|
|
2078
2842
|
.devlead-board-card-badges,
|
|
2079
2843
|
.devlead-board-task-heading,
|
|
2080
|
-
.devlead-board-task-meta
|
|
2844
|
+
.devlead-board-task-meta,
|
|
2845
|
+
.devlead-board-progress-heading {
|
|
2081
2846
|
display: flex;
|
|
2082
2847
|
min-width: 0;
|
|
2083
2848
|
align-items: center;
|
|
@@ -2090,393 +2855,1130 @@ window.__ModuleLoader__.load({
|
|
|
2090
2855
|
|
|
2091
2856
|
.devlead-board-title-group {
|
|
2092
2857
|
flex: 1 1 auto;
|
|
2093
|
-
|
|
2094
|
-
gap: 8px;
|
|
2858
|
+
gap: 7px;
|
|
2095
2859
|
}
|
|
2096
2860
|
|
|
2097
2861
|
.devlead-board-title-group h3,
|
|
2098
2862
|
.devlead-board-card-heading h5,
|
|
2099
|
-
.devlead-board-group
|
|
2863
|
+
.devlead-board-group h4,
|
|
2100
2864
|
.devlead-board-placeholder h4,
|
|
2101
2865
|
.devlead-board-error h4,
|
|
2102
|
-
.devlead-board-blockers h6
|
|
2866
|
+
.devlead-board-blockers h6,
|
|
2867
|
+
.devlead-notes-state h4 {
|
|
2868
|
+
min-width: 0;
|
|
2103
2869
|
margin: 0;
|
|
2104
2870
|
font: inherit;
|
|
2105
|
-
font-weight:
|
|
2871
|
+
font-weight: 650;
|
|
2106
2872
|
}
|
|
2107
2873
|
|
|
2108
2874
|
.devlead-board-title-group h3 {
|
|
2875
|
+
overflow: hidden;
|
|
2109
2876
|
font-size: 15px;
|
|
2110
|
-
line-height:
|
|
2877
|
+
line-height: 22px;
|
|
2878
|
+
letter-spacing: -0.015em;
|
|
2879
|
+
text-overflow: ellipsis;
|
|
2880
|
+
white-space: nowrap;
|
|
2111
2881
|
}
|
|
2112
2882
|
|
|
2113
|
-
.devlead-board-refresh
|
|
2883
|
+
.devlead-board-refresh,
|
|
2884
|
+
.devlead-notes-back {
|
|
2114
2885
|
flex: none;
|
|
2115
2886
|
width: 28px;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
.devlead-board-meta {
|
|
2119
|
-
flex-wrap: wrap;
|
|
2120
|
-
gap: 4px 10px;
|
|
2121
|
-
margin-top: 4px;
|
|
2887
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
2122
2888
|
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2123
|
-
|
|
2889
|
+
transition: color 120ms ease, background-color 120ms ease;
|
|
2124
2890
|
}
|
|
2125
2891
|
|
|
2126
|
-
.devlead-board-
|
|
2127
|
-
|
|
2892
|
+
.devlead-board-refresh[aria-busy="true"] > svg {
|
|
2893
|
+
animation: devlead-board-spin 1s linear infinite;
|
|
2128
2894
|
}
|
|
2129
2895
|
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
align-items: center;
|
|
2133
|
-
gap: 5px;
|
|
2134
|
-
margin-left: auto;
|
|
2896
|
+
@keyframes devlead-board-spin {
|
|
2897
|
+
to { transform: rotate(360deg); }
|
|
2135
2898
|
}
|
|
2136
2899
|
|
|
2137
|
-
.devlead-board-
|
|
2138
|
-
flex:
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
overflow-x: hidden;
|
|
2143
|
-
overflow-y: auto;
|
|
2144
|
-
overscroll-behavior: contain;
|
|
2900
|
+
.devlead-board-header-strip {
|
|
2901
|
+
flex-wrap: wrap;
|
|
2902
|
+
justify-content: space-between;
|
|
2903
|
+
gap: 3px 10px;
|
|
2904
|
+
margin-top: 2px;
|
|
2145
2905
|
}
|
|
2146
2906
|
|
|
2147
|
-
.devlead-board-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
border: 1px dashed var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2152
|
-
border-radius: var(--dsw-radius-lg, 12px);
|
|
2907
|
+
.devlead-board-live {
|
|
2908
|
+
flex: 1 1 180px;
|
|
2909
|
+
gap: 5px;
|
|
2910
|
+
overflow: hidden;
|
|
2153
2911
|
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2154
|
-
|
|
2912
|
+
font-size: 10px;
|
|
2913
|
+
line-height: 16px;
|
|
2155
2914
|
}
|
|
2156
2915
|
|
|
2157
|
-
.devlead-board-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
overflow-wrap: anywhere;
|
|
2916
|
+
.devlead-board-live > span:last-child {
|
|
2917
|
+
overflow: hidden;
|
|
2918
|
+
text-overflow: ellipsis;
|
|
2919
|
+
white-space: nowrap;
|
|
2162
2920
|
}
|
|
2163
2921
|
|
|
2164
|
-
.devlead-board-
|
|
2165
|
-
|
|
2166
|
-
color: var(--dsw-alias-label-error, #c0392b);
|
|
2922
|
+
.devlead-board-live[data-auto-refresh="paused"] {
|
|
2923
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2167
2924
|
}
|
|
2168
2925
|
|
|
2169
|
-
.devlead-board-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2926
|
+
.devlead-board-meta {
|
|
2927
|
+
flex: 0 1 auto;
|
|
2928
|
+
justify-content: flex-end;
|
|
2929
|
+
gap: 7px;
|
|
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;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.devlead-board-kpis {
|
|
2953
|
+
display: flex;
|
|
2954
|
+
min-width: 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;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.devlead-board-kpis > div {
|
|
2966
|
+
display: inline-flex;
|
|
2967
|
+
flex: 1 0 auto;
|
|
2968
|
+
min-width: 0;
|
|
2969
|
+
align-items: baseline;
|
|
2970
|
+
justify-content: center;
|
|
2971
|
+
gap: 5px;
|
|
2972
|
+
margin: 0;
|
|
2973
|
+
padding: 2px 7px;
|
|
2974
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2975
|
+
border-radius: 999px;
|
|
2976
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
.devlead-board-kpis dt {
|
|
2980
|
+
min-width: 0;
|
|
2981
|
+
overflow: hidden;
|
|
2982
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2983
|
+
font-size: 10px;
|
|
2984
|
+
line-height: 15px;
|
|
2985
|
+
text-overflow: ellipsis;
|
|
2986
|
+
white-space: nowrap;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.devlead-board-kpis dd {
|
|
2990
|
+
flex: none;
|
|
2991
|
+
margin: 0;
|
|
2992
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2993
|
+
font-size: 11px;
|
|
2994
|
+
font-variant-numeric: tabular-nums;
|
|
2995
|
+
font-weight: 700;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
.devlead-board-kpis > div[data-tone="blocked"] {
|
|
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);
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
.devlead-board-kpis > div[data-tone="blocked"] dd,
|
|
3004
|
+
.devlead-board-kpis > div[data-tone="blocked"] dt {
|
|
3005
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
.devlead-board-kpis > div[data-tone="done"] dd {
|
|
3009
|
+
color: var(--dsw-alias-state-success-primary, #2e7d32);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.devlead-board-content {
|
|
3013
|
+
flex: 1 1 auto;
|
|
3014
|
+
min-width: 0;
|
|
3015
|
+
min-height: 0;
|
|
3016
|
+
padding: 9px;
|
|
3017
|
+
overflow-x: hidden;
|
|
3018
|
+
overflow-y: auto;
|
|
3019
|
+
overscroll-behavior: contain;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
.devlead-board-placeholder,
|
|
3023
|
+
.devlead-board-error,
|
|
3024
|
+
.devlead-notes-state {
|
|
3025
|
+
display: flex;
|
|
3026
|
+
align-items: center;
|
|
3027
|
+
max-width: 100%;
|
|
3028
|
+
min-height: 150px;
|
|
3029
|
+
margin: 5px 0;
|
|
3030
|
+
padding: 24px 16px;
|
|
3031
|
+
overflow: hidden;
|
|
3032
|
+
border: 1px dashed var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3033
|
+
border-radius: var(--dsw-radius-lg, 12px);
|
|
3034
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3035
|
+
text-align: center;
|
|
3036
|
+
flex-direction: column;
|
|
3037
|
+
justify-content: center;
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
.devlead-board-state-mark {
|
|
3041
|
+
display: inline-flex;
|
|
3042
|
+
align-items: center;
|
|
3043
|
+
justify-content: center;
|
|
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));
|
|
3048
|
+
border-radius: 999px;
|
|
3049
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3050
|
+
font-size: 17px;
|
|
3051
|
+
line-height: 1;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
.devlead-board-placeholder p,
|
|
3055
|
+
.devlead-board-error p,
|
|
3056
|
+
.devlead-board-unlisted-body p {
|
|
3057
|
+
max-width: 42ch;
|
|
3058
|
+
margin: 5px 0 0;
|
|
3059
|
+
overflow-wrap: anywhere;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.devlead-board-error {
|
|
3063
|
+
border-style: solid;
|
|
3064
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 60%, transparent);
|
|
3065
|
+
color: var(--dsw-alias-label-error, #c0392b);
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
.devlead-board-error-detail,
|
|
3069
|
+
.devlead-notes-state code {
|
|
3070
|
+
display: -webkit-box;
|
|
3071
|
+
max-width: 100%;
|
|
3072
|
+
margin: 9px 0;
|
|
3073
|
+
overflow: hidden;
|
|
3074
|
+
overflow-wrap: anywhere;
|
|
3075
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3076
|
+
font-family: inherit;
|
|
3077
|
+
font-size: 11px;
|
|
3078
|
+
white-space: pre-wrap;
|
|
3079
|
+
-webkit-box-orient: vertical;
|
|
3080
|
+
-webkit-line-clamp: 4;
|
|
3081
|
+
}
|
|
2179
3082
|
|
|
2180
3083
|
.devlead-board-blocked-notice {
|
|
2181
3084
|
display: flex;
|
|
2182
3085
|
align-items: flex-start;
|
|
2183
3086
|
gap: 7px;
|
|
2184
|
-
margin-bottom:
|
|
3087
|
+
margin-bottom: 9px;
|
|
2185
3088
|
padding: 8px 10px;
|
|
2186
3089
|
border: 1px solid var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2187
|
-
border-radius: var(--dsw-radius-
|
|
3090
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
3091
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 10%, transparent);
|
|
3092
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
.devlead-board-blocked-notice > svg {
|
|
3096
|
+
flex: none;
|
|
3097
|
+
margin-top: 2px;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
.devlead-board-blocked-notice > strong {
|
|
3101
|
+
overflow-wrap: anywhere;
|
|
3102
|
+
font-weight: 650;
|
|
3103
|
+
}
|
|
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
|
+
|
|
3114
|
+
.devlead-board-group {
|
|
3115
|
+
min-width: 0;
|
|
3116
|
+
max-width: 100%;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
.devlead-board-group + .devlead-board-group {
|
|
3120
|
+
margin-top: 12px;
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
.devlead-board-group-header {
|
|
3124
|
+
display: flex;
|
|
3125
|
+
align-items: center;
|
|
3126
|
+
justify-content: space-between;
|
|
3127
|
+
gap: 7px;
|
|
3128
|
+
margin: 0 2px 6px;
|
|
3129
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
.devlead-board-group-header h4 {
|
|
3133
|
+
overflow: hidden;
|
|
3134
|
+
font-size: 11px;
|
|
3135
|
+
letter-spacing: 0.045em;
|
|
3136
|
+
text-overflow: ellipsis;
|
|
3137
|
+
text-transform: uppercase;
|
|
3138
|
+
white-space: nowrap;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
.devlead-board-group[data-board-group="blocked"] > .devlead-board-group-header h4 {
|
|
3142
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
.devlead-board-cards {
|
|
3146
|
+
display: grid;
|
|
3147
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3148
|
+
gap: 8px;
|
|
3149
|
+
min-width: 0;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
.devlead-board-card {
|
|
3153
|
+
position: relative;
|
|
3154
|
+
min-width: 0;
|
|
3155
|
+
max-width: 100%;
|
|
3156
|
+
padding: 9px 10px 8px 12px;
|
|
3157
|
+
overflow: hidden;
|
|
3158
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3159
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
3160
|
+
background: var(--dsw-specific-menu, Canvas);
|
|
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);
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
.devlead-board-card[data-status="blocked"] {
|
|
3182
|
+
border-color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
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);
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
.devlead-board-card[data-status="blocked"]::before {
|
|
3188
|
+
background: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
.devlead-board-card-header {
|
|
3192
|
+
align-items: flex-start;
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
.devlead-board-card-heading {
|
|
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;
|
|
3201
|
+
min-width: 0;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
.devlead-board-card-status {
|
|
3205
|
+
display: inline-flex;
|
|
3206
|
+
align-items: center;
|
|
3207
|
+
justify-content: center;
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3210
|
+
.devlead-board-card-heading h5 {
|
|
3211
|
+
overflow: hidden;
|
|
3212
|
+
font-size: 13px;
|
|
3213
|
+
line-height: 19px;
|
|
3214
|
+
text-overflow: ellipsis;
|
|
3215
|
+
white-space: nowrap;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
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 {
|
|
3228
|
+
display: block;
|
|
3229
|
+
margin: 1px 0 0 15px;
|
|
3230
|
+
overflow: hidden;
|
|
3231
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3232
|
+
font-family: inherit;
|
|
3233
|
+
font-size: 10px;
|
|
3234
|
+
line-height: 15px;
|
|
3235
|
+
text-overflow: ellipsis;
|
|
3236
|
+
white-space: nowrap;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
.devlead-board-card-badges {
|
|
3240
|
+
flex-wrap: wrap;
|
|
3241
|
+
gap: 4px;
|
|
3242
|
+
min-width: 0;
|
|
3243
|
+
max-width: 100%;
|
|
3244
|
+
margin-top: 5px;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
.devlead-board-card-badges > span {
|
|
3248
|
+
font-size: 10px;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
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;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
.devlead-board-notes-chip > svg,
|
|
3272
|
+
.devlead-board-notes-chip > strong {
|
|
3273
|
+
flex: none;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
.devlead-board-notes-chip > strong {
|
|
3277
|
+
font-variant-numeric: tabular-nums;
|
|
3278
|
+
}
|
|
3279
|
+
|
|
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;
|
|
3288
|
+
overflow: hidden;
|
|
3289
|
+
text-overflow: ellipsis;
|
|
3290
|
+
white-space: nowrap;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
.devlead-board-field {
|
|
3294
|
+
min-width: 0;
|
|
3295
|
+
margin-top: 7px;
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
.devlead-board-field p {
|
|
3299
|
+
display: -webkit-box;
|
|
3300
|
+
min-width: 0;
|
|
3301
|
+
margin: 0;
|
|
3302
|
+
overflow: hidden;
|
|
3303
|
+
overflow-wrap: anywhere;
|
|
3304
|
+
white-space: pre-wrap;
|
|
3305
|
+
-webkit-box-orient: vertical;
|
|
3306
|
+
-webkit-line-clamp: 2;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
.devlead-board-field-focus {
|
|
3310
|
+
margin-top: 8px;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
.devlead-board-field-focus p {
|
|
3314
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3315
|
+
font-size: 14px;
|
|
3316
|
+
font-weight: 600;
|
|
3317
|
+
line-height: 20px;
|
|
3318
|
+
-webkit-line-clamp: 3;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
.devlead-board-field-next {
|
|
3322
|
+
display: flex;
|
|
3323
|
+
align-items: flex-start;
|
|
3324
|
+
gap: 6px;
|
|
3325
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3326
|
+
}
|
|
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
|
+
|
|
3347
|
+
.devlead-board-blockers {
|
|
3348
|
+
margin-top: 8px;
|
|
3349
|
+
padding: 7px 8px;
|
|
3350
|
+
overflow: hidden;
|
|
3351
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 42%, transparent);
|
|
3352
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
3353
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 8%, transparent);
|
|
2188
3354
|
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2189
3355
|
}
|
|
2190
3356
|
|
|
2191
|
-
.devlead-board-
|
|
2192
|
-
|
|
2193
|
-
|
|
3357
|
+
.devlead-board-blockers h6 {
|
|
3358
|
+
display: flex;
|
|
3359
|
+
align-items: center;
|
|
3360
|
+
gap: 5px;
|
|
3361
|
+
font-size: 11px;
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
.devlead-board-blockers ul,
|
|
3365
|
+
.devlead-board-tasks ul {
|
|
3366
|
+
min-width: 0;
|
|
3367
|
+
margin: 5px 0 0;
|
|
3368
|
+
padding: 0;
|
|
3369
|
+
list-style: none;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
.devlead-board-blockers li + li {
|
|
3373
|
+
margin-top: 6px;
|
|
3374
|
+
padding-top: 6px;
|
|
3375
|
+
border-top: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 24%, transparent);
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
.devlead-board-blockers li > span:first-child {
|
|
3379
|
+
display: -webkit-box;
|
|
3380
|
+
overflow: hidden;
|
|
3381
|
+
overflow-wrap: anywhere;
|
|
3382
|
+
white-space: pre-wrap;
|
|
3383
|
+
-webkit-box-orient: vertical;
|
|
3384
|
+
-webkit-line-clamp: 3;
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
.devlead-board-blocker-since {
|
|
3388
|
+
display: block;
|
|
3389
|
+
margin-top: 1px;
|
|
3390
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3391
|
+
font-size: 10px;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
.devlead-board-progress {
|
|
3395
|
+
margin-top: 8px;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
.devlead-board-progress-heading {
|
|
3399
|
+
justify-content: flex-end;
|
|
3400
|
+
height: 13px;
|
|
3401
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3402
|
+
font-size: 10px;
|
|
3403
|
+
line-height: 13px;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
.devlead-board-progress-heading > strong {
|
|
3407
|
+
font-variant-numeric: tabular-nums;
|
|
3408
|
+
font-weight: 600;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
.devlead-board-progress progress {
|
|
3412
|
+
display: block;
|
|
3413
|
+
width: 100%;
|
|
3414
|
+
height: 2px;
|
|
3415
|
+
overflow: hidden;
|
|
3416
|
+
appearance: none;
|
|
3417
|
+
border: 0;
|
|
3418
|
+
border-radius: 999px;
|
|
3419
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
3420
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
.devlead-board-progress progress::-webkit-progress-bar {
|
|
3424
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
.devlead-board-progress progress::-webkit-progress-value {
|
|
3428
|
+
background: var(--dsw-alias-state-business-primary, #4176e6);
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
.devlead-board-progress progress::-moz-progress-bar {
|
|
3432
|
+
background: var(--dsw-alias-state-business-primary, #4176e6);
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
.devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-webkit-progress-value,
|
|
3436
|
+
.devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-moz-progress-bar {
|
|
3437
|
+
background: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
.devlead-board-tasks {
|
|
3441
|
+
min-width: 0;
|
|
3442
|
+
margin-top: 6px;
|
|
3443
|
+
border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.devlead-board summary {
|
|
3447
|
+
min-width: 0;
|
|
3448
|
+
max-width: 100%;
|
|
3449
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3450
|
+
cursor: pointer;
|
|
3451
|
+
font-weight: 500;
|
|
3452
|
+
list-style: none;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
.devlead-board summary::-webkit-details-marker {
|
|
3456
|
+
display: none;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
.devlead-board summary::after {
|
|
3460
|
+
flex: none;
|
|
3461
|
+
margin-left: auto;
|
|
3462
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3463
|
+
content: '\u203A';
|
|
3464
|
+
font-size: 16px;
|
|
3465
|
+
font-weight: 400;
|
|
3466
|
+
transform: rotate(0deg);
|
|
3467
|
+
transition: transform 120ms ease;
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
.devlead-board details[open] > summary::after {
|
|
3471
|
+
transform: rotate(90deg);
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
.devlead-board-tasks > summary {
|
|
3475
|
+
display: flex;
|
|
3476
|
+
align-items: center;
|
|
3477
|
+
gap: 6px;
|
|
3478
|
+
padding: 6px 1px 0;
|
|
3479
|
+
overflow: hidden;
|
|
3480
|
+
font-size: 11px;
|
|
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;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
.devlead-board-tasks li {
|
|
3494
|
+
min-width: 0;
|
|
3495
|
+
padding: 6px 0;
|
|
3496
|
+
border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3499
|
+
.devlead-board-task-heading {
|
|
3500
|
+
align-items: flex-start;
|
|
3501
|
+
gap: 7px;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.devlead-board-task-title {
|
|
3505
|
+
display: -webkit-box;
|
|
3506
|
+
flex: 1 1 auto;
|
|
3507
|
+
min-width: 0;
|
|
3508
|
+
overflow: hidden;
|
|
3509
|
+
overflow-wrap: anywhere;
|
|
3510
|
+
white-space: pre-wrap;
|
|
3511
|
+
-webkit-box-orient: vertical;
|
|
3512
|
+
-webkit-line-clamp: 2;
|
|
3513
|
+
}
|
|
3514
|
+
|
|
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;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
.devlead-board-task-meta {
|
|
3527
|
+
flex-wrap: wrap;
|
|
3528
|
+
gap: 3px 7px;
|
|
3529
|
+
margin-top: 2px;
|
|
3530
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3531
|
+
font-size: 10px;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
.devlead-board-task-meta code {
|
|
3535
|
+
overflow: hidden;
|
|
3536
|
+
font-family: inherit;
|
|
3537
|
+
text-overflow: ellipsis;
|
|
3538
|
+
white-space: nowrap;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
.devlead-board-card-footer {
|
|
3542
|
+
display: flex;
|
|
3543
|
+
align-items: center;
|
|
3544
|
+
justify-content: flex-end;
|
|
3545
|
+
gap: 3px;
|
|
3546
|
+
margin-top: 5px;
|
|
3547
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3548
|
+
font-size: 10px;
|
|
3549
|
+
line-height: 14px;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
.devlead-board-muted {
|
|
3553
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
.devlead-board-secondary {
|
|
3557
|
+
min-width: 0;
|
|
3558
|
+
max-width: 100%;
|
|
3559
|
+
margin-top: 9px;
|
|
3560
|
+
overflow: hidden;
|
|
3561
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3562
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
3563
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
.devlead-board-secondary > summary {
|
|
3567
|
+
display: flex;
|
|
3568
|
+
align-items: center;
|
|
3569
|
+
gap: 7px;
|
|
3570
|
+
min-height: 36px;
|
|
3571
|
+
padding: 7px 9px;
|
|
3572
|
+
overflow: hidden;
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
.devlead-board-secondary > summary > h4 {
|
|
3576
|
+
display: flex;
|
|
3577
|
+
flex: 1 1 auto;
|
|
3578
|
+
align-items: center;
|
|
3579
|
+
justify-content: space-between;
|
|
3580
|
+
gap: 7px;
|
|
3581
|
+
overflow: hidden;
|
|
3582
|
+
font-size: 11px;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3585
|
+
.devlead-board-secondary > summary > h4 > span:first-child,
|
|
3586
|
+
.devlead-board-unlisted > summary > span:first-child {
|
|
3587
|
+
min-width: 0;
|
|
3588
|
+
overflow: hidden;
|
|
3589
|
+
text-overflow: ellipsis;
|
|
3590
|
+
white-space: nowrap;
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
.devlead-board-secondary[open] > summary {
|
|
3594
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
.devlead-board-secondary > .devlead-board-cards {
|
|
3598
|
+
padding: 8px;
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
.devlead-board-unlisted-body {
|
|
3602
|
+
padding: 8px 9px;
|
|
3603
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3604
|
+
font-size: 12px;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
.devlead-board-unlisted-list {
|
|
3608
|
+
margin: 0;
|
|
3609
|
+
padding: 0;
|
|
3610
|
+
list-style: none;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
.devlead-board-unlisted-list li {
|
|
3614
|
+
padding: 7px 0;
|
|
3615
|
+
overflow: hidden;
|
|
3616
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
.devlead-board-unlisted-list li:last-child {
|
|
3620
|
+
border-bottom: 0;
|
|
2194
3621
|
}
|
|
2195
3622
|
|
|
2196
|
-
.devlead-board-
|
|
2197
|
-
|
|
3623
|
+
.devlead-board-unlisted-list strong,
|
|
3624
|
+
.devlead-board-unlisted-list code,
|
|
3625
|
+
.devlead-board-unlisted-list span {
|
|
3626
|
+
display: block;
|
|
3627
|
+
overflow: hidden;
|
|
3628
|
+
text-overflow: ellipsis;
|
|
3629
|
+
white-space: nowrap;
|
|
2198
3630
|
}
|
|
2199
3631
|
|
|
2200
|
-
.devlead-board-
|
|
2201
|
-
|
|
2202
|
-
align-items: center;
|
|
2203
|
-
justify-content: space-between;
|
|
2204
|
-
gap: 8px;
|
|
2205
|
-
margin: 0 2px 8px;
|
|
2206
|
-
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3632
|
+
.devlead-board-unlisted-list strong {
|
|
3633
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2207
3634
|
}
|
|
2208
3635
|
|
|
2209
|
-
.devlead-board-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
3636
|
+
.devlead-board-unlisted-list code {
|
|
3637
|
+
margin-top: 2px;
|
|
3638
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3639
|
+
font-family: inherit;
|
|
3640
|
+
font-size: 11px;
|
|
2214
3641
|
}
|
|
2215
3642
|
|
|
2216
|
-
.
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
padding: 12px;
|
|
3643
|
+
/* Immersive notes: two reading lanes on wide panes, stacked on narrow panes. */
|
|
3644
|
+
.devlead-board-content:has(.devlead-notes-reader) {
|
|
3645
|
+
padding: 0;
|
|
2220
3646
|
overflow: hidden;
|
|
2221
|
-
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2222
|
-
border-radius: var(--dsw-radius-lg, 12px);
|
|
2223
|
-
background: var(--dsw-specific-menu, Canvas);
|
|
2224
|
-
box-shadow: var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
|
|
2225
3647
|
}
|
|
2226
3648
|
|
|
2227
|
-
.devlead-
|
|
2228
|
-
|
|
3649
|
+
.devlead-notes-reader {
|
|
3650
|
+
display: flex;
|
|
3651
|
+
min-width: 0;
|
|
3652
|
+
min-height: 0;
|
|
3653
|
+
height: 100%;
|
|
3654
|
+
flex-direction: column;
|
|
2229
3655
|
}
|
|
2230
3656
|
|
|
2231
|
-
.devlead-
|
|
2232
|
-
|
|
2233
|
-
flex
|
|
3657
|
+
.devlead-notes-reader-header {
|
|
3658
|
+
display: flex;
|
|
3659
|
+
flex: none;
|
|
3660
|
+
align-items: center;
|
|
2234
3661
|
gap: 8px;
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
.devlead-board-card-heading {
|
|
2238
|
-
flex: 1 1 140px;
|
|
2239
3662
|
min-width: 0;
|
|
3663
|
+
padding: 9px 11px;
|
|
3664
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2240
3665
|
}
|
|
2241
3666
|
|
|
2242
|
-
.devlead-
|
|
2243
|
-
|
|
3667
|
+
.devlead-notes-reader-header > div {
|
|
3668
|
+
min-width: 0;
|
|
2244
3669
|
}
|
|
2245
3670
|
|
|
2246
|
-
.devlead-
|
|
2247
|
-
|
|
2248
|
-
margin-top: 1px;
|
|
3671
|
+
.devlead-notes-reader-header h3 {
|
|
3672
|
+
margin: 0;
|
|
2249
3673
|
overflow: hidden;
|
|
2250
|
-
|
|
2251
|
-
|
|
3674
|
+
font-size: 14px;
|
|
3675
|
+
line-height: 20px;
|
|
2252
3676
|
text-overflow: ellipsis;
|
|
2253
3677
|
white-space: nowrap;
|
|
2254
3678
|
}
|
|
2255
3679
|
|
|
2256
|
-
.devlead-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
justify-content: flex-end;
|
|
2260
|
-
gap: 5px;
|
|
2261
|
-
min-width: 0;
|
|
2262
|
-
max-width: 100%;
|
|
3680
|
+
.devlead-notes-reader-header span {
|
|
3681
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3682
|
+
font-size: 10px;
|
|
2263
3683
|
}
|
|
2264
3684
|
|
|
2265
|
-
.devlead-
|
|
2266
|
-
|
|
3685
|
+
.devlead-notes-reader > .devlead-notes-state {
|
|
3686
|
+
flex: 1 1 auto;
|
|
3687
|
+
margin: 10px;
|
|
2267
3688
|
}
|
|
2268
3689
|
|
|
2269
|
-
|
|
2270
|
-
|
|
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;
|
|
2271
3696
|
}
|
|
2272
3697
|
|
|
2273
|
-
|
|
2274
|
-
|
|
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);
|
|
2275
3705
|
}
|
|
2276
3706
|
|
|
2277
|
-
|
|
2278
|
-
|
|
3707
|
+
.devlead-notes-list ul {
|
|
3708
|
+
margin: 0;
|
|
3709
|
+
padding: 6px;
|
|
3710
|
+
list-style: none;
|
|
2279
3711
|
}
|
|
2280
3712
|
|
|
2281
|
-
.devlead-
|
|
2282
|
-
display:
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
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;
|
|
2286
3722
|
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2287
|
-
|
|
2288
|
-
|
|
3723
|
+
cursor: pointer;
|
|
3724
|
+
font: inherit;
|
|
3725
|
+
text-align: left;
|
|
3726
|
+
flex-direction: column;
|
|
2289
3727
|
}
|
|
2290
3728
|
|
|
2291
|
-
.devlead-
|
|
2292
|
-
|
|
2293
|
-
|
|
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);
|
|
2294
3732
|
}
|
|
2295
3733
|
|
|
2296
|
-
.devlead-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
3734
|
+
.devlead-notes-list strong,
|
|
3735
|
+
.devlead-notes-list button > span {
|
|
3736
|
+
max-width: 100%;
|
|
3737
|
+
overflow: hidden;
|
|
3738
|
+
text-overflow: ellipsis;
|
|
2301
3739
|
}
|
|
2302
3740
|
|
|
2303
|
-
.devlead-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
white-space:
|
|
3741
|
+
.devlead-notes-list strong {
|
|
3742
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3743
|
+
font-size: 12px;
|
|
3744
|
+
white-space: nowrap;
|
|
2307
3745
|
}
|
|
2308
3746
|
|
|
2309
|
-
.devlead-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
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;
|
|
2315
3754
|
}
|
|
2316
3755
|
|
|
2317
|
-
.devlead-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
3756
|
+
.devlead-notes-list time {
|
|
3757
|
+
margin-top: 3px;
|
|
3758
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3759
|
+
font-size: 10px;
|
|
2321
3760
|
}
|
|
2322
3761
|
|
|
2323
|
-
.devlead-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
padding:
|
|
2327
|
-
|
|
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;
|
|
2328
3769
|
}
|
|
2329
3770
|
|
|
2330
|
-
.devlead-
|
|
2331
|
-
margin-
|
|
2332
|
-
padding-
|
|
2333
|
-
border-
|
|
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));
|
|
2334
3775
|
}
|
|
2335
3776
|
|
|
2336
|
-
.devlead-
|
|
2337
|
-
|
|
3777
|
+
.devlead-note-document > header h4 {
|
|
3778
|
+
margin: 0;
|
|
2338
3779
|
overflow-wrap: anywhere;
|
|
2339
|
-
|
|
3780
|
+
font-size: 20px;
|
|
3781
|
+
line-height: 28px;
|
|
3782
|
+
letter-spacing: -0.02em;
|
|
2340
3783
|
}
|
|
2341
3784
|
|
|
2342
|
-
.devlead-
|
|
2343
|
-
|
|
2344
|
-
margin-top: 2px;
|
|
3785
|
+
.devlead-note-document > header p {
|
|
3786
|
+
margin: 5px 0;
|
|
2345
3787
|
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2346
|
-
|
|
3788
|
+
overflow-wrap: anywhere;
|
|
2347
3789
|
}
|
|
2348
3790
|
|
|
2349
|
-
.devlead-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3791
|
+
.devlead-note-document > header time {
|
|
3792
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3793
|
+
font-size: 11px;
|
|
2353
3794
|
}
|
|
2354
3795
|
|
|
2355
|
-
.devlead-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
3796
|
+
.devlead-markdown {
|
|
3797
|
+
max-width: 76ch;
|
|
3798
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3799
|
+
font-size: 13px;
|
|
3800
|
+
line-height: 1.7;
|
|
2359
3801
|
overflow-wrap: anywhere;
|
|
2360
|
-
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2361
|
-
cursor: pointer;
|
|
2362
|
-
font-weight: 500;
|
|
2363
3802
|
}
|
|
2364
3803
|
|
|
2365
|
-
.devlead-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
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;
|
|
2369
3813
|
}
|
|
2370
3814
|
|
|
2371
|
-
.devlead-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
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; }
|
|
2375
3821
|
|
|
2376
|
-
.devlead-
|
|
2377
|
-
|
|
2378
|
-
min-width: 0;
|
|
2379
|
-
overflow-wrap: anywhere;
|
|
3822
|
+
.devlead-markdown p {
|
|
3823
|
+
margin: 0.7em 0;
|
|
2380
3824
|
white-space: pre-wrap;
|
|
2381
3825
|
}
|
|
2382
3826
|
|
|
2383
|
-
.devlead-
|
|
2384
|
-
|
|
3827
|
+
.devlead-markdown ul,
|
|
3828
|
+
.devlead-markdown ol {
|
|
3829
|
+
margin: 0.65em 0;
|
|
3830
|
+
padding-left: 1.6em;
|
|
2385
3831
|
}
|
|
2386
3832
|
|
|
2387
|
-
.devlead-
|
|
2388
|
-
|
|
2389
|
-
gap: 4px 8px;
|
|
2390
|
-
margin-top: 3px;
|
|
2391
|
-
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2392
|
-
font-size: 11px;
|
|
3833
|
+
.devlead-markdown li + li {
|
|
3834
|
+
margin-top: 0.25em;
|
|
2393
3835
|
}
|
|
2394
3836
|
|
|
2395
|
-
.devlead-
|
|
2396
|
-
|
|
2397
|
-
|
|
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);
|
|
2398
3842
|
}
|
|
2399
3843
|
|
|
2400
|
-
.devlead-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
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;
|
|
2405
3850
|
}
|
|
2406
3851
|
|
|
2407
|
-
.devlead-
|
|
2408
|
-
|
|
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);
|
|
2409
3860
|
}
|
|
2410
3861
|
|
|
2411
|
-
.devlead-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
3862
|
+
.devlead-markdown pre code {
|
|
3863
|
+
padding: 0;
|
|
3864
|
+
background: transparent;
|
|
3865
|
+
white-space: pre;
|
|
3866
|
+
overflow-wrap: normal;
|
|
2416
3867
|
}
|
|
2417
3868
|
|
|
2418
|
-
.devlead-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
3869
|
+
.devlead-markdown a {
|
|
3870
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
3871
|
+
text-decoration: underline;
|
|
3872
|
+
text-underline-offset: 2px;
|
|
2422
3873
|
}
|
|
2423
3874
|
|
|
2424
|
-
.devlead-board-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
3875
|
+
.devlead-board button:focus-visible,
|
|
3876
|
+
.devlead-board summary:focus-visible,
|
|
3877
|
+
.devlead-board a:focus-visible {
|
|
3878
|
+
outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
|
|
3879
|
+
outline-offset: 2px;
|
|
2428
3880
|
}
|
|
2429
3881
|
|
|
2430
|
-
.devlead-board-
|
|
2431
|
-
|
|
2432
|
-
padding: 8px 0;
|
|
2433
|
-
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3882
|
+
.devlead-board-card:focus-within {
|
|
3883
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 60%, transparent);
|
|
2434
3884
|
}
|
|
2435
3885
|
|
|
2436
|
-
.devlead-board-
|
|
2437
|
-
|
|
3886
|
+
.devlead-board-card:focus-visible {
|
|
3887
|
+
outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
|
|
3888
|
+
outline-offset: 2px;
|
|
2438
3889
|
}
|
|
2439
3890
|
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
3891
|
+
@media (hover: hover) {
|
|
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 {
|
|
3896
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
3897
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
.devlead-board-card:hover {
|
|
3901
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
.devlead-board-card[data-status="blocked"]:hover {
|
|
3905
|
+
border-color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
.devlead-board summary:hover {
|
|
3909
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3910
|
+
}
|
|
2446
3911
|
}
|
|
2447
3912
|
|
|
2448
|
-
|
|
2449
|
-
|
|
3913
|
+
@container devlead-board (min-width: 620px) {
|
|
3914
|
+
.devlead-board-group > .devlead-board-cards {
|
|
3915
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3916
|
+
}
|
|
2450
3917
|
}
|
|
2451
3918
|
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
white-space: normal;
|
|
3919
|
+
@container devlead-board (min-width: 980px) {
|
|
3920
|
+
.devlead-board-group > .devlead-board-cards {
|
|
3921
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3922
|
+
}
|
|
2457
3923
|
}
|
|
2458
3924
|
|
|
2459
|
-
|
|
2460
|
-
|
|
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;
|
|
3939
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3940
|
+
gap: 3px;
|
|
3941
|
+
}
|
|
2461
3942
|
}
|
|
2462
3943
|
|
|
2463
|
-
@
|
|
3944
|
+
@container devlead-board (max-width: 340px) {
|
|
2464
3945
|
.devlead-board-header {
|
|
2465
|
-
padding-inline:
|
|
3946
|
+
padding-inline: 8px;
|
|
2466
3947
|
}
|
|
2467
3948
|
|
|
2468
3949
|
.devlead-board-content {
|
|
2469
|
-
padding:
|
|
3950
|
+
padding: 7px;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
.devlead-board-content:has(.devlead-notes-reader) {
|
|
3954
|
+
padding: 0;
|
|
2470
3955
|
}
|
|
2471
3956
|
|
|
2472
|
-
.devlead-board-
|
|
2473
|
-
padding:
|
|
3957
|
+
.devlead-board-kpis > div {
|
|
3958
|
+
padding-inline: 5px;
|
|
2474
3959
|
}
|
|
2475
3960
|
|
|
2476
|
-
.devlead-
|
|
2477
|
-
|
|
3961
|
+
.devlead-notes-list ul {
|
|
3962
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2478
3963
|
}
|
|
2479
3964
|
}
|
|
3965
|
+
|
|
3966
|
+
@media (max-width: 480px) {
|
|
3967
|
+
.devlead-note-document {
|
|
3968
|
+
padding: 13px 12px 24px;
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3973
|
+
.devlead-board *,
|
|
3974
|
+
.devlead-board *::before,
|
|
3975
|
+
.devlead-board *::after {
|
|
3976
|
+
scroll-behavior: auto !important;
|
|
3977
|
+
transition: none !important;
|
|
3978
|
+
animation: none !important;
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
|
|
2480
3982
|
`;
|
|
2481
3983
|
var STYLE_TAG_STATE = /* @__PURE__ */ Symbol.for("@yankeguo/dsh-client-ui-devlead.style-tag");
|
|
2482
3984
|
function styleTagState() {
|