Experiment gridPro
A budgeted research run's experiments as shapes in bands of hours: kept, reverted and crashed read at a glance, new ones pop in, and the legend pins one outcome.
oxyn add experiment-gridThe 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
- A budgeted research run's experiments as shape marks in bands of hours (experiment_grid): kept (filled square), no gain (open square), crash fixed (triangle, danger tone), summary (diamond) and you (circle).
- The header shows the budget used (budget_line: "2h 12m of 24h") with a pulsing hairline while running; the counts line reads "27 runs · 5 kept · 2 crashes fixed" (experiment_counts).
- Marks pop in as the run clock reaches them; legend buttons count each outcome and pin one (others dim); hovering or focusing a mark writes its id and note under the grid.
When not to use
- Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
- The model menu of an AI chat: use Model Picker instead.
- The prompt box for an agent, in six layouts: use Composer instead.
Installation
Experiment grid 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 experiment-gridUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Live
Experiments pop in as the run reaches them.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Finished
The budget spent.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Short
A 4-hour run in hour rows.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ExperimentGrid
| Prop | Type | Default | Description |
|---|---|---|---|
experimentsrequired | Vec<Experiment> | — | Experiments, in time order. |
budget | u32 | 1440 | Budget in minutes. |
elapsedrequired | u64 | — | Run time so far, seconds (marks after it are not shown yet). |
band | u32 | 4 | Hours per row. |
paused | bool | Default::default() | Paused: the hairline stops pulsing. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Through the legend and each mark |
| EnterorSpace | On a legend item: pin that outcome |
Accessibility
- Every mark is a button labelled with its id, outcome and note; the note line is role=status.
- Outcomes differ by shape (and crashes by tone), so the grid reads in monochrome.
- Budget use is a progressbar.
From the spec
- Marks are buttons labelled id, outcome and note; the note line is role=status; budget use is a progressbar.
Motion & interaction
Timing
- Marks pop 300 ms with overshoot; hairline pulses 1.8 s; notes swap 220 ms.
- Reduced motion: no pop or pulse.
Responsive behaviour
- Marks wrap within each band row.
Edge cases (spec)
- Up to 440 px; marks wrap within a band.
Notes for AI
- Import
ExperimentGridfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ExperimentGridElinoxyn_gpui. - Props to set first:
experiments,elapsed. - 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.