feat: Enhance Dashboard-Lab with widget catalog integration and layout updates
- Integrated a new API endpoint for fetching the widget catalog in the Dashboard-Lab. - Updated the dashboard layout schema to utilize the widget catalog for dynamic widget management. - Refactored DashboardLabPage and PilotVizPage to leverage the new widget rendering system. - Removed deprecated widget metadata from the frontend, streamlining the widget management process. - Bumped app_dashboard version to 1.1.0 to reflect the new features and improvements.
This commit is contained in:
1 parent
e5f6e6c10d
commit
f6c5f96768
13 files changed
+275
-99
No files matched your search
@@ -12,10 +12,18 @@ from auth import require_auth
|
||||
from dashboard_layout_schema import DashboardLayoutPayload, coalesce_effective_layout, default_layout_dict
|
||||
from db import get_cursor, get_db
|
||||
from routers.profiles import get_pid
|
||||
from widget_catalog import catalog_response
|
||||
|
||||
router = APIRouter(prefix="/api/app", tags=["app-dashboard-lab"])
|
||||
|
||||
|
||||
@router.get("/widgets/catalog")
|
||||
def get_widgets_catalog(session: dict = Depends(require_auth)) -> dict[str, Any]:
|
||||
"""Metadaten aller registrierbaren Dashboard-Widgets (IDs, Titel)."""
|
||||
_ = session
|
||||
return catalog_response()
|
||||
|
||||
|
||||
@router.get("/dashboard-layout")
|
||||
def get_dashboard_layout(
|
||||
x_profile_id: Optional[str] = Header(default=None),
|
||||
|
||||
Reference in new issue
Block a user