From 6cd9f75d7e4683acf1a96889b4d06943cd280a17 Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 18 Mar 2026 00:36:46 +0100 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20domain=20field=20name=20in=20?= =?UTF-8?q?TD=20payload;=20rename=20Improvements=20=E2=86=92=20Suggestions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - improvement-modal.js: API expects `domain` not `domain_slug` (422 fix) - todo.md: section heading and KPI label renamed to "Suggestions" Co-Authored-By: Claude Sonnet 4.6 --- dashboard/src/components/improvement-modal.js | 2 +- dashboard/src/todo.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/src/components/improvement-modal.js b/dashboard/src/components/improvement-modal.js index 03520ea..a71f4e8 100644 --- a/dashboard/src/components/improvement-modal.js +++ b/dashboard/src/components/improvement-modal.js @@ -337,7 +337,7 @@ export function initImprovementModal({ apiBase = "http://127.0.0.1:8000", domain const location = `${pageName} › ${widgetName}`; const payload = { - domain_slug: domain, + domain: domain, title: `UI: ${widgetName}`, description: suggestion, debt_type: "dashboard-improvement", diff --git a/dashboard/src/todo.md b/dashboard/src/todo.md index ee2ea88..80ad001 100644 --- a/dashboard/src/todo.md +++ b/dashboard/src/todo.md @@ -106,7 +106,7 @@ const _kpiBox = html`
- improvements (open) + suggestions (open)
${improvements.length}
@@ -209,14 +209,14 @@ if (thirdParty.length === 0) { --- -## Improvements +## Suggestions Dashboard suggestions submitted via Shift+click. Review and action on the [UI Feedback](/ui-feedback) page; open items shown here for visibility. ```js if (improvements.length === 0) { - display(html`

No open improvement suggestions. Shift+click any widget to submit one.

`); + display(html`

No open suggestions. Shift+click any widget to submit one.

`); } else { display(html`
${improvements.map(t => html`