Plan vs ActualPro
How an agent's run is going against its plan: each step's real bar over a dashed planned one, overruns in amber, later steps pushed right and the expected finish drifting from the planned finish.
oxyn add plan-vs-actualPlan vs actual
Launch the pricing pageTime0:00/ 2:30Cost$0.00/ $1.05On plan- 0:00
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
- Lay an agent's run against its plan: each step's real bar over its dashed planned bar, so overruns, knock-on delays and the drift of the expected finish are visible at a glance.
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
Plan vs Actual 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 plan-vs-actualUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Live
The run plays and loops: bars grow over their dashed plans, the copy step overruns and turns amber, everything after it slides right and the ETA drifts past the planned finish.
Plan vs actual
Launch the pricing pageTime0:00/ 2:30Cost$0.00/ $1.05On plan- 0:00
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Early
Thirty seconds in: the brief done early, two steps running side by side.
Plan vs actual
Launch the pricing pageTime0:30/ 2:30Cost$0.21/ $1.05On plan- 0:16−4s
- 0:14
- 0:14
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Mid
Mid-run: one step over plan, the now line, the planned finish and the amber gap to the ETA.
Plan vs actual
Launch the pricing pageTime1:02/ 2:30Cost$0.59/ $1.05On plan- 0:16−4s
- 0:46+16s
- 0:41−4s
- 0:05
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Selected
A step picked: its row tints, its bar gets a ring, curves join it to what it waits on and what waits on it, and its cost shows.
Plan vs actual
Launch the pricing pageTime1:02/ 2:30Cost$0.59/ $1.05On plan- 0:16−4s
- 0:46+16s
- 0:41−4s
- 0:05· $0.33
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Done
Finished behind plan: every step checked, the final deltas, an amber ETA.
Plan vs actual
Launch the pricing pageTime2:32/ 2:30Cost$1.21/ $1.05+2s behind- 0:16−4s
- 0:58+28s
- 0:41−4s
- 0:47+12s
- 0:25
- 0:13−2s
- 0:10
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Ahead
Finished ahead: the status and ETA turn green.
Plan vs actual
Launch the pricing pageTime2:15/ 2:30Cost$1.21/ $1.0515s ahead- 0:16−4s
- 0:24−6s
- 0:41−4s
- 0:30−5s
- 0:25
- 0:13−2s
- 0:10
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Narrow
Under 560 px the name column narrows; the task, glyphs and axis labels drop out.
Plan vs actual
Launch the pricing pageTime1:02/ 2:30Cost$0.59/ $1.05On plan- 0:16−4s
- 0:46+16s
- 0:41−4s
- 0:05
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: thin plain bars, a dot on the running edge, ETA before Plan.
Plan vs actual
Launch the pricing pageTime1:02/ 2:30Cost$0.59/ $1.05On plan- 0:16−4s
- 0:46+16s
- 0:41−4s
- 0:05
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PlanVsActual
| Prop | Type | Default | Description |
|---|---|---|---|
steps | Option<Vec<PvStep>> | Default::default() | The plan with each step's real duration (the demo's when `None`). |
at | Option<u32> | Default::default() | Seconds into the run; `None` plays the demo (looping). |
task | String | "Launch the pricing page" | The task. |
title | String | "Plan vs actual" | Heading. |
selected | Option<String> | Default::default() | A step selected from the start (id). |
nowrequired | ClockMs | — | The clock (drives the demo). |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_select | EventHandler<Option<String>> | — | A step was selected (id) or cleared. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves through the steps |
| EnterorSpace | Selects a step to show its links and cost |
| Escape | Clears the selection |
Accessibility
- Each step is a toggle button whose name says how long it took against plan, or when it is expected to start.
- The header status (behind / ahead / on plan) is a status region; the chart marks are aria-hidden.
- Overruns are named in text (+14s), never by colour alone; reduced motion stops the sheen, spin and glides.
Responsive behaviour
- Rows keep their 28 px height at every width; the bars share the space after the 150 px name column.
- Under 560 px the name column narrows to 96 px and the task, glyphs and axis labels drop out.
Edge cases (spec)
Rows keep 28 px at every width. Under 560 px the name column narrows to 96 px and the task, glyphs and axis labels hide.
Notes for AI
- Import
PlanVsActualfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
PlanVsActualElinoxyn_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.