Skip to content

feat(ui): Build Task Execution Output Panel with Syntax Highlighting and Copy-to-Clipboard - #288

Open
Godfrey-Delight wants to merge 1 commit into
Epta-Node:mainfrom
Godfrey-Delight:feat/output-panel-enhancement
Open

feat(ui): Build Task Execution Output Panel with Syntax Highlighting and Copy-to-Clipboard#288
Godfrey-Delight wants to merge 1 commit into
Epta-Node:mainfrom
Godfrey-Delight:feat/output-panel-enhancement

Conversation

@Godfrey-Delight

Copy link
Copy Markdown
Contributor

Closes #239

Summary

Enhanced agent output panels (ResearchReportRenderer, CodingRenderer, DesignRenderer, and AgentOutputRenderer) with syntax highlighting, one-click copy-to-clipboard, auto-collapsible long sections, styled markdown tables with alternating row colors, external links opening in new tabs, metadata headers (agent name, execution time, token count), output content search filtering, and full-screen review mode.

Changes

  • frontend/src/components/common/CopyButton.tsx: Created reusable copy-to-clipboard button component with 2-second checkmark visual feedback ("✓ Copied!").
  • frontend/src/components/common/CollapsibleSection.tsx: Created reusable section container component that auto-collapses long content (> 500 characters) with character count badge and expand/collapse toggle.
  • frontend/src/components/agents/ResearchReportRenderer.tsx: Enhanced ReactMarkdown rendering with react-syntax-highlighter (vscDarkPlus theme) and code copy buttons, markdown tables with alternating row colors, external links forced to open in a new tab (target="_blank"), and auto-collapsible sectioning for long reports.
  • frontend/src/components/agents/CodingRenderer.tsx: Integrated line numbers, CopyButton, and output search query filtering.
  • frontend/src/components/agents/AgentOutputRenderer.tsx: Added output header displaying agent name, execution time (ms/s), and token count, real-time search filter input, and full-screen review mode overlay.
  • frontend/src/components/agents/DesignRenderer.tsx: Added searchQuery prop support for output filtering.
  • frontend/src/components/agents/AgentOutputRenderer.test.tsx: Created unit tests covering copy feedback, auto-collapsible sections, syntax highlighting, search input filtering, and full-screen overlay mode.

Testing

  • Unit Tests: Executed npm test (vitest run). All 13 test files and 123 tests passed.
  • Type Checking & Production Build: Executed npm run build (tsc --noEmit && vite build). TypeScript compilation passed with 0 errors and production bundle generated cleanly.

Related Issue

  • Branch: feat/output-panel-enhancement

Checklist

  • Tests pass
  • Lint is clean
  • Documentation updated if needed

…and Copy-to-Clipboard

Enhances AgentOutputRenderer, CodingRenderer, ResearchReportRenderer, and DesignRenderer with reusable CopyButton and CollapsibleSection (auto-collapsing content over 500 characters) components, syntax-highlighted code blocks via react-syntax-highlighter with copy support, styled markdown tables with alternating rows, external links forced to target="_blank" with rel="noopener noreferrer", a metadata header showing agent name, execution time, and token count, a real-time output search filter, and a full-screen review mode with blurred overlay, all covered by 123 passing tests and a clean production build. Closes Epta-Node#239
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

@Godfrey-Delight is attempting to deploy a commit to the Jaja's projects Team on Vercel.

A member of the Team first needs to authorize it.

@devJaja
devJaja self-requested a review August 22, 2026 04:09
@devJaja

devJaja commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@Godfrey-Delight
Resolve the conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): Build Task Execution Output Panel with Syntax Highlighting and Copy-to-Clipboard

2 participants