shadcn.io is not affiliated with official shadcn/ui
Bulk Update Success Block for React
A confirmation panel for a bulk edit: a drawn contacts list whose twelve owner cells were just reassigned, with an undo bar docked at the foot of the stage whose Undo restores every cell, then offers Redo, and a button that applies the edit again.
Installation
Overview
Give a bulk edit a way back that does not run out, with this undo bar for React with Base UI. It is the panel Pipeloom, a sales pipeline tool, shows after twelve contacts were reassigned to one owner: a header with one action, the Shine Button Reassign owner, over one framed stage that holds a drawing of the contacts list. Drawn names, companies and stages stand for the rows, and the Owner column is text, so you can see the cells change. A card-styled bar docks at the foot of the stage with the result, an Undo Button that puts every cell back and then becomes Redo, and a Dismiss button. For bulk edits, merges, moves and any change worth taking back.
FAQ
What stays in the page, and how do I wire it for real?
Everything: nothing was saved and the contacts are drawn shapes with typed sample owners. Undo, Redo and Reassign owner change the page's state and say so in a polite status line. To wire it, keep the previous owners from your edit's response, make Undo send them back to your server and Redo send the new owner again, and replace the drawing with your own table.
Why is the undo bar drawn, and why does it never time out?
A real toast portals out of the page and would escape the frame, so the bar is drawn inside the stage. In your app use your toast component with an Undo action. The bar here has no timer: a way back that disappears after a few seconds fails people who need longer, so it stays until you dismiss it, and Reassign owner in the header brings it back.
How do Undo and Redo work?
They are one button, so focus stays on it. Undo puts each of the twelve owner cells back to its own previous owner (Gideon P., Ansel R. or Tove M.) and the bar says the contacts are back with their owners; the button then reads Redo, which sets them to the new owner again. Each press is announced.
What does Reassign owner do?
It applies the edit again. With the cells already reassigned and the bar shown, it only says so; after an Undo, or after you dismissed the bar, it sets the twelve cells to the new owner and shows the bar again.
Related
- Pro
A comment confirmation drawn in place: a shared document page beside a three-comment thread with a real composer; posting appends the comment and raises a toast with View thread and Undo, which takes it out again.
- Pro
Undo Toast Notification
ToastsAn invoicing app's list with a delete on every row: the toast says how many are deleted with an Undo, a second delete merges into the same toast and starts its wait again, and Restore deleted on the page does the same as Undo.
- Pro
Bulk Actions Table
Select and actA contacts table whose head checkbox ticks the page, a strip that offers to select all 48 contacts across pages, a toolbar that swaps to Archive, Tag and Delete at the same height, and an Undo receipt.
- Pro
Sync Completed Success
Integrations and syncsA confirmation panel for a finished data sync: a table of records created, updated and skipped for four objects with a segmented bar under each name, a switch for a 15-minute schedule with the next run time, and a Sync now button that adds a second run.
- Pro
Invitation Status Sheet Success
People and approvalsA crew page with the sheet that says where each of twelve invitations stands, shown open: filter chips with counts, a status word and time per person, a Resend button on every row and a Resend all pending.
- Pro
Promo Code Popover Success
Payments and refundsA checkout summary with its promo chip and the popover shown open: which items the code covers, the minimum it needs, the discount and the new total worked out from the items, and one button that removes or applies the code.