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:
2026-02-28 15:31:28 +01:00
parent 9112d11621
commit b6ec7c2ecb
3 changed files with 9 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ const decState = (async function*() {
data = decisions
.map(d => ({
...d,
domain: topicMap[d.topic_id]?.domain ?? null,
domain: topicMap[d.topic_id]?.domain_slug ?? null,
topic_title: topicMap[d.topic_id]?.title ?? null,
}))
.sort((a, b) => {