- commit
- d325f82a8fd5e159324a9da75fd2bcb4bfee3d27
- parent
- bb496f8c7a3bf009fa018ec80307dbce5a7d1c63
- author
- dami etoile <dami.etoile@gmail.com>
| M | dashboard/ | 16 | +++++++++++----- |
| M | dashboard/ | 1 | + |
@@ -143,6 +143,10 @@
143143 folder: "M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",144144 chevron: "M9 18l6-6-6-6",145145 branch: "M6 3v12M18 9a3 3 0 1 0-3-3M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM18 9a3 3 0 0 1-3 3H6",146+ proposal: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h5",147+ tasks: "M9 11l3 3L22 4M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",148+ design: "M12 19l7-7 3 3-7 7-3-3zM18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5zM2 2l7.586 7.586M11 11a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",149+ specs: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",146150 };147151 148152 // ── Modal (lightweight, no Dialog in SDK) ─────────────────────────────@@ -259,17 +263,19 @@
259263 items.length === 0 ? h("span", { className: "os-col-empty" }, "—") :260264 items.map(function (it) {261265 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+ 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" });266270 var pct = it.taskStats && it.taskStats.total > 0 ? Math.round((it.taskStats.done / it.taskStats.total) * 100) : 0;267271 return h("button", {268272 key: it.id || it.name, className: cn("os-card", STATUS_TONE[it.status] || ""), onClick: function () { onSelectItem(it); },269273 },270274 h("div", { className: "os-card-title" }, it.title || it.name),271275 h("div", { className: "os-card-foot" },272- artifacts.length ? h("span", { className: "os-card-artifacts", title: "P=proposal T=tasks D=design S=specs" }, artifacts.join(" ")) : null,276+ 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 }); })278+ ) : null,273279 it.taskStats ? h("span", { className: "os-card-progress" },274280 h("span", { className: "os-card-progress-track" }, h("span", { className: "os-card-progress-fill", style: { width: pct + "%" } })),275281 h("span", { className: "os-card-stats" }, it.taskStats.done + "/" + it.taskStats.total)@@ -42,6 +42,7 @@
4242 .os-card:hover { border-color: var(--color-primary, #555); }4343 .os-card-title { font-size: 0.82rem; font-weight: 500; line-height: 1.3; color: var(--color-foreground, #eee); }4444 .os-card-foot { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }45+.os-card-foot .os-chip { width: 100%; margin-top: 0.125rem; }4546 .os-card-artifacts { font-size: 0.62rem; font-family: var(--theme-font-mono, monospace); letter-spacing: 0.05em; color: var(--color-muted-foreground, #777); }4647 .os-card-progress { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }4748 .os-card-progress-track { width: 2.5rem; height: 0.25rem; border-radius: 0.125rem; background: var(--color-secondary, rgba(255,255,255,0.08)); overflow: hidden; }