Tau.Acuvim
Go to file
Diseri Pearson 59c3f949d0 Admin customer detail: "Open Grafana drilldown" button
Wires the existing customer-drilldown dashboard JSON to the customer
detail page. Button opens ${Grafana.BaseUrl}/d/customer-drilldown
in a new tab with var-customer=<customer-id> pre-filled, kiosk mode,
light theme.

- Fetches /api/grafana/config (cached 5min, reuses the existing
  TanStack query key so GrafanaInfoCard's cache is shared).
- Button disabled with tooltip explaining when Grafana baseUrl isn't
  configured for the Admin stack (points to Settings → Grafana).
- Customer id is URI-encoded before interpolation (defence in depth —
  it's a UUID, but encodeURIComponent costs nothing).
- Dashboard UID hardcoded as 'customer-drilldown' to match the
  provisioned JSON. Renaming requires changing both together.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 10:37:48 +02:00
console Initial commit: Tau Acuvim IoT monitoring system 2026-05-16 19:05:32 +02:00
docs Initial commit: Tau Acuvim IoT monitoring system 2026-05-16 19:05:32 +02:00
firmware Initial commit: Tau Acuvim IoT monitoring system 2026-05-16 19:05:32 +02:00
portal Admin customer detail: "Open Grafana drilldown" button 2026-05-18 10:37:48 +02:00
.gitignore Initial commit: Tau Acuvim IoT monitoring system 2026-05-16 19:05:32 +02:00
CLAUDE.md Add CLAUDE.md project onboarding guide 2026-05-16 19:07:00 +02:00