# Failed Deploy block

> Failed deploy sheet with stage pipeline, full log and one-click retry

CI/CD post-mortem drawer that opens on the failed run's log with wrap, download and copy, plus pipeline, health and changes tabs and J and K stepping. ReUI CodeBlock, Frame, Alert, Badge; shadcn Sheet, Tabs, Chart. Build failure, pipeline debug.

- Type: Pro block
- Category: [Sheet](https://web.dev.reui.io/blocks/application/sheet.md)
- Page: https://web.dev.reui.io/blocks/application/sheet/sheet-16
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/sheet.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/sheet.md
- MCP: `get_block("sheet-16")`
- Built with: Alert, Alert Dialog, Avatar, Badge, Button, Chart, Code Block, Empty, Frame, Icon Tile, Item, Kbd, Marker, Progress, Sheet, Spinner, Tabs, Toggle, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A failed staging deploy opened on its full log, with Retry in the header and J and K stepping through the deploy history

## Agent notes

- Deploy history is the seeded `SEEDS` list and the sheet opens on `INITIAL_DEPLOY_ID`; replace both with your CI runs
- Log text is scripted by `scriptFor` and `toLogLines`, not streamed; build the `lines` for `CodeBlock` from your runner output
- Retry, Pause, Promote and Rollback only dispatch to `consoleReducer` on a simulated `TICK_MS` clock; call your CI API from `rerun`

## When not to use

- An audit event with a config diff, raw JSON and a request trace: use [Audit Event Detail](https://web.dev.reui.io/blocks/application/sheet/sheet-14.md) (`get_block("sheet-14")`)
- A single logged web request with a verdict and a rule by rule trace: use [Firewall Request](https://web.dev.reui.io/blocks/application/sheet/sheet-19.md) (`get_block("sheet-19")`)

## Third-party libraries

- Recharts v3: [API reference](https://recharts.github.io/en-US/api/), [docs](https://recharts.github.io/en-US/guide/getting-started/)
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)
- Shiki v4: [API reference](https://shiki.style/guide/install), [docs](https://shiki.style/guide/), through ReUI Code Block

## Install

```bash
npx shadcn@latest add @reui/sheet-16
```

## About Sheet blocks

### When to use

- Record detail opened over a list or table: a ticket, metric, cron job, audit event, deploy, SLO or data source
- Create and edit forms in a side panel for a project, cron job, firewall rule, SLO or data connection
- Utility panels for help guides, keyboard shortcuts, an AI assistant, comments, notifications or view settings

### When not to use

- A bare side panel with your own header, body and footer, nothing prebuilt: use [Sheet](https://web.dev.reui.io/components/sheet.md) (`get_component("sheet")`)
- A persistent sidebar or navigation layout that stays around every page: use the [App Shell blocks](https://web.dev.reui.io/blocks/application/app-shell.md)
- An assistant conversation that fills the whole page rather than a side panel: use the [AI Chat blocks](https://web.dev.reui.io/blocks/ai-agents/ai-chat.md)

### Agent notes

- Each root renders a demo `SheetTrigger` button and opens on mount via `defaultOpen` or a `useState` seeded true; start it closed in your app
- Each `SheetContent` className floats it inset with `inset-y-4`, `right-4` and `rounded-xl` and sets its own width; resize it there, not in the primitive
- Each page.tsx only centers the trigger in a `min-h-svh` main with an `sr-only` h1; render the root component alone inside your page

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.
