feat(ui): enhance document previews, tab controls, and search - #444
Merged
Conversation
…w functionality - Added `getPdfNavigationMode` utility to determine navigation type based on file extension. - Introduced `PdfOutline` and `resolvePdfOutline` for handling PDF outlines and navigation. - Enhanced `PdfDocumentPreview` component with navigation controls and improved rendering logic. - Updated `CodeEditorBinaryFile` to support PDF navigation and expand/collapse functionality. - Added unit tests for new PDF navigation features and outline resolution. - Improved UI elements for better user experience in document previews.
- Added `findPdfSearchMatches` and `renderPdfSearchHighlights` functions for searching and highlighting text in PDF documents. - Created unit tests for the search functions to ensure accurate match detection and rendering. - Updated `PdfDocumentPreview` component to integrate search functionality, allowing for text highlighting and selection. - Enhanced text handling in the PDF viewer to support search results and improve user interaction.
…tion - Added `handleTabsClose` method to manage closing multiple tabs atomically and selecting the nearest remaining tab. - Enhanced `EditorSidebar` and `CodeEditorTabBar` components to support closing all tabs with context menu options. - Updated UI to include confirmation prompts for unsaved changes when closing tabs. - Added unit tests to verify the new tab closing behavior and ensure proper state management. - Localized new tab actions in English and Chinese for improved user experience.
…ed input handling - Updated `ChatHistorySearchBar` to manage input state with draft queries and handle IME composition events. - Implemented composition start and end handlers to preserve input during Chinese IME usage. - Refactored keydown event handling to improve search navigation and escape functionality. - Added unit tests for preserving IME composition in `MainAreaV2` to ensure correct behavior during search interactions.
- Updated search highlight styles for improved visibility and user experience. - Refactored `highlightSearchMatches` to support multiple highlighted occurrences and distinguish the active match. - Enhanced unit tests to verify correct highlighting behavior in chat history and PDF search components. - Introduced new CSS variables for consistent highlight styling across different themes.
xhd0728
approved these changes
Jul 23, 2026
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
Improve the PilotDeck file workbench and search experience with unified document navigation, in-document search, safer tab management, and better Chinese input support.
What changed
Document previews
Document search
File tabs
Chat search
Verification