Skip to content
Back

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-actual

Plan vs actual

Launch the pricing pageTime0:00/ 2:30Cost$0.00/ $1.05On plan
Step
  1. 0:00
PlanActualOver planPlan 2:30ETA 2:30
The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add plan-vs-actual

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:00
PlanActualOver planPlan 2:30ETA 2:30
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:14
  3. 0:14
PlanActualOver planPlan 2:30ETA 2:26
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:46+16s
  3. 0:41−4s
  4. 0:05
PlanActualOver planPlan 2:30ETA 2:22
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:46+16s
  3. 0:41−4s
  4. 0:05· $0.33
PlanActualOver planPlan 2:30ETA 2:22
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:58+28s
  3. 0:41−4s
  4. 0:47+12s
  5. 0:25
  6. 0:13−2s
  7. 0:10
PlanActualOver planPlan 2:30ETA 2:32
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Ahead

Finished ahead: the status and ETA turn green.

Plan vs actual

Launch the pricing pageTime2:15/ 2:30Cost$1.21/ $1.0515s ahead
Step
  1. 0:16−4s
  2. 0:24−6s
  3. 0:41−4s
  4. 0:30−5s
  5. 0:25
  6. 0:13−2s
  7. 0:10
PlanActualOver planPlan 2:30ETA 2:15
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:46+16s
  3. 0:41−4s
  4. 0:05
PlanActualOver planPlan 2:30ETA 2:22
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

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
Step
  1. 0:16−4s
  2. 0:46+16s
  3. 0:41−4s
  4. 0:05
PlanActualOver planPlan 2:30ETA 2:22
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

PlanVsActual

PropTypeDefaultDescription
stepsOption<Vec<PvStep>>Default::default()The plan with each step's real duration (the demo's when `None`).
atOption<u32>Default::default()Seconds into the run; `None` plays the demo (looping).
taskString"Launch the pricing page"The task.
titleString"Plan vs actual"Heading.
selectedOption<String>Default::default()A step selected from the start (id).
nowrequiredClockMs—The clock (drives the demo).
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_selectEventHandler<Option<String>>—A step was selected (id) or cleared.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabMoves through the steps
EnterorSpaceSelects a step to show its links and cost
EscapeClears 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 PlanVsActual from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: PlanVsActualEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI