Skip to content
Back

Comments PanelPro

Comment feed with filters, runnable /edit commands, resolve and a composer.

oxyn add comments-panel

Comments

Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Theo Marsh

/Edit Shorten every FAQ answer to two sentences.

Priya Sen

Can we keep the old plan names for existing members?

Noor Ali

The hero image finally looks right on mobile.

Ines Duarte

Can we ship this before Friday?

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

  • 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.

Terminal
oxyn add comments-panel

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

All

Run edit, resolve, sort, and add a comment or /edit.

Comments

Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Theo Marsh

/Edit Shorten every FAQ answer to two sentences.

Priya Sen

Can we keep the old plan names for existing members?

Noor Ali

The hero image finally looks right on mobile.

Ines Duarte

Can we ship this before Friday?

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

Edits

The Edits tab: runnable /edit comments.

Comments

Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Theo Marsh

/Edit Shorten every FAQ answer to two sentences.

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

Questions

The Questions tab.

Comments

Priya Sen

Can we keep the old plan names for existing members?

Ines Duarte

Can we ship this before Friday?

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

Drawn avatars

Oxyn extra: illustrated portraits, the list at full height.

Comments

Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Theo Marsh

/Edit Shorten every FAQ answer to two sentences.

Priya Sen

Can we keep the old plan names for existing members?

Noor Ali

The hero image finally looks right on mobile.

Ines Duarte

Can we ship this before Friday?

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

CommentsPanel

PropTypeDefaultDescription
commentsrequiredVec<PanelComment>—Comments.
me(String, u8)("Alex Rivera".to_string(), 3)Your name and portrait seed.
titleString"Comments"Title.
tabString"all"Starting tab: `all`, `questions` or `edits`.
run_msu641_200How long an edit runs, ms.
avatarsString"photo"`photo` or `drawn` (illustrated portraits).
max_listf32330.0The list's height cap in px; the list scrolls inside it (0: no cap).
nowrequiredClockMs—Shared clock (edit runs).
on_run_editEventHandler<u32>—An edit ran (comment id).
on_addEventHandler<String>—A comment was added.
on_closeOption<EventHandler<()>>Default::default()Close pressed (shows the ✕).

PhotoAvatar

PropTypeDefaultDescription
seedrequiredu8—Portrait seed.
sizef3224.0Size px.
drawnboolDefault::default()Draw the illustrated portrait instead of the photo.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabTabs, sort, comments, composer
EnterSend 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, PhotoAvatar from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: CommentsPanelEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI