# Dashboard

# Dashboard

The landing view after sign-in. Everything on it answers the question "what happened in the last N days across my domains?".

## Layout

- **Top strip of stat cards**: total emails, authentication pass rate, DKIM pass rate, SPF pass rate, unique source IPs. Each card shows the current value and the delta vs the previous period of the same length.
- **Authentication trend line chart**: one line per metric (pass, DKIM pass, SPF pass) over the selected time range.
- **Top senders bar chart**: the top handful of source IPs or named senders by volume.
- **Top countries map**: a world map coloured by volume per country. Only rendered when `IP2LOCATION_DB_PATH` is configured and the geolocation job has caught up.
- **Recent alerts list**: the newest fired alerts, with a link to the full [alerts](/docs/drillmark/features/alerts-ui) history.

## Time range selector

A preset list of `24h`, `7d`, `30d`, `90d` lives in the page header. The selection persists across navigation inside the same session and is used by every widget on the page.

Changing the range refetches the data. The widgets show a spinner during the refresh rather than clearing to empty.

## Domain scope

The dashboard aggregates across every domain in the current tenant. To scope to a subset, use the [Domains](/docs/drillmark/features/domains) page or the [Compare](/docs/drillmark/features/domains#compare) view and pick domains explicitly.

## Download

The dashboard header has a Download button that writes the current view's underlying data as a CSV. The download uses the authenticated fetch path so the browser attaches the bearer token; an unsigned `window.open` would 401.

## Empty state

With no reports ingested yet, the cards render zeroes and the trend / top-source panels show a prompt to add a data source. Once the first incoming-queue run completes, refresh the page and the widgets populate.
