fix(work-items): prioritize spotlight items
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m16s
CD Pipeline / build-and-deploy (push) Successful in 4m32s
CD Pipeline / post-deploy-checks (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m16s
CD Pipeline / build-and-deploy (push) Successful in 4m32s
CD Pipeline / post-deploy-checks (push) Has been cancelled
This commit is contained in:
@@ -11412,7 +11412,7 @@ function commanderStatusTone(status: string) {
|
||||
}
|
||||
}
|
||||
|
||||
const MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS = new Set([
|
||||
const MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS = [
|
||||
"CIR-P1-AI-002",
|
||||
"CIR-P0-AILOOP-001",
|
||||
"CIR-P0-LOG-001",
|
||||
@@ -11421,7 +11421,11 @@ const MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS = new Set([
|
||||
"CIR-P1-UI-001",
|
||||
"CIR-P1-OPENCLAW-001",
|
||||
"CIR-P2-UX-002",
|
||||
]);
|
||||
];
|
||||
|
||||
const MAINLINE_WORK_PROGRESS_SPOTLIGHT_ID_SET = new Set(
|
||||
MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS
|
||||
);
|
||||
|
||||
function pickMainlineVisibleWorkItems(
|
||||
items: CommanderInsertedRequirementWorkItem[],
|
||||
@@ -11439,13 +11443,17 @@ function pickMainlineVisibleWorkItems(
|
||||
seen.add(id);
|
||||
};
|
||||
|
||||
const itemsById = new Map(items.map((item) => [item.id, item]));
|
||||
addItem(items.find((item) => item.id === nextId));
|
||||
for (const id of MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS) {
|
||||
addItem(itemsById.get(id));
|
||||
}
|
||||
for (const item of items) {
|
||||
const status = item.status ?? "pending";
|
||||
if (
|
||||
status === "in_progress" ||
|
||||
status === "blocked" ||
|
||||
MAINLINE_WORK_PROGRESS_SPOTLIGHT_IDS.has(item.id ?? "")
|
||||
MAINLINE_WORK_PROGRESS_SPOTLIGHT_ID_SET.has(item.id ?? "")
|
||||
) {
|
||||
addItem(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user