feat(desktop): improve side-by-side diff view UI and fix content reset#836
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes implement a new diff view mode toggle system allowing users to switch between side-by-side and inline diff views in the file viewer. Additionally, UI controls for expanding and closing the changes sidebar are added, along with styling updates to port-related components and improved diff editor mounting behavior. Changes
Sequence DiagramsequenceDiagram
actor User
participant FileViewerToolbar
participant FileViewerPane
participant FileViewerContent
participant DiffViewer
participant useChangesStore
User->>FileViewerToolbar: Click diff view mode toggle
FileViewerToolbar->>FileViewerPane: onDiffViewModeChange(newMode)
FileViewerPane->>useChangesStore: setDiffViewMode(newMode)
useChangesStore-->>FileViewerPane: Store updated
FileViewerPane->>FileViewerContent: diffViewMode prop updated
FileViewerContent->>DiffViewer: viewMode={diffViewMode}
DiffViewer-->>DiffViewer: Dynamic key triggers remount
DiffViewer-->>User: Renders with new diff layout
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
Test plan
Summary by CodeRabbit
Release Notes
New Features
Improvements
Style
✏️ Tip: You can customize this high-level summary in your review settings.