Dashboard ops

From BuilderIO/agent-native · View interactive version

Dashboard ops is an AI agent skill from the GitHub repository BuilderIO/agent-native. Deployment and runtime internals for dashboard email reports and analytics alert rules: server-side SVG/PNG report rendering, serverless timing budgets, cron wiring, and notification delivery env vars. Use when configuring, deploying, or debugging report/alert delivery infrastructure — not when just

How to use this skill

Skill file

Dashboard Reports & Alerts Ops

Dashboard email reports (dashboard-report-subscriptions actions) and

analytics alert rules (analytics-alert-rules actions) are SQL-backed action

surfaces. This skill covers the deployment/runtime machinery behind them —

the agent chatting with an end user does not need this; it only needs the

action names and the user-facing constraints already in AGENTS.md.

Dashboard Email Report Rendering

browser, Chromium pack download, or the old reportScreenshot=1 embed-session

screenshot URL; interactive dashboard screenshot capture remains separate.

(runDashboardPanelQuery), inside the subscription owner's request

context, so per-source access scoping (BigQuery/Gong/HubSpot credentials,

org scoping) is preserved exactly as if the owner loaded the dashboard.

then embedded in the email as cid: attachments. Fonts come from

resolveOgFontFiles() — **resvg has no system fonts in a Lambda runtime,

so chart text silently renders blank (not an error) unless those bundled

font files are passed to it.** Never drop that font wiring when touching

chart rendering.

as real email HTML, not images. extension panels cannot be rendered for

email at all and instead link out to the live dashboard.

marks the whole run degraded; a degraded report is never sent or recorded

as if it were complete. If every panel fails, nothing is sent and the

subscription errors out instead of emailing an empty report.

(MAX_DASHBOARD_REPORT_RECIPIENTS) — recommend a mailing-list address for

larger audiences.

*/15 sweep runs the retry on its first tick after that floor.

server/jobs/dashboard-report.ts) reserves 220 seconds of the

dashboard-report-sweep-background function's 300-second netlify.toml

timeout for rendering and delivery, leaving the remainder for cleanup.

gets a fresh delivery deadline and first-party queries cannot contend with

another report. When due work remains, the worker queues another background

invocation immediately and drains the batch sequentially. Long-lived

(non-Netlify) runtimes default to a limit of 5, overridable with

DASHBOARD_REPORT_SWEEP_LIMIT.

Env Vars

unset, falls back to getAppProductionUrl() (the APP_URL /

WORKSPACE_OAUTH_ORIGIN / BETTER_AUTH_URL chain).

the report email at all.

send to POST /api/dashboard-reports/run.

non-Netlify runtimes (see above).

Cron Wiring

scripts/emit-netlify-dashboard-report-cron.ts, using a per-deploy internal

token and disabling the in-process interval scheduler on Netlify to avoid

duplicate sends.

/api/dashboard-reports/run with

Authorization: Bearer $DASHBOARD_REPORTS_CRON_SECRET.

the alert-rule cron trigger plus background worker, running every five

minutes on Netlify. Long-lived runtimes use the in-process scheduler unless

ANALYTICS_ALERT_JOBS=0 is set.

/api/analytics-alerts/run with

Authorization: Bearer $ANALYTICS_ALERTS_CRON_SECRET.

Alert Notification Delivery

Alert notifications use the shared notification channel registry

(channels can include inbox, email, slack, webhook, or any custom

registered channel):

/ metadata.delivery.webhookUrl (uptime monitors store these on the

monitor row), then falls back to NOTIFICATIONS_SLACK_WEBHOOK_URL /

NOTIFICATIONS_WEBHOOK_URL. Optional NOTIFICATIONS_SLACK_WEBHOOK_AUTH

configures Slack auth.

EMAIL_FROM. Per-rule emailRecipients fall back to

NOTIFICATIONS_EMAIL_RECIPIENTS. Saving explicit emailRecipients also

remembers them as the current user's defaults for the next alert rule

created in Settings.

Users can also view and manage report subscriptions and alert rules in

Settings; that UI uses the same action surface as the agent, so no separate

implementation is needed there. Alert rules are the Alerts tab on

Analytics › General (buildSettingsRoute("app", "alerts")), and the per-user

"Email new error alerts" and "Bell sound" switches are on Analytics ›

Notifications (buildSettingsRoute("notifications")). The agent changes those

two with update-analytics-notification-preferences.

Related Skills

attach to.

for outbound webhook delivery.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.