shadcn.io is not affiliated with official shadcn/ui
Cache Purge Success Block for React
A confirmation panel for a CDN purge: four figures worked out from the data, six edge regions each with a cache bar and the time it took, the purged paths as chips with their object counts, and a local Re-warm that fills the regions one after another.
Installation
Overview
Confirm that a purge reached every region with this panel for React with Base UI. It is the panel Edgemoss, a CDN, shows after a purge: a header with one action, the Shine Button that opens the headers, over one framed card ruled by Guides. Four figures sit on shared hairlines (objects purged, regions, the slowest purge, how many regions are warm again), six edge regions follow as cells with a code, a hollow dot and the word Purged, a bar for the cache and the time the region took, and the purged paths are read-only chips with their object counts. The foot has an outline Button that re-warms the cache, region by region, and then purges it again. For CDNs, CMS dashboards and any cache that can be emptied.
FAQ
What stays in the page, and how do I wire it for real?
Nothing was purged or fetched. The six regions, their purge and warm times, the three paths and their object counts are typed sample data, and the button only walks the regions through the states. To wire it, build REGIONS from your CDN's purge result (each with its code, city and times) and PATHS from the purge request; the object total, the slowest purge and the counts are worked out from them. Replace the wait in press with your own warm-up request.
What does the button do?
It reads Re-warm the cache, then Warming… while it fills the six regions one after another, 220 milliseconds apart, each cell's bar growing and its word changing from Purged to Warm, and then Purge again, which empties them all at once. The same node keeps focus the whole time and the panel never changes height. With reduced motion the bars jump instead of growing, but the regions still fill in order.
Is each region's state readable without color?
Yes. A purged region has a hollow dot, the word Purged and an empty bar; a warm one has a filled dot, the word Warm and a full bar, and the line under the bar says how long it took in words and numbers. The strip's last figure counts the warm regions, and one polite status line says what changed.
Where do the figures come from?
They are worked out from the typed data, never typed twice: the objects are the sum of the paths' counts, the slowest purge is the largest region time, the region count is the length of the list and the warm count follows the button. Numbers use a fixed en-US format so the server and the browser agree.
Related
- Pro
Deployment Live Success
Builds and deploysA 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
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
Storage Optimized Success
Servers and storageA confirmation panel for a compaction: three cells on shared hairlines, one table each, with the size before as a hollow bar, the size after solid and the reclaimed part hatched, worked out from typed sizes, and a toggle group that sorts the tables.
- Pro
Webhook Tested Success
Integrations and syncsA confirmation window for a tested webhook: a table of deliveries that Send again adds a second to, and for the chosen one its status, time and copyable id with tabs for the response and request bodies in a JSON tree and the headers in a table.
- Pro
Rate Limit Increase Success
Plans and limitsA confirmation panel for a raised API limit: a group of buttons for all regions, EU and US, one derived sentence with a before-and-now meter, three endpoints with the same paired bars and their limits in words, the burst bucket, and a local benchmark.
- Pro
Analytics Connected Success
Integrations and syncsA confirmation window for connected analytics: a counting events-a-minute figure, a table of the first eight events that fade in and a bounded feed with Pause, and a docked panel of the chosen event's properties in a JSON tree.