fix(dashboard): replace stale t.domain with t.domain_slug across all pages
After the v0.5 migration TopicRead.domain was renamed to domain_slug. index.md, decisions.md and tasks.md still referenced the old field, causing every workstream domain to fall back to "unknown". Also updated tasks.md to load the domain filter list dynamically from /domains/ instead of the hardcoded 6-slug array. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,7 @@ if (summary.error) display(html`<div class="warning">⚠️ ${summary.error}</di
|
||||
```js
|
||||
import * as Plot from "npm:@observablehq/plot";
|
||||
|
||||
const topicById = Object.fromEntries((summary.topics ?? []).map(t => [t.id, t.domain]));
|
||||
const topicById = Object.fromEntries((summary.topics ?? []).map(t => [t.id, t.domain_slug]));
|
||||
|
||||
const openWs = (summary.open_workstreams ?? []).map(w => ({
|
||||
title: w.title,
|
||||
@@ -270,7 +270,7 @@ if (regs.length === 0) {
|
||||
const regs = regsState ?? [];
|
||||
const registeredDomains = new Set(regs.map(e => e.detail?.domain).filter(Boolean));
|
||||
const emptyRegistered = (summary.topics ?? []).filter(t =>
|
||||
registeredDomains.has(t.domain) && (t.workstreams ?? []).length === 0
|
||||
registeredDomains.has(t.domain_slug) && (t.workstreams ?? []).length === 0
|
||||
);
|
||||
|
||||
if (emptyRegistered.length > 0) {
|
||||
@@ -278,7 +278,7 @@ if (emptyRegistered.length > 0) {
|
||||
<strong>💡 Getting started</strong>
|
||||
<p>These registered projects have no workstreams yet:</p>
|
||||
<ul>${emptyRegistered.map(t => html`<li>
|
||||
<strong>${t.domain}</strong> — open repo in Claude Code and say <em>"Hi!"</em> to kick off first session, or run <code>custodian create-workstream --domain ${t.domain} --title "My first workstream"</code> manually
|
||||
<strong>${t.domain_slug}</strong> — open repo in Claude Code and say <em>"Hi!"</em> to kick off first session, or run <code>custodian create-workstream --domain ${t.domain_slug} --title "My first workstream"</code> manually
|
||||
</li>`)}</ul>
|
||||
</div>`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user