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-deskRefresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
Starting the dev server
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
- 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.
oxyn add preview-deskUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the main area as an inset card.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
Starting the dev server
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the main area edge to edge.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
Starting the dev server
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons in the sidebar, the conversation and the pane.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: nothing yet, the composer front and centre.
What should we build?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Design
Design mode on the live site: the Team plan card picked, outlined, with a comment box to send to the agent.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
- Ran the dev server on port 3000
- 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 preview is free. Pro opens the code of every Pro component, screen and template.
X1
Oxyn: the sidebar as a 56 px icon rail; the top bar expands it.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
Starting the dev server
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
X2
Oxyn: the sidebar hidden for focus; the top bar brings it back.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
Starting the dev server
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Diff
The diff of PlanCard.tsx with a comment on line 9 and Approve changes.
Refresh the pricing page: three plans side by side, yearly and monthly toggle, and highlight the Team plan.
- Read app/pricing/page.tsx and the plan data
- Wrote components/PlanCard.tsx
- Edited app/pricing/page.tsx
- Ran the dev server on port 3000
- 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 preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PreviewDeskScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`: the main area as a rounded card on the sidebar's grey, or edge to edge. |
state | String | "sample" | A state key (`sample`, `loading`, `empty`, `design` or `diff`). |
height | u32 | 900 | Height px (outside a stage). |
rail | bool | Default::default() | Oxyn: open with the sidebar as a 56 px icon rail. |
sidebar_hidden | bool | Default::default() | Oxyn: open with the sidebar hidden (the top bar brings it back). |
data | Option<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
| Key | Action |
|---|---|
| Enter | Send, or send the comment (Shift + Enter for a new line) |
| ← → | Move between the preview tabs |
| Escape | Close 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
PreviewDeskScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
PreviewDeskElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.