Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Deployment Rollback Notification Block for React

One deployment of a service by environment: a segment group for Production, Staging and Preview, four read-only steps from Queued to Live, the commit in mono, and a Roll back that asks in an alert dialog and ends in a receipt with an Undo.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Show where a deploy stands and make the way back safe, with this deployment notification for React with Base UI. It is Pushbarge, a deployment service, in a hairline frame with a plus mark on each corner. A Segment Group picks the environment, Production, Staging or Preview, and the panel shows that environment's latest deploy: the commit message, a badge for its stage, four read-only Steps (Queued, Build, Deploy, Live) at the step it has reached, and a Data List in cells with the commit in mono, the branch, who pushed it and when. Roll back is an outline Button that opens an Alert Dialog naming the version it returns to, Cancel first and the action in a readable colour; confirming turns the row into "Rolled back to b92f0d3." with an Undo. A preview that is not live yet has nothing to roll back to and says so. Guides draw the lines. For deploy notices, release tools and any action that needs a way back.

FAQ

How do I fill it with my deploys?

Edit DEPLOYS: one per environment with a label, a title (the commit message), branch, short hash, who pushed it (by), an ISO at time, how many of the four STEPS it has reached and a previous deploy to return to, or null when there is none. AS_OF is the page's fixed now in UTC. In your app pass what your platform reports and take the rollback target from its history.

What really happens when I roll back?

Only this page changes: the environment's commit switches to the previous one, the badge says Rolled back and the status line says "Nothing was deployed in this demo." Undo puts the commit back. Each environment remembers its own state until you reload. In your app call your platform's rollback or promote endpoint from rollBack.

Why does it ask first?

A rollback changes what customers see, so it confirms in an alert dialog that names the version: it cannot be closed by clicking outside, first focus is on Cancel ("Keep e4c81a7") and the action text is mixed toward the foreground so it stays readable in every theme. Escape closes it and returns focus to Roll back.

Does the panel move when I change environment?

No. The facts of the three environments are stacked in one cell and the inactive ones are hidden and inert, and the action and its receipt share one cell too, so the frame keeps the height of the tallest.

Is it accessible?

The segment group is named by its heading, the steps are a list whose titles are hidden on a phone but still read, and the stage is also written as a badge. After confirming, focus moves to Undo; after Undo it returns to Roll back. A polite status line says each result. A Roll back that cannot run stays focusable and explains why.

  • Pro

    A CI service's five latest builds in a table: branch, commit and start time, a status word and glyph, duration, a failed build that opens to the last lines of its log, and a Re-run that walks a build from Queued to Running to Passed.

  • Pro

    Deployment Live Success

    Builds and deploys

    A confirmation window for a live deploy: a drawn browser with the real address and a copy button, a group of buttons that redraws the site at desktop, tablet and phone width, and the deploy's facts and four passed checks beside it.

  • Pro

    API Error Dialog

    Status and errors

    A deploy platform's overview with its failed card and the error alert shown open: the 502 status, the code and request id, a retry ladder of three attempts, a real copy of the error report and the error body as a JSON tree.

  • Pro

    A medal shelf for a learning platform after a learner finishes a first project: eight drawn medals in a hairline grid with a New badge on the latest, and a popover on each medal with its criteria, a progress bar and the day it was earned.

  • Pro

    A project's history as a vertical timeline split in two: six event types as chips with live counts in a start column, and the timeline of who did what beside them, filtered by the types you press, with Load earlier events and a designed empty state.

  • Pro

    Alert Banner Notification

    Incidents and alerts

    An operations console's banner bar over a sketch of its app: four notices queue by urgency and show one at a time, with Previous, Next, a link, Dismiss and Snooze all for an hour.