fix(dashboard): domain field name in TD payload; rename Improvements → Suggestions

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-03-18 00:36:46 +01:00
parent 71488729a1
commit 6cd9f75d7e
2 changed files with 4 additions and 4 deletions

View File

@@ -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",