@yankeguo/dsh-client-ui-devlead 0.4.1 → 0.4.2-rc.3
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 +59 -2
- package/lib/client.js +2230 -91
- package/lib/index.js +23 -2
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +11 -4
package/lib/client.js
CHANGED
|
@@ -29,6 +29,7 @@ window.__ModuleLoader__.load({
|
|
|
29
29
|
inject: () => inject
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(index_exports);
|
|
32
|
+
var import_dsh_client_ui_primitives7 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
32
33
|
|
|
33
34
|
// packages/client-ui/src/client/DevLeadBar.tsx
|
|
34
35
|
var import_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
@@ -115,6 +116,112 @@ window.__ModuleLoader__.load({
|
|
|
115
116
|
return `${who} \u2014 report ${kind}${suffix}`;
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
// packages/protocol/src/board.ts
|
|
120
|
+
var import_zod = require("zod");
|
|
121
|
+
var DEVLEAD_BOARD_SCHEMA_VERSION = 1;
|
|
122
|
+
var DEVLEAD_BOARD_DIR_SEGMENTS = [".dsh", "devlead"];
|
|
123
|
+
var DEVLEAD_BOARD_FILE_NAME = "board.json";
|
|
124
|
+
var DEVLEAD_BOARD_MAX_BYTES = 256 * 1024;
|
|
125
|
+
var DEVLEAD_BOARD_READ_MAX_BYTES = 64 * 1024;
|
|
126
|
+
var DEVLEAD_BOARD_MAX_PROJECTS = 50;
|
|
127
|
+
var DEVLEAD_BOARD_MAX_TASKS = 200;
|
|
128
|
+
var DEVLEAD_BOARD_MAX_BLOCKERS = 50;
|
|
129
|
+
var DEVLEAD_BOARD_TEXT_MAX = 4e3;
|
|
130
|
+
var DEVLEAD_BOARD_ID_MAX = 128;
|
|
131
|
+
var DEVLEAD_BOARD_TITLE_MAX = 200;
|
|
132
|
+
var DEVLEAD_BOARD_PATH_MAX = 4096;
|
|
133
|
+
var DEVLEAD_BOARD_TIMESTAMP_MAX = 64;
|
|
134
|
+
function pointerSegment(value) {
|
|
135
|
+
return String(value).replaceAll("~", "~0").replaceAll("/", "~1");
|
|
136
|
+
}
|
|
137
|
+
function devLeadBoardIssuePointer(path) {
|
|
138
|
+
return path.length === 0 ? "" : `/${path.map(pointerSegment).join("/")}`;
|
|
139
|
+
}
|
|
140
|
+
function devLeadBoardIssueViews(issues) {
|
|
141
|
+
return issues.map((issue) => ({
|
|
142
|
+
pointer: devLeadBoardIssuePointer(issue.path),
|
|
143
|
+
message: issue.message
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
var idSchema = import_zod.z.string().min(1).max(DEVLEAD_BOARD_ID_MAX);
|
|
147
|
+
var titleSchema = import_zod.z.string().min(1).max(DEVLEAD_BOARD_TITLE_MAX);
|
|
148
|
+
var textSchema = import_zod.z.string().max(DEVLEAD_BOARD_TEXT_MAX);
|
|
149
|
+
var timestampSchema = import_zod.z.string().max(DEVLEAD_BOARD_TIMESTAMP_MAX).pipe(import_zod.z.iso.datetime());
|
|
150
|
+
var blockerSchema = import_zod.z.object({
|
|
151
|
+
id: idSchema,
|
|
152
|
+
text: import_zod.z.string().min(1).max(DEVLEAD_BOARD_TEXT_MAX),
|
|
153
|
+
since: timestampSchema,
|
|
154
|
+
sessionId: idSchema.optional()
|
|
155
|
+
}).strict();
|
|
156
|
+
var taskSchema = import_zod.z.object({
|
|
157
|
+
id: idSchema,
|
|
158
|
+
title: import_zod.z.string().min(1).max(DEVLEAD_BOARD_TEXT_MAX),
|
|
159
|
+
status: import_zod.z.enum(["todo", "doing", "blocked", "done"]),
|
|
160
|
+
ownerSessionId: idSchema.optional(),
|
|
161
|
+
updatedAt: timestampSchema
|
|
162
|
+
}).strict();
|
|
163
|
+
function createDevLeadBoardSchema(isAbsolutePath) {
|
|
164
|
+
const projectSchema = import_zod.z.object({
|
|
165
|
+
id: idSchema,
|
|
166
|
+
workspace: import_zod.z.object({
|
|
167
|
+
path: import_zod.z.string().min(1).max(DEVLEAD_BOARD_PATH_MAX).refine(isAbsolutePath, {
|
|
168
|
+
message: "workspace path must be absolute"
|
|
169
|
+
}),
|
|
170
|
+
title: titleSchema
|
|
171
|
+
}).strict(),
|
|
172
|
+
status: import_zod.z.enum(["active", "blocked", "paused", "done"]),
|
|
173
|
+
priority: import_zod.z.enum(["low", "medium", "high"]),
|
|
174
|
+
goal: textSchema,
|
|
175
|
+
focus: textSchema,
|
|
176
|
+
next: textSchema,
|
|
177
|
+
blockers: import_zod.z.array(blockerSchema).max(DEVLEAD_BOARD_MAX_BLOCKERS),
|
|
178
|
+
tasks: import_zod.z.array(taskSchema).max(DEVLEAD_BOARD_MAX_TASKS),
|
|
179
|
+
updatedAt: timestampSchema
|
|
180
|
+
}).strict();
|
|
181
|
+
const boardSchema = import_zod.z.object({
|
|
182
|
+
schemaVersion: import_zod.z.literal(DEVLEAD_BOARD_SCHEMA_VERSION),
|
|
183
|
+
revision: import_zod.z.number().int().nonnegative().safe(),
|
|
184
|
+
updatedAt: timestampSchema,
|
|
185
|
+
updatedBy: import_zod.z.object({ sessionId: idSchema, title: titleSchema }).strict(),
|
|
186
|
+
projects: import_zod.z.array(projectSchema).max(DEVLEAD_BOARD_MAX_PROJECTS)
|
|
187
|
+
}).strict().superRefine((board, context) => {
|
|
188
|
+
const projectIds = /* @__PURE__ */ new Set();
|
|
189
|
+
const workspacePaths = /* @__PURE__ */ new Set();
|
|
190
|
+
board.projects.forEach((project, projectIndex) => {
|
|
191
|
+
if (projectIds.has(project.id)) {
|
|
192
|
+
context.addIssue({
|
|
193
|
+
code: "custom",
|
|
194
|
+
path: ["projects", projectIndex, "id"],
|
|
195
|
+
message: `duplicate project id "${project.id}"`
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
projectIds.add(project.id);
|
|
199
|
+
if (workspacePaths.has(project.workspace.path)) {
|
|
200
|
+
context.addIssue({
|
|
201
|
+
code: "custom",
|
|
202
|
+
path: ["projects", projectIndex, "workspace", "path"],
|
|
203
|
+
message: `duplicate workspace path "${project.workspace.path}"`
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
workspacePaths.add(project.workspace.path);
|
|
207
|
+
for (const [field, entries] of [["blockers", project.blockers], ["tasks", project.tasks]]) {
|
|
208
|
+
const ids = /* @__PURE__ */ new Set();
|
|
209
|
+
entries.forEach((entry, entryIndex) => {
|
|
210
|
+
if (ids.has(entry.id)) {
|
|
211
|
+
context.addIssue({
|
|
212
|
+
code: "custom",
|
|
213
|
+
path: ["projects", projectIndex, field, entryIndex, "id"],
|
|
214
|
+
message: `duplicate ${field} id "${entry.id}"`
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
ids.add(entry.id);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
return boardSchema;
|
|
223
|
+
}
|
|
224
|
+
|
|
118
225
|
// packages/client-ui/src/client/format.ts
|
|
119
226
|
var TRANSITION_LABEL_KEYS = {
|
|
120
227
|
completed: "transition.completed",
|
|
@@ -399,10 +506,856 @@ window.__ModuleLoader__.load({
|
|
|
399
506
|
);
|
|
400
507
|
}
|
|
401
508
|
|
|
402
|
-
// packages/client-ui/src/client/
|
|
403
|
-
var import_react2 = require("react");
|
|
509
|
+
// packages/client-ui/src/client/DevLeadBoardButton.tsx
|
|
404
510
|
var import_dsh_client_ui_primitives2 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
405
511
|
|
|
512
|
+
// packages/client-ui/src/client/sessionMark.ts
|
|
513
|
+
function devLeadRowEnabled(summary) {
|
|
514
|
+
return summary?.projectionValues?.[DEVLEAD_MODE_PROJECTION_KEY]?.enabled === true;
|
|
515
|
+
}
|
|
516
|
+
function devLeadRowSummaryOf(byId, sessionId) {
|
|
517
|
+
return Object.hasOwn(byId, sessionId) ? byId[sessionId] : void 0;
|
|
518
|
+
}
|
|
519
|
+
var watchedIdsCache = /* @__PURE__ */ new WeakMap();
|
|
520
|
+
function watchedIdsOf(byId) {
|
|
521
|
+
const cached = watchedIdsCache.get(byId);
|
|
522
|
+
if (cached !== void 0) return cached;
|
|
523
|
+
const watched = /* @__PURE__ */ new Set();
|
|
524
|
+
for (const [leadId, lead] of Object.entries(byId)) {
|
|
525
|
+
if (!devLeadRowEnabled(lead)) continue;
|
|
526
|
+
const sessions = lead?.projectionValues?.[DEVLEAD_WATCH_PROJECTION_KEY]?.sessions;
|
|
527
|
+
if (!Array.isArray(sessions)) continue;
|
|
528
|
+
for (const candidate of sessions) {
|
|
529
|
+
if (typeof candidate !== "string" || candidate.length === 0 || candidate === leadId) continue;
|
|
530
|
+
watched.add(candidate);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
watchedIdsCache.set(byId, watched);
|
|
534
|
+
return watched;
|
|
535
|
+
}
|
|
536
|
+
function devLeadRowWatched(sessionId, byId) {
|
|
537
|
+
if (devLeadRowEnabled(devLeadRowSummaryOf(byId, sessionId))) return false;
|
|
538
|
+
return watchedIdsOf(byId).has(sessionId);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// packages/client-ui/src/client/board.ts
|
|
542
|
+
var DEVLEAD_BOARD_GLOBAL = "__DSH_DEVLEAD_BOARD__";
|
|
543
|
+
var DEVLEAD_BOARD_TAB_KIND = "devlead-board";
|
|
544
|
+
var DEVLEAD_BOARD_TAB_ID = "@yankeguo/dsh-client-ui-devlead/board";
|
|
545
|
+
function isAbsoluteWorkspacePath(value, platform) {
|
|
546
|
+
if (platform === "win32") {
|
|
547
|
+
return /^(?:[\\/]|[A-Za-z]:[\\/])/u.test(value);
|
|
548
|
+
}
|
|
549
|
+
return value.startsWith("/");
|
|
550
|
+
}
|
|
551
|
+
var schemas = /* @__PURE__ */ new Map();
|
|
552
|
+
function devLeadBoardSchemaFor(platform = "posix") {
|
|
553
|
+
const cached = schemas.get(platform);
|
|
554
|
+
if (cached !== void 0) return cached;
|
|
555
|
+
const schema = createDevLeadBoardSchema((value) => isAbsoluteWorkspacePath(value, platform));
|
|
556
|
+
schemas.set(platform, schema);
|
|
557
|
+
return schema;
|
|
558
|
+
}
|
|
559
|
+
var devLeadBoardSchema = devLeadBoardSchemaFor();
|
|
560
|
+
var DevLeadBoardParseError = class extends Error {
|
|
561
|
+
constructor(message, options) {
|
|
562
|
+
super(message, options);
|
|
563
|
+
this.name = "DevLeadBoardParseError";
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
function readDevLeadBoardConfig(value) {
|
|
567
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
568
|
+
const record = value;
|
|
569
|
+
if (record.schemaVersion !== DEVLEAD_BOARD_SCHEMA_VERSION) return void 0;
|
|
570
|
+
if (record.pathPlatform !== "posix" && record.pathPlatform !== "win32") return void 0;
|
|
571
|
+
if (typeof record.boardPath !== "string" || record.boardPath.trim().length === 0) return void 0;
|
|
572
|
+
if (record.boardPath.length > DEVLEAD_BOARD_PATH_MAX || !isAbsoluteWorkspacePath(record.boardPath, record.pathPlatform)) return void 0;
|
|
573
|
+
if (record.leadSessionId !== void 0) {
|
|
574
|
+
if (typeof record.leadSessionId !== "string" || record.leadSessionId.length === 0) return void 0;
|
|
575
|
+
}
|
|
576
|
+
if (record.override !== void 0 && typeof record.override !== "boolean") return void 0;
|
|
577
|
+
return {
|
|
578
|
+
boardPath: record.boardPath,
|
|
579
|
+
schemaVersion: DEVLEAD_BOARD_SCHEMA_VERSION,
|
|
580
|
+
pathPlatform: record.pathPlatform,
|
|
581
|
+
...record.leadSessionId === void 0 ? {} : { leadSessionId: record.leadSessionId },
|
|
582
|
+
...record.override === void 0 ? {} : { override: record.override }
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
function currentDevLeadBoardConfig() {
|
|
586
|
+
return readDevLeadBoardConfig(globalThis[DEVLEAD_BOARD_GLOBAL]);
|
|
587
|
+
}
|
|
588
|
+
function detectDevLeadBoardPathPlatform(cwd) {
|
|
589
|
+
if (cwd.startsWith("/")) return "posix";
|
|
590
|
+
if (cwd.startsWith("\\") || /^[A-Za-z]:/u.test(cwd)) return "win32";
|
|
591
|
+
return void 0;
|
|
592
|
+
}
|
|
593
|
+
function joinDevLeadBoardPath(cwd, platform) {
|
|
594
|
+
const segments = [...DEVLEAD_BOARD_DIR_SEGMENTS, DEVLEAD_BOARD_FILE_NAME];
|
|
595
|
+
return platform === "win32" ? joinWin32Path(cwd, segments) : joinPosixPath(cwd, segments);
|
|
596
|
+
}
|
|
597
|
+
function joinPosixPath(cwd, segments) {
|
|
598
|
+
const parts = [];
|
|
599
|
+
for (const part of `${cwd}/${segments.join("/")}`.split("/")) {
|
|
600
|
+
if (part.length === 0 || part === ".") continue;
|
|
601
|
+
if (part === "..") {
|
|
602
|
+
parts.pop();
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
parts.push(part);
|
|
606
|
+
}
|
|
607
|
+
return `/${parts.join("/")}`;
|
|
608
|
+
}
|
|
609
|
+
function joinWin32Path(cwd, segments) {
|
|
610
|
+
const path = `${cwd.replaceAll("/", "\\")}\\${segments.join("\\")}`;
|
|
611
|
+
let prefix;
|
|
612
|
+
let rest;
|
|
613
|
+
const drive = /^[A-Za-z]:\\/u.exec(path);
|
|
614
|
+
if (drive !== null) {
|
|
615
|
+
prefix = drive[0];
|
|
616
|
+
rest = path.slice(3);
|
|
617
|
+
} else if (path.startsWith("\\\\")) {
|
|
618
|
+
prefix = "\\\\";
|
|
619
|
+
rest = path.slice(2);
|
|
620
|
+
} else {
|
|
621
|
+
prefix = "\\";
|
|
622
|
+
rest = path.slice(1);
|
|
623
|
+
}
|
|
624
|
+
const parts = [];
|
|
625
|
+
for (const part of rest.split("\\")) {
|
|
626
|
+
if (part.length === 0 || part === ".") continue;
|
|
627
|
+
if (part === "..") {
|
|
628
|
+
parts.pop();
|
|
629
|
+
continue;
|
|
630
|
+
}
|
|
631
|
+
parts.push(part);
|
|
632
|
+
}
|
|
633
|
+
return `${prefix}${parts.join("\\")}`;
|
|
634
|
+
}
|
|
635
|
+
function boardConfigOf(global) {
|
|
636
|
+
return {
|
|
637
|
+
boardPath: global.boardPath,
|
|
638
|
+
schemaVersion: DEVLEAD_BOARD_SCHEMA_VERSION,
|
|
639
|
+
pathPlatform: global.pathPlatform
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function resolveDevLeadBoardConfig({ sessionId, cwd, global }) {
|
|
643
|
+
if (global !== void 0) {
|
|
644
|
+
if (global.override === true) return boardConfigOf(global);
|
|
645
|
+
if (global.leadSessionId !== void 0) {
|
|
646
|
+
if (global.leadSessionId === sessionId) return boardConfigOf(global);
|
|
647
|
+
} else if (global.override === void 0) {
|
|
648
|
+
return boardConfigOf(global);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
const root = cwd?.trim() ?? "";
|
|
652
|
+
if (root.length === 0) return void 0;
|
|
653
|
+
const platform = global?.pathPlatform ?? detectDevLeadBoardPathPlatform(root);
|
|
654
|
+
if (platform === void 0 || !isAbsoluteWorkspacePath(root, platform)) return void 0;
|
|
655
|
+
return {
|
|
656
|
+
boardPath: joinDevLeadBoardPath(root, platform),
|
|
657
|
+
schemaVersion: DEVLEAD_BOARD_SCHEMA_VERSION,
|
|
658
|
+
pathPlatform: platform
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function resolveDevLeadBoardSessionConfig(sessionId, row, global) {
|
|
662
|
+
if (row === void 0 || row.origin === "subagent" || !devLeadRowEnabled(row)) return void 0;
|
|
663
|
+
return resolveDevLeadBoardConfig({ sessionId, cwd: row.cwd, global });
|
|
664
|
+
}
|
|
665
|
+
function parseDevLeadBoardBytes(bytes, pathPlatform = "posix") {
|
|
666
|
+
if (bytes.byteLength > DEVLEAD_BOARD_MAX_BYTES) {
|
|
667
|
+
throw new DevLeadBoardParseError(`board file exceeds ${DEVLEAD_BOARD_MAX_BYTES} bytes`);
|
|
668
|
+
}
|
|
669
|
+
let text;
|
|
670
|
+
try {
|
|
671
|
+
text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
672
|
+
} catch (error) {
|
|
673
|
+
throw new DevLeadBoardParseError("board file is not valid UTF-8", { cause: error });
|
|
674
|
+
}
|
|
675
|
+
return parseDevLeadBoard(text, pathPlatform);
|
|
676
|
+
}
|
|
677
|
+
function parseDevLeadBoard(text, pathPlatform = "posix") {
|
|
678
|
+
let value;
|
|
679
|
+
try {
|
|
680
|
+
value = JSON.parse(text);
|
|
681
|
+
} catch (error) {
|
|
682
|
+
throw new DevLeadBoardParseError("board file is not valid JSON", { cause: error });
|
|
683
|
+
}
|
|
684
|
+
const parsed = devLeadBoardSchemaFor(pathPlatform).safeParse(value);
|
|
685
|
+
if (!parsed.success) {
|
|
686
|
+
const first = devLeadBoardIssueViews(parsed.error.issues)[0];
|
|
687
|
+
const pointer = first === void 0 || first.pointer.length === 0 ? "/" : first.pointer;
|
|
688
|
+
throw new DevLeadBoardParseError(
|
|
689
|
+
`board schema v1 validation failed at ${pointer}: ${first?.message ?? "unknown issue"}`,
|
|
690
|
+
{ cause: parsed.error }
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
return parsed.data;
|
|
694
|
+
}
|
|
695
|
+
var STATUS_ORDER = ["blocked", "active", "paused", "done"];
|
|
696
|
+
var PRIORITY_RANK = { high: 0, medium: 1, low: 2 };
|
|
697
|
+
function compareDevLeadBoardProjects(left, right) {
|
|
698
|
+
return PRIORITY_RANK[left.priority] - PRIORITY_RANK[right.priority] || Date.parse(right.updatedAt) - Date.parse(left.updatedAt) || left.id.localeCompare(right.id);
|
|
699
|
+
}
|
|
700
|
+
function groupDevLeadBoardProjects(board) {
|
|
701
|
+
return STATUS_ORDER.flatMap((status) => {
|
|
702
|
+
const projects = board.projects.filter((project) => project.status === status).sort(compareDevLeadBoardProjects);
|
|
703
|
+
return projects.length === 0 ? [] : [{ status, projects }];
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
function projectStatusTone(status) {
|
|
707
|
+
switch (status) {
|
|
708
|
+
case "blocked":
|
|
709
|
+
return "warning";
|
|
710
|
+
case "active":
|
|
711
|
+
return "info";
|
|
712
|
+
case "done":
|
|
713
|
+
return "success";
|
|
714
|
+
case "paused":
|
|
715
|
+
return "neutral";
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
function taskStatusTone(status) {
|
|
719
|
+
switch (status) {
|
|
720
|
+
case "blocked":
|
|
721
|
+
return "warning";
|
|
722
|
+
case "doing":
|
|
723
|
+
return "info";
|
|
724
|
+
case "done":
|
|
725
|
+
return "success";
|
|
726
|
+
case "todo":
|
|
727
|
+
return "quiet";
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
function taskProgress(project) {
|
|
731
|
+
return { done: project.tasks.filter((task) => task.status === "done").length, total: project.tasks.length };
|
|
732
|
+
}
|
|
733
|
+
function truncateSessionId(value) {
|
|
734
|
+
const characters = Array.from(value);
|
|
735
|
+
return characters.length <= 18 ? value : `${characters.slice(0, 10).join("")}\u2026${characters.slice(-5).join("")}`;
|
|
736
|
+
}
|
|
737
|
+
function normalizedWorkspacePath(value, platform) {
|
|
738
|
+
let normalized = platform === "win32" ? value.replaceAll("\\", "/").toLowerCase() : value;
|
|
739
|
+
const root = platform === "win32" ? /^(?:[a-z]:\/|\/+)$/u.test(normalized) : normalized === "/";
|
|
740
|
+
if (!root) normalized = normalized.replace(/\/+$/u, "");
|
|
741
|
+
return normalized;
|
|
742
|
+
}
|
|
743
|
+
function unlistedDevLeadWorkspaces(board, workspaces, sessions, pathPlatform = "posix") {
|
|
744
|
+
const listedPaths = new Set(board.projects.map((project) => normalizedWorkspacePath(project.workspace.path, pathPlatform)));
|
|
745
|
+
return workspaces.filter((workspace) => !listedPaths.has(normalizedWorkspacePath(workspace.path, pathPlatform))).map((workspace) => {
|
|
746
|
+
let latest = Number.NEGATIVE_INFINITY;
|
|
747
|
+
for (const sessionId of workspace.sessionIds) {
|
|
748
|
+
const updatedAt = sessions[sessionId]?.updatedAt;
|
|
749
|
+
if (typeof updatedAt === "number" && Number.isFinite(updatedAt)) latest = Math.max(latest, updatedAt);
|
|
750
|
+
}
|
|
751
|
+
return {
|
|
752
|
+
...workspace,
|
|
753
|
+
sessionCount: workspace.sessionIds.length,
|
|
754
|
+
...Number.isFinite(latest) ? { lastActivityAt: new Date(latest).toISOString() } : {}
|
|
755
|
+
};
|
|
756
|
+
}).sort((left, right) => {
|
|
757
|
+
const leftTime = left.lastActivityAt === void 0 ? Number.NEGATIVE_INFINITY : Date.parse(left.lastActivityAt);
|
|
758
|
+
const rightTime = right.lastActivityAt === void 0 ? Number.NEGATIVE_INFINITY : Date.parse(right.lastActivityAt);
|
|
759
|
+
return rightTime - leftTime || left.title.localeCompare(right.title) || left.workspaceId.localeCompare(right.workspaceId);
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
function boardRelativeTime(iso, now) {
|
|
763
|
+
const elapsed = Math.max(0, now - Date.parse(iso));
|
|
764
|
+
if (elapsed < 6e4) return { unit: "now", n: 0 };
|
|
765
|
+
if (elapsed < 36e5) return { unit: "minutes", n: Math.floor(elapsed / 6e4) };
|
|
766
|
+
if (elapsed < 864e5) return { unit: "hours", n: Math.floor(elapsed / 36e5) };
|
|
767
|
+
return { unit: "days", n: Math.floor(elapsed / 864e5) };
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// packages/client-ui/src/client/DevLeadBoardButton.tsx
|
|
771
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
772
|
+
function DevLeadBoardTitle({ t }) {
|
|
773
|
+
return t("board.title");
|
|
774
|
+
}
|
|
775
|
+
function DevLeadBoardButton({ onOpen, sessionId, useSessions, t }) {
|
|
776
|
+
const visible = useSessions((snapshot) => resolveDevLeadBoardSessionConfig(sessionId, snapshot.byId[sessionId], currentDevLeadBoardConfig()) !== void 0);
|
|
777
|
+
const label = t("board.open");
|
|
778
|
+
if (!visible) return null;
|
|
779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.Tooltip, { label, side: "bottom", delayMs: 300, maxWidth: 240, portal: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
780
|
+
import_dsh_client_ui_primitives2.Button,
|
|
781
|
+
{
|
|
782
|
+
variant: "ghost",
|
|
783
|
+
size: "sm",
|
|
784
|
+
className: "devlead-board-open",
|
|
785
|
+
"aria-label": label,
|
|
786
|
+
"data-devlead-board-open": "true",
|
|
787
|
+
onClick: onOpen,
|
|
788
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.IconFlatListOutlineRegular, { size: 16 })
|
|
789
|
+
}
|
|
790
|
+
) });
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
// packages/client-ui/src/client/DevLeadBoardPanel.tsx
|
|
794
|
+
var import_react2 = require("react");
|
|
795
|
+
var import_dsh_client_ui_primitives3 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
796
|
+
|
|
797
|
+
// packages/client-ui/src/client/useBoardFile.ts
|
|
798
|
+
var import_react = require("react");
|
|
799
|
+
var DISABLED = { status: "disabled", refreshing: false };
|
|
800
|
+
function initialState(config) {
|
|
801
|
+
return config === void 0 ? DISABLED : { status: "loading", refreshing: false };
|
|
802
|
+
}
|
|
803
|
+
function errorMessage(error) {
|
|
804
|
+
return error instanceof Error ? error.message : String(error);
|
|
805
|
+
}
|
|
806
|
+
function isNotFound(result) {
|
|
807
|
+
return !result.ok && result.error.code === "workspace-file/not-found";
|
|
808
|
+
}
|
|
809
|
+
function panelPageActive() {
|
|
810
|
+
if (typeof document === "undefined") return true;
|
|
811
|
+
return document.visibilityState !== "hidden" && (typeof document.hasFocus !== "function" || document.hasFocus());
|
|
812
|
+
}
|
|
813
|
+
function useBoardFile({
|
|
814
|
+
sessionId,
|
|
815
|
+
config,
|
|
816
|
+
files,
|
|
817
|
+
visible = true,
|
|
818
|
+
debounceMs = 120,
|
|
819
|
+
pollMs = 5e3,
|
|
820
|
+
pollMaxMs = 3e4,
|
|
821
|
+
now = Date.now
|
|
822
|
+
}) {
|
|
823
|
+
const [state, setState] = (0, import_react.useState)(() => initialState(config));
|
|
824
|
+
const [watch, setWatch] = (0, import_react.useState)(config === void 0 ? "disabled" : "connecting");
|
|
825
|
+
const [autoRefresh, setAutoRefresh] = (0, import_react.useState)(() => config === void 0 ? "disabled" : visible && panelPageActive() ? "active" : "paused");
|
|
826
|
+
const [watchGeneration, setWatchGeneration] = (0, import_react.useState)(0);
|
|
827
|
+
const generation = (0, import_react.useRef)(0);
|
|
828
|
+
const readAbort = (0, import_react.useRef)(void 0);
|
|
829
|
+
const trailingRead = (0, import_react.useRef)(false);
|
|
830
|
+
const refreshRead = (0, import_react.useCallback)((force = false, queueTrailing = false) => {
|
|
831
|
+
if (config === void 0) {
|
|
832
|
+
generation.current += 1;
|
|
833
|
+
readAbort.current?.abort();
|
|
834
|
+
readAbort.current = void 0;
|
|
835
|
+
setState(DISABLED);
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
if (!force && readAbort.current !== void 0 && !readAbort.current.signal.aborted) {
|
|
839
|
+
if (queueTrailing) trailingRead.current = true;
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
const request = ++generation.current;
|
|
843
|
+
trailingRead.current = false;
|
|
844
|
+
readAbort.current?.abort();
|
|
845
|
+
const controller = new AbortController();
|
|
846
|
+
readAbort.current = controller;
|
|
847
|
+
setState((previous) => ({
|
|
848
|
+
...previous,
|
|
849
|
+
status: previous.status === "disabled" ? "loading" : previous.status,
|
|
850
|
+
refreshing: true
|
|
851
|
+
}));
|
|
852
|
+
const settle = (next) => {
|
|
853
|
+
if (generation.current !== request || controller.signal.aborted) return;
|
|
854
|
+
setState(next);
|
|
855
|
+
};
|
|
856
|
+
const fail = (kind, error) => {
|
|
857
|
+
if (generation.current !== request || controller.signal.aborted) return;
|
|
858
|
+
setState((previous) => ({
|
|
859
|
+
status: "error",
|
|
860
|
+
error: { kind, message: errorMessage(error) },
|
|
861
|
+
...previous.lastSuccessAt === void 0 ? {} : { lastSuccessAt: previous.lastSuccessAt },
|
|
862
|
+
refreshing: false
|
|
863
|
+
}));
|
|
864
|
+
};
|
|
865
|
+
void (async () => {
|
|
866
|
+
try {
|
|
867
|
+
const metadata = await files.stat(sessionId, config.boardPath, controller.signal);
|
|
868
|
+
if (generation.current !== request || controller.signal.aborted) return;
|
|
869
|
+
if (!metadata.ok) {
|
|
870
|
+
if (isNotFound(metadata)) {
|
|
871
|
+
settle({ status: "empty", refreshing: false });
|
|
872
|
+
} else {
|
|
873
|
+
fail("read", metadata.error);
|
|
874
|
+
}
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
if (metadata.value.bytes !== void 0 && metadata.value.bytes > DEVLEAD_BOARD_MAX_BYTES) {
|
|
878
|
+
fail("parse", new DevLeadBoardParseError(`board file exceeds ${DEVLEAD_BOARD_MAX_BYTES} bytes`));
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
const content = await files.readBytes(sessionId, config.boardPath, {}, controller.signal);
|
|
882
|
+
if (generation.current !== request || controller.signal.aborted) return;
|
|
883
|
+
if (!content.ok) {
|
|
884
|
+
if (isNotFound(content)) {
|
|
885
|
+
settle({ status: "empty", refreshing: false });
|
|
886
|
+
} else {
|
|
887
|
+
fail("read", content.error);
|
|
888
|
+
}
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
if (!content.value.eof || content.value.data.byteLength > DEVLEAD_BOARD_MAX_BYTES) {
|
|
892
|
+
fail("parse", new DevLeadBoardParseError("board file is truncated or too large"));
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
let board;
|
|
896
|
+
try {
|
|
897
|
+
board = parseDevLeadBoardBytes(content.value.data, config.pathPlatform);
|
|
898
|
+
} catch (error) {
|
|
899
|
+
fail("parse", error);
|
|
900
|
+
return;
|
|
901
|
+
}
|
|
902
|
+
settle({
|
|
903
|
+
status: "ready",
|
|
904
|
+
board,
|
|
905
|
+
lastSuccessAt: new Date(now()).toISOString(),
|
|
906
|
+
refreshing: false
|
|
907
|
+
});
|
|
908
|
+
} catch (error) {
|
|
909
|
+
if (generation.current !== request || controller.signal.aborted) return;
|
|
910
|
+
fail("read", error);
|
|
911
|
+
} finally {
|
|
912
|
+
if (readAbort.current === controller) {
|
|
913
|
+
readAbort.current = void 0;
|
|
914
|
+
if (trailingRead.current && generation.current === request && !controller.signal.aborted) {
|
|
915
|
+
trailingRead.current = false;
|
|
916
|
+
queueMicrotask(() => {
|
|
917
|
+
if (generation.current === request && !controller.signal.aborted) refreshRead();
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
})();
|
|
923
|
+
}, [config, files, now, sessionId]);
|
|
924
|
+
(0, import_react.useEffect)(() => {
|
|
925
|
+
if (config === void 0) {
|
|
926
|
+
setState(DISABLED);
|
|
927
|
+
setWatch("disabled");
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
setWatch("connecting");
|
|
931
|
+
let disposed = false;
|
|
932
|
+
let timer;
|
|
933
|
+
const watcher = new AbortController();
|
|
934
|
+
const schedule = () => {
|
|
935
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
936
|
+
timer = setTimeout(() => {
|
|
937
|
+
timer = void 0;
|
|
938
|
+
refreshRead(false, true);
|
|
939
|
+
}, debounceMs);
|
|
940
|
+
};
|
|
941
|
+
const pump = async () => {
|
|
942
|
+
try {
|
|
943
|
+
const stream = files.changes(sessionId, config.boardPath, watcher.signal);
|
|
944
|
+
try {
|
|
945
|
+
for await (const frame of stream) {
|
|
946
|
+
if (disposed) return;
|
|
947
|
+
if (frame.kind === "ready") {
|
|
948
|
+
setWatch("live");
|
|
949
|
+
refreshRead(false, true);
|
|
950
|
+
} else if (frame.kind === "change") schedule();
|
|
951
|
+
}
|
|
952
|
+
} finally {
|
|
953
|
+
stream.dispose();
|
|
954
|
+
}
|
|
955
|
+
} catch {
|
|
956
|
+
} finally {
|
|
957
|
+
if (!disposed) setWatch("ended");
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
void pump();
|
|
961
|
+
refreshRead();
|
|
962
|
+
return () => {
|
|
963
|
+
disposed = true;
|
|
964
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
965
|
+
generation.current += 1;
|
|
966
|
+
watcher.abort();
|
|
967
|
+
readAbort.current?.abort();
|
|
968
|
+
};
|
|
969
|
+
}, [config, debounceMs, files, refreshRead, sessionId, watchGeneration]);
|
|
970
|
+
(0, import_react.useEffect)(() => {
|
|
971
|
+
if (config === void 0) {
|
|
972
|
+
setAutoRefresh("disabled");
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
if (!visible) {
|
|
976
|
+
setAutoRefresh("paused");
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
if (typeof document === "undefined") {
|
|
980
|
+
setAutoRefresh("active");
|
|
981
|
+
refreshRead();
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
const sync = (resume) => {
|
|
985
|
+
const active = resume && panelPageActive();
|
|
986
|
+
setAutoRefresh(active ? "active" : "paused");
|
|
987
|
+
if (active) refreshRead();
|
|
988
|
+
};
|
|
989
|
+
const onVisibility = () => {
|
|
990
|
+
sync(document.visibilityState !== "hidden");
|
|
991
|
+
};
|
|
992
|
+
const onFocus = () => {
|
|
993
|
+
sync(true);
|
|
994
|
+
};
|
|
995
|
+
const onBlur = () => {
|
|
996
|
+
setAutoRefresh("paused");
|
|
997
|
+
};
|
|
998
|
+
sync(panelPageActive());
|
|
999
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
1000
|
+
window.addEventListener("focus", onFocus);
|
|
1001
|
+
window.addEventListener("blur", onBlur);
|
|
1002
|
+
return () => {
|
|
1003
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
1004
|
+
window.removeEventListener("focus", onFocus);
|
|
1005
|
+
window.removeEventListener("blur", onBlur);
|
|
1006
|
+
};
|
|
1007
|
+
}, [config, refreshRead, visible]);
|
|
1008
|
+
(0, import_react.useEffect)(() => {
|
|
1009
|
+
if (config === void 0 || autoRefresh !== "active") return;
|
|
1010
|
+
let delay = pollMs;
|
|
1011
|
+
let timer;
|
|
1012
|
+
const schedule = () => {
|
|
1013
|
+
timer = setTimeout(() => {
|
|
1014
|
+
timer = void 0;
|
|
1015
|
+
refreshRead();
|
|
1016
|
+
if (state.status === "empty" || state.status === "error") {
|
|
1017
|
+
delay = Math.min(delay * 2, pollMaxMs);
|
|
1018
|
+
}
|
|
1019
|
+
schedule();
|
|
1020
|
+
}, delay);
|
|
1021
|
+
};
|
|
1022
|
+
schedule();
|
|
1023
|
+
return () => {
|
|
1024
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
1025
|
+
};
|
|
1026
|
+
}, [autoRefresh, config, pollMs, pollMaxMs, refreshRead, state.status]);
|
|
1027
|
+
const refresh = (0, import_react.useCallback)(() => {
|
|
1028
|
+
refreshRead(true);
|
|
1029
|
+
if (config !== void 0) setWatchGeneration((current) => current + 1);
|
|
1030
|
+
}, [config, refreshRead]);
|
|
1031
|
+
return { ...state, watch, autoRefresh, refresh };
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// packages/client-ui/src/client/DevLeadBoardPanel.tsx
|
|
1035
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1036
|
+
function DevLeadBoardPanel({ sessionId, files, useWorkspaces, useSessions, useTabInfo, t }) {
|
|
1037
|
+
const sessions = useSessions((snapshot) => snapshot);
|
|
1038
|
+
const visible = useTabInfo().tab.visible;
|
|
1039
|
+
const summary = sessions.byId[sessionId];
|
|
1040
|
+
const resolved = resolveDevLeadBoardSessionConfig(sessionId, summary, currentDevLeadBoardConfig());
|
|
1041
|
+
const config = (0, import_react2.useMemo)(() => resolved, [resolved?.boardPath, resolved?.pathPlatform]);
|
|
1042
|
+
const { refresh, watch, autoRefresh, ...state } = useBoardFile({ sessionId, config, files, visible });
|
|
1043
|
+
const workspaces = useWorkspaces((snapshot) => snapshot);
|
|
1044
|
+
const [now, setNow] = (0, import_react2.useState)(() => Date.now());
|
|
1045
|
+
(0, import_react2.useEffect)(() => {
|
|
1046
|
+
const timer = setInterval(() => {
|
|
1047
|
+
setNow(Date.now());
|
|
1048
|
+
}, 6e4);
|
|
1049
|
+
return () => {
|
|
1050
|
+
clearInterval(timer);
|
|
1051
|
+
};
|
|
1052
|
+
}, []);
|
|
1053
|
+
const unlisted = state.status === "ready" && state.board !== void 0 ? unlistedDevLeadWorkspaces(state.board, workspaces.items, sessions.byId, config?.pathPlatform) : [];
|
|
1054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1055
|
+
DevLeadBoardPanelView,
|
|
1056
|
+
{
|
|
1057
|
+
state,
|
|
1058
|
+
onRefresh: refresh,
|
|
1059
|
+
now,
|
|
1060
|
+
t,
|
|
1061
|
+
unlisted,
|
|
1062
|
+
workspacePhase: workspaces.phase,
|
|
1063
|
+
workspaceError: workspaces.state === "error",
|
|
1064
|
+
sessionPhase: sessions.phase,
|
|
1065
|
+
watch,
|
|
1066
|
+
autoRefresh
|
|
1067
|
+
}
|
|
1068
|
+
);
|
|
1069
|
+
}
|
|
1070
|
+
function RelativeTime({ iso, now, t }) {
|
|
1071
|
+
const relative = boardRelativeTime(iso, now);
|
|
1072
|
+
const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
|
|
1073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("time", { dateTime: iso, title: iso, children: text });
|
|
1074
|
+
}
|
|
1075
|
+
function ProjectField({ label, text, className = "", arrow = "\u2192" }) {
|
|
1076
|
+
if (text.trim().length === 0) return null;
|
|
1077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: `devlead-board-field ${className}`.trim(), children: [
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-field-label", children: [
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
|
|
1080
|
+
label
|
|
1081
|
+
] }),
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { title: text, children: text })
|
|
1083
|
+
] });
|
|
1084
|
+
}
|
|
1085
|
+
function ProjectCard({ project, now, t }) {
|
|
1086
|
+
const idPrefix = (0, import_react2.useId)();
|
|
1087
|
+
const progress = taskProgress(project);
|
|
1088
|
+
const progressText = t("board.tasks.progress", { done: progress.done, total: progress.total });
|
|
1089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1090
|
+
"article",
|
|
1091
|
+
{
|
|
1092
|
+
className: "devlead-board-card",
|
|
1093
|
+
"data-devlead-board-project": project.id,
|
|
1094
|
+
"data-status": project.status,
|
|
1095
|
+
tabIndex: 0,
|
|
1096
|
+
"aria-labelledby": `${idPrefix}-title`,
|
|
1097
|
+
children: [
|
|
1098
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("header", { className: "devlead-board-card-header", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-card-heading", children: [
|
|
1099
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
|
|
1101
|
+
] }) }),
|
|
1102
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-workspace", title: project.workspace.path, children: project.workspace.path }),
|
|
1103
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-card-badges", children: [
|
|
1104
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "data-board-status": project.status, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Pill, { className: "devlead-board-status", children: t(`board.status.${project.status}`) }) }),
|
|
1105
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) })
|
|
1106
|
+
] }),
|
|
1107
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, className: "devlead-board-field-focus" }),
|
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, className: "devlead-board-field-next", arrow: "\u2197" }),
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, className: "devlead-board-field-goal", arrow: "\xB7" }),
|
|
1110
|
+
project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
|
|
1111
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("h6", { children: [
|
|
1112
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
|
|
1113
|
+
t("board.blockers")
|
|
1114
|
+
] }),
|
|
1115
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { children: project.blockers.map((blocker) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { children: [
|
|
1116
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { title: blocker.text, children: blocker.text }),
|
|
1117
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-blocker-since", children: [
|
|
1118
|
+
t("board.blocker.since"),
|
|
1119
|
+
" ",
|
|
1120
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: blocker.since, now, t })
|
|
1121
|
+
] })
|
|
1122
|
+
] }, blocker.id)) })
|
|
1123
|
+
] }),
|
|
1124
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-progress", children: [
|
|
1125
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-progress-heading", children: [
|
|
1126
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t("board.tasks.label") }),
|
|
1127
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.tasks.count", { done: progress.done, total: progress.total }) })
|
|
1128
|
+
] }),
|
|
1129
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1130
|
+
"progress",
|
|
1131
|
+
{
|
|
1132
|
+
"data-devlead-board-progress": project.id,
|
|
1133
|
+
max: Math.max(1, progress.total),
|
|
1134
|
+
value: progress.done,
|
|
1135
|
+
"aria-label": progressText,
|
|
1136
|
+
"aria-valuetext": progressText
|
|
1137
|
+
}
|
|
1138
|
+
)
|
|
1139
|
+
] }),
|
|
1140
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1141
|
+
"details",
|
|
1142
|
+
{
|
|
1143
|
+
className: "devlead-board-tasks",
|
|
1144
|
+
"data-devlead-board-tasks": project.id,
|
|
1145
|
+
"aria-labelledby": `${idPrefix}-tasks`,
|
|
1146
|
+
children: [
|
|
1147
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("summary", { id: `${idPrefix}-tasks`, children: t("board.tasks.summary", { done: progress.done, total: progress.total }) }),
|
|
1148
|
+
project.tasks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "devlead-board-muted", children: t("board.tasks.empty") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { children: project.tasks.map((task) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { "data-task-status": task.status, children: [
|
|
1149
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-task-heading", children: [
|
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-task-title", title: task.title, children: task.title }),
|
|
1151
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: taskStatusTone(task.status), children: t(`board.task.status.${task.status}`) })
|
|
1152
|
+
] }),
|
|
1153
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-task-meta", children: [
|
|
1154
|
+
task.ownerSessionId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("code", { title: task.ownerSessionId, children: [
|
|
1155
|
+
t("board.task.owner"),
|
|
1156
|
+
" ",
|
|
1157
|
+
truncateSessionId(task.ownerSessionId)
|
|
1158
|
+
] }),
|
|
1159
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: task.updatedAt, now, t })
|
|
1160
|
+
] })
|
|
1161
|
+
] }, task.id)) })
|
|
1162
|
+
]
|
|
1163
|
+
}
|
|
1164
|
+
),
|
|
1165
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("footer", { className: "devlead-board-card-footer", children: [
|
|
1166
|
+
t("board.project.updated"),
|
|
1167
|
+
" ",
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: project.updatedAt, now, t })
|
|
1169
|
+
] })
|
|
1170
|
+
]
|
|
1171
|
+
}
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
function ProjectGroup({ group, idPrefix, now, t }) {
|
|
1175
|
+
const headingId = `${idPrefix}-group-${group.status}`;
|
|
1176
|
+
const secondary = group.status === "paused" || group.status === "done";
|
|
1177
|
+
const cards = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "devlead-board-cards", children: group.projects.map((project) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectCard, { project, now, t }, project.id)) });
|
|
1178
|
+
if (secondary) {
|
|
1179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1180
|
+
"details",
|
|
1181
|
+
{
|
|
1182
|
+
className: "devlead-board-group devlead-board-secondary",
|
|
1183
|
+
"data-board-group": group.status,
|
|
1184
|
+
"aria-labelledby": headingId,
|
|
1185
|
+
children: [
|
|
1186
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("summary", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("h4", { id: headingId, children: [
|
|
1187
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t(`board.status.${group.status}`) }),
|
|
1188
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
|
|
1189
|
+
] }) }),
|
|
1190
|
+
cards
|
|
1191
|
+
]
|
|
1192
|
+
}
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1196
|
+
"section",
|
|
1197
|
+
{
|
|
1198
|
+
className: "devlead-board-group",
|
|
1199
|
+
"data-board-group": group.status,
|
|
1200
|
+
"aria-labelledby": headingId,
|
|
1201
|
+
children: [
|
|
1202
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "devlead-board-group-header", children: [
|
|
1203
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { id: headingId, children: t(`board.status.${group.status}`) }),
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: projectStatusTone(group.status), children: group.projects.length })
|
|
1205
|
+
] }),
|
|
1206
|
+
cards
|
|
1207
|
+
]
|
|
1208
|
+
}
|
|
1209
|
+
);
|
|
1210
|
+
}
|
|
1211
|
+
function DevLeadBoardPanelView({
|
|
1212
|
+
state,
|
|
1213
|
+
onRefresh,
|
|
1214
|
+
now,
|
|
1215
|
+
t,
|
|
1216
|
+
unlisted = [],
|
|
1217
|
+
workspacePhase = "ready",
|
|
1218
|
+
workspaceError = false,
|
|
1219
|
+
sessionPhase = "ready",
|
|
1220
|
+
watch = "live",
|
|
1221
|
+
autoRefresh = "active"
|
|
1222
|
+
}) {
|
|
1223
|
+
const idPrefix = (0, import_react2.useId)();
|
|
1224
|
+
if (state.status === "disabled") return null;
|
|
1225
|
+
const board = state.board;
|
|
1226
|
+
const groups = board === void 0 ? [] : groupDevLeadBoardProjects(board);
|
|
1227
|
+
const counts = { active: 0, blocked: 0, paused: 0, done: 0 };
|
|
1228
|
+
for (const project of board?.projects ?? []) counts[project.status] += 1;
|
|
1229
|
+
const blocked = counts.blocked;
|
|
1230
|
+
const refreshState = state.status === "error" ? "error" : autoRefresh === "paused" || watch === "ended" ? "warning" : state.refreshing || state.status === "loading" || watch === "connecting" ? "ongoing" : autoRefresh === "active" && state.status === "ready" ? "done" : "idle";
|
|
1231
|
+
const endedKey = autoRefresh === "active" ? "board.watch.ended" : autoRefresh === "paused" ? "board.watch.ended.paused" : "board.watch.ended.disabled";
|
|
1232
|
+
const statusText = state.status === "error" ? t("board.refresh.error") : watch === "ended" ? t(endedKey) : autoRefresh === "paused" ? t("board.autoRefresh.paused") : state.refreshing || state.status === "loading" ? t("board.refresh.loading") : watch === "connecting" ? t("board.watch.connecting") : t(`board.autoRefresh.${autoRefresh}`);
|
|
1233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
|
|
1234
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "devlead-board-header", children: [
|
|
1235
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-title-row", children: [
|
|
1236
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-title-group", children: [
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { children: t("board.title") }),
|
|
1238
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
|
|
1239
|
+
] }),
|
|
1240
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1241
|
+
import_dsh_client_ui_primitives3.Button,
|
|
1242
|
+
{
|
|
1243
|
+
variant: "ghost",
|
|
1244
|
+
size: "sm",
|
|
1245
|
+
className: "devlead-board-refresh",
|
|
1246
|
+
"aria-label": t("board.refresh.action"),
|
|
1247
|
+
"aria-busy": state.refreshing,
|
|
1248
|
+
disabled: state.refreshing,
|
|
1249
|
+
onClick: onRefresh,
|
|
1250
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
|
|
1251
|
+
}
|
|
1252
|
+
) })
|
|
1253
|
+
] }),
|
|
1254
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1255
|
+
"div",
|
|
1256
|
+
{
|
|
1257
|
+
className: "devlead-board-live",
|
|
1258
|
+
"data-auto-refresh": autoRefresh,
|
|
1259
|
+
role: "status",
|
|
1260
|
+
"aria-live": "polite",
|
|
1261
|
+
"aria-atomic": "true",
|
|
1262
|
+
children: [
|
|
1263
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 9 }),
|
|
1264
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.live") }),
|
|
1265
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: statusText })
|
|
1266
|
+
]
|
|
1267
|
+
}
|
|
1268
|
+
),
|
|
1269
|
+
board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dl", { className: "devlead-board-kpis", "aria-label": t("board.kpi.aria"), children: ["active", "blocked", "paused", "done"].map((status) => {
|
|
1270
|
+
const count = counts[status];
|
|
1271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { "data-devlead-board-kpi": status, "data-tone": status, children: [
|
|
1272
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dt", { children: t(`board.status.${status}`) }),
|
|
1273
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("dd", { "aria-label": t("board.kpi.value", { status: t(`board.status.${status}`), count }), children: count })
|
|
1274
|
+
] }, status);
|
|
1275
|
+
}) }),
|
|
1276
|
+
board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-meta", children: [
|
|
1277
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "devlead-board-updated", children: [
|
|
1278
|
+
t("board.updated"),
|
|
1279
|
+
" ",
|
|
1280
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: board.updatedAt, now, t })
|
|
1281
|
+
] }),
|
|
1282
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-revision", title: t("board.revision.full", { revision: board.revision }), children: t("board.revision", { revision: board.revision }) })
|
|
1283
|
+
] })
|
|
1284
|
+
] }),
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-content", children: [
|
|
1286
|
+
state.status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", role: "status", "data-devlead-board-loading": "true", children: [
|
|
1287
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\xB7\xB7\xB7" }),
|
|
1288
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.loading") }),
|
|
1289
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.loading.description") })
|
|
1290
|
+
] }),
|
|
1291
|
+
state.status === "empty" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "file", children: [
|
|
1292
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u25CB" }),
|
|
1293
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.empty.title") }),
|
|
1294
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.empty.description") })
|
|
1295
|
+
] }),
|
|
1296
|
+
state.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-error", role: "alert", "data-devlead-board-error": state.error?.kind ?? "read", children: [
|
|
1297
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 20 }) }),
|
|
1298
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t(state.error?.kind === "parse" ? "board.error.parse" : "board.error.read") }),
|
|
1299
|
+
state.lastSuccessAt !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("p", { children: [
|
|
1300
|
+
t("board.lastSuccess"),
|
|
1301
|
+
" ",
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: state.lastSuccessAt, now, t })
|
|
1303
|
+
] }),
|
|
1304
|
+
state.error !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { className: "devlead-board-error-detail", title: state.error.message, children: state.error.message }),
|
|
1305
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_dsh_client_ui_primitives3.Button, { variant: "outline", size: "sm", onClick: onRefresh, disabled: state.refreshing, children: [
|
|
1306
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 14 }),
|
|
1307
|
+
t("board.retry")
|
|
1308
|
+
] })
|
|
1309
|
+
] }),
|
|
1310
|
+
state.status === "ready" && board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
1311
|
+
blocked > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-blocked-notice", role: "status", children: [
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 16 }),
|
|
1313
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: t("board.blocked.notice", { count: blocked }) })
|
|
1314
|
+
] }),
|
|
1315
|
+
board.projects.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-placeholder", "data-devlead-board-empty": "projects", children: [
|
|
1316
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "devlead-board-state-mark", "aria-hidden": "true", children: "\u2713" }),
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h4", { children: t("board.emptyProjects.title") }),
|
|
1318
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.emptyProjects.description") })
|
|
1319
|
+
] }),
|
|
1320
|
+
groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProjectGroup, { group, idPrefix, now, t }, group.status))
|
|
1321
|
+
] }),
|
|
1322
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1323
|
+
"details",
|
|
1324
|
+
{
|
|
1325
|
+
className: "devlead-board-unlisted devlead-board-secondary",
|
|
1326
|
+
"data-devlead-board-unlisted": "true",
|
|
1327
|
+
"aria-labelledby": `${idPrefix}-unlisted`,
|
|
1328
|
+
children: [
|
|
1329
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("summary", { id: `${idPrefix}-unlisted`, children: [
|
|
1330
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: t("board.unlisted.title") }),
|
|
1331
|
+
unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: unlisted.length })
|
|
1332
|
+
] }),
|
|
1333
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "devlead-board-unlisted-body", children: [
|
|
1334
|
+
state.status !== "ready" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.unavailable") }),
|
|
1335
|
+
state.status === "ready" && workspaceError && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { role: "alert", children: t("board.unlisted.error") }),
|
|
1336
|
+
state.status === "ready" && !workspaceError && workspacePhase === "pending" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.pending") }),
|
|
1337
|
+
state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: t("board.unlisted.empty") }),
|
|
1338
|
+
state.status === "ready" && !workspaceError && workspacePhase === "ready" && unlisted.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "devlead-board-unlisted-list", children: unlisted.map((workspace) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { "data-devlead-board-unlisted-project": workspace.workspaceId, children: [
|
|
1339
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { title: workspace.title, children: workspace.title }),
|
|
1340
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { title: workspace.path, children: workspace.path }),
|
|
1341
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
|
|
1342
|
+
t("board.unlisted.sessions", { count: workspace.sessionCount }),
|
|
1343
|
+
" \xB7 ",
|
|
1344
|
+
sessionPhase === "pending" && workspace.sessionCount > 0 ? t("board.unlisted.activityPending") : workspace.lastActivityAt === void 0 ? t("board.unlisted.noActivity") : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RelativeTime, { iso: workspace.lastActivityAt, now, t })
|
|
1345
|
+
] })
|
|
1346
|
+
] }, workspace.workspaceId)) })
|
|
1347
|
+
] })
|
|
1348
|
+
]
|
|
1349
|
+
}
|
|
1350
|
+
)
|
|
1351
|
+
] })
|
|
1352
|
+
] });
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
// packages/client-ui/src/client/DevLeadIconToggle.tsx
|
|
1356
|
+
var import_react4 = require("react");
|
|
1357
|
+
var import_dsh_client_ui_primitives4 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1358
|
+
|
|
406
1359
|
// packages/client-ui/src/client/results.ts
|
|
407
1360
|
function presentMessage(value) {
|
|
408
1361
|
if (value === void 0) return void 0;
|
|
@@ -489,19 +1442,19 @@ window.__ModuleLoader__.load({
|
|
|
489
1442
|
}
|
|
490
1443
|
|
|
491
1444
|
// packages/client-ui/src/client/useDevLeadAdmission.ts
|
|
492
|
-
var
|
|
1445
|
+
var import_react3 = require("react");
|
|
493
1446
|
function useDevLeadAdmission(executeCommand, resetKey) {
|
|
494
|
-
const [state, dispatch] = (0,
|
|
495
|
-
const [gate] = (0,
|
|
496
|
-
const aliveRef = (0,
|
|
497
|
-
(0,
|
|
1447
|
+
const [state, dispatch] = (0, import_react3.useReducer)(devLeadAdmissionReducer, DEVLEAD_ADMISSION_IDLE);
|
|
1448
|
+
const [gate] = (0, import_react3.useState)(createDevLeadAdmissionGate);
|
|
1449
|
+
const aliveRef = (0, import_react3.useRef)(true);
|
|
1450
|
+
(0, import_react3.useEffect)(() => {
|
|
498
1451
|
aliveRef.current = true;
|
|
499
1452
|
return () => {
|
|
500
1453
|
aliveRef.current = false;
|
|
501
1454
|
};
|
|
502
1455
|
}, []);
|
|
503
|
-
const resetKeyRef = (0,
|
|
504
|
-
(0,
|
|
1456
|
+
const resetKeyRef = (0, import_react3.useRef)(resetKey);
|
|
1457
|
+
(0, import_react3.useEffect)(() => {
|
|
505
1458
|
resetKeyRef.current = resetKey;
|
|
506
1459
|
dispatch({ type: "reset" });
|
|
507
1460
|
}, [resetKey]);
|
|
@@ -520,13 +1473,13 @@ window.__ModuleLoader__.load({
|
|
|
520
1473
|
}
|
|
521
1474
|
|
|
522
1475
|
// packages/client-ui/src/client/DevLeadIconToggle.tsx
|
|
523
|
-
var
|
|
1476
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
524
1477
|
function DevLeadIconToggle({ useSession, useProjection, executeCommand, t }) {
|
|
525
1478
|
const subagent = useSession((snapshot) => snapshot.subagent !== null) ?? false;
|
|
526
1479
|
const projection = useProjection(DEVLEAD_PROJECTION_KEY);
|
|
527
1480
|
const enabled = projection?.enabled ?? false;
|
|
528
1481
|
const { pending, failure, run } = useDevLeadAdmission(executeCommand, enabled);
|
|
529
|
-
const [attempt, setAttempt] = (0,
|
|
1482
|
+
const [attempt, setAttempt] = (0, import_react4.useState)("on");
|
|
530
1483
|
if (subagent) return null;
|
|
531
1484
|
if (projection === void 0) return null;
|
|
532
1485
|
const direction = enabled ? "off" : "on";
|
|
@@ -541,9 +1494,9 @@ window.__ModuleLoader__.load({
|
|
|
541
1494
|
attempt === "off" ? "toggle.failed.status.disable" : "toggle.failed.status",
|
|
542
1495
|
{ message: failureText }
|
|
543
1496
|
);
|
|
544
|
-
return /* @__PURE__ */ (0,
|
|
545
|
-
/* @__PURE__ */ (0,
|
|
546
|
-
|
|
1497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1498
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1499
|
+
import_dsh_client_ui_primitives4.Tooltip,
|
|
547
1500
|
{
|
|
548
1501
|
label,
|
|
549
1502
|
side: "top",
|
|
@@ -551,8 +1504,8 @@ window.__ModuleLoader__.load({
|
|
|
551
1504
|
maxWidth: 300,
|
|
552
1505
|
portal: true,
|
|
553
1506
|
openOnClick: failure !== null,
|
|
554
|
-
children: /* @__PURE__ */ (0,
|
|
555
|
-
|
|
1507
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1508
|
+
import_dsh_client_ui_primitives4.Button,
|
|
556
1509
|
{
|
|
557
1510
|
variant: "ghost",
|
|
558
1511
|
size: "sm",
|
|
@@ -570,75 +1523,44 @@ window.__ModuleLoader__.load({
|
|
|
570
1523
|
run(`/${DEVLEAD_COMMAND_NAME} ${direction}`);
|
|
571
1524
|
},
|
|
572
1525
|
children: [
|
|
573
|
-
/* @__PURE__ */ (0,
|
|
574
|
-
/* @__PURE__ */ (0,
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives4.IconUsersOutlineRegular, { size: 16 }),
|
|
1527
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-toggle-label", children: t("toggle.label") })
|
|
575
1528
|
]
|
|
576
1529
|
}
|
|
577
1530
|
)
|
|
578
1531
|
}
|
|
579
1532
|
),
|
|
580
|
-
/* @__PURE__ */ (0,
|
|
1533
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: status })
|
|
581
1534
|
] });
|
|
582
1535
|
}
|
|
583
1536
|
|
|
584
1537
|
// packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
|
|
585
|
-
var
|
|
586
|
-
|
|
587
|
-
// packages/client-ui/src/client/sessionMark.ts
|
|
588
|
-
function devLeadRowEnabled(summary) {
|
|
589
|
-
return summary?.projectionValues?.[DEVLEAD_MODE_PROJECTION_KEY]?.enabled === true;
|
|
590
|
-
}
|
|
591
|
-
function devLeadRowSummaryOf(byId, sessionId) {
|
|
592
|
-
return Object.hasOwn(byId, sessionId) ? byId[sessionId] : void 0;
|
|
593
|
-
}
|
|
594
|
-
var watchedIdsCache = /* @__PURE__ */ new WeakMap();
|
|
595
|
-
function watchedIdsOf(byId) {
|
|
596
|
-
const cached = watchedIdsCache.get(byId);
|
|
597
|
-
if (cached !== void 0) return cached;
|
|
598
|
-
const watched = /* @__PURE__ */ new Set();
|
|
599
|
-
for (const [leadId, lead] of Object.entries(byId)) {
|
|
600
|
-
if (!devLeadRowEnabled(lead)) continue;
|
|
601
|
-
const sessions = lead?.projectionValues?.[DEVLEAD_WATCH_PROJECTION_KEY]?.sessions;
|
|
602
|
-
if (!Array.isArray(sessions)) continue;
|
|
603
|
-
for (const candidate of sessions) {
|
|
604
|
-
if (typeof candidate !== "string" || candidate.length === 0 || candidate === leadId) continue;
|
|
605
|
-
watched.add(candidate);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
watchedIdsCache.set(byId, watched);
|
|
609
|
-
return watched;
|
|
610
|
-
}
|
|
611
|
-
function devLeadRowWatched(sessionId, byId) {
|
|
612
|
-
if (devLeadRowEnabled(devLeadRowSummaryOf(byId, sessionId))) return false;
|
|
613
|
-
return watchedIdsOf(byId).has(sessionId);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
// packages/client-ui/src/client/DevLeadSessionHoverMark.tsx
|
|
617
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1538
|
+
var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1539
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
618
1540
|
function DevLeadSessionHoverMark({ sessionId, useSessions, t }) {
|
|
619
1541
|
const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
|
|
620
1542
|
const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
|
|
621
1543
|
if (enabled) {
|
|
622
|
-
return /* @__PURE__ */ (0,
|
|
623
|
-
/* @__PURE__ */ (0,
|
|
624
|
-
/* @__PURE__ */ (0,
|
|
1544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", children: [
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-active-dot" }) }),
|
|
1546
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: t("row.hover.enabled") })
|
|
625
1547
|
] });
|
|
626
1548
|
}
|
|
627
1549
|
if (!watched) return null;
|
|
628
|
-
return /* @__PURE__ */ (0,
|
|
629
|
-
/* @__PURE__ */ (0,
|
|
630
|
-
/* @__PURE__ */ (0,
|
|
1550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "devlead-row-hover", "data-devlead-row-hover": "true", "data-devlead-row-watched": "true", children: [
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "devlead-row-hover-glyph", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dsh_client_ui_primitives5.IconGoalOutlineRegular, { size: 14 }) }),
|
|
1552
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: t("row.hover.watched") })
|
|
631
1553
|
] });
|
|
632
1554
|
}
|
|
633
1555
|
|
|
634
1556
|
// packages/client-ui/src/client/DevLeadSessionMark.tsx
|
|
635
|
-
var
|
|
636
|
-
var
|
|
1557
|
+
var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1558
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
637
1559
|
function DevLeadSessionMark({ sessionId, useSessions, t }) {
|
|
638
1560
|
const enabled = useSessions((state) => devLeadRowEnabled(devLeadRowSummaryOf(state.byId, sessionId)));
|
|
639
1561
|
const watched = useSessions((state) => devLeadRowWatched(sessionId, state.byId));
|
|
640
1562
|
if (enabled) {
|
|
641
|
-
return /* @__PURE__ */ (0,
|
|
1563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
642
1564
|
"span",
|
|
643
1565
|
{
|
|
644
1566
|
className: "devlead-sr-only",
|
|
@@ -649,14 +1571,14 @@ window.__ModuleLoader__.load({
|
|
|
649
1571
|
);
|
|
650
1572
|
}
|
|
651
1573
|
if (!watched) return null;
|
|
652
|
-
return /* @__PURE__ */ (0,
|
|
1574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
653
1575
|
"span",
|
|
654
1576
|
{
|
|
655
1577
|
className: "devlead-row-mark devlead-row-mark-watched",
|
|
656
1578
|
role: "img",
|
|
657
1579
|
"aria-label": t("row.watched.aria"),
|
|
658
1580
|
"data-devlead-row-mark": "watched",
|
|
659
|
-
children: /* @__PURE__ */ (0,
|
|
1581
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dsh_client_ui_primitives6.IconGoalOutlineRegular, { size: 13 })
|
|
660
1582
|
}
|
|
661
1583
|
);
|
|
662
1584
|
}
|
|
@@ -664,7 +1586,7 @@ window.__ModuleLoader__.load({
|
|
|
664
1586
|
// packages/client-ui/src/client/locales.ts
|
|
665
1587
|
var zh = {
|
|
666
1588
|
"meta.title": "DevLead \u754C\u9762",
|
|
667
|
-
"meta.description": "DevLead \u6A21\u5F0F\u7684 Web \u754C\u9762\uFF1A\
|
|
1589
|
+
"meta.description": "DevLead \u6A21\u5F0F\u7684 Web \u754C\u9762\uFF1A\u6A21\u5F0F\u5F00\u5173\u4E0E\u72B6\u6001\u6761\u3001\u4FA7\u8FB9\u680F\u4F1A\u8BDD\u6807\u8BB0\uFF0C\u4EE5\u53CA\u53EA\u8BFB\u9879\u76EE\u770B\u677F\u3002",
|
|
668
1590
|
"bar.aria": "DevLead \u72B6\u6001\u680F",
|
|
669
1591
|
"label": "DevLead",
|
|
670
1592
|
"hint.enabled": "DevLead \u5DF2\u5F00\u542F\uFF1A\u5DF2\u5173\u6CE8\u4F1A\u8BDD\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\u4F1A\u901A\u77E5\u672C\u4F1A\u8BDD\uFF1B\u963B\u585E/\u5F85\u51B3\u7B56/\u63D0\u95EE\u4F1A\u8BF7\u6C42\u5524\u9192\uFF0C\u8FDB\u5EA6/\u544A\u77E5\u4EC5\u4F5C\u80CC\u666F\u3001\u4E0D\u5524\u9192\u3002",
|
|
@@ -714,6 +1636,74 @@ window.__ModuleLoader__.load({
|
|
|
714
1636
|
"transition.interrupted": "\u5DF2\u4E2D\u65AD",
|
|
715
1637
|
"transition.forked": "\u5DF2\u5206\u53C9",
|
|
716
1638
|
"transition.unknown": "\u672A\u77E5\u72B6\u6001",
|
|
1639
|
+
"board.title": "\u9879\u76EE\u770B\u677F",
|
|
1640
|
+
"board.open": "\u6253\u5F00\u9879\u76EE\u770B\u677F",
|
|
1641
|
+
"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",
|
|
1642
|
+
"board.readonly": "\u53EA\u8BFB",
|
|
1643
|
+
"board.revision": "r{revision}",
|
|
1644
|
+
"board.revision.full": "\u770B\u677F\u4FEE\u8BA2\u7248\u672C {revision}",
|
|
1645
|
+
"board.updated": "\u770B\u677F\u66F4\u65B0\u4E8E",
|
|
1646
|
+
"board.live": "Live",
|
|
1647
|
+
"board.autoRefresh.active": "\u81EA\u52A8\u5237\u65B0\u5DF2\u5F00\u542F",
|
|
1648
|
+
"board.autoRefresh.paused": "\u81EA\u52A8\u5237\u65B0\u5DF2\u6682\u505C",
|
|
1649
|
+
"board.autoRefresh.disabled": "\u81EA\u52A8\u5237\u65B0\u5DF2\u5173\u95ED",
|
|
1650
|
+
"board.kpi.aria": "\u9879\u76EE\u72B6\u6001\u6982\u89C8",
|
|
1651
|
+
"board.kpi.value": "{status}\uFF1A{count} \u4E2A\u9879\u76EE",
|
|
1652
|
+
"board.refresh.action": "\u5237\u65B0\u9879\u76EE\u770B\u677F",
|
|
1653
|
+
"board.refresh.loading": "\u6B63\u5728\u8BFB\u53D6\u6700\u65B0\u5185\u5BB9",
|
|
1654
|
+
"board.refresh.error": "\u8BFB\u53D6\u5931\u8D25",
|
|
1655
|
+
"board.refresh.ready": "\u6B63\u5E38",
|
|
1656
|
+
"board.refresh.empty": "\u6682\u65E0\u6570\u636E",
|
|
1657
|
+
"board.watch.connecting": "\u6B63\u5728\u8FDE\u63A5\u6587\u4EF6\u76D1\u542C\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u5DF2\u5F00\u542F",
|
|
1658
|
+
"board.watch.ended": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u4ECD\u5F00\u542F",
|
|
1659
|
+
"board.watch.ended.paused": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u81EA\u52A8\u8F6E\u8BE2\u5DF2\u6682\u505C",
|
|
1660
|
+
"board.watch.ended.disabled": "\u6587\u4EF6\u76D1\u542C\u65AD\u5F00\uFF0C\u8BF7\u624B\u52A8\u5237\u65B0",
|
|
1661
|
+
"board.time.now": "\u521A\u521A",
|
|
1662
|
+
"board.time.minutes": "{count} \u5206\u949F\u524D",
|
|
1663
|
+
"board.time.hours": "{count} \u5C0F\u65F6\u524D",
|
|
1664
|
+
"board.time.days": "{count} \u5929\u524D",
|
|
1665
|
+
"board.status.active": "\u8FDB\u884C\u4E2D",
|
|
1666
|
+
"board.status.blocked": "\u5DF2\u963B\u585E",
|
|
1667
|
+
"board.status.paused": "\u5DF2\u6682\u505C",
|
|
1668
|
+
"board.status.done": "\u5DF2\u5B8C\u6210",
|
|
1669
|
+
"board.priority.low": "\u4F4E\u4F18\u5148\u7EA7",
|
|
1670
|
+
"board.priority.medium": "\u4E2D\u4F18\u5148\u7EA7",
|
|
1671
|
+
"board.priority.high": "\u9AD8\u4F18\u5148\u7EA7",
|
|
1672
|
+
"board.field.goal": "\u76EE\u6807",
|
|
1673
|
+
"board.field.focus": "\u5F53\u524D\u7126\u70B9",
|
|
1674
|
+
"board.field.next": "\u4E0B\u4E00\u6B65",
|
|
1675
|
+
"board.blockers": "\u963B\u585E\u9879",
|
|
1676
|
+
"board.blocker.since": "\u59CB\u4E8E",
|
|
1677
|
+
"board.tasks.label": "\u4EFB\u52A1\u8FDB\u5EA6",
|
|
1678
|
+
"board.tasks.count": "{done}/{total}",
|
|
1679
|
+
"board.tasks.progress": "\u4EFB\u52A1\u8FDB\u5EA6\uFF1A{total} \u9879\u4E2D\u5DF2\u5B8C\u6210 {done} \u9879",
|
|
1680
|
+
"board.tasks.summary": "\u67E5\u770B\u4EFB\u52A1\u8BE6\u60C5\uFF08{done}/{total} \u5DF2\u5B8C\u6210\uFF09",
|
|
1681
|
+
"board.tasks.empty": "\u8FD8\u6CA1\u6709\u4EFB\u52A1",
|
|
1682
|
+
"board.task.owner": "\u8D1F\u8D23\u4F1A\u8BDD",
|
|
1683
|
+
"board.task.status.todo": "\u5F85\u529E",
|
|
1684
|
+
"board.task.status.doing": "\u8FDB\u884C\u4E2D",
|
|
1685
|
+
"board.task.status.blocked": "\u5DF2\u963B\u585E",
|
|
1686
|
+
"board.task.status.done": "\u5DF2\u5B8C\u6210",
|
|
1687
|
+
"board.project.updated": "\u66F4\u65B0\u4E8E",
|
|
1688
|
+
"board.loading": "\u6B63\u5728\u8BFB\u53D6\u9879\u76EE\u770B\u677F\u2026",
|
|
1689
|
+
"board.loading.description": "\u6B63\u5728\u540C\u6B65\u9879\u76EE\u3001\u4EFB\u52A1\u4E0E\u963B\u585E\u72B6\u6001\uFF0C\u8BF7\u7A0D\u5019\u3002",
|
|
1690
|
+
"board.empty.title": "\u8FD8\u6CA1\u6709\u770B\u677F\u6570\u636E",
|
|
1691
|
+
"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",
|
|
1692
|
+
"board.emptyProjects.title": "\u770B\u677F\u4E2D\u8FD8\u6CA1\u6709\u9879\u76EE",
|
|
1693
|
+
"board.emptyProjects.description": "\u770B\u677F\u6587\u4EF6\u5DF2\u5C31\u7EEA\uFF1Blead AI \u6DFB\u52A0\u9879\u76EE\u540E\u4F1A\u81EA\u52A8\u5237\u65B0\u3002",
|
|
1694
|
+
"board.error.parse": "\u770B\u677F\u6587\u4EF6\u89E3\u6790\u5931\u8D25",
|
|
1695
|
+
"board.error.read": "\u770B\u677F\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25",
|
|
1696
|
+
"board.lastSuccess": "\u6700\u540E\u6210\u529F\u8BFB\u53D6\uFF1A",
|
|
1697
|
+
"board.retry": "\u91CD\u8BD5",
|
|
1698
|
+
"board.blocked.notice": "{count} \u4E2A\u9879\u76EE\u5DF2\u963B\u585E\uFF0C\u8BF7\u4F18\u5148\u5904\u7406\u3002",
|
|
1699
|
+
"board.unlisted.title": "\u672A\u5728\u770B\u677F\u4E2D\u7684\u9879\u76EE",
|
|
1700
|
+
"board.unlisted.empty": "\u6240\u6709\u5DF2\u6CE8\u518C workspace \u90FD\u5DF2\u5728\u770B\u677F\u4E2D\u3002",
|
|
1701
|
+
"board.unlisted.pending": "\u6B63\u5728\u8BFB\u53D6\u5DF2\u6CE8\u518C workspace\u2026",
|
|
1702
|
+
"board.unlisted.error": "\u5DF2\u6CE8\u518C workspace \u6E05\u5355\u8BFB\u53D6\u5931\u8D25\uFF1B\u8BF7\u7A0D\u540E\u91CD\u65B0\u6253\u5F00\u9762\u677F\u91CD\u8BD5\u3002",
|
|
1703
|
+
"board.unlisted.unavailable": "\u770B\u677F\u6587\u4EF6\u5C31\u7EEA\u540E\uFF0C\u8FD9\u91CC\u4F1A\u5217\u51FA\u672A\u5728\u770B\u677F\u4E2D\u7684\u5DF2\u6CE8\u518C workspace\u3002",
|
|
1704
|
+
"board.unlisted.sessions": "{count} \u4E2A\u4F1A\u8BDD",
|
|
1705
|
+
"board.unlisted.activityPending": "\u6B63\u5728\u8BFB\u53D6\u4F1A\u8BDD\u6D3B\u52A8",
|
|
1706
|
+
"board.unlisted.noActivity": "\u6682\u65E0\u4F1A\u8BDD\u6D3B\u52A8",
|
|
717
1707
|
"error.alreadyActive": "\u53E6\u4E00\u4E2A\u4F1A\u8BDD\u5DF2\u5904\u4E8E DevLead \u6A21\u5F0F\uFF1A{session}\u3002\u8BF7\u5148\u5728\u90A3\u91CC\u6267\u884C /devlead off\uFF0C\u518D\u5F00\u542F\u672C\u4F1A\u8BDD\u3002",
|
|
718
1708
|
"error.fallback.transport": "\u547D\u4EE4\u5931\u8D25",
|
|
719
1709
|
"error.fallback.rejected": "\u547D\u4EE4\u88AB\u62D2\u7EDD",
|
|
@@ -722,7 +1712,7 @@ window.__ModuleLoader__.load({
|
|
|
722
1712
|
};
|
|
723
1713
|
var en = {
|
|
724
1714
|
"meta.title": "DevLead UI",
|
|
725
|
-
"meta.description": "Web UI for DevLead mode: the
|
|
1715
|
+
"meta.description": "Web UI for DevLead mode: the mode toggle and status strip, sidebar Session marks, and the read-only project board.",
|
|
726
1716
|
"bar.aria": "DevLead status bar",
|
|
727
1717
|
"label": "DevLead",
|
|
728
1718
|
"hint.enabled": "DevLead is on: watched-session turn ends and mid-turn reports notify this session; blocked/decision reports and questions request a wake, while progress/fyi are background context and do not wake.",
|
|
@@ -772,6 +1762,74 @@ window.__ModuleLoader__.load({
|
|
|
772
1762
|
"transition.interrupted": "interrupted",
|
|
773
1763
|
"transition.forked": "forked",
|
|
774
1764
|
"transition.unknown": "unknown state",
|
|
1765
|
+
"board.title": "Project board",
|
|
1766
|
+
"board.open": "Open project board",
|
|
1767
|
+
"board.guide": "Read lead-maintained project status, focus, blockers, and tasks. Read-only for people.",
|
|
1768
|
+
"board.readonly": "Read-only",
|
|
1769
|
+
"board.revision": "r{revision}",
|
|
1770
|
+
"board.revision.full": "Board revision {revision}",
|
|
1771
|
+
"board.updated": "Board updated",
|
|
1772
|
+
"board.live": "Live",
|
|
1773
|
+
"board.autoRefresh.active": "Auto refresh on",
|
|
1774
|
+
"board.autoRefresh.paused": "Auto refresh paused",
|
|
1775
|
+
"board.autoRefresh.disabled": "Auto refresh off",
|
|
1776
|
+
"board.kpi.aria": "Project status overview",
|
|
1777
|
+
"board.kpi.value": "{status}: {count} project(s)",
|
|
1778
|
+
"board.refresh.action": "Refresh project board",
|
|
1779
|
+
"board.refresh.loading": "Reading the latest content",
|
|
1780
|
+
"board.refresh.error": "Read failed",
|
|
1781
|
+
"board.refresh.ready": "Up to date",
|
|
1782
|
+
"board.refresh.empty": "No data",
|
|
1783
|
+
"board.watch.connecting": "Connecting file watch; automatic polling is on",
|
|
1784
|
+
"board.watch.ended": "File watch disconnected; automatic polling is still on",
|
|
1785
|
+
"board.watch.ended.paused": "File watch disconnected; automatic polling is paused",
|
|
1786
|
+
"board.watch.ended.disabled": "File watch disconnected; refresh manually",
|
|
1787
|
+
"board.time.now": "just now",
|
|
1788
|
+
"board.time.minutes": "{count} min ago",
|
|
1789
|
+
"board.time.hours": "{count} hr ago",
|
|
1790
|
+
"board.time.days": "{count} d ago",
|
|
1791
|
+
"board.status.active": "Active",
|
|
1792
|
+
"board.status.blocked": "Blocked",
|
|
1793
|
+
"board.status.paused": "Paused",
|
|
1794
|
+
"board.status.done": "Done",
|
|
1795
|
+
"board.priority.low": "Low priority",
|
|
1796
|
+
"board.priority.medium": "Medium priority",
|
|
1797
|
+
"board.priority.high": "High priority",
|
|
1798
|
+
"board.field.goal": "Goal",
|
|
1799
|
+
"board.field.focus": "Focus",
|
|
1800
|
+
"board.field.next": "Next",
|
|
1801
|
+
"board.blockers": "Blockers",
|
|
1802
|
+
"board.blocker.since": "since",
|
|
1803
|
+
"board.tasks.label": "Task progress",
|
|
1804
|
+
"board.tasks.count": "{done}/{total}",
|
|
1805
|
+
"board.tasks.progress": "Task progress: {done} of {total} complete",
|
|
1806
|
+
"board.tasks.summary": "View task details ({done}/{total} done)",
|
|
1807
|
+
"board.tasks.empty": "No tasks yet",
|
|
1808
|
+
"board.task.owner": "Owner",
|
|
1809
|
+
"board.task.status.todo": "To do",
|
|
1810
|
+
"board.task.status.doing": "Doing",
|
|
1811
|
+
"board.task.status.blocked": "Blocked",
|
|
1812
|
+
"board.task.status.done": "Done",
|
|
1813
|
+
"board.project.updated": "Updated",
|
|
1814
|
+
"board.loading": "Reading the project board\u2026",
|
|
1815
|
+
"board.loading.description": "Syncing projects, tasks, and blockers. This will only take a moment.",
|
|
1816
|
+
"board.empty.title": "No board data yet",
|
|
1817
|
+
"board.empty.description": "Projects appear here after the lead AI first writes through the board tool.",
|
|
1818
|
+
"board.emptyProjects.title": "No projects on the board yet",
|
|
1819
|
+
"board.emptyProjects.description": "The board file is ready; it refreshes after the lead AI adds a project.",
|
|
1820
|
+
"board.error.parse": "Could not parse the board file",
|
|
1821
|
+
"board.error.read": "Could not read the board file",
|
|
1822
|
+
"board.lastSuccess": "Last successful read:",
|
|
1823
|
+
"board.retry": "Retry",
|
|
1824
|
+
"board.blocked.notice": "{count} project(s) blocked. Prioritize these projects.",
|
|
1825
|
+
"board.unlisted.title": "Projects not on the board",
|
|
1826
|
+
"board.unlisted.empty": "Every registered workspace is already on the board.",
|
|
1827
|
+
"board.unlisted.pending": "Reading registered workspaces\u2026",
|
|
1828
|
+
"board.unlisted.error": "Could not read registered workspaces; reopen the panel later to retry.",
|
|
1829
|
+
"board.unlisted.unavailable": "Once the board file is ready, registered workspaces absent from it appear here.",
|
|
1830
|
+
"board.unlisted.sessions": "{count} session(s)",
|
|
1831
|
+
"board.unlisted.activityPending": "Reading Session activity",
|
|
1832
|
+
"board.unlisted.noActivity": "No Session activity",
|
|
775
1833
|
"error.alreadyActive": "Another Session is already in DevLead mode: {session}. Run /devlead off there first, then enable this Session.",
|
|
776
1834
|
"error.fallback.transport": "command failed",
|
|
777
1835
|
"error.fallback.rejected": "command rejected",
|
|
@@ -1173,33 +2231,997 @@ window.__ModuleLoader__.load({
|
|
|
1173
2231
|
flex: none;
|
|
1174
2232
|
align-items: center;
|
|
1175
2233
|
}
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
return created;
|
|
2234
|
+
|
|
2235
|
+
/* Read-only project board: a compact operational overview above a responsive
|
|
2236
|
+
project canvas. All colors and elevation come from the Harness theme tokens;
|
|
2237
|
+
container queries respond to the actual Sidebar width, not the window. */
|
|
2238
|
+
.devlead-board-open {
|
|
2239
|
+
flex: none;
|
|
2240
|
+
width: 28px;
|
|
2241
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
1185
2242
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
`style[${STYLE_ATTRIBUTE}="${STYLE_KEY}"]`
|
|
1191
|
-
);
|
|
1192
|
-
if (adopted !== null) return adopted;
|
|
1193
|
-
const created = document.createElement("style");
|
|
1194
|
-
created.setAttribute(STYLE_ATTRIBUTE, STYLE_KEY);
|
|
1195
|
-
document.head.appendChild(created);
|
|
1196
|
-
return created;
|
|
2243
|
+
|
|
2244
|
+
.devlead-board,
|
|
2245
|
+
.devlead-board * {
|
|
2246
|
+
box-sizing: border-box;
|
|
1197
2247
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
2248
|
+
|
|
2249
|
+
.devlead-board {
|
|
2250
|
+
container: devlead-board / inline-size;
|
|
2251
|
+
display: flex;
|
|
2252
|
+
flex-direction: column;
|
|
2253
|
+
width: 100%;
|
|
2254
|
+
max-width: 100%;
|
|
2255
|
+
min-width: 0;
|
|
2256
|
+
height: 100%;
|
|
2257
|
+
overflow: hidden;
|
|
2258
|
+
background: var(--dsw-specific-menu, Canvas);
|
|
2259
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2260
|
+
font-family: inherit;
|
|
2261
|
+
font-size: 13px;
|
|
2262
|
+
line-height: 20px;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
.devlead-board-header {
|
|
2266
|
+
position: relative;
|
|
2267
|
+
flex: none;
|
|
2268
|
+
min-width: 0;
|
|
2269
|
+
padding: 14px;
|
|
2270
|
+
overflow: hidden;
|
|
2271
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2272
|
+
background:
|
|
2273
|
+
linear-gradient(
|
|
2274
|
+
135deg,
|
|
2275
|
+
color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 7%, transparent),
|
|
2276
|
+
transparent 68%
|
|
2277
|
+
),
|
|
2278
|
+
var(--dsw-specific-menu, Canvas);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.devlead-board-title-row,
|
|
2282
|
+
.devlead-board-title-group,
|
|
2283
|
+
.devlead-board-live,
|
|
2284
|
+
.devlead-board-meta,
|
|
2285
|
+
.devlead-board-card-header,
|
|
2286
|
+
.devlead-board-card-badges,
|
|
2287
|
+
.devlead-board-task-heading,
|
|
2288
|
+
.devlead-board-task-meta,
|
|
2289
|
+
.devlead-board-progress-heading {
|
|
2290
|
+
display: flex;
|
|
2291
|
+
min-width: 0;
|
|
2292
|
+
align-items: center;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
.devlead-board-title-row {
|
|
2296
|
+
justify-content: space-between;
|
|
2297
|
+
gap: 10px;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
.devlead-board-title-group {
|
|
2301
|
+
flex: 1 1 auto;
|
|
2302
|
+
flex-wrap: wrap;
|
|
2303
|
+
gap: 8px;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
.devlead-board-title-group h3,
|
|
2307
|
+
.devlead-board-card-heading h5,
|
|
2308
|
+
.devlead-board-group h4,
|
|
2309
|
+
.devlead-board-placeholder h4,
|
|
2310
|
+
.devlead-board-error h4,
|
|
2311
|
+
.devlead-board-blockers h6 {
|
|
2312
|
+
min-width: 0;
|
|
2313
|
+
margin: 0;
|
|
2314
|
+
font: inherit;
|
|
2315
|
+
font-weight: 650;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
.devlead-board-title-group h3 {
|
|
2319
|
+
overflow: hidden;
|
|
2320
|
+
font-size: 16px;
|
|
2321
|
+
line-height: 24px;
|
|
2322
|
+
letter-spacing: -0.01em;
|
|
2323
|
+
text-overflow: ellipsis;
|
|
2324
|
+
white-space: nowrap;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
.devlead-board-refresh {
|
|
2328
|
+
flex: none;
|
|
2329
|
+
width: 28px;
|
|
2330
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
2331
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2332
|
+
transition:
|
|
2333
|
+
color 120ms ease,
|
|
2334
|
+
background-color 120ms ease,
|
|
2335
|
+
transform 120ms ease;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
.devlead-board-refresh[aria-busy="true"] > svg {
|
|
2339
|
+
animation: devlead-board-spin 1s linear infinite;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
@keyframes devlead-board-spin {
|
|
2343
|
+
to { transform: rotate(360deg); }
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
.devlead-board-live {
|
|
2347
|
+
flex-wrap: wrap;
|
|
2348
|
+
gap: 3px 6px;
|
|
2349
|
+
margin-top: 5px;
|
|
2350
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2351
|
+
font-size: 11px;
|
|
2352
|
+
line-height: 18px;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
.devlead-board-live > strong {
|
|
2356
|
+
color: var(--dsw-alias-state-success-primary, #2e7d32);
|
|
2357
|
+
font-size: 10px;
|
|
2358
|
+
font-weight: 700;
|
|
2359
|
+
letter-spacing: 0.09em;
|
|
2360
|
+
text-transform: uppercase;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
.devlead-board-live[data-auto-refresh="paused"] > strong {
|
|
2364
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
.devlead-board-live[data-auto-refresh="disabled"] > strong {
|
|
2368
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
.devlead-board-kpis {
|
|
2372
|
+
display: grid;
|
|
2373
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2374
|
+
gap: 6px;
|
|
2375
|
+
min-width: 0;
|
|
2376
|
+
margin: 12px 0 0;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
.devlead-board-kpis > div {
|
|
2380
|
+
display: flex;
|
|
2381
|
+
min-width: 0;
|
|
2382
|
+
margin: 0;
|
|
2383
|
+
padding: 7px 8px;
|
|
2384
|
+
overflow: hidden;
|
|
2385
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2386
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
2387
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 3%, transparent);
|
|
2388
|
+
flex-direction: column-reverse;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
.devlead-board-kpis dt {
|
|
2392
|
+
min-width: 0;
|
|
2393
|
+
overflow: hidden;
|
|
2394
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2395
|
+
font-size: 10px;
|
|
2396
|
+
line-height: 16px;
|
|
2397
|
+
text-overflow: ellipsis;
|
|
2398
|
+
white-space: nowrap;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
.devlead-board-kpis dd {
|
|
2402
|
+
min-width: 0;
|
|
2403
|
+
margin: 0;
|
|
2404
|
+
overflow: hidden;
|
|
2405
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2406
|
+
font-size: 19px;
|
|
2407
|
+
font-variant-numeric: tabular-nums;
|
|
2408
|
+
font-weight: 700;
|
|
2409
|
+
line-height: 23px;
|
|
2410
|
+
text-overflow: ellipsis;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
.devlead-board-kpis > div[data-tone="active"] {
|
|
2414
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 34%, transparent);
|
|
2415
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 8%, transparent);
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
.devlead-board-kpis > div[data-tone="active"] dd {
|
|
2419
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
.devlead-board-kpis > div[data-tone="blocked"] {
|
|
2423
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 58%, transparent);
|
|
2424
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
.devlead-board-kpis > div[data-tone="blocked"] dd,
|
|
2428
|
+
.devlead-board-kpis > div[data-tone="blocked"] dt {
|
|
2429
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
.devlead-board-kpis > div[data-tone="done"] dd {
|
|
2433
|
+
color: var(--dsw-alias-state-success-primary, #2e7d32);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
.devlead-board-meta {
|
|
2437
|
+
flex-wrap: wrap;
|
|
2438
|
+
justify-content: space-between;
|
|
2439
|
+
gap: 4px 12px;
|
|
2440
|
+
margin-top: 9px;
|
|
2441
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2442
|
+
font-size: 11px;
|
|
2443
|
+
line-height: 16px;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
.devlead-board-updated {
|
|
2447
|
+
min-width: 0;
|
|
2448
|
+
overflow: hidden;
|
|
2449
|
+
text-overflow: ellipsis;
|
|
2450
|
+
white-space: nowrap;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.devlead-board-revision {
|
|
2454
|
+
flex: none;
|
|
2455
|
+
margin-left: auto;
|
|
2456
|
+
padding: 0 6px;
|
|
2457
|
+
border-radius: var(--dsw-radius-sm, 4px);
|
|
2458
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
2459
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2460
|
+
font-family: inherit;
|
|
2461
|
+
font-variant-numeric: tabular-nums;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
.devlead-board-content {
|
|
2465
|
+
flex: 1 1 auto;
|
|
2466
|
+
min-width: 0;
|
|
2467
|
+
min-height: 0;
|
|
2468
|
+
padding: 12px;
|
|
2469
|
+
overflow-x: hidden;
|
|
2470
|
+
overflow-y: auto;
|
|
2471
|
+
overscroll-behavior: contain;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
.devlead-board-placeholder,
|
|
2475
|
+
.devlead-board-error {
|
|
2476
|
+
display: flex;
|
|
2477
|
+
align-items: center;
|
|
2478
|
+
max-width: 100%;
|
|
2479
|
+
min-height: 180px;
|
|
2480
|
+
margin: 8px 0;
|
|
2481
|
+
padding: 28px 18px;
|
|
2482
|
+
overflow: hidden;
|
|
2483
|
+
border: 1px dashed var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2484
|
+
border-radius: var(--dsw-radius-lg, 12px);
|
|
2485
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
|
|
2486
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2487
|
+
text-align: center;
|
|
2488
|
+
flex-direction: column;
|
|
2489
|
+
justify-content: center;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.devlead-board-state-mark {
|
|
2493
|
+
display: inline-flex;
|
|
2494
|
+
align-items: center;
|
|
2495
|
+
justify-content: center;
|
|
2496
|
+
width: 38px;
|
|
2497
|
+
height: 38px;
|
|
2498
|
+
margin-bottom: 10px;
|
|
2499
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 28%, transparent);
|
|
2500
|
+
border-radius: 999px;
|
|
2501
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 8%, transparent);
|
|
2502
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2503
|
+
font-size: 19px;
|
|
2504
|
+
font-weight: 600;
|
|
2505
|
+
line-height: 1;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
.devlead-board-placeholder p,
|
|
2509
|
+
.devlead-board-error p,
|
|
2510
|
+
.devlead-board-unlisted-body p {
|
|
2511
|
+
max-width: 42ch;
|
|
2512
|
+
margin: 6px 0 0;
|
|
2513
|
+
overflow-wrap: anywhere;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.devlead-board-error {
|
|
2517
|
+
border-style: solid;
|
|
2518
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 60%, transparent);
|
|
2519
|
+
background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 6%, transparent);
|
|
2520
|
+
color: var(--dsw-alias-label-error, #c0392b);
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.devlead-board-error .devlead-board-state-mark {
|
|
2524
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 34%, transparent);
|
|
2525
|
+
background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #c0392b) 10%, transparent);
|
|
2526
|
+
color: var(--dsw-alias-state-error-primary, #c0392b);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.devlead-board-error-detail {
|
|
2530
|
+
display: -webkit-box;
|
|
2531
|
+
max-width: 100%;
|
|
2532
|
+
margin: 12px 0;
|
|
2533
|
+
overflow: hidden;
|
|
2534
|
+
overflow-wrap: anywhere;
|
|
2535
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2536
|
+
font-family: inherit;
|
|
2537
|
+
font-size: 12px;
|
|
2538
|
+
white-space: pre-wrap;
|
|
2539
|
+
-webkit-box-orient: vertical;
|
|
2540
|
+
-webkit-line-clamp: 4;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
.devlead-board-blocked-notice {
|
|
2544
|
+
display: flex;
|
|
2545
|
+
align-items: flex-start;
|
|
2546
|
+
gap: 8px;
|
|
2547
|
+
min-width: 0;
|
|
2548
|
+
margin-bottom: 12px;
|
|
2549
|
+
padding: 10px 12px;
|
|
2550
|
+
overflow: hidden;
|
|
2551
|
+
border: 1px solid var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2552
|
+
border-radius: var(--dsw-radius-lg, 12px);
|
|
2553
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
|
|
2554
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 7%, transparent);
|
|
2555
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.devlead-board-blocked-notice > svg {
|
|
2559
|
+
flex: none;
|
|
2560
|
+
margin-top: 2px;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.devlead-board-blocked-notice > strong {
|
|
2564
|
+
min-width: 0;
|
|
2565
|
+
overflow-wrap: anywhere;
|
|
2566
|
+
font-weight: 650;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.devlead-board-group {
|
|
2570
|
+
min-width: 0;
|
|
2571
|
+
max-width: 100%;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
.devlead-board-group + .devlead-board-group {
|
|
2575
|
+
margin-top: 16px;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
.devlead-board-group-header {
|
|
2579
|
+
display: flex;
|
|
2580
|
+
align-items: center;
|
|
2581
|
+
justify-content: space-between;
|
|
2582
|
+
gap: 8px;
|
|
2583
|
+
min-width: 0;
|
|
2584
|
+
margin: 0 2px 8px;
|
|
2585
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
.devlead-board-group-header h4 {
|
|
2589
|
+
overflow: hidden;
|
|
2590
|
+
font-size: 12px;
|
|
2591
|
+
letter-spacing: 0.04em;
|
|
2592
|
+
text-overflow: ellipsis;
|
|
2593
|
+
text-transform: uppercase;
|
|
2594
|
+
white-space: nowrap;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
.devlead-board-group[data-board-group="blocked"] > .devlead-board-group-header h4 {
|
|
2598
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.devlead-board-cards {
|
|
2602
|
+
display: grid;
|
|
2603
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2604
|
+
gap: 10px;
|
|
2605
|
+
min-width: 0;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
.devlead-board-card {
|
|
2609
|
+
position: relative;
|
|
2610
|
+
min-width: 0;
|
|
2611
|
+
max-width: 100%;
|
|
2612
|
+
padding: 13px;
|
|
2613
|
+
overflow: hidden;
|
|
2614
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2615
|
+
border-radius: var(--dsw-radius-lg, 12px);
|
|
2616
|
+
background: var(--dsw-specific-menu, Canvas);
|
|
2617
|
+
box-shadow: var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
|
|
2618
|
+
transition:
|
|
2619
|
+
border-color 140ms ease,
|
|
2620
|
+
box-shadow 140ms ease,
|
|
2621
|
+
transform 140ms ease;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
.devlead-board-card[data-status="blocked"] {
|
|
2625
|
+
border-color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2626
|
+
background:
|
|
2627
|
+
linear-gradient(
|
|
2628
|
+
145deg,
|
|
2629
|
+
color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 9%, transparent),
|
|
2630
|
+
transparent 52%
|
|
2631
|
+
),
|
|
2632
|
+
var(--dsw-specific-menu, Canvas);
|
|
2633
|
+
box-shadow:
|
|
2634
|
+
0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 15%, transparent),
|
|
2635
|
+
var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
.devlead-board-card[data-status="blocked"]::before {
|
|
2639
|
+
position: absolute;
|
|
2640
|
+
inset: 0 auto 0 0;
|
|
2641
|
+
width: 3px;
|
|
2642
|
+
background: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2643
|
+
content: '';
|
|
2644
|
+
pointer-events: none;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
.devlead-board-card-header {
|
|
2648
|
+
align-items: flex-start;
|
|
2649
|
+
flex-wrap: wrap;
|
|
2650
|
+
gap: 8px;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
.devlead-board-card-heading {
|
|
2654
|
+
flex: 1 1 130px;
|
|
2655
|
+
min-width: 0;
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
.devlead-board-card-heading h5 {
|
|
2659
|
+
overflow: hidden;
|
|
2660
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2661
|
+
font-size: 14px;
|
|
2662
|
+
line-height: 21px;
|
|
2663
|
+
text-overflow: ellipsis;
|
|
2664
|
+
white-space: nowrap;
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
.devlead-board-project-id {
|
|
2668
|
+
display: block;
|
|
2669
|
+
margin-top: 1px;
|
|
2670
|
+
overflow: hidden;
|
|
2671
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2672
|
+
font-family: inherit;
|
|
2673
|
+
font-size: 10px;
|
|
2674
|
+
line-height: 15px;
|
|
2675
|
+
text-overflow: ellipsis;
|
|
2676
|
+
white-space: nowrap;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.devlead-board-card-badges {
|
|
2680
|
+
flex: 0 1 auto;
|
|
2681
|
+
flex-wrap: wrap;
|
|
2682
|
+
justify-content: flex-start;
|
|
2683
|
+
gap: 5px;
|
|
2684
|
+
margin-top: 6px;
|
|
2685
|
+
min-width: 0;
|
|
2686
|
+
max-width: 100%;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
.devlead-board-status {
|
|
2690
|
+
pointer-events: none;
|
|
2691
|
+
font-weight: 600;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
[data-board-status="blocked"] .devlead-board-status {
|
|
2695
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
[data-board-status="active"] .devlead-board-status {
|
|
2699
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
[data-board-status="done"] .devlead-board-status {
|
|
2703
|
+
color: var(--dsw-alias-state-success-primary, #2e7d32);
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
.devlead-board-workspace {
|
|
2707
|
+
display: block;
|
|
2708
|
+
max-width: 100%;
|
|
2709
|
+
margin-top: 6px;
|
|
2710
|
+
overflow: hidden;
|
|
2711
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2712
|
+
font-family: inherit;
|
|
2713
|
+
font-size: 11px;
|
|
2714
|
+
line-height: 17px;
|
|
2715
|
+
text-overflow: ellipsis;
|
|
2716
|
+
white-space: nowrap;
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.devlead-board-field {
|
|
2720
|
+
min-width: 0;
|
|
2721
|
+
margin-top: 10px;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
.devlead-board-field-label {
|
|
2725
|
+
display: flex;
|
|
2726
|
+
align-items: center;
|
|
2727
|
+
gap: 5px;
|
|
2728
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2729
|
+
font-size: 10px;
|
|
2730
|
+
font-weight: 600;
|
|
2731
|
+
letter-spacing: 0.035em;
|
|
2732
|
+
line-height: 16px;
|
|
2733
|
+
text-transform: uppercase;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
.devlead-board-field-arrow {
|
|
2737
|
+
flex: none;
|
|
2738
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2739
|
+
font-size: 13px;
|
|
2740
|
+
line-height: 1;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
.devlead-board-field p {
|
|
2744
|
+
display: -webkit-box;
|
|
2745
|
+
min-width: 0;
|
|
2746
|
+
margin: 3px 0 0;
|
|
2747
|
+
overflow: hidden;
|
|
2748
|
+
overflow-wrap: anywhere;
|
|
2749
|
+
white-space: pre-wrap;
|
|
2750
|
+
-webkit-box-orient: vertical;
|
|
2751
|
+
-webkit-line-clamp: 2;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
.devlead-board-field-goal {
|
|
2755
|
+
margin-top: 8px;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
.devlead-board-field-goal .devlead-board-field-label,
|
|
2759
|
+
.devlead-board-field-goal .devlead-board-field-arrow,
|
|
2760
|
+
.devlead-board-field-goal p {
|
|
2761
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
.devlead-board-field-goal p {
|
|
2765
|
+
font-size: 12px;
|
|
2766
|
+
-webkit-line-clamp: 1;
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
.devlead-board-field-focus {
|
|
2770
|
+
margin-top: 11px;
|
|
2771
|
+
padding: 8px 9px;
|
|
2772
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 14%, transparent);
|
|
2773
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
2774
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 5%, transparent);
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
.devlead-board-field-focus p {
|
|
2778
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2779
|
+
font-size: 14px;
|
|
2780
|
+
font-weight: 600;
|
|
2781
|
+
line-height: 21px;
|
|
2782
|
+
-webkit-line-clamp: 3;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
.devlead-board-field-next p {
|
|
2786
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
.devlead-board-blockers {
|
|
2790
|
+
min-width: 0;
|
|
2791
|
+
margin-top: 11px;
|
|
2792
|
+
padding: 9px 10px;
|
|
2793
|
+
overflow: hidden;
|
|
2794
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 40%, transparent);
|
|
2795
|
+
border-radius: var(--dsw-radius-md, 8px);
|
|
2796
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 10%, transparent);
|
|
2797
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
.devlead-board-blockers h6 {
|
|
2801
|
+
display: flex;
|
|
2802
|
+
align-items: center;
|
|
2803
|
+
gap: 5px;
|
|
2804
|
+
font-size: 12px;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
.devlead-board-blockers ul,
|
|
2808
|
+
.devlead-board-tasks ul {
|
|
2809
|
+
min-width: 0;
|
|
2810
|
+
margin: 6px 0 0;
|
|
2811
|
+
padding: 0;
|
|
2812
|
+
list-style: none;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
.devlead-board-blockers li + li {
|
|
2816
|
+
margin-top: 8px;
|
|
2817
|
+
padding-top: 8px;
|
|
2818
|
+
border-top: 1px solid color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 24%, transparent);
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
.devlead-board-blockers li > span:first-child {
|
|
2822
|
+
display: -webkit-box;
|
|
2823
|
+
overflow: hidden;
|
|
2824
|
+
overflow-wrap: anywhere;
|
|
2825
|
+
white-space: pre-wrap;
|
|
2826
|
+
-webkit-box-orient: vertical;
|
|
2827
|
+
-webkit-line-clamp: 3;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
.devlead-board-blocker-since {
|
|
2831
|
+
display: block;
|
|
2832
|
+
margin-top: 2px;
|
|
2833
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2834
|
+
font-size: 11px;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
.devlead-board-progress {
|
|
2838
|
+
min-width: 0;
|
|
2839
|
+
margin-top: 12px;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
.devlead-board-progress-heading {
|
|
2843
|
+
justify-content: space-between;
|
|
2844
|
+
gap: 8px;
|
|
2845
|
+
margin-bottom: 5px;
|
|
2846
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2847
|
+
font-size: 11px;
|
|
2848
|
+
line-height: 16px;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
.devlead-board-progress-heading > strong {
|
|
2852
|
+
flex: none;
|
|
2853
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
2854
|
+
font-variant-numeric: tabular-nums;
|
|
2855
|
+
font-weight: 650;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
.devlead-board-progress progress {
|
|
2859
|
+
display: block;
|
|
2860
|
+
width: 100%;
|
|
2861
|
+
max-width: 100%;
|
|
2862
|
+
height: 6px;
|
|
2863
|
+
overflow: hidden;
|
|
2864
|
+
appearance: none;
|
|
2865
|
+
border: 0;
|
|
2866
|
+
border-radius: 999px;
|
|
2867
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
2868
|
+
color: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
.devlead-board-progress progress::-webkit-progress-bar {
|
|
2872
|
+
border-radius: 999px;
|
|
2873
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
.devlead-board-progress progress::-webkit-progress-value {
|
|
2877
|
+
border-radius: 999px;
|
|
2878
|
+
background: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.devlead-board-progress progress::-moz-progress-bar {
|
|
2882
|
+
border-radius: 999px;
|
|
2883
|
+
background: var(--dsw-alias-state-business-primary, #4176e6);
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
.devlead-board-card[data-status="blocked"] .devlead-board-progress progress {
|
|
2887
|
+
color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
.devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-webkit-progress-value {
|
|
2891
|
+
background: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
.devlead-board-card[data-status="blocked"] .devlead-board-progress progress::-moz-progress-bar {
|
|
2895
|
+
background: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
.devlead-board-tasks {
|
|
2899
|
+
min-width: 0;
|
|
2900
|
+
margin-top: 9px;
|
|
2901
|
+
border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
.devlead-board summary {
|
|
2905
|
+
min-width: 0;
|
|
2906
|
+
max-width: 100%;
|
|
2907
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
2908
|
+
cursor: pointer;
|
|
2909
|
+
font-weight: 500;
|
|
2910
|
+
list-style: none;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
.devlead-board summary::-webkit-details-marker {
|
|
2914
|
+
display: none;
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
.devlead-board summary::after {
|
|
2918
|
+
flex: none;
|
|
2919
|
+
margin-left: auto;
|
|
2920
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2921
|
+
content: '\u203A';
|
|
2922
|
+
font-size: 17px;
|
|
2923
|
+
font-weight: 400;
|
|
2924
|
+
line-height: 16px;
|
|
2925
|
+
transform: rotate(0deg);
|
|
2926
|
+
transition: transform 120ms ease;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
.devlead-board details[open] > summary::after {
|
|
2930
|
+
transform: rotate(90deg);
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
.devlead-board-tasks > summary {
|
|
2934
|
+
display: flex;
|
|
2935
|
+
align-items: center;
|
|
2936
|
+
gap: 8px;
|
|
2937
|
+
padding: 8px 2px 2px;
|
|
2938
|
+
overflow: hidden;
|
|
2939
|
+
font-size: 11px;
|
|
2940
|
+
line-height: 18px;
|
|
2941
|
+
text-overflow: ellipsis;
|
|
2942
|
+
white-space: nowrap;
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
.devlead-board-tasks li {
|
|
2946
|
+
min-width: 0;
|
|
2947
|
+
padding: 8px 0;
|
|
2948
|
+
border-top: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
.devlead-board-task-heading {
|
|
2952
|
+
align-items: flex-start;
|
|
2953
|
+
gap: 8px;
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
.devlead-board-task-title {
|
|
2957
|
+
display: -webkit-box;
|
|
2958
|
+
flex: 1 1 auto;
|
|
2959
|
+
min-width: 0;
|
|
2960
|
+
overflow: hidden;
|
|
2961
|
+
overflow-wrap: anywhere;
|
|
2962
|
+
white-space: pre-wrap;
|
|
2963
|
+
-webkit-box-orient: vertical;
|
|
2964
|
+
-webkit-line-clamp: 2;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
.devlead-board-task-heading > span:last-child {
|
|
2968
|
+
flex: none;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.devlead-board-task-meta {
|
|
2972
|
+
flex-wrap: wrap;
|
|
2973
|
+
gap: 4px 8px;
|
|
2974
|
+
margin-top: 3px;
|
|
2975
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2976
|
+
font-size: 11px;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
.devlead-board-task-meta code {
|
|
2980
|
+
min-width: 0;
|
|
2981
|
+
overflow: hidden;
|
|
2982
|
+
font-family: inherit;
|
|
2983
|
+
text-overflow: ellipsis;
|
|
2984
|
+
white-space: nowrap;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
.devlead-board-card-footer {
|
|
2988
|
+
margin-top: 8px;
|
|
2989
|
+
overflow: hidden;
|
|
2990
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
2991
|
+
font-size: 10px;
|
|
2992
|
+
line-height: 16px;
|
|
2993
|
+
text-align: right;
|
|
2994
|
+
text-overflow: ellipsis;
|
|
2995
|
+
white-space: nowrap;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
.devlead-board-muted {
|
|
2999
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.devlead-board-secondary {
|
|
3003
|
+
min-width: 0;
|
|
3004
|
+
max-width: 100%;
|
|
3005
|
+
margin-top: 12px;
|
|
3006
|
+
overflow: hidden;
|
|
3007
|
+
border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3008
|
+
border-radius: var(--dsw-radius-lg, 12px);
|
|
3009
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary, CanvasText) 2%, transparent);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.devlead-board-secondary > summary {
|
|
3013
|
+
display: flex;
|
|
3014
|
+
align-items: center;
|
|
3015
|
+
gap: 8px;
|
|
3016
|
+
min-height: 42px;
|
|
3017
|
+
padding: 9px 11px;
|
|
3018
|
+
overflow: hidden;
|
|
3019
|
+
transition:
|
|
3020
|
+
color 120ms ease,
|
|
3021
|
+
background-color 120ms ease;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
.devlead-board-secondary > summary > h4 {
|
|
3025
|
+
display: flex;
|
|
3026
|
+
flex: 1 1 auto;
|
|
3027
|
+
align-items: center;
|
|
3028
|
+
justify-content: space-between;
|
|
3029
|
+
gap: 8px;
|
|
3030
|
+
overflow: hidden;
|
|
3031
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3032
|
+
font-size: 12px;
|
|
3033
|
+
line-height: 20px;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
.devlead-board-secondary > summary > h4 > span:first-child,
|
|
3037
|
+
.devlead-board-unlisted > summary > span:first-child {
|
|
3038
|
+
min-width: 0;
|
|
3039
|
+
overflow: hidden;
|
|
3040
|
+
text-overflow: ellipsis;
|
|
3041
|
+
white-space: nowrap;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
.devlead-board-secondary[open] > summary {
|
|
3045
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
.devlead-board-secondary > .devlead-board-cards {
|
|
3049
|
+
padding: 10px;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.devlead-board-secondary .devlead-board-card {
|
|
3053
|
+
box-shadow: none;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
.devlead-board-unlisted-body {
|
|
3057
|
+
min-width: 0;
|
|
3058
|
+
padding: 10px 11px;
|
|
3059
|
+
overflow: hidden;
|
|
3060
|
+
color: var(--dsw-alias-label-secondary, GrayText);
|
|
3061
|
+
font-size: 12px;
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
.devlead-board-unlisted-list {
|
|
3065
|
+
min-width: 0;
|
|
3066
|
+
margin: 0;
|
|
3067
|
+
padding: 0;
|
|
3068
|
+
list-style: none;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.devlead-board-unlisted-list li {
|
|
3072
|
+
min-width: 0;
|
|
3073
|
+
padding: 8px 0;
|
|
3074
|
+
overflow: hidden;
|
|
3075
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.devlead-board-unlisted-list li:last-child {
|
|
3079
|
+
border-bottom: 0;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.devlead-board-unlisted-list strong,
|
|
3083
|
+
.devlead-board-unlisted-list code,
|
|
3084
|
+
.devlead-board-unlisted-list span {
|
|
3085
|
+
display: block;
|
|
3086
|
+
min-width: 0;
|
|
3087
|
+
max-width: 100%;
|
|
3088
|
+
overflow: hidden;
|
|
3089
|
+
text-overflow: ellipsis;
|
|
3090
|
+
white-space: nowrap;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
.devlead-board-unlisted-list strong {
|
|
3094
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
.devlead-board-unlisted-list code {
|
|
3098
|
+
margin-top: 2px;
|
|
3099
|
+
color: var(--dsw-alias-label-tertiary, GrayText);
|
|
3100
|
+
font-family: inherit;
|
|
3101
|
+
font-size: 11px;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
.devlead-board-unlisted-list span {
|
|
3105
|
+
margin-top: 3px;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.devlead-board button:focus-visible,
|
|
3109
|
+
.devlead-board summary:focus-visible {
|
|
3110
|
+
outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
|
|
3111
|
+
outline-offset: 2px;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.devlead-board-card:focus-within {
|
|
3115
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 60%, transparent);
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
.devlead-board-card:focus-visible {
|
|
3119
|
+
outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
|
|
3120
|
+
outline-offset: 2px;
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
@media (hover: hover) {
|
|
3124
|
+
.devlead-board-refresh:hover:not(:disabled) {
|
|
3125
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
3126
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3127
|
+
transform: rotate(12deg);
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
.devlead-board-card:hover {
|
|
3131
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4176e6) 42%, transparent);
|
|
3132
|
+
box-shadow: var(--dsw-elevation-panel, 0 1px 2px rgba(0, 0, 0, 0.08));
|
|
3133
|
+
transform: translateY(-1px);
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
.devlead-board-card[data-status="blocked"]:hover {
|
|
3137
|
+
border-color: var(--dsw-alias-state-warn-primary, #a15c00);
|
|
3138
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-warn-primary, #a15c00) 12%, transparent);
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
.devlead-board summary:hover {
|
|
3142
|
+
color: var(--dsw-alias-label-primary, CanvasText);
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
.devlead-board-secondary > summary:hover {
|
|
3146
|
+
background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.12));
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
@container devlead-board (min-width: 620px) {
|
|
3151
|
+
.devlead-board-group:not(.devlead-board-secondary) > .devlead-board-cards {
|
|
3152
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
.devlead-board-card {
|
|
3156
|
+
padding: 14px;
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
@container devlead-board (max-width: 340px) {
|
|
3161
|
+
.devlead-board-kpis {
|
|
3162
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
@media (max-width: 480px) {
|
|
3167
|
+
.devlead-board-header {
|
|
3168
|
+
padding: 11px 10px;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
.devlead-board-content {
|
|
3172
|
+
padding: 10px;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
.devlead-board-card {
|
|
3176
|
+
padding: 11px;
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
.devlead-board-live {
|
|
3180
|
+
align-items: flex-start;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
.devlead-board-live > span {
|
|
3184
|
+
flex: 1 1 150px;
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3189
|
+
.devlead-board *,
|
|
3190
|
+
.devlead-board *::before,
|
|
3191
|
+
.devlead-board *::after {
|
|
3192
|
+
scroll-behavior: auto !important;
|
|
3193
|
+
transition: none !important;
|
|
3194
|
+
animation: none !important;
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
`;
|
|
3199
|
+
var STYLE_TAG_STATE = /* @__PURE__ */ Symbol.for("@yankeguo/dsh-client-ui-devlead.style-tag");
|
|
3200
|
+
function styleTagState() {
|
|
3201
|
+
const store = globalThis;
|
|
3202
|
+
const existing = store[STYLE_TAG_STATE];
|
|
3203
|
+
if (existing !== void 0) return existing;
|
|
3204
|
+
const created = { refs: 0, element: void 0 };
|
|
3205
|
+
store[STYLE_TAG_STATE] = created;
|
|
3206
|
+
return created;
|
|
3207
|
+
}
|
|
3208
|
+
function resolveStyleTag(state) {
|
|
3209
|
+
const known = state.element;
|
|
3210
|
+
if (known !== void 0 && known.isConnected) return known;
|
|
3211
|
+
const adopted = document.head.querySelector(
|
|
3212
|
+
`style[${STYLE_ATTRIBUTE}="${STYLE_KEY}"]`
|
|
3213
|
+
);
|
|
3214
|
+
if (adopted !== null) return adopted;
|
|
3215
|
+
const created = document.createElement("style");
|
|
3216
|
+
created.setAttribute(STYLE_ATTRIBUTE, STYLE_KEY);
|
|
3217
|
+
document.head.appendChild(created);
|
|
3218
|
+
return created;
|
|
3219
|
+
}
|
|
3220
|
+
function ensureStyleTag() {
|
|
3221
|
+
if (typeof document === "undefined") return () => {
|
|
3222
|
+
};
|
|
3223
|
+
const state = styleTagState();
|
|
3224
|
+
const element = resolveStyleTag(state);
|
|
1203
3225
|
state.element = element;
|
|
1204
3226
|
state.refs += 1;
|
|
1205
3227
|
if (element.textContent !== styles) element.textContent = styles;
|
|
@@ -1216,7 +3238,17 @@ window.__ModuleLoader__.load({
|
|
|
1216
3238
|
|
|
1217
3239
|
// packages/client-ui/src/client/index.tsx
|
|
1218
3240
|
var NS = "devlead";
|
|
1219
|
-
var inject = [
|
|
3241
|
+
var inject = [
|
|
3242
|
+
"slots",
|
|
3243
|
+
"sessions",
|
|
3244
|
+
"remote",
|
|
3245
|
+
"remote.commands",
|
|
3246
|
+
"remote.workspaceFiles",
|
|
3247
|
+
"locale",
|
|
3248
|
+
"sidebarRight",
|
|
3249
|
+
"sidebarRightTabs",
|
|
3250
|
+
"workspaces"
|
|
3251
|
+
];
|
|
1220
3252
|
function apply(ctx) {
|
|
1221
3253
|
ctx.effect(() => ctx.locale.register(NS, { zh, en }), "devlead: dictionaries");
|
|
1222
3254
|
ctx.effect(() => ensureStyleTag(), "devlead: styles");
|
|
@@ -1255,6 +3287,113 @@ window.__ModuleLoader__.load({
|
|
|
1255
3287
|
order: 20,
|
|
1256
3288
|
locale: NS
|
|
1257
3289
|
}, DevLeadSessionHoverMark));
|
|
3290
|
+
const sessions = ctx.sessions;
|
|
3291
|
+
let boardSurfaceDisposers = [];
|
|
3292
|
+
const boardEligible = (sessionId) => resolveDevLeadBoardSessionConfig(
|
|
3293
|
+
sessionId,
|
|
3294
|
+
sessions.list.getSnapshot().byId[sessionId],
|
|
3295
|
+
currentDevLeadBoardConfig()
|
|
3296
|
+
) !== void 0;
|
|
3297
|
+
const closeBoardTabs = () => {
|
|
3298
|
+
const onScreen = ctx.sidebarRight.mounted.getSnapshot();
|
|
3299
|
+
if (onScreen === void 0) return;
|
|
3300
|
+
for (const tab of ctx.sidebarRight.openTabs.getSnapshot()) {
|
|
3301
|
+
if (tab.sessionId !== onScreen || tab.kind !== DEVLEAD_BOARD_TAB_KIND) continue;
|
|
3302
|
+
try {
|
|
3303
|
+
ctx.sidebarRight.close(tab.tabId);
|
|
3304
|
+
} catch {
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
const disposeBoardSurfaces = () => {
|
|
3309
|
+
const disposers = boardSurfaceDisposers;
|
|
3310
|
+
if (disposers.length === 0) return;
|
|
3311
|
+
boardSurfaceDisposers = [];
|
|
3312
|
+
for (const dispose of [...disposers].reverse()) {
|
|
3313
|
+
try {
|
|
3314
|
+
dispose();
|
|
3315
|
+
} catch {
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
closeBoardTabs();
|
|
3319
|
+
};
|
|
3320
|
+
const ensureBoardSurfaces = (sessionId) => {
|
|
3321
|
+
if (sessionId === void 0) return false;
|
|
3322
|
+
if (boardSurfaceDisposers.length > 0) return true;
|
|
3323
|
+
if (!boardEligible(sessionId)) return false;
|
|
3324
|
+
const t = ctx.locale.bind(NS);
|
|
3325
|
+
const disposers = [];
|
|
3326
|
+
try {
|
|
3327
|
+
disposers.push(ctx.sidebarRightTabs.register({
|
|
3328
|
+
id: DEVLEAD_BOARD_TAB_ID,
|
|
3329
|
+
kind: DEVLEAD_BOARD_TAB_KIND,
|
|
3330
|
+
title: () => t("board.title"),
|
|
3331
|
+
guide: [{
|
|
3332
|
+
id: "open",
|
|
3333
|
+
order: 30,
|
|
3334
|
+
title: () => t("board.title"),
|
|
3335
|
+
description: () => t("board.guide"),
|
|
3336
|
+
icon: import_dsh_client_ui_primitives7.IconFlatListOutlineRegular
|
|
3337
|
+
}]
|
|
3338
|
+
}));
|
|
3339
|
+
disposers.push(ctx.slots.inject("sidebar.right.pane.tab", () => ctx.slots.register({
|
|
3340
|
+
name: "sidebar.right.pane.tab",
|
|
3341
|
+
key: DEVLEAD_BOARD_TAB_ID,
|
|
3342
|
+
locale: NS,
|
|
3343
|
+
// The body resolves its own path from the tab Session's summary plus
|
|
3344
|
+
// the Host global, so the injected face keeps only the shared Remote.
|
|
3345
|
+
inject: () => ({ files: ctx.remote.workspaceFiles })
|
|
3346
|
+
}, DevLeadBoardPanel)));
|
|
3347
|
+
disposers.push(ctx.slots.inject("sidebar.right.pane.tab.title", () => ctx.slots.register({
|
|
3348
|
+
name: "sidebar.right.pane.tab.title",
|
|
3349
|
+
key: DEVLEAD_BOARD_TAB_ID,
|
|
3350
|
+
locale: NS
|
|
3351
|
+
}, DevLeadBoardTitle)));
|
|
3352
|
+
} catch {
|
|
3353
|
+
for (const dispose of disposers.reverse()) {
|
|
3354
|
+
try {
|
|
3355
|
+
dispose();
|
|
3356
|
+
} catch {
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
return false;
|
|
3360
|
+
}
|
|
3361
|
+
boardSurfaceDisposers = disposers;
|
|
3362
|
+
return true;
|
|
3363
|
+
};
|
|
3364
|
+
ctx.slots.inject("conversation.session.header.utilities", () => ctx.slots.register({
|
|
3365
|
+
name: "conversation.session.header.utilities",
|
|
3366
|
+
id: "devlead-board",
|
|
3367
|
+
// Next to the shipped Schedule entry (-5), left of the overflow menu.
|
|
3368
|
+
order: -4,
|
|
3369
|
+
locale: NS,
|
|
3370
|
+
inject: (sessionId) => ({
|
|
3371
|
+
onOpen: () => {
|
|
3372
|
+
if (!ensureBoardSurfaces(sessionId)) return;
|
|
3373
|
+
ctx.sidebarRight.openTab(DEVLEAD_BOARD_TAB_KIND);
|
|
3374
|
+
}
|
|
3375
|
+
})
|
|
3376
|
+
}, DevLeadBoardButton));
|
|
3377
|
+
ctx.effect(() => {
|
|
3378
|
+
const sync = () => {
|
|
3379
|
+
const onScreen = ctx.sidebarRight.mounted.getSnapshot();
|
|
3380
|
+
if (onScreen !== void 0 && boardEligible(onScreen)) {
|
|
3381
|
+
ensureBoardSurfaces(onScreen);
|
|
3382
|
+
} else {
|
|
3383
|
+
disposeBoardSurfaces();
|
|
3384
|
+
closeBoardTabs();
|
|
3385
|
+
}
|
|
3386
|
+
};
|
|
3387
|
+
const offMounted = ctx.sidebarRight.mounted.subscribe(sync);
|
|
3388
|
+
const offSessions = sessions.list.subscribe(sync);
|
|
3389
|
+
sync();
|
|
3390
|
+
return () => {
|
|
3391
|
+
offMounted();
|
|
3392
|
+
offSessions();
|
|
3393
|
+
disposeBoardSurfaces();
|
|
3394
|
+
closeBoardTabs();
|
|
3395
|
+
};
|
|
3396
|
+
}, "devlead: board surfaces");
|
|
1258
3397
|
}
|
|
1259
3398
|
|
|
1260
3399
|
return module.exports;
|