Commit Graph

256 Commits

Author SHA1 Message Date
DEV_DSW
71bcc3b3c5 feat: implement telemetry system for application usage tracking
- Added telemetry utility to capture application events and metrics.
- Integrated PostHog for event tracking with distinct user identification.
- Implemented telemetry initialization, event capturing, and shutdown procedures.

feat: add UV environment setup for Python management

- Created utilities to manage Python installation and configuration.
- Implemented network optimization checks for Python installation mirrors.
- Added functions to set up managed Python environments with error handling.

feat: enhance host API communication with token management

- Introduced host API token retrieval and management for secure requests.
- Updated host API fetch functions to include token in headers.
- Added support for creating event sources with authentication.

test: add comprehensive tests for gateway protocol and startup helpers

- Implemented unit tests for gateway protocol helpers, event dispatching, and state management.
- Added tests for startup recovery strategies and process policies.
- Ensured coverage for connection monitoring and restart governance logic.
2026-04-23 17:21:57 +08:00
DEV_DSW
655e7c51d2 feat: add GitHub skill installation support
- Implemented functionality to install skills from GitHub URLs.
- Updated API to handle new installation requests from GitHub.
- Enhanced UI to allow users to input GitHub skill URLs for installation.
- Added translations for new GitHub installation features in English, Thai, and Chinese.
- Created tests for the new skill installation service and API routes to ensure proper functionality.
2026-04-23 11:41:52 +08:00
DEV_DSW
f80bdc7f11 feat: update todo list completion status and refine ChatEmptyState layout 2026-04-23 09:20:52 +08:00
duanshuwen
bbe32f7954 feat: implement session deletion protection and enhance chat history management 2026-04-22 22:53:22 +08:00
duanshuwen
d915fcd61a feat: add avatars for user and assistant in chat message list 2026-04-22 22:37:26 +08:00
duanshuwen
ea1fd18e6f feat: enhance after-pack script to copy OpenClaw runtime dependencies
- Added a new script `bundle-openclaw.mjs` to bundle OpenClaw runtime dependencies.
- Updated `after-pack.cjs` to copy bundled OpenClaw runtime and its node_modules.
- Improved cleanup of unnecessary development files in node_modules.
- Adjusted paths for resources in the packaging process.

style: update loading indicator styles in ChatHistoryPanel

- Changed the border radius and padding for the loading indicator in ChatHistoryPanel.

fix: improve ProvidersSection to handle provider account syncing

- Added logic to sync model configuration to provider accounts.
- Introduced error handling and loading states during the sync process.
- Enhanced vendor resolution and account management logic.

fix: fallback session handling in chat store

- Implemented fallback session logic in loadSessions to ensure a valid session is always available on error.
2026-04-22 21:56:37 +08:00
DEV_DSW
9b8214cdd4 refactor: remove unused runAgentService and consolidate chat model functions 2026-04-22 09:16:40 +08:00
DEV_DSW
7b8cf84ffb fix: update padding in suggestion button for improved layout 2026-04-22 08:43:59 +08:00
DEV_DSW
0955fc4a5f fix: adjust height of ChatEmptyState component for better layout 2026-04-22 08:41:39 +08:00
duanshuwen
721344883f refactor: reorganize imports and update type references across services
- Updated import paths for types and utilities in config-service, menu-service, script-execution-service, script-store-service, and window-service to reflect new structure.
- Moved utility functions like debounce and cloneDeep to shared utilities.
- Created new runtime and script types files to centralize type definitions.
- Removed deprecated task-types and locale messages files.
- Updated constants to use shared definitions and added new placeholders for providers.
- Enhanced provider type information with additional placeholders for different languages.
2026-04-21 23:25:51 +08:00
duanshuwen
97a956ffe8 feat: remove getCurrentWindowId IPC event and related functionality for cleaner API 2026-04-21 22:37:32 +08:00
duanshuwen
f9c331315b feat: add CronDeleteDialog component and integrate it into CronPage for job deletion
- Implemented a new CronDeleteDialog component for confirming job deletions.
- Integrated the CronDeleteDialog into the CronPage, allowing users to delete cron jobs with confirmation.
- Refactored job deletion logic to handle state updates and loading indicators during deletion.
- Removed unused delivery channel related code from CronPage and CronTaskDialog.
- Cleaned up chat store session deletion logic to improve state management and ensure proper session handling.
2026-04-21 21:41:18 +08:00
duanshuwen
db93888921 feat: update agent label for clarity in dashboard localization files and improve HomePage layout 2026-04-21 21:08:02 +08:00
duanshuwen
41c1949a2e feat: add ChatEmptyState component and integrate it into ChatMessageList for improved user experience 2026-04-21 20:57:03 +08:00
duanshuwen
a259907d12 feat: adjust button padding for improved layout consistency in ChatHistoryPanel 2026-04-21 19:58:23 +08:00
duanshuwen
27dc4af3b4 Add Thai language support for various application components
- Introduced Thai translations for dashboard, knowledge, login, models, scripts, settings, skills, task, and common UI elements.
- Updated provider placeholders to include Thai language options.
- Modified locale resolution to support Thai language.
- Adjusted settings store to handle legacy language migration from Japanese to Thai.
- Enhanced runtime types to include Thai as a supported language.
2026-04-21 19:55:48 +08:00
duanshuwen
488d420e06 feat: implement hotel staff chat model configuration API and update localization files 2026-04-21 19:39:36 +08:00
DEV_DSW
413e566430 feat: update placeholders in skills localization files for consistent formatting 2026-04-21 17:16:02 +08:00
DEV_DSW
3349d41881 feat: 语言国际化重构 2026-04-21 16:52:45 +08:00
DEV_DSW
0c068e9f4d feat: 渠道管理语言国际化 2026-04-21 14:27:19 +08:00
DEV_DSW
5db3e5714f feat: 对话语言国际化 2026-04-21 11:46:45 +08:00
DEV_DSW
0e10ae9e35 feat: 对话国际化样式调整 2026-04-21 11:42:40 +08:00
duanshuwen
6ac4bf1dd9 feat: enhance provider functionality with base URL normalization and API protocol support; add tests for provider creation 2026-04-20 23:51:01 +08:00
duanshuwen
301f7d33ed feat: implement launch at startup functionality in zn-ai
- Added a new setting for "launch at startup" in the GeneralSettingsPanel.
- Integrated the setting with the existing settings store and IPC mechanisms.
- Implemented platform-specific logic for enabling/disabling startup behavior in the main process.
- Created a new service for managing launch at startup settings, including Linux desktop entry creation.
- Added unit tests for the new functionality and ensured existing tests are updated accordingly.
- Updated i18n messages for the new setting in English, Chinese, and Japanese.
2026-04-20 23:29:10 +08:00
duanshuwen
35319e6a1d feat: refactor sidebar and settings to include agents and models; update routing and i18n messages 2026-04-20 22:56:33 +08:00
duanshuwen
4f41eb380e feat: update todo list and comment out TaskBoard component in HomePage 2026-04-20 22:29:45 +08:00
duanshuwen
dfef9c90a5 feat: add gateway management features and settings
- Implemented new API routes for handling logs and settings related to the gateway.
- Added a new Gateway section in the General Settings panel to manage gateway status and auto-start options.
- Introduced a state management hook for gateway settings, including status, logs, and auto-start functionality.
- Updated configuration service to include gateway auto-start setting.
- Enhanced internationalization support for new gateway-related messages.
- Refactored existing settings store to accommodate new gateway settings.
- Cleaned up code and improved logging functionality.
2026-04-20 22:22:11 +08:00
duanshuwen
f7f4ffaee9 feat(api): add chat configuration and conversation message list APIs; update types and integrate into index 2026-04-20 17:35:41 +08:00
DEV_DSW
25102c2ae4 feat(api): restore and update api-request module structure 2026-04-20 16:51:09 +08:00
DEV_DSW
2eaa8951f6 feat(api): generate and update API client modules
Add new API client modules for various endpoints including authentication, orders, events, and configuration management. Update existing modules to use the standardized request utility. Add post-generation script to restore request.ts after openapi-ts generation to prevent file deletion issues.

The API client generation now includes comprehensive TypeScript types and proper request handling for all endpoints. The request utility has been enhanced to handle query parameters and response parsing consistently across all API calls.
2026-04-20 16:42:04 +08:00
DEV_DSW
44dfe51eaf feat(i18n): add scheduled tasks (cron) translations for en, zh, ja
Add comprehensive i18n messages for the new scheduled tasks (cron) feature.
Includes UI labels, actions, stats, validation, and example tasks for English,
Simplified Chinese, and Japanese locales.
2026-04-20 16:00:52 +08:00
DEV_DSW
7dc37b26b0 docs: update Cron task dialog title and description
Update the dialog title from "编辑定时任务" / "新建定时任务" to the more concise "编辑任务" / "创建任务". Also change the description to better reflect the purpose, from explaining configuration details to the simpler "安排自动化的 AI 任务" (Schedule automated AI tasks). This makes the UI text clearer and more user-friendly.
2026-04-20 15:34:43 +08:00
DEV_DSW
4a48b950ef refactor(cron): simplify cron job creation by removing agent selection
- Remove agent selection UI and logic from cron job dialog
- Use job's agentId or default agent directly instead of selecting from list
- Update UI text and styling to reflect simplified workflow
- Remove unused imports and agent-related state management
2026-04-20 15:33:03 +08:00
DEV_DSW
6b5e84b7d7 style: update UI components to use white background and consistent border radius
- Change dialog surfaces, drawers, and confirm dialogs from off-white (#F4F3EB) to white background
- Standardize border radius from 3xl/36px to 2xl across multiple components
- Update default setting view from 'account' to 'general' for better user experience
- Adjust input field heights and backgrounds for improved visual consistency
2026-04-20 15:01:33 +08:00
DEV_DSW
c9a2f3631e refactor: remove models snapshot feature and related code
- Remove models snapshot UI section from Models page
- Delete models API route handler and related logic
- Remove models store implementation and exports
- Clean up internationalization messages for removed feature
- Update main entry point exports to exclude models store
2026-04-20 14:44:27 +08:00
duanshuwen
3de3629d12 feat: add AgentsConfirmDialog component and integrate it into AgentsPage for agent deletion confirmation
- Implemented AgentsConfirmDialog for confirming agent deletions.
- Updated AgentsPage to manage agent deletion state and feedback messages.
- Refactored provider account loading logic to include channel groups.
- Enhanced feedback mechanism for user actions such as agent creation and deletion.
2026-04-19 22:10:01 +08:00
duanshuwen
3a86539537 feat: implement localization for models section
- Added a new copy module to handle translations for models-related components.
- Integrated translation functionality into ProviderPickerDialog, ProvidersSection, RequestContentDialog, UsageBarChart, and UsageHistorySection.
- Updated messages for various UI elements to support multiple languages.
- Refactored usage history functions to accept locale for date formatting.
- Enhanced user experience by providing localized strings for success/error messages and UI labels.
2026-04-19 21:25:05 +08:00
duanshuwen
38bea97197 feat: Enhance Marketplace and Skill Management UI with improved error handling and user feedback
- Updated MarketplaceDrawer to include security notes and manual installation hints.
- Refactored SkillDetailDrawer to display default icons for skills.
- Simplified SkillListItem to use default icons for better readability.
- Integrated gateway status checks and warnings in SkillsPage for improved user awareness.
- Enhanced error handling for skill installation and fetching, providing clearer feedback to users.
- Added new translations for error messages and gateway warnings to improve localization support.
2026-04-19 20:33:44 +08:00
duanshuwen
2cedc1c234 feat: add ConversationDeleteDialog and ConversationRenameDialog components with integration in HomePage 2026-04-19 17:00:09 +08:00
duanshuwen
ab6f179ab0 fix: update sidebar channel icon to use Network component and improve ChannelConfigModal styles 2026-04-19 16:47:12 +08:00
duanshuwen
18f12d6ce3 feat: enhance channel configuration UI and validation
- Updated ChannelInstructionsPanel to include a button for viewing documentation, improving user guidance.
- Enhanced ChannelTokenField to support showing/hiding secret values with appropriate labels and icons.
- Refined ChannelTypeSelector to display connection type icons and improved layout for better user experience.
- Added new messages for documentation links, validation feedback, and secret management in i18n.
- Extended ChannelMeta to include optional documentation URLs for better context on configuration fields.
- Implemented credential validation logic in ChannelsPage to ensure user inputs are validated before saving.
- Introduced ChannelLogo component to display channel icons in the UI.
- Added tests for channel credential validation to ensure proper error handling and feedback.
2026-04-19 16:43:07 +08:00
duanshuwen
d2e48b21d8 Implement feature X to enhance user experience and fix bug Y in module Z 2026-04-19 11:06:38 +08:00
duanshuwen
ba1580caba feat: add KnowledgeConfirmDialog component and integrate delete confirmation dialog in KnowledgePage 2026-04-19 10:45:42 +08:00
duanshuwen
89f8637db2 style: update component styles for improved consistency and readability 2026-04-19 10:25:02 +08:00
duanshuwen
6eb60a47a1 style: update component styles for improved consistency and readability 2026-04-19 10:10:16 +08:00
duanshuwen
5cc9b86e1f refactor: update knowledge document types and API client interfaces
- Refactored types in `Knowledge/types.ts` to introduce new interfaces for document handling.
- Added `KnowledgeDocItem`, `KnowledgeDocsListResponse`, `KnowledgeDocsUploadInput`, `KnowledgeDocsUploadResponse`, and `KnowledgeDocsDeleteResponse` for better structure and clarity.
- Updated `KnowledgeDocsApiClient` interface to include methods for listing, uploading, and deleting documents.

fix: replace deprecated icons in AccountSettingsPanel and SettingMenu

- Replaced `CheckCircleIcon` with `CheckCircle` from `lucide-react` in `AccountSettingsPanel.tsx`.
- Updated `SettingMenu.tsx` to use `Settings` and `User` from `lucide-react` instead of custom icons.

test: add tests for knowledge docs routes and KnowledgePage

- Created `knowledge-docs-routes.test.ts` to test API routes for listing, uploading, and deleting knowledge documents.
- Added `knowledge-page.test.tsx` to test the rendering and functionality of the KnowledgePage component, including document loading and deletion.
2026-04-19 09:40:07 +08:00
duanshuwen
92ec3189bc feat: update UI components and settings structure, remove unused icons 2026-04-18 20:31:52 +08:00
duanshuwen
ef46c73c3e Add unit tests for channel utilities and configure testing environment
- Created a new test file `channels.test.ts` to cover utilities related to channel configurations and targets.
- Implemented tests for normalizing and grouping selected channels by type, as well as building channel targets from account data and cron history.
- Mocked necessary dependencies to isolate tests and ensure accurate results.
- Updated `vite.config.ts` to set up the testing environment with jsdom and enable global variables for tests.
2026-04-18 16:12:49 +08:00
duanshuwen
ee72cf7261 feat: refactor HomePage to integrate agents store and update related components
feat: add runtime event handling for providers in ProvidersSection

feat: update routing to include Channels and Agents pages

feat: extend route types and navigation items for Channels and Agents

feat: implement agents store for managing agent data and interactions

fix: update chat store to utilize agents store for agent-related functionality

chore: export agents store from index

fix: enhance runtime types for better event handling

fix: update Vite config to handle dev server URL correctly
2026-04-18 14:56:32 +08:00
duanshuwen
dfa4388087 refactor: optimize component rendering with memoization and improve state management
- Added memoization to ChatHistoryPanel, ChatMessageList, and TaskBoard components to prevent unnecessary re-renders.
- Refactored HomePage to utilize useMemo for derived state calculations, enhancing performance.
- Updated main.tsx to conditionally render React.StrictMode based on the environment.
- Improved chat and channel store hooks to allow for selector functions, enhancing flexibility in state selection.
- Enhanced streaming message handling in chat store to manage pending deltas more effectively.
- Refactored LoginPage to include animated decorations for improved user experience.
- Implemented lazy loading for routes in the router to optimize initial load time.
2026-04-18 11:05:49 +08:00