Skip to content
Back

Preview DeskPro

Agent apps / Preview Desk: a desktop app that shows a coding agent's work as previews. Sessions in the sidebar, each on a machine of its own (this computer or a persistent one) with a count of open comments; the session's steps; preview tabs beside the chat (the live site, a doc, the diff); Design mode, where you pick an element on the live site and send the agent a comment about it; line comments on the diff and Approve. Machine, working folder and model in the composer.

oxyn add preview-desk
Pricing page refreshWorking

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx

Starting the dev server

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

  • See what a coding agent made as a running preview, point at an element or a line and tell the agent what to change, then approve.

When not to use

  • Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
  • The app frame: use App shell instead.
  • An assistant docked beside a page: use AI side panel instead.

Installation

Preview Desk 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 preview-desk

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

Sample

Sample data, the main area as an inset card.

Pricing page refreshWorking

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx

Starting the dev server

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

Flat

The same view with the main area edge to edge.

Pricing page refreshWorking

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx

Starting the dev server

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

Loading

Skeletons in the sidebar, the conversation and the pane.

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

Empty

A first run: nothing yet, the composer front and centre.

New session

What should we build?

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

Design

Design mode on the live site: the Team plan card picked, outlined, with a comment box to send to the agent.

Pricing page refreshReady to review

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx
  4. Ran the dev server on port 3000
  5. Opened the preview and checked 390 px

The page has three plan cards with a Monthly / Yearly switch, and Team is highlighted. Open the preview to check it, or use Design mode to point at anything you want changed.

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

X1

Oxyn: the sidebar as a 56 px icon rail; the top bar expands it.

Pricing page refreshWorking

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx

Starting the dev server

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

X2

Oxyn: the sidebar hidden for focus; the top bar brings it back.

Pricing page refreshWorking

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx

Starting the dev server

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

Diff

The diff of PlanCard.tsx with a comment on line 9 and Approve changes.

Pricing page refreshReady to review

Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.

  1. Read app/pricing/page.tsx and the plan data
  2. Wrote components/PlanCard.tsx
  3. Edited app/pricing/page.tsx
  4. Ran the dev server on port 3000
  5. Opened the preview and checked 390 px

The page has three plan cards with a Monthly / Yearly switch, and Team is highlighted. Open the preview to check it, or use Design mode to point at anything you want changed.

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

PreviewDeskScreen

PropTypeDefaultDescription
layoutString"inset"`inset` or `flat`: the main area as a rounded card on the sidebar's grey, or edge to edge.
stateString"sample"A state key (`sample`, `loading`, `empty`, `design` or `diff`).
heightu32900Height px (outside a stage).
railboolDefault::default()Oxyn: open with the sidebar as a 56 px icon rail.
sidebar_hiddenboolDefault::default()Oxyn: open with the sidebar hidden (the top bar brings it back).
dataOption<PreviewDeskData>Default::default()Your data. `None` shows the sample for `state`; start from `PreviewDeskData::default()`.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterSend, or send the comment (Shift + Enter for a new line)
← →Move between the preview tabs
EscapeClose the machine, model or account menu

Accessibility

  • The sidebar is a nav landmark; the open session carries aria-current=page.
  • The preview tabs are a tablist (roving tabindex, arrow keys); Design mode is a toggle button.
  • Each diff line is a button named with its number and text; comments sit under their line.
  • The comment box is a labelled group; every action reports in a polite live region.

Responsive behaviour

  • Authored on the 1440 × 900 canvas: a 272 px sidebar, the conversation and a 440 px pane (380 px under 1180).
  • Under 960 px the sidebar becomes a drawer from the top bar and the pane opens over the conversation from its top-bar button.
  • Under 620 px the chips shorten and the composer and pane keep their actions; labels ellipsise.
Edge cases (spec)

1440 × 900 stage; /full at the real viewport. Under 960 px the sidebar is a drawer and the pane opens over the conversation from the top bar. Under 620 px chip labels shorten and rows stack. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.

Notes for AI

  • Import PreviewDeskScreen from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: PreviewDeskEl in oxyn_gpui.
  • 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