> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard apps

> Prompts for metrics dashboards — charts, filters, time ranges, real-time updates.

Dashboards combine **filters**, **aggregation**, and **charts**. Foundation prompt:

```text theme={null}
**Goal**: A metrics dashboard for {domain}.

**User**: Authenticated users; admins see all data, members see only their team's.

**Data**:
- `events`: { teamId, type, payload, timestamp }
- Index: by_team_and_type_and_timestamp

**Behavior**:
- Top filter bar: time range (Last 7 days / 30 / 90 / custom), team selector
- Grid of metric cards: total {metric}, daily average, week-over-week %
- Line chart: {metric} over time
- Bar chart: {metric} broken down by {dimension}
- All charts auto-update on filter change and on new events

**Constraints**:
- For datasets >100k events, use materialized daily aggregates (scheduled function)
- Filter state in URL so dashboards are shareable
- Use Recharts or Tremor for charts
```

## Variations

<Tabs>
  <Tab title="Cohort analysis">
    Add: cohort retention chart (% of users active N days after sign-up).
  </Tab>

  <Tab title="Funnel">
    Add: conversion funnel showing drop-off between steps.
  </Tab>

  <Tab title="Comparison mode">
    Add: side-by-side charts for two time periods.
  </Tab>

  <Tab title="Export">
    Add: "Download as CSV" button per chart.
  </Tab>
</Tabs>

## Related

<CardGroup cols={3}>
  <Card title="Dashboard recipe" icon="chart-bar" href="/recipes/dashboard-with-charts">
    Full build walkthrough.
  </Card>

  <Card title="Caching" icon="archive" href="/architecture/caching">
    Materialized aggregates for performance.
  </Card>

  <Card title="Search patterns" icon="search" href="/architecture/search-patterns">
    Filter UIs.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.