Skip to content

feat: integrate diagram view and add segmented control for view switching#4

Merged
CoolSpring8 merged 1 commit into
mainfrom
diagram-view
Oct 30, 2025
Merged

feat: integrate diagram view and add segmented control for view switching#4
CoolSpring8 merged 1 commit into
mainfrom
diagram-view

Conversation

@CoolSpring8
Copy link
Copy Markdown
Owner

No description provided.

@CoolSpring8 CoolSpring8 requested a review from Copilot October 30, 2025 05:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a diagram view feature to visualize the chat message flow as a node-based graph. Users can toggle between the traditional chat view and the new diagram view using a segmented control.

Key changes:

  • Introduces a new DiagramView component using the @xyflow/react library for rendering interactive flow diagrams
  • Adds view switching capability with a SegmentedControl to toggle between "chat" and "diagram" modes
  • Implements double-click functionality on diagram nodes to switch back to chat view and edit messages

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/components/DiagramView.tsx New component that renders messages as a vertical flow diagram with nodes and edges
src/App.tsx Adds view state management, segmented control for view switching, and conditional rendering of chat vs diagram views
package.json Adds @xyflow/react dependency for diagram rendering
bun.lock Updates lockfile with new dependencies for the diagram library

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/DiagramView.tsx
Comment thread src/App.tsx
@CoolSpring8 CoolSpring8 merged commit 0d0241f into main Oct 30, 2025
6 checks passed
@CoolSpring8 CoolSpring8 deleted the diagram-view branch October 30, 2025 05:38
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.

2 participants