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:
@@ -23,7 +23,7 @@ const taskState = (async function*() {
|
||||
const topicMap = Object.fromEntries(topicList.map(t => [t.id, t]));
|
||||
const wsMap = Object.fromEntries(wsList.map(w => [w.id, {
|
||||
...w,
|
||||
domain: topicMap[w.topic_id]?.domain ?? "unknown",
|
||||
domain: topicMap[w.topic_id]?.domain_slug ?? "unknown",
|
||||
}]));
|
||||
data = taskList.map(t => ({
|
||||
...t,
|
||||
@@ -49,7 +49,10 @@ import {MultiSelect} from "./components/multiselect.js";
|
||||
|
||||
const STATUSES = ["todo", "in_progress", "blocked", "done", "cancelled"];
|
||||
const PRIORITIES = ["critical", "high", "medium", "low"];
|
||||
const DOMAINS = ["custodian", "railiance", "markitect", "coulomb_social", "personhood", "foerster_capabilities"];
|
||||
const _domainsResp = await fetch(`${API}/domains/?status=active`).catch(() => null);
|
||||
const DOMAINS = _domainsResp?.ok
|
||||
? (await _domainsResp.json()).map(d => d.slug)
|
||||
: ["custodian", "railiance", "markitect", "coulomb_social", "personhood", "foerster_capabilities"];
|
||||
|
||||
const _filtersForm = Inputs.form(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user