Appearance
Dashboards
- Frontend:
src/routes/private/dashboards/,src/features/dashboards/· Backend:Features/Dashboard/
Overview
Dashboards embed Metabase analytics into the admin console. The main dashboard id is read from environment config; additional dashboard URLs are generated per request with an expiry.
GraphQL operations
| Operation | Purpose |
|---|---|
dashboardUrl(dashboardId, parameters, expirySeconds) | Generate a signed/expiring Metabase embed URL |
dashboardUrl(...) (queries) | List available dashboards (myDashboards) |
Frontend
src/features/dashboards/metabaseViewer.svelte renders the Metabase iframe using the URL from the GraphQL query. PUBLIC_MAIN_DASHBOARD_ID (env) selects the default dashboard.
Related
- Web dashboards — the tenant-facing dashboards in
hvc-webuse the same Metabase integration (dashboardUrlin hvc-api).