Comments PanelPro
Comment feed with filters, runnable /edit commands, resolve and a composer.
oxyn add comments-panelComments
/Edit Rename every “customers” to “members” on the pricing page.
/Edit Shorten every FAQ answer to two sentences.
Can we keep the old plan names for existing members?
The hero image finally looks right on mobile.
Can we ship this before Friday?
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
- A side panel of every comment on a document or run, where some comments are questions and some are /edit instructions the agent can run.
- Pairs with comment-thread.md.
When not to use
- Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
- The model menu of an AI chat: use Model Picker instead.
- The prompt box for an agent, in six layouts: use Composer instead.
Installation
Comments Panel 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 comments-panelUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
All
Run edit, resolve, sort, and add a comment or /edit.
Comments
/Edit Rename every “customers” to “members” on the pricing page.
/Edit Shorten every FAQ answer to two sentences.
Can we keep the old plan names for existing members?
The hero image finally looks right on mobile.
Can we ship this before Friday?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Edits
The Edits tab: runnable /edit comments.
Comments
/Edit Rename every “customers” to “members” on the pricing page.
/Edit Shorten every FAQ answer to two sentences.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Questions
The Questions tab.
Comments
Can we keep the old plan names for existing members?
Can we ship this before Friday?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Drawn avatars
Oxyn extra: illustrated portraits, the list at full height.
Comments
/Edit Rename every “customers” to “members” on the pricing page.
/Edit Shorten every FAQ answer to two sentences.
Can we keep the old plan names for existing members?
The hero image finally looks right on mobile.
Can we ship this before Friday?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
CommentsPanel
| Prop | Type | Default | Description |
|---|---|---|---|
commentsrequired | Vec<PanelComment> | — | Comments. |
me | (String, u8) | ("Alex Rivera".to_string(), 3) | Your name and portrait seed. |
title | String | "Comments" | Title. |
tab | String | "all" | Starting tab: `all`, `questions` or `edits`. |
run_ms | u64 | 1_200 | How long an edit runs, ms. |
avatars | String | "photo" | `photo` or `drawn` (illustrated portraits). |
max_list | f32 | 330.0 | The list's height cap in px; the list scrolls inside it (0: no cap). |
nowrequired | ClockMs | — | Shared clock (edit runs). |
on_run_edit | EventHandler<u32> | — | An edit ran (comment id). |
on_add | EventHandler<String> | — | A comment was added. |
on_close | Option<EventHandler<()>> | Default::default() | Close pressed (shows the ✕). |
PhotoAvatar
| Prop | Type | Default | Description |
|---|---|---|---|
seedrequired | u8 | — | Portrait seed. |
size | f32 | 24.0 | Size px. |
drawn | bool | Default::default() | Draw the illustrated portrait instead of the photo. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Tabs, sort, comments, composer |
| Enter | Send the comment |
Accessibility
- Filters are tabs, sorting is a menu of radio items, Resolve is a toggle button; the list announces new comments politely.
Motion & interaction
Timing
- Tab underline slides (200 ms); new comments rise in (240 ms); the Edits badge rolls.
- Reduced motion: no travel.
Responsive behaviour
- Fills its container up to 400 px; the list scrolls inside a 330 px cap with a thin pill thumb while the header, tabs and composer stay put.
Notes for AI
- Import
CommentsPanel,PhotoAvatarfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
CommentsPanelElinoxyn_gpui. - Props to set first:
comments,now,seed. - 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.