Commit Graph
1086 Commits
Author SHA1 Message Date
hy 596378ee65 Merge branch 'main' of github.com:Yoan98/Ncurator-Desktop 2026-10-16 12:25:08 +08:00
hy b0217b2723 feat: enhance e2e tests for workbench result and WPS Office integration
- Added functionality to append unchanged context to the preview file in `text-file-apply-preview-and-revert.e2e.test.ts`.
- Updated diff viewer selectors to improve line removal and addition detection.
- Implemented review edit and undo functionality with assertions in `text-file-apply-preview-and-revert.e2e.test.ts`.
- Enhanced the handling of omitted lines in the diff viewer.
- Modified the application of default settings in `file-preview-actions.e2e.test.ts`.
- Improved WPS Office reload and navigation tests in `wps-office-reload-on-write-and-revert.e2e.test.ts` and added a new test for WPS audit navigation.
- Refactored Excel cell interaction methods in `excel.ts` to support dynamic layout handling.
- Updated WPS Office coverage targets to include file name in prompts and added fixture preparation logic.
- Cleaned up WPS environment handling to ensure proper resource management during tests.
2026-10-16 12:24:44 +08:00
Yoan Huang c4dd0099c3 fix(test): track all delegated children and current interruption rows 2026-10-15 18:39:07 +08:00
Yoan Huang 22a318788f fix(test): wait for stable subagent cloud transforms 2026-10-15 18:03:16 +08:00
Yoan Huang 16c6235991 release: prepare windows-v1.0.9 2026-10-15 17:26:55 +08:00
Yoan Huang 127e0e2215 test: verify packaged free model gateway in provider smoke 2026-10-15 17:06:56 +08:00
Yoan Huang 3fde4ad113 fix(test): account for fractional DPI in DOCX scrollbar width 2026-10-15 16:59:53 +08:00
Yoan Huang daddd74e53 fix(test): select DOCX review by target filename 2026-10-15 16:58:38 +08:00
hy 4d1c0ba7e2 Merge branch 'main' of github.com:Yoan98/Ncurator-Desktop 2026-10-15 16:44:06 +08:00
hy b03400089d fix: update free model token URL in constants and tests 2026-10-15 16:38:39 +08:00
hy 854cde204f feat: Implement free model catalog service and update related components
- Added FreeModelCatalogService for managing free model metadata and caching.
- Introduced token management for free models, including token refresh logic.
- Updated API calls to use free model endpoints and handle authorization.
- Enhanced model selection logic to accommodate free models.
- Improved tests for free model functionality and caching behavior.
2026-10-15 16:15:04 +08:00
Yoan Huang f28408c4eb fix(test): handle Windows DPI and native input in release regression 2026-10-15 16:00:12 +08:00
hy 670c26eddf feat: Enhance image handling and model capabilities in AI harness
- Update `human-harness.md` to clarify image caching and logging behavior.
- Modify `workbench.md` to improve user experience with free models lacking vision capabilities.
- Add new test case `human-read-image-no-vision` to validate behavior when using free models without vision support.
- Enhance `generate-ai-tool-prompt-audit.mts` to include error descriptions for `read_image` failures.
- Implement checks in `agentControl` to prevent image processing with unsupported models.
- Update `ChatPage.tsx` to ensure context usage is refreshed correctly after partner state changes.
- Extend tests for `read_image` functionality to cover various model configurations and ensure proper error handling.
- Refactor `model-selector-and-provider-error.e2e.test.ts` to verify context usage after different run states.
- Adjust `realAiDepsFactory.ts` and `test-types.ts` to accommodate new model configurations and types.
2026-10-15 15:16:14 +08:00
Yoan Huang 6ff92bd146 fix(test): inspect original tool content for Windows source evidence 2026-10-15 14:17:02 +08:00
Yoan Huang 2f154a6197 fix(test): support Windows backend release gates 2026-10-15 13:52:34 +08:00
hy c1392abb01 test(e2e): align release regressions with current UI contracts 2026-10-15 11:34:12 +08:00
hy 8baf879979 test: validate source content for terminal and text tool reads 2026-10-14 22:15:22 +08:00
hy f069b5f8ef fix(build): prune unused distributions and include formula runtime peer 2026-10-14 21:56:27 +08:00
hy ecc1dfc39b test: verify subagent cache reuse without an arbitrary call count 2026-10-14 20:50:36 +08:00
hy cad0a1600b fix: align question requirements and tests with zero to four options 2026-10-14 20:36:03 +08:00
hy 78bef88e79 refactor: clean up unused code and improve utility functions
- Removed unused imports and types from aiCapabilityUtils.ts, constant.ts, and other utility files.
- Simplified message handling and JSON parsing functions.
- Updated ErrorBoundary component to remove unnecessary export.
- Streamlined markdownReference and remarkGfmNoAutolink components by removing redundant exports.
- Refactored settings constants and workspace utility functions for better readability and maintainability.
- Consolidated workspace tree handling logic and removed deprecated functions.
- Enhanced workspace file handling in ReadImageThumbs and AttachmentFileIcon components.
- Updated llm error classification tests to reflect changes in function naming and logic.
- Removed obsolete constants and types from shared files.
2026-10-14 18:26:49 +08:00
hy 403848569f Refactor knowledge test plans and unit tests for workspace indexing
- Updated knowledge test plans to clarify the cancellation behavior of workspace indexing and its interaction with the backend.
- Revised assertions in the `workspace-index-cancel-contract` test to ensure completed entries are preserved and unfinished entries are reverted correctly.
- Enhanced the `prepare-workspaces-sequentially` test to validate that subsequent addresses do not start after the first is cancelled.
- Removed obsolete `cnipa-http.host.test.ts` and `electronBareNavigateHost.mjs` files as they are no longer needed.
- Added new assertions in the `workspace-index-job-progress.test.ts` to verify the handling of completed and unfinished job states.
- Improved the `workspace-index-worker-contract.test.ts` to ensure proper cancellation behavior during embedding processes.
- Updated E2E tests for right panel layout and tab interactions to include resizing functionality.
2026-10-14 18:01:13 +08:00
hy e896a0396f refactor: Update test plans and assertions for workspace and settings modules
- Enhanced clarity and specificity in knowledge test documentation regarding session options and thread management.
- Revised settings test descriptions to improve accuracy in reflecting UI behavior and expected outcomes.
- Improved assertions in workspace and web tests to ensure comprehensive coverage of UI interactions and state management.
- Adjusted e2e test cases for workspace cancellation scenarios to accurately reflect expected behavior post-cancellation.
- Updated descriptions in terminal tests to clarify execution context and expected outputs.
- Refined messages in partner cache cleanup tests to better align with acceptance criteria.
2026-10-14 17:04:45 +08:00
hy 98459a2ef0 refactor: improve handling of empty input and whitespace in composer
- Adjusted input handling to preserve leading and trailing whitespace, including newlines and invisible characters, ensuring they do not trigger placeholder visibility or send actions.
- Updated utility functions to streamline token removal at caret position and enhance text node processing.
- Enhanced end-to-end tests to validate behavior with various whitespace scenarios, ensuring proper handling of empty drafts and user input.
- Refined user experience by ensuring that empty states and manual line breaks are accurately represented in the composer.
2026-10-14 12:25:06 +08:00
hy b87d72f42d feat: enhance DOCX rendering and interaction
- Update DocxPreview component to conditionally apply a class for documents with an overview.
- Add CSS styles for scrollbar visibility and overview thumb interactions in DOCX files.
- Refactor WorkbenchComposer to improve content detection and handling of empty states.
- Introduce utility functions to check for empty composer text and content presence.
- Modify WorkbenchContentPanel to manage document display modes with a new review open request type.
- Enhance ChatPage to handle document selection and interaction more effectively.
- Improve end-to-end tests for DOCX file handling, including shared scroll tracking and reference management.
2026-10-14 11:41:27 +08:00
hy fca431ed54 feat: update file and directory icon sizes, styles, and references across components
- Adjusted directory icons to 16px and file icons to 18px for consistency.
- Replaced existing folder icons with Bootstrap's `BsFolder` and `BsFolder2Open`.
- Updated `FileIcon` component to handle directory and file icons with appropriate sizes.
- Modified various components (e.g., `GeneralSettingsPanel`, `PartnerCacheCleanupModal`, `WorkspaceFilesEmptyState`) to use the new `FileIcon` for directory representation.
- Enhanced tests to validate icon sizes and styles in the candidate list and workspace settings.
- Ensured that the mention token lifecycle maintains consistent icon representation during user interactions.
2026-10-14 10:50:09 +08:00
hy 3583a63f88 feat: enhance document selection and file icon components
- Added cursor pointer style for document selection hover states.
- Refactored FileIcon component to use new icon imports and improved icon rendering for directories and file types.
- Updated PlainTextEditor to ensure proper z-index layering for text areas and mirrors.
- Improved DocumentSelectionLayer to manage cursor states and hover effects more effectively.
- Enhanced textFileAdapter to support new selection behaviors.
- Updated selection types to include editable controls for better user experience.
- Refined WorkbenchContentPanel to utilize FileIcon for directory icons.
- Adjusted WorkspaceFileExplorer to simplify file type labels.
- Modified ReferenceIcon and related components for consistent styling and sizing.
- Improved e2e tests for workspace directory creation and selection behaviors.
2026-10-14 10:30:22 +08:00
hy 69eac6fd80 feat: enhance file explorer and attachment icons
- Updated WorkspaceFileExplorer to handle new file creation with context-aware parent paths.
- Improved context menu to include new file creation options for directories and files.
- Refactored AttachmentFileIcon to utilize ReferenceIcon for better visual representation.
- Enhanced ReferenceIcon to support various file types with appropriate icons and styles.
- Introduced a new utility for file visual specifications to standardize icon appearances.
- Updated file icon handling in tests to reflect new structure and ensure proper rendering.
- Added support for markdown file icons and ensured consistent icon sizes across the application.
- Enhanced e2e tests to validate new file creation and icon visibility in the workspace.
2026-10-14 09:40:10 +08:00
hy 84d2488de7 Refactor file icon handling and workspace file renaming
- Introduced a new utility for file icons, consolidating icon paths and types.
- Updated reference visuals to utilize the new file icon utility.
- Enhanced workspace file renaming functionality, ensuring proper updates in the UI and state management.
- Added tests for various file types and renaming scenarios to ensure robustness.
- Improved the handling of file creation and context menus in the workspace.
2026-10-13 18:27:31 +08:00
hy cef58b6503 feat(selection): enhance document selection and copy functionality
- Introduced highlight opacity for selection highlights in DocumentSelectionLayer.
- Updated pdfAdapter to set a default highlight opacity.
- Refactored readPreviewText to accept an ignore function for better control over selectable elements.
- Enhanced textAdapter to utilize the new read function and improved selection location logic.
- Added support for additional block elements in textIndex for more comprehensive selection.
- Implemented copyDocumentSelection utility for consistent clipboard operations across tests.
- Updated e2e tests to validate selection and copy behavior across various document formats, ensuring accurate references and visibility of selected text.
2026-10-13 17:36:03 +08:00
hy dc92297b5c feat: implement native confirmation dialog for clearing chat history
- Refactor the chat history clearing process to use a native confirmation dialog.
- Introduce a new state for managing the confirmation dialog for clearing partner context.
- Update the confirmation dialog to include an option for deleting file modification history.
- Modify the handling of the confirmation response to appropriately clear chat history based on user input.
- Enhance unit and end-to-end tests to cover the new confirmation dialog behavior and ensure proper functionality.
- Update related tests to reflect changes in the confirmation process and ensure consistent behavior across different scenarios.
2026-10-13 15:29:37 +08:00
hy 1968e15cc3 feat: add Excel workbook handling and formula support
- Introduced new `excelWorkbook.ts` module for managing Excel workbooks using ExcelJS, including functions for cell data extraction, style handling, and workbook data conversion.
- Enhanced `WorkbenchContentPanel` to conditionally display Excel review capabilities based on active record capabilities.
- Updated tests to cover new Excel formula handling, including row deletion and insertion scenarios, ensuring correct formula recalculation and preservation of styles.
- Implemented E2E tests for verifying read-only behavior in Excel previews and ensuring that changes do not affect the original workbook.
- Added utility functions for copying cell values and verifying cell edit restrictions in the E2E testing framework.
2026-10-13 14:21:52 +08:00
hy 634d722e9d feat: add partner cache cleanup functionality and UI enhancements
- Implemented a confirmation modal for clearing chat history with an option to delete file change history.
- Added new partner cache types and structures to manage cache categories and requests.
- Created unit and end-to-end tests for partner cache cleanup, ensuring proper isolation and retention of chat messages and other partner data.
- Enhanced the settings UI with new selectors for cache management.
- Updated the partner clear context request to optionally delete file changes.
- Improved error handling and user feedback during cache cleanup operations.
2026-10-13 12:24:44 +08:00
hy 5e664c2498 refactor: streamline user block rendering and improve reference context handling 2026-10-13 10:22:18 +08:00
hy d4958e8f37 refactor: enhance document selection rendering and context handling
- Updated the rendering logic for user-selected content to include detailed positioning information for various document types (text, PDF, PPT, Excel).
- Modified the structure of rendered output to replace previous context markers with a unified `<定位信息>` block, improving clarity and consistency.
- Enhanced Excel handling in tests to ensure accurate representation of cell values, formulas, and merged cells.
- Adjusted E2E tests to validate new rendering format and ensure that no unnecessary content is included in the output.
- Improved test coverage for Excel read and edit operations, ensuring that the AI service correctly interprets and processes Excel data.
2026-10-13 09:59:38 +08:00
hy e6b9c77529 fix: update user request markers and improve PPT handling in tests
- Changed user request markers from '用户诉求:' to '<用户诉求>' in multiple test files for consistency.
- Updated PPT test cases to reflect changes in slide reading and editing functionalities, including adjustments to tool calls and expected outputs.
- Enhanced assertions in various tests to ensure accurate validation of expected content and structure in PPT presentations.
- Refactored test cases to improve readability and maintainability, ensuring that nested groups and selections are correctly handled and validated.
2026-10-12 18:45:55 +08:00
hy c1b6ec936f feat: enhance PPT interaction handling and viewport management in viewer component 2026-10-12 16:31:47 +08:00
hy 759ae53b52 feat: enhance document selection and PPT interactions
- Update validation logic in document selection to remove text mode.
- Refactor PPT slide viewer to improve drag and hover interactions.
- Introduce cursor management for better user experience during selection.
- Modify PPT adapter to streamline selection capturing and hit testing.
- Remove unused text range handling in document selection.
- Update tests to reflect changes in selection behavior and interactions.
- Improve performance by optimizing SVG handling in PPT previews.
2026-10-12 16:06:13 +08:00
hy 6f1d9c9d6f feat(ui): enhance input styling and interaction feedback for question and approval cards 2026-10-12 14:58:36 +08:00
hy 79ffd5a005 feat(interaction): enhance user input handling and visual feedback in interaction cards 2026-10-12 14:40:28 +08:00
hy fa86c1798f feat(interaction): enhance keyboard navigation for question cards and update test cases 2026-10-12 14:17:42 +08:00
hy 614ebea5a4 Merge branch 'main' of github.com:Yoan98/Ncurator-Desktop 2026-10-12 12:19:14 +08:00
hy bd142b45d7 feat(tests): enhance DOCX overview assertions and add visual host for DOCX processing
- Introduced `assertEmptyDocxOverview` and `assertDocxReviewOverview` functions to validate the state of DOCX overviews in end-to-end tests.
- Updated existing tests to include assertions for empty and reviewed DOCX overviews.
- Added `docxVisualHost.ts` and `docxVisualRunner.ts` to facilitate the processing and analysis of DOCX files, capturing visual elements and their properties.
- Enhanced the workspace file explorer tests to include new file creation and deletion scenarios, ensuring proper handling of various file types.
- Improved browser lifecycle tests to manage background responses and ensure proper cleanup.
- Refactored scheduled task tests to streamline partner deletion and task management workflows.
2026-10-12 12:11:41 +08:00
Yoan Huang 98b6008285 fix(selection): improve rendering of selection location and update related tests 2026-10-11 13:55:42 +08:00
Yoan Huang 0d4f336ecc Refactor document selection handling and improve rendering of excerpts
- Updated `renderExcerptBlock` to return an empty string for empty content.
- Enhanced `renderSelection` to provide clearer output for PPT selections, including page and element identifiers.
- Removed image handling from document selection validation and related functions.
- Simplified user content resolution by removing unused image handling logic.
- Adjusted `DocumentSelectionLayer` to eliminate unnecessary busy state management.
- Updated PPT adapter to remove image snapshot functionality and focus on element selection.
- Modified tests to reflect changes in selection handling and rendering logic.
- Ensured that selection tooltips and references are consistent with the new structure.
2026-10-11 13:43:17 +08:00
hy 0b95642b92 feat: unify document references and interaction cards, tidy docs and tests 2026-10-11 10:08:28 +08:00
hy 0d1cd00730 fix(subagent): publish delegation failures and preserve assistant rows 2026-10-11 09:14:32 +08:00
hy 1701619f2c refactor: rename task to instruction in subagent delegation and related components
- Updated SubagentTask type to SubagentAssignment, changing 'task' to 'instruction'.
- Refactored AiSubagentStore to accommodate new SubagentAssignment structure.
- Modified AssistantTurnCard and SubagentGroupView to utilize presentSubagentGroups for processing.
- Enhanced error handling in messageLogProjection to capture entry errors.
- Created subagentPresentation utility for managing subagent group presentation.
- Adjusted types to reflect changes in subagent structure and added error handling.
- Updated tests to reflect changes in subagent delegation structure and error handling.
2026-10-10 18:44:08 +08:00
hy 982f25f027 feat: Enhance subagent process handling and UI feedback
- Added tool process events for better tracking of tool execution states.
- Updated tool feedback handling to include message IDs for improved traceability.
- Enhanced UI components to reflect changes in message display and status updates.
- Improved logic for managing subagent task states and visibility in the UI.
- Refined test cases to validate new message ID handling and process feedback.
- Adjusted styles for better visual consistency in the AssistantTurnCard and SubagentGroupView components.
2026-10-10 18:10:43 +08:00
hy 2dae7f578b fix(workbench): show partner deletion confirmation above browser 2026-10-10 16:57:54 +08:00