feat: add report_export widget and enhance report generation capabilities
Deploy Development / deploy (push) Successful in 1m4s
Build Test / pytest-backend (push) Successful in 5s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 19s

- Introduced the `report_export` widget to the dashboard, allowing users to generate structured PDF reports.
- Updated widget configuration to include `report_export` in the allowed widgets and added validation for its configuration.
- Enhanced the widget catalog with details for the new `report_export` entry.
- Implemented API endpoints for managing report profiles and generating PDFs.
- Added frontend components for configuring and displaying report settings.
- Updated tests to ensure proper validation and functionality of the new report generation features.
- Bumped application version to reflect the addition of the new widget and related functionalities.
This commit is contained in:
Lars committed 2026-04-29 11:28:04 +02:00
1 parent 141df021c1
commit 62729d0648
22 files changed
+1389 -7

No files matched your search

@@ -0,0 +1,31 @@
"""Berichtsprofil-Schema: Defaults und Validierung."""
from report_profile_schema import (
ReportProfilePayload,
default_report_profile_dict,
parse_report_profile,
)
def test_default_profile_roundtrip():
d = default_report_profile_dict()
p = ReportProfilePayload.model_validate(d)
assert p.version == 1
assert len(p.blocks) >= 3
def test_parse_empty_uses_default():
p = parse_report_profile({})
assert len(p.blocks) >= 1
def test_chart_block_unknown_id_raises():
import pytest
raw = {
"version": 1,
"document_title": "",
"blocks": [{"type": "chart", "chart_id": "not_a_chart", "window_days": 28}],
}
with pytest.raises(Exception):
ReportProfilePayload.model_validate(raw)