Change ledgerPro
Everything an agent changed in your systems, each change with an undo – before and after per row, and pointing at Undo shows what would go with it and what can't be taken back.
oxyn add change-ledger- Merged PR #212Plans page v2
plans-v2→main2m ago · GitHub
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
- Everything an agent changed in your systems, newest first, each change with an undo.
- Pointing at Undo is honest about consequences: what would be undone with it, and what can't be taken back.
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
Change ledger 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 change-ledgerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Changes land at the top one by one, then the price change's Undo is pointed at and taken – the coupon and the deals go with it, the sent email can't.
- Merged PR #212Plans page v2
plans-v2→main2m ago · GitHub
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Pointed
Pointing at Undo: the change and what builds on it light up – Also undone in blue, Can't undo in amber.
- Sent email2,460 customersThe new price and the code SPRING15Can't undo
- Posted in #launchThe new plans are outWith a link to the plans page3m ago · Slack
- Updated 140 dealsRenewals in Q1
$19 per seat→$24 per seatAlso undone - Updated pagePlans FAQ
4 answers→4 answers rewritten4m ago · Notion - Created couponSPRING1515% off the first year · ends in 7 daysAlso undone
- Changed priceTeam plan
$19 / month→$24 / month4m ago · Stripe - Deployedshop.example
#90→#92 in production5m ago · Vercel - Merged PR #212Plans page v2
plans-v2→main5m ago · GitHub
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Undone
After the undo: the chain struck through, logos grey, Undone in the slot and Redo on hover; the header counts what was undone.
- Sent email2,460 customersThe new price and the code SPRING156m ago · HubSpot
- Posted in #launchThe new plans are outWith a link to the plans page6m ago · Slack
- Updated 140 dealsRenewals in Q1
$19 per seat→$24 per seatUndone - Updated pagePlans FAQ
4 answers→4 answers rewritten7m ago · Notion - Created couponSPRING1515% off the first year · ends in 7 daysUndone
- Changed priceTeam plan
$19 / month→$24 / monthUndone - Deployedshop.example
#90→#92 in production8m ago · Vercel - Merged PR #212Plans page v2
plans-v2→main8m ago · GitHub
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Narrow
Below 480 px the system name drops and Undo / Redo become round icon buttons.
- Sent email2,460 customersThe new price and the code SPRING153m ago · HubSpot
- Posted in #launchThe new plans are outWith a link to the plans page3m ago · Slack
- Updated 140 dealsRenewals in Q1
$19 per seat→$24 per seat3m ago · HubSpot - Updated pagePlans FAQ
4 answers→4 answers rewritten4m ago · Notion - Created couponSPRING1515% off the first year · ends in 7 days4m ago · Stripe
- Changed priceTeam plan
$19 / month→$24 / month4m ago · Stripe - Deployedshop.example
#90→#92 in production5m ago · Vercel - Merged PR #212Plans page v2
plans-v2→main5m ago · GitHub
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: the header in its own band and the list a raised card.
- Sent email2,460 customersThe new price and the code SPRING153m ago · HubSpot
- Posted in #launchThe new plans are outWith a link to the plans page3m ago · Slack
- Updated 140 dealsRenewals in Q1
$19 per seat→$24 per seat3m ago · HubSpot - Updated pagePlans FAQ
4 answers→4 answers rewritten4m ago · Notion - Created couponSPRING1515% off the first year · ends in 7 days4m ago · Stripe
- Changed priceTeam plan
$19 / month→$24 / month4m ago · Stripe - Deployedshop.example
#90→#92 in production5m ago · Vercel - Merged PR #212Plans page v2
plans-v2→main5m ago · GitHub
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ChangeLedger
| Prop | Type | Default | Description |
|---|---|---|---|
entries | Option<Vec<LedgerEntry>> | Default::default() | Your own changes (the demo's when `None`). |
undone | Vec<String> | Default::default() | Ids already undone (your own entries). |
title | String | "Ledger" | Heading of the bar. |
agent | String | "Release agent" | Who made the changes, next to the title. |
at | Option<u64> | Default::default() | Freeze the demo this many ms into a pass. |
point_at | Option<String> | Default::default() | Light up a change and what builds on it, as if its Undo were pointed at. |
nowrequired | ClockMs | — | The clock. |
clock | u64 | Default::default() | The ledger's own clock for "2m ago" with your own entries (ms); the demo keeps its own. |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_undo | EventHandler<Vec<String>> | — | Undo: the change and its reversible dependents. |
on_redo | EventHandler<Vec<String>> | — | Redo: the change. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves through Undo and Redo; focusing Undo shows what goes with it |
| EnterorSpace | Undoes or redoes the focused change |
Accessibility
- An ordered list named after the ledger, latest entry on top.
- Undo is named with the change and how many build on it; Redo with the change.
- Before → after is plain text and the arrow is read as "to"; what was undone is announced.
Responsive behaviour
- 640 px up to its container.
- Below 480 px the system name drops and Undo / Redo shrink to round icon buttons.
- On touch screens Undo and Redo show on every row in place of the time.
Edge cases (spec)
Under 480 px the system name drops, the slot narrows and Undo / Redo become round icon buttons; on touch screens Undo and Redo show in place of the time.
Notes for AI
- Import
ChangeLedgerfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ChangeLedgerElinoxyn_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.