feat(ui): Build Task Execution Output Panel with Syntax Highlighting and Copy-to-Clipboard - #288
Open
Godfrey-Delight wants to merge 1 commit into
Open
Conversation
…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
|
@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
self-requested a review
August 22, 2026 04:09
Contributor
|
@Godfrey-Delight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #239
Summary
Enhanced agent output panels (
ResearchReportRenderer,CodingRenderer,DesignRenderer, andAgentOutputRenderer) 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: EnhancedReactMarkdownrendering withreact-syntax-highlighter(vscDarkPlustheme) 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: AddedsearchQueryprop 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
npm test(vitest run). All 13 test files and 123 tests passed.npm run build(tsc --noEmit && vite build). TypeScript compilation passed with 0 errors and production bundle generated cleanly.Related Issue
feat/output-panel-enhancementChecklist