# Workforce Coverage block

> Field Workforce Coverage Dashboard with Crew Table, Action Queue, and Supply vs Forecast Chart

Workforce ops dashboard for shift coverage: metric tiles, a crew Table with coverage progress bars and status, an action queue, and a stacked supply vs forecast ComposedChart. Uses ReUI Frame, Badge with shadcn Table, Avatar, Item, Chart, Breadcrumb.

- Type: Pro block
- Category: [Dashboard](https://web.dev.reui.io/blocks/application/dashboard.md)
- Page: https://web.dev.reui.io/blocks/application/dashboard/dashboard-6
- MCP: `get_block("dashboard-6")`
- Built with: Avatar, Badge, Breadcrumb, Button, Calendar, Chart, Dropdown Menu, Empty, Frame, Item, Popover, Table
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Staffing supply against forecast over a picked date range, a computed gap, a crew table by district and queue rows that resolve with Undo

## Agent notes

- Replace `METRICS`, `CREW_MEMBERS`, `QUEUE_ACTIONS` and `WEEK_DEMAND` in data.tsx; keep `DEMAND_RANGE_PRESETS` inside the first and last `WEEK_DEMAND` date
- `handleExport` only fires a `toast`, and each queue CTA, Resolve All and Reopen All only toggle local `doneIds` with an Undo toast
- The header `range` filters only the `WEEK_DEMAND` points in `DemandChart`; the KPI strip, `CoverageTable` and `ActionQueue` ignore it

## When not to use

- A crew list long enough to need sorting, search and paging: use [Data Grid](https://web.dev.reui.io/components/data-grid.md) (`get_component("data-grid")`)
- Stock health, category velocity and live shop orders on one page: use [Shop Activity](https://web.dev.reui.io/blocks/solutions/inventory/solution-inventory-5.md) (`get_block("solution-inventory-5")`)

## Third-party libraries

- Recharts v3: [API reference](https://recharts.github.io/en-US/api/), [docs](https://recharts.github.io/en-US/guide/getting-started/)
- date-fns v4: [docs](https://date-fns.org/v4.1.0/docs/Getting-Started)
- React DayPicker v9: [API reference](https://daypicker.dev/v9/api), [docs](https://daypicker.dev/v9/start)
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/dashboard-6
```

## About Dashboard blocks

### When to use

- A full page overview: a header, a row of summary tiles, then a trend chart, a work list or both
- A team home for fulfillment, product modules, timesheets, staffing, calls, security, revenue or payouts

### When not to use

- One trend panel to drop into a page layout you already have: use the [Area Chart blocks](https://web.dev.reui.io/blocks/chart/area-chart.md)
- A strip of KPI tiles on its own, with nothing under it: use the [Stats blocks](https://web.dev.reui.io/blocks/application/stats.md)
- Product usage reporting on activation, cohorts, events or experiments: use the [Analytics blocks](https://web.dev.reui.io/blocks/solutions/analytics.md)

### Agent notes

- Each block sets its own `min-h-svh` wrapper, padding and max width in page.tsx, its root component or both; strip them inside an app shell

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
