clone

a hermes agent plugin for openspec: tools for spec workflows and a dashboard tab for browsing changes and specs

Simplify artifact indicators to colored dots

dami etoile committed e512356
commit
e51235640baabf69c37696c1c129147c3afd8ecd
parent
d325f82a8fd5e159324a9da75fd2bcb4bfee3d27
author
dami etoile <dami.etoile@gmail.com>
2 files changed, +7 -6
Mdashboard/dist/index.js10+++++-----
Mdashboard/dist/style.css3++-
M dashboard/dist/index.js +5 -5
@@ -263,10 +263,10 @@
263263 items.length === 0 ? h("span", { className: "os-col-empty" }, "—") :264264 items.map(function (it) {265265 var artifacts = [];266- if (it.hasProposal) artifacts.push({ d: ICO.proposal, label: "proposal" });267- if (it.hasTasks) artifacts.push({ d: ICO.tasks, label: "tasks" });268- if (it.hasDesign) artifacts.push({ d: ICO.design, label: "design" });269- if (it.hasSpecs) artifacts.push({ d: ICO.specs, label: "specs" });266+ if (it.hasProposal) artifacts.push({ c: "#60a5fa", label: "proposal" });267+ if (it.hasTasks) artifacts.push({ c: "#34d399", label: "tasks" });268+ if (it.hasDesign) artifacts.push({ c: "#a78bfa", label: "design" });269+ if (it.hasSpecs) artifacts.push({ c: "#fbbf24", label: "specs" });270270 var pct = it.taskStats && it.taskStats.total > 0 ? Math.round((it.taskStats.done / it.taskStats.total) * 100) : 0;271271 return h("button", {272272 key: it.id || it.name, className: cn("os-card", STATUS_TONE[it.status] || ""), onClick: function () { onSelectItem(it); },
@@ -274,7 +274,7 @@
274274 h("div", { className: "os-card-title" }, it.title || it.name),275275 h("div", { className: "os-card-foot" },276276 artifacts.length ? h("span", { className: "os-card-artifacts" },277- artifacts.map(function (a, i) { return h(Icon, { key: i, d: a.d, size: 11, title: a.label }); })277+ artifacts.map(function (a, i) { return h("span", { key: i, className: "os-card-dot", title: a.label, style: { background: a.c } }); })278278 ) : null,279279 it.taskStats ? h("span", { className: "os-card-progress" },280280 h("span", { className: "os-card-progress-track" }, h("span", { className: "os-card-progress-fill", style: { width: pct + "%" } })),
M dashboard/dist/style.css +2 -1