Test ticksPro
A test run as one small tick per test, a row per file: ticks fill as results arrive, the timer, pass and fail counters and the rate roll with the run, and a failing run dims the passes and opens a fix card with a diff that re-runs only what failed.
oxyn add test-ticksRunning tests
Checkout agent · PR #214 · pnpm test
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
- Show a test run as it happens, one tick per test, so failures are found at a glance and fixed without leaving the view.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Test ticks 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 test-ticksUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Failing
Two failures, then the fix card over the failing file.
Running tests
Checkout agent · PR #214 · pnpm test
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
All pass
A clean run that ends green.
Running tests
Checkout agent · PR #214 · pnpm test
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compact
Grid only, no file names, fast (Oxyn extra).
Running tests
Checkout agent · PR #214 · pnpm test
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
TestTicks
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
fail | bool | Default::default() | Two tests fail (error scenario with the fix card). |
speed | f64 | 1.0 | Speed factor (1 = sample timing). |
show_rate | bool | true | Show the tests-per-second rate. |
compact | bool | Default::default() | One dense grid without file rows. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ← → ↑ ↓ · HomeorEnd | Move between tests in the grid |
| Enter | Apply the fix while the fix card is open |
| Escape | Close the fix card, then clear the selection |
Accessibility
- The grid is focusable and announces each test as you move: name, result and time.
- Results never rely on colour alone: counters and the status line carry the numbers, failures are slightly taller.
- The grid is marked busy while the run is going; the fix card is a labelled dialog.
From the spec
The grid is one tab stop with role grid; arrows move the selection and each tick speaks its test, result and time; results always appear as numbers and text, not colour alone; the fix card is a labelled dialog. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.
Motion & interaction
Queued ticks are grey, the running tick is outlined and pulses, passes fill green, failures fill red and grow slightly taller. The fix card pops over the grid with a two-line diff; applying it flips only the failed ticks back to running and then to green.
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 |
|---|---|---|
| Test | 90–240 ms each at 1× (dur) | stepped |
| Tick fill | 180 ms | ease |
| Fix card | 220 ms pop | overshoot |
| Re-run | 450 ms per failed test | — |
Reduced motion: CSS motion is cut to a frame; decorative bands and rings are hidden or still; state and text changes stay.
Responsive behaviour
- Under 520 px the file name sits above its ticks and ticks wrap.
- The fix card narrows to the grid width.
Edge cases (spec)
Under 520 px the file name sits above its ticks; ticks wrap; the fix card narrows to the grid. Counters keep tabular digits. 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
TestTicksfromoxyn_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.