Diff tablePro
Row-level changes in a keyed table (settings, records, environment variables): added, removed and changed rows with before → after and per-kind counts.
oxyn add diff-table| Change | Setting | Before | After |
|---|---|---|---|
| changed | model | sonnet-4 | sonnet-5 |
| changed | temperature | 0.7 | 0.2 |
| changed | retries | 2 | 5 |
| removed | region | eu-west | — |
| added | timeout_s | — | 30 |
| added | tools.shell | — | ask |
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
- An agent changed settings, a record or environment variables. table_diff(before, after) aligns the keys by LCS and reports each row as added, removed, changed or same, keeping the new order and placing removed rows where they were.
When not to use
- A launch countdown with digits that roll per unit, a compact one-line variant, hours absorbing days when days are hidden, and a live state with a pulsing dot at zero: use Countdown instead.
- A total that moves clearly: use Animated counter instead.
- A collapsible JSON tree with search, paging for long arrays, copy value or path, the current path under the tree and full keyboard moves: use JSON viewer instead.
Installation
Diff table 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 diff-tableUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Columns
Before and After columns.
| Change | Setting | Before | After |
|---|---|---|---|
| changed | model | sonnet-4 | sonnet-5 |
| changed | temperature | 0.7 | 0.2 |
| changed | retries | 2 | 5 |
| removed | region | eu-west | — |
| added | timeout_s | — | 30 |
| added | tools.shell | — | ask |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Inline
One value column with the old value struck in front.
| Change | Setting | Value |
|---|---|---|
| changed | model | |
| changed | temperature | |
| changed | retries | |
| removed | region | eu-west |
| added | timeout_s | 30 |
| added | tools.shell | ask |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
All rows
Unchanged rows shown, muted.
| Change | Setting | Before | After |
|---|---|---|---|
| changed | model | sonnet-4 | sonnet-5 |
| same | max_tokens | 4096 | 4096 |
| changed | temperature | 0.7 | 0.2 |
| changed | retries | 2 | 5 |
| removed | region | eu-west | — |
| added | timeout_s | — | 30 |
| same | tools.web | off | off |
| added | tools.shell | — | ask |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
DiffTable
| Prop | Type | Default | Description |
|---|---|---|---|
rowsrequired | Vec<RowChange> | — | Rows from `table_diff`. |
key_label | String | "Key" | Column header for the key. |
changed_only | bool | true | Hide unchanged rows. |
columns | bool | true | Show the before column (otherwise before is struck inline). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Focus the table to scroll it sideways |
| Space | Toggle Changed only when focused |
Accessibility
- A real table with a row header per key; each row's change is spoken (added, removed, changed) in a hidden cell.
- Removed values are struck through as well as tinted.
From the spec
- Real table with a row header per key; a hidden cell speaks the change kind; removed values are struck and tinted.
Motion & interaction
Timing
- No motion; rows are static.
- Reduced motion: n/a.
Responsive behaviour
- The table scrolls sideways inside its card below its natural width.
Edge cases (spec)
- Scrolls sideways inside its card below its natural width.
Notes for AI
- Import
DiffTablefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
DiffTableElinoxyn_gpui. - Props to set first:
rows. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.