clone

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

Redesign change cards: artifact badges + progress bar, remove redundant name

dami etoile committed bb496f8
commit
bb496f8c7a3bf009fa018ec80307dbce5a7d1c63
parent
1bfcd2bd3d2e32e1274da479dd8b7a17018ad020
author
dami etoile <dami.etoile@gmail.com>
2 files changed, +17 -5
Mdashboard/dist/index.js15++++++++++++---
Mdashboard/dist/style.css7+++++--
M dashboard/dist/index.js +12 -3
@@ -258,14 +258,23 @@
258258 h("div", { className: "os-col-list" },259259 items.length === 0 ? h("span", { className: "os-col-empty" }, "—") :260260 items.map(function (it) {261+ var artifacts = [];262+ if (it.hasProposal) artifacts.push("P");263+ if (it.hasTasks) artifacts.push("T");264+ if (it.hasDesign) artifacts.push("D");265+ if (it.hasSpecs) artifacts.push("S");266+ var pct = it.taskStats && it.taskStats.total > 0 ? Math.round((it.taskStats.done / it.taskStats.total) * 100) : 0;261267 return h("button", {262268 key: it.id || it.name, className: cn("os-card", STATUS_TONE[it.status] || ""), onClick: function () { onSelectItem(it); },263269 },264270 h("div", { className: "os-card-title" }, it.title || it.name),265271 h("div", { className: "os-card-foot" },266- h("span", { className: "os-card-name" }, it.name),267- it.token ? h(CopyChip, { text: source.name + "/" + it.token }) : null,268- it.taskStats ? h("span", { className: "os-card-stats" }, it.taskStats.done + "/" + it.taskStats.total) : null272+ artifacts.length ? h("span", { className: "os-card-artifacts", title: "P=proposal T=tasks D=design S=specs" }, artifacts.join(" ")) : null,273+ it.taskStats ? h("span", { className: "os-card-progress" },274+ h("span", { className: "os-card-progress-track" }, h("span", { className: "os-card-progress-fill", style: { width: pct + "%" } })),275+ h("span", { className: "os-card-stats" }, it.taskStats.done + "/" + it.taskStats.total)276+ ) : null,277+ it.token ? h(CopyChip, { text: source.name + "/" + it.token }) : null269278 )270279 );271280 })
M dashboard/dist/style.css +5 -2