feat: Enhance dashboard widget configuration and introduce new widgets
Deploy Development / deploy (push) Successful in 48s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

- Updated the dashboard layout schema to include new widgets: DashboardGreeting, QuickWeightToday, BodyStatStrip, StatusPills, ProfileGoalsProgress, TrendKcalWeight, NutritionActivitySummary, RecoverySleepRest, and TrainingTypeDistribution.
- Improved widget configuration validation to support new features, including chart days for trend and distribution widgets.
- Refactored the default lab layout to align with the updated widget catalog and ensure proper default activation.
- Bumped app_dashboard version to 1.6.0 to reflect the addition of new widgets and configuration enhancements.
This commit is contained in:
Lars committed 2026-04-07 14:19:45 +02:00
1 parent c0c512e942
commit 3d498d03c1
28 files changed
+1487 -243

No files matched your search

+25 -1
View File
@@ -31,7 +31,9 @@ mcp = FastMCP(
"mitai-gitea",
instructions=(
"Gitea-Tools für das Repo aus GITEA_OWNER/GITEA_REPO. "
"Schließe Issues nur nach klarer Code-Verifikation; sonst Kommentar mit offenen Punkten."
"Schließe Issues nur nach klarer Code-Verifikation; sonst Kommentar mit offenen Punkten. "
"Kurze Titel-/Body-Änderungen: gitea_patch_issue. "
"Sehr lange Bodies oder Skripte: Terminal scripts/gitea/gitea_api.py issues edit … --body-file."
),
)
@@ -95,6 +97,28 @@ def gitea_comment_issue(issue_number: int, body: str) -> str:
return _json({"http_status": st, "result": payload})
@mcp.tool()
def gitea_patch_issue(
issue_number: int,
title: str | None = None,
body: str | None = None,
) -> str:
"""Issue-Titel und/oder Beschreibung (PATCH). Mindestens eines von title/body setzen. Für sehr lange Markdown-Texte besser: CLI issues edit --body-file."""
fields: dict[str, str] = {}
if title is not None:
t = title.strip()
if not t:
return _json({"error": "title darf nicht leer sein"})
fields["title"] = t
if body is not None:
fields["body"] = body
if not fields:
return _json({"error": "Mindestens title oder body angeben"})
base, token, owner, repo = _cfg()
st, payload = issues_patch(base, token, owner, repo, issue_number, fields)
return _json({"http_status": st, "result": payload})
@mcp.tool()
def gitea_close_issue(issue_number: int) -> str:
"""Issue schließen (state=closed)."""