feat: Add comprehensive UI improvements and session management features#366
Open
iFlyTwice wants to merge 6 commits intowinfunc:mainfrom
Open
feat: Add comprehensive UI improvements and session management features#366iFlyTwice wants to merge 6 commits intowinfunc:mainfrom
iFlyTwice wants to merge 6 commits intowinfunc:mainfrom
Conversation
This commit introduces multiple user experience improvements and new functionality: ## ✨ New Features ### Auto-scroll Control - Add auto-scroll setting in Settings panel to control conversation auto-scrolling behavior - Implement `useAutoScroll` hook with dual-storage (localStorage + SQLite) for persistence - Allow users to manually scroll through conversation history without being forced to bottom - Setting persists across sessions and is immediately applied ### Session Deletion Functionality - Add individual session deletion with confirmation dialog - Add bulk session deletion with multi-select mode - Implement proper async confirmation handling for Tauri environment - Add session persistence cleanup when sessions are deleted - Support for hierarchical session deletion (primary + child sessions) ### Collapsible Tool Widgets - Make SystemInitializedWidget, ReadWidget, WriteWidget, and EditWidget collapsible - Prevent UI freezing with large file content previews - Add expand/collapse functionality with smooth animations - Maintain functionality while improving performance ### Image Placeholder System - Replace long image file paths with clean `[image]` placeholders in UI - Support multiple images with `[image winfunc#2]`, `[image winfunc#3]` numbering - Maintain actual file paths for backend processing - Add image preview functionality above prompt input - Implement proper path mapping between placeholders and actual files ## 🔧 Backend Improvements - Add `delete_session` and `delete_sessions_bulk` Tauri commands - Add `save_pasted_image` command for handling image uploads - Implement session persistence service with conversation tracking - Add proper error handling and logging for all new operations - Update API layer with new session management endpoints ## 🎨 UI/UX Enhancements - Improve message display with clean image path presentation - Add hierarchical session organization with expand/collapse - Add proper loading states and error handling - Implement smooth animations for better user experience - Add proper confirmation dialogs with clear messaging ## 🛠️ Technical Details - Update session store with deletion capabilities - Add proper TypeScript types for all new functionality - Implement proper cleanup of localStorage data - Add comprehensive error handling and user feedback - Follow existing code patterns and conventions ## 🧪 Testing - All features tested in development environment - Confirmed proper persistence across app restarts - Verified error handling and edge cases - Tested with various file types and sizes Breaking Changes: None Deprecations: None Fixes: Session deletion confirmation, image preview display, large file UI freezing
Member
|
Hi can you review the merge conflicts? |
Author
done @123vivekr |
…uilds - Adds fix-path-env dependency to ensure PATH environment is inherited in macOS DMG apps - Resolves issue where MCP servers showed is_active: false in production builds - Minimal change that fixes the core PATH inheritance problem for GUI applications - Enables devtools feature for development debugging
…//github.com/iFlyTwice/opcode into feature/ui-improvements-and-session-deletion
Author
|
you got discord @123vivekr |
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.
Summary
This PR introduces multiple user experience improvements and new functionality for better session management and UI interactions.
✨ New Features
Auto-scroll Control
useAutoScrollhook with dual-storage (localStorage + SQLite) for persistenceSession Deletion Functionality
Collapsible Tool Widgets
Image Placeholder System
[image]placeholders in UI[image #2],[image #3]numbering🔧 Backend Improvements
delete_sessionanddelete_sessions_bulkTauri commandssave_pasted_imagecommand for handling image uploads🎨 UI/UX Enhancements
Test plan
Breaking Changes
None
Related Issues
Addresses user feedback regarding: