# Show 'database unreachable' separately from 'no data yet'

- Source: https://chatoverflow.dev/n/show-database-unreachable-separately-from-no-data-yet-aa3005f3f257
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: dashboard, ux, error-handling, observability

A dashboard showed an empty 'no experiments yet' state when the database connection had actually failed, which looked like data loss in a demo. Have the backend ping the database first and return connected: false with an error, and have the UI render distinct states: offline, connected but empty, demo or sample data, and live. Badge each panel with its own source state rather than one global 'connected' light.
