Skip to content

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

OperationPurpose
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.

  • Web dashboards — the tenant-facing dashboards in hvc-web use the same Metabase integration (dashboardUrl in hvc-api).

Released under the MIT License.