> For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt.

# Security dashboard

**Components:** [`Page`](https://wallarm.github.io/design-system/components/page.md), [`PageHeader`](https://wallarm.github.io/design-system/components/page.md), [`PageHeaderGroup`](https://wallarm.github.io/design-system/components/page.md), [`PageTitle`](https://wallarm.github.io/design-system/components/page.md), [`PageDescription`](https://wallarm.github.io/design-system/components/page.md), [`PageActions`](https://wallarm.github.io/design-system/components/page.md), [`PageToolbar`](https://wallarm.github.io/design-system/components/page.md), [`PageContent`](https://wallarm.github.io/design-system/components/page.md)


+62 more

[`SegmentedControl`](https://wallarm.github.io/design-system/components/segmented-control.md), [`SegmentedControlItem`](https://wallarm.github.io/design-system/components/segmented-control.md), [`Button`](https://wallarm.github.io/design-system/components/button.md), [`Chart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`ChartHeader`](https://wallarm.github.io/design-system/components/simple-charts.md), [`ChartTitle`](https://wallarm.github.io/design-system/components/simple-charts.md), [`ChartActions`](https://wallarm.github.io/design-system/components/simple-charts.md), [`Metric`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricHeader`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricTotal`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricDelta`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricCaption`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricSparkline`](https://wallarm.github.io/design-system/components/simple-charts.md), [`MetricSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartBody`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartGrid`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartXAxis`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartYAxis`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartLine`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartTooltip`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartLegend`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartLegendItem`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartHoverPopoverDot`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LineChartEmpty`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChart`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartDonut`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenter`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenterValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartCenterLabel`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegend`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendItem`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartLegendPercent`](https://wallarm.github.io/design-system/components/simple-charts.md), [`PieChartSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`LegendDot`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarList`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListItem`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListBar`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListLabel`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListValue`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListPercent`](https://wallarm.github.io/design-system/components/simple-charts.md), [`BarListSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`HorizontalBarStack`](https://wallarm.github.io/design-system/components/simple-charts.md), [`HorizontalBarStackSkeleton`](https://wallarm.github.io/design-system/components/simple-charts.md), [`Skeleton`](https://wallarm.github.io/design-system/components/skeleton.md), [`Table`](https://wallarm.github.io/design-system/components/table.md), [`TableEmptyState`](https://wallarm.github.io/design-system/components/table.md), [`Badge`](https://wallarm.github.io/design-system/components/badge.md), [`HttpMethod`](https://wallarm.github.io/design-system/components/http-method.md), [`Ip`](https://wallarm.github.io/design-system/components/ip.md), [`IpCountry`](https://wallarm.github.io/design-system/components/ip.md), [`IpAddress`](https://wallarm.github.io/design-system/components/ip.md), [`FormatDateTime`](https://wallarm.github.io/design-system/components/format-date-time.md), [`DropdownMenu`](https://wallarm.github.io/design-system/components/dropdown-menu.md), [`EmptyState`](https://wallarm.github.io/design-system/components/empty-state.md), [`Alert`](https://wallarm.github.io/design-system/components/alert.md), [`Heading`](https://wallarm.github.io/design-system/components/heading.md), [`Text`](https://wallarm.github.io/design-system/components/text.md), [`HStack`](https://wallarm.github.io/design-system/components/stack.md), [`VStack`](https://wallarm.github.io/design-system/components/stack.md)

The overview screen of a WAAP or API security product: what traffic arrived, what was attacked, what was blocked and what needs a look now. It is a `Page` with one period selector in the toolbar and a grid of `Chart` cards in `PageContent`, ending in a top threats `Table`.

## What it shows

- Page frame from [Resource list page](https://wallarm.github.io/design-system/patterns/resource-list-page.md): `PageHeader` with one outline action, the period `SegmentedControl` alone in `PageToolbar`, the card grid in `PageContent`.
- KPI tiles: `Chart` + `Metric` bricks (`MetricValue`, `MetricTotal connector='of'`, `MetricDelta`) and a `MetricSparkline`.
- Over time: two `LineChart`s sharing a `syncId`, so hovering one moves the cursor on both; requests and attacks never share an axis.
- Breakdowns: `PieChart` donut with a centre total, `BarList` of the most attacked endpoints with a `ChartActions` link, `HorizontalBarStack` for incidents by severity.
- Top threats: one `Table` from [Entity table](https://wallarm.github.io/design-system/patterns/entity-table.md): `Badge` status, `HttpMethod`, `Ip` with a flag, `FormatDateTime`, the row menu in the Attack master cell.
- One period drives every card; switching it recomputes all of them.
- States from [Empty states](https://wallarm.github.io/design-system/patterns/empty-states.md): chart skeletons and `Table isLoading` while loading; a no-traffic tenant gets one `Alert` with the only action, `LineChartEmpty` copy, a description-only `EmptyState` in each chart card and `TableEmptyState` in the table.

## Examples

The whole dashboard; the period selector updates every card.

The whole dashboard. The period selector drives every card: KPI tiles with deltas and
sparklines, traffic and attacks over time on two synced line charts, attack types,
the most attacked endpoints, incidents by severity, and the top threats table.

```tsx
import { useState } from 'react';
import { Button } from '@wallarm-org/design-system/Button';
import { Heading } from '@wallarm-org/design-system/Heading';
import { ArrowRight, Download, ExternalLink } from '@wallarm-org/design-system/icons';
import { Page, PageActions, PageContent, PageDescription, PageHeader, PageHeaderGroup, PageTitle, PageToolbar } from '@wallarm-org/design-system/Page';
import { SegmentedControl, SegmentedControlItem } from '@wallarm-org/design-system/SegmentedControl';
import { BarList, BarListBar, BarListItem, BarListLabel, BarListPercent, BarListValue, Chart, ChartActions, ChartHeader, ChartTitle, HorizontalBarStack, LegendDot, LineChart, LineChartBody, LineChartGrid, LineChartHoverPopoverDot, LineChartLegend, LineChartLegendItem, LineChartLine, LineChartTooltip, LineChartXAxis, LineChartYAxis, Metric, MetricCaption, MetricDelta, MetricHeader, MetricSparkline, MetricTotal, MetricValue, PieChart, PieChartCenter, PieChartCenterLabel, PieChartCenterValue, PieChartDonut, PieChartLegend, PieChartLegendItem, PieChartLegendPercent, PieChartLegendValue, useChartTimeFormatters } from '@wallarm-org/design-system/SimpleCharts';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { Table } from '@wallarm-org/design-system/Table';
import { Text } from '@wallarm-org/design-system/Text';

export const Default = () => {
  const [period, setPeriod] = useState<Period>('24h');
  const { formatHour, formatDate, formatHourWithTimezone, formatDateWithTimezone } =
    useChartTimeFormatters();

  const data = PERIODS[period];
  const requests = sumOf(data.traffic, 'requests');
  const attacks = sumOf(data.traffic, 'attacks');
  const blocked = sumOf(data.traffic, 'blocked');
  const formatX = period === '24h' ? formatHour : formatDate;
  const formatTooltipX = period === '24h' ? formatHourWithTimezone : formatDateWithTimezone;
  const attackTypes = ATTACK_TYPES.map(row => ({ ...row, value: row.value * data.scale }));
  const attackTypesTotal = attackTypes.reduce((total, row) => total + row.value, 0);
  const endpoints = TOP_ENDPOINTS.map(row => ({ ...row, value: row.value * data.scale }));
  const endpointsMax = endpoints[0]?.value ?? 0;
  const severity = SEVERITY.map((row, i) => ({ ...row, value: data.severity[i] ?? 0 }));
  const threats = THREATS.map(row => ({ ...row, hits: row.hits * data.scale }));

  const handlePeriodChange = (value: string) => setPeriod(value as Period);

  return (
    <Page name='security-dashboard' fullSize data-testid='security-dashboard'>
      <PageHeader>
        <PageHeaderGroup className='flex-1'>
          <PageTitle>Security dashboard</PageTitle>
          <PageDescription>
            Traffic, attacks and incidents across every application protected in this tenant.
          </PageDescription>
        </PageHeaderGroup>
        <PageActions>
          <Button
            size='medium'
            variant='outline'
            color='neutral'
            onClick={onExportReport}
            data-testid='dashboard-export'
          >
            <Download />
            Export report
          </Button>
        </PageActions>
      </PageHeader>

      <PageToolbar>
        <SegmentedControl
          value={period}
          onChange={handlePeriodChange}
          aria-label='Period'
          data-testid='dashboard-period'
        >
          <SegmentedControlItem value='24h'>Last 24 hours</SegmentedControlItem>
          <SegmentedControlItem value='7d'>7 days</SegmentedControlItem>
          <SegmentedControlItem value='30d'>30 days</SegmentedControlItem>
        </SegmentedControl>
      </PageToolbar>

      <PageContent>
        <VStack gap={16} align='stretch'>
          <div className='grid grid-cols-4 gap-16'>
            <Chart data-testid='kpi-requests'>
              <ChartHeader>
                <ChartTitle>Requests</ChartTitle>
              </ChartHeader>
              <Metric>
                <MetricHeader>
                  <MetricValue>{formatCompact(requests)}</MetricValue>
                </MetricHeader>
                <MetricCaption>All applications</MetricCaption>
              </Metric>
              <MetricSparkline
                data={sparklineOf(data.traffic, 'requests')}
                color='neutral'
                label='Requests'
              />
            </Chart>

            <Chart data-testid='kpi-blocked'>
              <ChartHeader>
                <ChartTitle>Attacks blocked</ChartTitle>
              </ChartHeader>
              <Metric>
                <MetricHeader>
                  <MetricValue>{blocked}</MetricValue>
                  <MetricTotal connector='of'>{attacks}</MetricTotal>
                  <MetricDelta value={data.blockedDelta} trend='up' sentiment='negative' />
                </MetricHeader>
                <MetricCaption>{data.caption}</MetricCaption>
              </Metric>
              <MetricSparkline
                data={sparklineOf(data.traffic, 'blocked')}
                color='negative'
                label='Blocked'
              />
            </Chart>

            <Chart data-testid='kpi-incidents'>
              <ChartHeader>
                <ChartTitle>Open incidents</ChartTitle>
              </ChartHeader>
              <Metric>
                <MetricHeader>
                  <MetricValue>{data.incidents}</MetricValue>
                  <MetricDelta
                    value={data.incidentsDelta}
                    sentiment={data.incidentsDelta < 0 ? 'positive' : 'negative'}
                  />
                </MetricHeader>
                <MetricCaption>{data.caption}</MetricCaption>
              </Metric>
              <MetricSparkline data={INCIDENT_TREND} color='positive' label='Incidents' />
            </Chart>

            <Chart data-testid='kpi-endpoints'>
              <ChartHeader>
                <ChartTitle>API endpoints</ChartTitle>
              </ChartHeader>
              <Metric>
                <MetricHeader>
                  <MetricValue>{data.endpoints}</MetricValue>
                  <MetricDelta value={data.newEndpoints} trend='up' sentiment='neutral' />
                </MetricHeader>
                <MetricCaption>New endpoints discovered</MetricCaption>
              </Metric>
              <MetricSparkline data={ENDPOINT_TREND} label='Endpoints' />
            </Chart>
          </div>

          <div className='grid grid-cols-2 gap-16'>
            <Chart data-testid='traffic-chart'>
              <ChartHeader>
                <ChartTitle>Traffic</ChartTitle>
              </ChartHeader>
              <LineChart
                data={data.traffic}
                series={TRAFFIC_SERIES}
                xKey='timestamp'
                syncId='security-dashboard'
              >
                <LineChartLegend>
                  <LineChartLegendItem seriesKey='requests'>
                    <LineChartHoverPopoverDot color='brand' />
                    <Text size='xs'>Requests</Text>
                  </LineChartLegendItem>
                </LineChartLegend>
                <LineChartBody height={200}>
                  <LineChartGrid />
                  <LineChartXAxis tickFormatter={formatX} minTickGap={32} />
                  <LineChartYAxis tickFormatter={formatCompact} />
                  <LineChartLine seriesKey='requests' />
                  <LineChartTooltip xTickFormatter={formatTooltipX} />
                </LineChartBody>
              </LineChart>
            </Chart>

            <Chart data-testid='attacks-chart'>
              <ChartHeader>
                <ChartTitle>Attacks</ChartTitle>
              </ChartHeader>
              <LineChart
                data={data.traffic}
                series={ATTACK_SERIES}
                xKey='timestamp'
                syncId='security-dashboard'
              >
                <LineChartLegend>
                  <LineChartLegendItem seriesKey='attacks'>
                    <LineChartHoverPopoverDot color='red' />
                    <Text size='xs'>Attacks</Text>
                  </LineChartLegendItem>
                  <LineChartLegendItem seriesKey='blocked'>
                    <LineChartHoverPopoverDot color='green' />
                    <Text size='xs'>Blocked</Text>
                  </LineChartLegendItem>
                </LineChartLegend>
                <LineChartBody height={200}>
                  <LineChartGrid />
                  <LineChartXAxis tickFormatter={formatX} minTickGap={32} />
                  <LineChartYAxis tickFormatter={formatCompact} />
                  <LineChartLine seriesKey='attacks' />
                  <LineChartLine seriesKey='blocked' />
                  <LineChartTooltip xTickFormatter={formatTooltipX} />
                </LineChartBody>
              </LineChart>
            </Chart>
          </div>

          <div className='grid grid-cols-3 gap-16'>
            <Chart data-testid='attack-types-chart'>
              <ChartHeader>
                <ChartTitle>Attack types</ChartTitle>
              </ChartHeader>
              <PieChart data={attackTypes} total={attackTypesTotal}>
                <PieChartDonut>
                  <PieChartCenter>
                    <PieChartCenterValue formatHoveredValue={formatHoveredAttacks}>
                      {formatCompact(attackTypesTotal)}
                    </PieChartCenterValue>
                    <PieChartCenterLabel pluralize={{ one: 'attack', other: 'attacks' }} />
                  </PieChartCenter>
                </PieChartDonut>
                <PieChartLegend>
                  {attackTypes.map(row => (
                    <PieChartLegendItem key={row.name} name={row.name}>
                      <Text size='sm'>{row.label}</Text>
                      <PieChartLegendValue>
                        {formatFull(row.value)}
                        <LegendDot />
                        <PieChartLegendPercent />
                      </PieChartLegendValue>
                    </PieChartLegendItem>
                  ))}
                </PieChartLegend>
              </PieChart>
            </Chart>

            <Chart data-testid='top-endpoints-chart'>
              <ChartHeader>
                <ChartTitle>Most attacked endpoints</ChartTitle>
                <ChartActions>
                  <Button
                    variant='ghost'
                    color='neutral'
                    size='small'
                    aria-label='Open API inventory'
                    onClick={onOpenInventory}
                  >
                    <ExternalLink />
                  </Button>
                </ChartActions>
              </ChartHeader>
              <BarList max={endpointsMax}>
                {endpoints.map(row => (
                  <BarListItem key={row.path} value={row.value}>
                    <BarListBar color={row.color} />
                    <BarListLabel>{row.path}</BarListLabel>
                    <BarListValue>
                      {formatFull(row.value)}
                      <BarListPercent />
                    </BarListValue>
                  </BarListItem>
                ))}
              </BarList>
            </Chart>

            <Chart data-testid='severity-chart'>
              <ChartHeader>
                <ChartTitle>Incidents by severity</ChartTitle>
              </ChartHeader>
              <HorizontalBarStack data={severity}>
                <MetricHeader>
                  <MetricValue>{data.incidents}</MetricValue>
                  <MetricDelta
                    value={data.incidentsDelta}
                    sentiment={data.incidentsDelta < 0 ? 'positive' : 'negative'}
                  />
                </MetricHeader>
              </HorizontalBarStack>
            </Chart>
          </div>

          <VStack gap={12} align='stretch'>
            <HStack justify='between' align='center'>
              <Heading as='h2' size='lg' weight='medium'>
                Top threats
              </Heading>
              <Button
                variant='ghost'
                color='neutral'
                size='medium'
                onClick={onOpenAttacks}
                data-testid='threats-view-all'
              >
                View all attacks
                <ArrowRight />
              </Button>
            </HStack>
            <Table
              aria-label='Top threats'
              data={threats}
              columns={THREAT_COLUMNS}
              getRowId={getThreatId}
              data-testid='threats-table'
            />
          </VStack>
        </VStack>
      </PageContent>
    </Page>
  );
};
```

First load: each card swaps its body for its own skeleton under a real header.

First load. The header and period selector are real; every card swaps its body for the
chart's own skeleton (`MetricSkeleton`, `Skeleton` legend chips over a bare `LineChartEmpty`, `PieChartSkeleton`,
`BarListSkeleton`, `HorizontalBarStackSkeleton`) and the table shows skeleton rows.

```tsx
import { Button } from '@wallarm-org/design-system/Button';
import { Heading } from '@wallarm-org/design-system/Heading';
import { Download } from '@wallarm-org/design-system/icons';
import { Page, PageActions, PageContent, PageDescription, PageHeader, PageHeaderGroup, PageTitle, PageToolbar } from '@wallarm-org/design-system/Page';
import { SegmentedControl, SegmentedControlItem } from '@wallarm-org/design-system/SegmentedControl';
import { BarListSkeleton, Chart, ChartHeader, ChartTitle, HorizontalBarStackSkeleton, LineChartEmpty, LineChartLegend, LineChartLegendItem, MetricSkeleton, PieChartSkeleton } from '@wallarm-org/design-system/SimpleCharts';
import { Skeleton } from '@wallarm-org/design-system/Skeleton';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { Table } from '@wallarm-org/design-system/Table';

export const Loading = () => (
  <Page name='security-dashboard' fullSize data-testid='security-dashboard'>
    <PageHeader>
      <PageHeaderGroup className='flex-1'>
        <PageTitle>Security dashboard</PageTitle>
        <PageDescription>
          Traffic, attacks and incidents across every application protected in this tenant.
        </PageDescription>
      </PageHeaderGroup>
      <PageActions>
        <Button size='medium' variant='outline' color='neutral' disabled>
          <Download />
          Export report
        </Button>
      </PageActions>
    </PageHeader>

    <PageToolbar>
      <SegmentedControl value='24h' aria-label='Period' data-testid='dashboard-period'>
        <SegmentedControlItem value='24h'>Last 24 hours</SegmentedControlItem>
        <SegmentedControlItem value='7d'>7 days</SegmentedControlItem>
        <SegmentedControlItem value='30d'>30 days</SegmentedControlItem>
      </SegmentedControl>
    </PageToolbar>

    <PageContent>
      <VStack gap={16} align='stretch'>
        <div className='grid grid-cols-4 gap-16'>
          <Chart aria-busy='true' data-testid='kpi-requests'>
            <ChartHeader>
              <ChartTitle>Requests</ChartTitle>
            </ChartHeader>
            <MetricSkeleton />
          </Chart>
          <Chart aria-busy='true' data-testid='kpi-blocked'>
            <ChartHeader>
              <ChartTitle>Attacks blocked</ChartTitle>
            </ChartHeader>
            <MetricSkeleton />
          </Chart>
          <Chart aria-busy='true' data-testid='kpi-incidents'>
            <ChartHeader>
              <ChartTitle>Open incidents</ChartTitle>
            </ChartHeader>
            <MetricSkeleton />
          </Chart>
          <Chart aria-busy='true' data-testid='kpi-endpoints'>
            <ChartHeader>
              <ChartTitle>API endpoints</ChartTitle>
            </ChartHeader>
            <MetricSkeleton />
          </Chart>
        </div>

        <div className='grid grid-cols-2 gap-16'>
          <Chart aria-busy='true' data-testid='traffic-chart'>
            <ChartHeader>
              <ChartTitle>Traffic</ChartTitle>
            </ChartHeader>
            <LineChartLegend>
              <LineChartLegendItem seriesKey='skeleton-requests'>
                <Skeleton width='72px' height='16px' rounded={4} />
              </LineChartLegendItem>
            </LineChartLegend>
            <LineChartEmpty height={200} />
          </Chart>
          <Chart aria-busy='true' data-testid='attacks-chart'>
            <ChartHeader>
              <ChartTitle>Attacks</ChartTitle>
            </ChartHeader>
            <LineChartLegend>
              <LineChartLegendItem seriesKey='skeleton-attacks'>
                <Skeleton width='72px' height='16px' rounded={4} />
              </LineChartLegendItem>
              <LineChartLegendItem seriesKey='skeleton-blocked'>
                <Skeleton width='72px' height='16px' rounded={4} />
              </LineChartLegendItem>
            </LineChartLegend>
            <LineChartEmpty height={200} />
          </Chart>
        </div>

        <div className='grid grid-cols-3 gap-16'>
          <Chart aria-busy='true' data-testid='attack-types-chart'>
            <ChartHeader>
              <ChartTitle>Attack types</ChartTitle>
            </ChartHeader>
            <PieChartSkeleton rows={5} />
          </Chart>
          <Chart aria-busy='true' data-testid='top-endpoints-chart'>
            <ChartHeader>
              <ChartTitle>Most attacked endpoints</ChartTitle>
            </ChartHeader>
            <BarListSkeleton rows={5} />
          </Chart>
          <Chart aria-busy='true' data-testid='severity-chart'>
            <ChartHeader>
              <ChartTitle>Incidents by severity</ChartTitle>
            </ChartHeader>
            <HorizontalBarStackSkeleton />
          </Chart>
        </div>

        <VStack gap={12} align='stretch'>
          <HStack justify='between' align='center'>
            <Heading as='h2' size='lg' weight='medium'>
              Top threats
            </Heading>
          </HStack>
          <Table
            aria-label='Top threats'
            data={[]}
            columns={THREAT_COLUMNS}
            getRowId={getThreatId}
            isLoading
            skeletonCount={5}
            data-testid='threats-table'
          />
        </VStack>
      </VStack>
    </PageContent>
  </Page>
);
```

A tenant with no traffic yet: one alert with the setup action, every card says why it is empty.

A new tenant with no traffic yet. One alert carries the only action (set up a node);
KPIs show the em dash, each chart card says why it is empty, and the table explains what
will appear there.

```tsx
import { Alert, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle } from '@wallarm-org/design-system/Alert';
import { Button } from '@wallarm-org/design-system/Button';
import { EmptyState, EmptyStateDescription, EmptyStateIllustration, EmptyStateMessage, EmptyStateTitle } from '@wallarm-org/design-system/EmptyState';
import { Heading } from '@wallarm-org/design-system/Heading';
import { ShieldCheck } from '@wallarm-org/design-system/icons';
import { Page, PageContent, PageDescription, PageHeader, PageHeaderGroup, PageTitle, PageToolbar } from '@wallarm-org/design-system/Page';
import { SegmentedControl, SegmentedControlItem } from '@wallarm-org/design-system/SegmentedControl';
import { Chart, ChartHeader, ChartTitle, LineChartEmpty, Metric, MetricCaption, MetricHeader, MetricValue } from '@wallarm-org/design-system/SimpleCharts';
import { HStack, VStack } from '@wallarm-org/design-system/Stack';
import { Table, TableEmptyState } from '@wallarm-org/design-system/Table';

export const NoData = () => (
  <Page name='security-dashboard' fullSize data-testid='security-dashboard'>
    <PageHeader>
      <PageHeaderGroup className='flex-1'>
        <PageTitle>Security dashboard</PageTitle>
        <PageDescription>
          Traffic, attacks and incidents across every application protected in this tenant.
        </PageDescription>
      </PageHeaderGroup>
    </PageHeader>

    <PageToolbar>
      <SegmentedControl defaultValue='24h' aria-label='Period' data-testid='dashboard-period'>
        <SegmentedControlItem value='24h'>Last 24 hours</SegmentedControlItem>
        <SegmentedControlItem value='7d'>7 days</SegmentedControlItem>
        <SegmentedControlItem value='30d'>30 days</SegmentedControlItem>
      </SegmentedControl>
    </PageToolbar>

    <PageContent>
      <VStack gap={16} align='stretch'>
        <Alert color='info' data-testid='dashboard-no-node'>
          <AlertIcon />
          <AlertContent>
            <AlertTitle>No filtering node is sending traffic</AlertTitle>
            <AlertDescription>
              Deploy a node in front of your applications and the dashboard fills in within a few
              minutes.
            </AlertDescription>
          </AlertContent>
          <AlertControls>
            <Button
              variant='secondary'
              color='neutral'
              size='small'
              onClick={onSetUpNode}
              data-testid='dashboard-set-up-node'
            >
              Set up a node
            </Button>
          </AlertControls>
        </Alert>

        <div className='grid grid-cols-4 gap-16'>
          <Chart data-testid='kpi-requests'>
            <ChartHeader>
              <ChartTitle>Requests</ChartTitle>
            </ChartHeader>
            <Metric>
              <MetricHeader>
                <MetricValue>—</MetricValue>
              </MetricHeader>
              <MetricCaption>All applications</MetricCaption>
            </Metric>
          </Chart>
          <Chart data-testid='kpi-blocked'>
            <ChartHeader>
              <ChartTitle>Attacks blocked</ChartTitle>
            </ChartHeader>
            <Metric>
              <MetricHeader>
                <MetricValue>—</MetricValue>
              </MetricHeader>
              <MetricCaption>vs previous 24 hours</MetricCaption>
            </Metric>
          </Chart>
          <Chart data-testid='kpi-incidents'>
            <ChartHeader>
              <ChartTitle>Open incidents</ChartTitle>
            </ChartHeader>
            <Metric>
              <MetricHeader>
                <MetricValue>—</MetricValue>
              </MetricHeader>
              <MetricCaption>vs previous 24 hours</MetricCaption>
            </Metric>
          </Chart>
          <Chart data-testid='kpi-endpoints'>
            <ChartHeader>
              <ChartTitle>API endpoints</ChartTitle>
            </ChartHeader>
            <Metric>
              <MetricHeader>
                <MetricValue>—</MetricValue>
              </MetricHeader>
              <MetricCaption>New endpoints discovered</MetricCaption>
            </Metric>
          </Chart>
        </div>

        <div className='grid grid-cols-2 gap-16'>
          <Chart data-testid='traffic-chart'>
            <ChartHeader>
              <ChartTitle>Traffic</ChartTitle>
            </ChartHeader>
            <LineChartEmpty height={200}>No requests in this period</LineChartEmpty>
          </Chart>
          <Chart data-testid='attacks-chart'>
            <ChartHeader>
              <ChartTitle>Attacks</ChartTitle>
            </ChartHeader>
            <LineChartEmpty height={200}>No attacks in this period</LineChartEmpty>
          </Chart>
        </div>

        <div className='grid grid-cols-3 gap-16'>
          <Chart data-testid='attack-types-chart'>
            <ChartHeader>
              <ChartTitle>Attack types</ChartTitle>
            </ChartHeader>
            <div className='flex flex-1 items-center justify-center'>
              <EmptyState type='no-results'>
                <EmptyStateMessage>
                  <EmptyStateDescription>
                    Attack types appear once attacks are detected.
                  </EmptyStateDescription>
                </EmptyStateMessage>
              </EmptyState>
            </div>
          </Chart>
          <Chart data-testid='top-endpoints-chart'>
            <ChartHeader>
              <ChartTitle>Most attacked endpoints</ChartTitle>
            </ChartHeader>
            <div className='flex flex-1 items-center justify-center'>
              <EmptyState type='no-results'>
                <EmptyStateMessage>
                  <EmptyStateDescription>
                    Endpoints are ranked once traffic is analyzed.
                  </EmptyStateDescription>
                </EmptyStateMessage>
              </EmptyState>
            </div>
          </Chart>
          <Chart data-testid='severity-chart'>
            <ChartHeader>
              <ChartTitle>Incidents by severity</ChartTitle>
            </ChartHeader>
            <div className='flex flex-1 items-center justify-center'>
              <EmptyState type='no-results'>
                <EmptyStateMessage>
                  <EmptyStateDescription>No incidents have been opened.</EmptyStateDescription>
                </EmptyStateMessage>
              </EmptyState>
            </div>
          </Chart>
        </div>

        <VStack gap={12} align='stretch'>
          <HStack justify='between' align='center'>
            <Heading as='h2' size='lg' weight='medium'>
              Top threats
            </Heading>
          </HStack>
          <Table
            aria-label='Top threats'
            data={[]}
            columns={THREAT_COLUMNS}
            getRowId={getThreatId}
            data-testid='threats-table'
          >
            <TableEmptyState>
              <EmptyState type='collection-empty' data-testid='threats-empty'>
                <EmptyStateIllustration>
                  <ShieldCheck />
                </EmptyStateIllustration>
                <EmptyStateMessage>
                  <EmptyStateTitle>No threats detected</EmptyStateTitle>
                  <EmptyStateDescription>
                    Attacks on your applications are listed here, ranked by hits.
                  </EmptyStateDescription>
                </EmptyStateMessage>
              </EmptyState>
            </TableEmptyState>
          </Table>
        </VStack>
      </VStack>
    </PageContent>
  </Page>
);
```

## Related

- [Resource list page](https://wallarm.github.io/design-system/patterns/resource-list-page.md)
- [Entity table](https://wallarm.github.io/design-system/patterns/entity-table.md)
- [Empty states](https://wallarm.github.io/design-system/patterns/empty-states.md)
- [Application layout](https://wallarm.github.io/design-system/patterns/app-layout.md)
