diff --git a/src/static/dashboard.html b/src/static/dashboard.html index 421014e..eda15ca 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -715,7 +715,7 @@ - +
diff --git a/src/static/js/source-health.js b/src/static/js/source-health.js index 2927c94..4c2c219 100644 --- a/src/static/js/source-health.js +++ b/src/static/js/source-health.js @@ -143,13 +143,13 @@ function renderHealthDashboard() { ${SUGGESTION_TYPE_LABELS[s.suggestion_type] || s.suggestion_type} ${esc(s.title)} - ${esc(s.description || "")} + ${esc(s.description || "")} ${PRIORITY_LABELS[s.priority] || s.priority} ${formatDateTime(s.created_at)} - ${s.suggestion_type === "deactivate_source" && s.source_id ? ` ` : ""} - - + ${s.suggestion_type === "deactivate_source" && s.source_id ? ` ` : ""} + + `, ) @@ -166,20 +166,23 @@ function renderHealthDashboard() { `; } - // Vergangene Vorschläge + // Vergangene Vorschläge - eingeklappt by default, weil rein historisch. let historyHtml = ""; if (recentSuggestions.length > 0) { + const shown = recentSuggestions.slice(0, 20); historyHtml = ` -
-

Verlauf

-
+
+ + Verlauf + (${recentSuggestions.length} erledigte Vorschläge - klick zum Aufklappen) + +
- ${recentSuggestions - .slice(0, 20) + ${shown .map( (s) => ` @@ -193,7 +196,7 @@ function renderHealthDashboard() {
TypTitelStatusBearbeitet
-
`; + `; } // Health-Check Ergebnisse @@ -268,22 +271,27 @@ function renderHealthDashboard() {
- + ${filtered .map( - (c) => ` + (c) => { + // Domain + Sprache in Tooltip vom Quellnamen, statt eigene Spalten. + const tipParts = []; + if (c.domain) tipParts.push(c.domain); + if (c.language) tipParts.push(c.language); + const nameTip = tipParts.length ? ` title="${esc(tipParts.join(" · "))}"` : ""; + return ` - - + ${esc(c.name)} - - - - `, + + + `; + } ) .join("")}
QuelleDomainTypOrgSpracheStatusDetailsAktionen
QuelleTypOrgStatusDetailsAktion
${esc(c.name)}${esc(c.domain || "-")}${CHECK_TYPE_LABELS[c.check_type] || c.check_type} ${c.tenant_id == null ? 'global' : esc(c.org_name || ("Org " + c.tenant_id))}${esc(c.language || "-")} ${c.status === "error" ? "Fehler" : (c.status === "warning" ? "Warnung" : "OK")}${esc(c.message || "")}${c.status === "error" && c.check_type === "reachability" ? `` : ""}
${esc(c.message || "")}${c.status === "error" && c.check_type === "reachability" ? `` : ""}