shadcn.io is not affiliated with official shadcn/ui
Backup Complete Notification Block for React
A nightly database backup as a week of seven day cells: pick a day to read its size, duration, kind and location, then restore it after an alert dialog that names the day and the size.
Installation
Overview
Show that last night's backup worked and let someone look back over the week, with this backup notification for React with Base UI. It is Cellarby, a backup service, in a framed panel with a plus mark on each corner. The first band is seven day cells on shared hairlines, Thursday to Wednesday, in a single-choice Toggle Group: the latest is pressed, and each cell is named for its weekday, date and size. The second band is that backup's detail in a Data List: when it started, how long it took, its size, whether it was a full or an incremental copy, where it is stored and how long it is kept. Picking another day re-reads it in place, so the panel never changes height. The foot ends in "Restore this backup", the one Shine Button, which opens an Alert Dialog naming the day and the size, with Cancel first. Guides draw the lines. For database backups, snapshots and any history you can step back through.
FAQ
How do I use my own backups?
Edit BACKUPS: each has an id, an ISO iso date, its kind (Full or Incremental), its size in gigabytes, how long it took in seconds and the place it is stored in. The weekday and date of each cell, the "days earlier" line and the day the backup is kept until (30 days later, from KEPT_DAYS) are worked out from the date and the page's fixed AS_OF, so it reads the same everywhere. The place names are made up.
What really happens when I restore?
Only this page changes. Confirming closes the dialog and a polite line says "Restore queued (demo)" for that day, and that nothing was restored. No database is touched and nothing is sent. In your app call your service from restore with the chosen backup's id, and show the job's progress in the same panel.
Why does restoring ask first?
A restore replaces live data with older data, so it confirms in an alert dialog that says exactly what will be replaced: the database, the size and the day, and that anything written since is lost. First focus is on Cancel ("Keep current data"), clicking outside does not close it, and the action is a destructive button whose text is mixed toward the foreground so it stays readable in every theme.
How do the day cells work with the keyboard and in a right-to-left page?
The seven cells are one tab stop and the arrow keys move between them; the pressed one is read out with its weekday, date and size ("Wed 14 October, 4.9 GB"). The week is a time axis, so it stays in order from oldest to newest in a right-to-left page as well. Pressing the pressed day again does nothing: one day is always chosen.
Related
- Pro
Backup Created Success
Backups and exportsA full-height confirmation page for a database backup: fourteen day cells as a retention rack where each pick shows when its snapshot is deleted, a snapshot id and a restore command with copy buttons, a local Test a restore, and a real download of a small JSON manifest.
- Pro
Backup Restored Success
Backups and exportsA confirmation page for a restore from a snapshot: the snapshot and the live database side by side with the same five tables, their row counts and checksums, a Match worked out for every pair, the checksum of the whole snapshot with a copy button and a local health check.
- Pro
Backup and Restore Settings
Backups and exportsA backups page with a list of six snapshots and the three-step restore that opens from it, shown open on load: choose what to bring back, read the impact and type the snapshot date to confirm, then watch a progress bar fill and end on a plain statement that nothing was restored in the demo.
- Pro
Backup Schedule Settings
Backups and exportsA backup schedule panel that leads with what the schedule amounts to (the next run, how much history the copies cover, how much space they take), with frequency, time, retention and destination controls beside a list of the next five runs.
- Pro
A finished CRM export as a narrow file card: choose CSV or JSON to rewrite the file name and its estimated size, then download a real file of the first five contacts.
- 120Pro
System Alerts by Severity Notification
Incidents and alertsAn infrastructure monitor's alert panel: a count of open alerts by severity, and an accordion of three systems with their facts, an Acknowledge and a one-hour Mute that says when it ends.