Review CenterPro
A focused workspace for what agents want to do: the queue sorted by risk, one item at a time with the shaky spans flagged, and Approve, Edit, Reject and Skip on single keys with undo.
oxyn add review-centerReview center
24 of 29 reviewedRefund order #4821
The blender arrived cracked; damaged items are covered within 30 days.
- Amount
- $184.00Includes $20 express shipping, which the policy may not cover. · Refund policy §4
- Order
- #4821 · delivered 6 days ago
Hi, I'm sorry your blender arrived cracked. I've refunded the full $184.00Full amount includes shipping. to your card; it should show within 3–5 days.
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
- Human in the loop at volume.
- Center holds the queue: sorted by risk then oldest (or oldest, or as given), filtered All / High risk / Unsure (confidence below low_confidence), one current item.
- Items carry reasoning, labelled fields and a body made of spans with flagged parts (the agent's note and source), files (a unified diff with line numbers) or plan steps (flagged numbers in amber).
- Approve, Edit (approve with your text), Reject with a reason (1–4) and Skip; undo puts the item 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
Review Center 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 review-centerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Queue
High risk first, then oldest; one item at a time.
Review center
24 of 29 reviewedRefund order #4821
The blender arrived cracked; damaged items are covered within 30 days.
- Amount
- $184.00Includes $20 express shipping, which the policy may not cover. · Refund policy §4
- Order
- #4821 · delivered 6 days ago
Hi, I'm sorry your blender arrived cracked. I've refunded the full $184.00Full amount includes shipping. to your card; it should show within 3–5 days.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Unsure
Only items below the confidence bar.
Review center
24 of 29 reviewedRefund order #4821
The blender arrived cracked; damaged items are covered within 30 days.
- Amount
- $184.00Includes $20 express shipping, which the policy may not cover. · Refund policy §4
- Order
- #4821 · delivered 6 days ago
Hi, I'm sorry your blender arrived cracked. I've refunded the full $184.00Full amount includes shipping. to your card; it should show within 3–5 days.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Tight sla
A 20-minute service level: waiting times turn amber, then red.
Review center
24 of 29 reviewedRefund order #4821
The blender arrived cracked; damaged items are covered within 30 days.
- Amount
- $184.00Includes $20 express shipping, which the policy may not cover. · Refund policy §4
- Order
- #4821 · delivered 6 days ago
Hi, I'm sorry your blender arrived cracked. I've refunded the full $184.00Full amount includes shipping. to your card; it should show within 3–5 days.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Batch
Approve every low-risk item in one go.
Review center
24 of 29 reviewedRate-limit sign-in attempts
Brute-force attempts spiked last week; five tries a minute per account.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ReviewCenter
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | Vec<ReviewItem> | — | Everything waiting. |
nowrequired | ClockMs | — | Clock. |
reviewed | usize | Default::default() | Reviewed before (the header counts on from here). |
sla | u64 | 1_800_000 | Service level, ms. |
low_confidence | f32 | 0.7 | Below this confidence an item is Unsure. |
reasons | Vec<String> | REJECT_REASONS.iter().map(|s| s.to_string()).collect() | Quick rejection reasons (1–4). |
order | Order | Order::Risk | Queue order. |
default_filter | Filter | Filter::All | Starting filter. |
title | String | "Review center" | Title. |
batch_low | bool | Default::default() | Batch "Approve all low risk" (Oxyn plus). |
on_decide | EventHandler<(String, Verdict)> | — | Approved or rejected. |
on_undo | EventHandler<String> | — | The last decision was taken back. |
on_skip | EventHandler<String> | — | Skipped. |
on_filter_change | EventHandler<Filter> | — | Filter changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| A | Approve the current item |
| E | Edit the proposal; ⌘↵ approves with the edits, Esc cancels |
| R | Reject, then 1–4 picks the reason; Esc cancels |
| S | Skip without deciding |
| JorK or ↓or↑ | Next / previous item |
| F | Jump to the next flagged span and open its note |
| Z or ⌘Z | Undo the last decision |
Accessibility
- Shortcuts work anywhere inside; buttons carry aria-keyshortcuts; the reason picker is a labelled group.
- Queue rows are labelled with title, type, risk, confidence and waiting time; the current one has aria-current.
- Each flagged span takes focus and links its note via aria-describedby (role tooltip); every decision updates the remaining count.
From the spec
- Shortcuts work while focus is anywhere inside; buttons carry aria-keyshortcuts.
- Queue rows are labelled with title, type, risk, confidence and waiting time; aria-current on the current one.
- Flagged spans are focusable with aria-describedby → role=tooltip; decisions, skips and undos are announced with the new count.
- When the current item leaves, the next one becomes current (focus is not lost).
Motion & interaction
Timing
- The next item rises 8 px over 300 ms; queue rows fade in at their sorted place.
- The pressed decision stamps in the footer (200 ms pop); the progress bar glides (300 ms).
- Filter counts roll; notes fade in 140 ms.
- Reduced motion: no travel.
Responsive behaviour
- Container query: wide, the queue sits left of the item in a fixed-height workspace; under 640 px the queue goes on top (three rows) and buttons share the width.
- Under 420 px the flag counter hides and button icons step aside.
Edge cases (spec)
- Container query: side by side when wide (480 px workspace); under 640 px the queue is on top, three rows high; buttons share the width.
- Under 420 px the flag counter hides and button icons step aside; diffs scroll sideways.
Notes for AI
- Import
ReviewCenterfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ReviewCenterElinoxyn_gpui. - Props to set first:
items,now. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.