Done shockwavePro
When a long task finishes, two rings leave its status mark and roll across the panel, the mark becomes a check and a line says how long it took; a failure sends one short red pulse, and reduced motion swaps the rings for a still halo.
oxyn add done-shockwave- Building
- Uploading 214 files
- Warming the cache
Building…
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Mark the end of a long task with one unmistakable moment, so someone who looked away notices it finished.
When not to use
- Fourteen text-glyph loaders (braille, sand, blocks, scanner…) that settle into a check, a warning or a cross when the agent finishes, waits or fails: use Glyph loader instead.
- A dot and a label for any of the 13 agent states, as a pill, inline or a dot alone: use Status indicator instead.
- A small turning arc for work that runs right now, plus dots, ray and orbit styles: use Spinner instead.
Installation
Done shockwave is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add done-shockwaveUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Done
A deploy that lands with two rings.
- Building
- Uploading 214 files
- Warming the cache
Building…
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Soft
Faint rings for a busy page (Oxyn extra).
- Building
- Uploading 214 files
- Warming the cache
Building…
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Fails
Fails with one short red pulse and Retry.
- Building
- Uploading 214 files
- Warming the cache
Building…
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Still
Reduced motion: a still halo.
- Building
- Uploading 214 files
- Warming the cache
Building…
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
DoneShockwave
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
fail | bool | Default::default() | The task fails. |
strength | f64 | 1.0 | Ring strength 0..1. |
speed | f64 | 1.0 | Speed factor for the task. |
autoplay | bool | true | Start on its own. |
reduced | bool | Default::default() | A still halo instead of moving rings. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| EnterorSpace | Deploy, or retry after a failure |
| Escape | Reset |
Accessibility
- Rings are decorative; the status line says what happened and the failure is an alert.
- Steps list their state in text.
From the spec
Rings are decorative; the status line says what happened and a failure is an alert; steps list their state in text. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.
Motion & interaction
Two rings leave the status mark 160 ms apart and roll across the card with a glow, fading as they grow; the mark pops into a check. A failure sends one short ring a quarter of the distance.
Timing
Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.
| Transition | Duration | Easing |
|---|---|---|
| Task | 3600 ms at 1× | linear |
| Ring | 900 ms (WAVE_MS) | ease-out cubic |
| Echo delay | 160 ms (ECHO_MS) | — |
Reduced motion: CSS motion is cut to a frame; decorative bands and rings are hidden or still; state and text changes stay.
Responsive behaviour
- Rings are clipped to the card; the card wraps its buttons under the title.
Edge cases (spec)
Rings are clipped to the card; buttons wrap under the title. Strength scales the ring opacity. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand marks.
Notes for AI
- Import
DoneShockwavefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
XPostViewinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.