Commit Graph

50 Commits

Author SHA1 Message Date
wizardchen 7d1dfc78b7 fix(knowledgeBase): improve tag loading logic and ensure consistent behavior
- Updated the loadTags function to prevent unnecessary calls when tags are already loading, enhancing performance and user experience.
- Modified tag loading calls in various tag-related functions to ensure the reset parameter is consistently set to true, ensuring the tag list is refreshed correctly after operations like create, edit, and delete.
- Improved the FAQEntryManager component to handle tag loading more efficiently during scrolling and batch operations.
2026-05-29 15:42:44 +08:00
wizardchen 91e4fe8b6b feat(frontend): introduce KBSwitcherDropdown component for improved knowledge base selection
Added a new KBSwitcherDropdown component to enhance the user experience when selecting knowledge bases. This component displays a list of knowledge bases with the current selection highlighted, allowing users to easily switch between them. Integrated the dropdown into both KnowledgeBase.vue and FAQEntryManager.vue, replacing the previous dropdown implementation for a more streamlined and consistent UI. The new component supports dynamic updates and maintains the order of knowledge bases while ensuring the current selection is always visible at the top.
2026-05-26 10:20:56 +08:00
wizardchen f97d588042 refactor(frontend): extract KBInfoPopover and reuse it on FAQ KBs
Move the info popover (intro'd in the previous commit) into a
dedicated `frontend/src/components/KBInfoPopover.vue` component so
both the document KB header and the FAQ KB header can share the
exact same metadata surface.

- KnowledgeBase.vue: replace the inline popover and the now-dead
  helper computeds (kbLastUpdated, kbHasDistinctUpdate,
  infoCardCapabilities, infoCardChunking, infoCardStats,
  chunkingStrategyLabel, supportedFileTypesList, accessRoleLabel,
  accessPermissionSummary) and their CSS with a single
  <KBInfoPopover> tag. The page still fetches parser engines and
  forwards the supported file types so the "Accepted formats" row
  renders for document KBs.
- FAQEntryManager.vue: drop the legacy inline meta strip
  (role tag · share source · last updated) along with the
  accessRoleLabel / accessPermissionSummary / kbLastUpdated /
  effectiveKBPermission computeds it only served, and wire the
  same <KBInfoPopover> into the actions cluster next to the
  settings button. FAQ KBs don't pass supportedFileTypes so the
  format row simply hides itself.
- KBInfoPopover.vue: self-contained — re-derives access role,
  shared-binding and chunking config from kbInfo + the org/auth
  stores. supported-file-types remains an opt-in prop so callers
  decide whether the parser-engine pipeline is relevant.

No user-visible regressions: both pages now render the same
Basic / Access / Capabilities / Chunking / Stats / Storage
Binding sections, with rows hiding when they don't apply.
2026-05-26 10:20:56 +08:00
wizardchen df74fa239b feat(auth): clear tenant-scoped client state on tenant change
Implemented a new function to clear tenant-specific data from localStorage when a user switches tenants. This prevents issues with stale data being used in the new tenant context, which could lead to backend errors. The function is called during the tenant selection process to ensure a clean state for the new tenant.

Refs: #1303
2026-05-18 17:28:58 +08:00
wizardchen c6a2f6c8cc refactor(permissions): enhance role-based access controls across knowledge base and agent views
- Updated visibility conditions for various UI elements based on user roles, ensuring that only users with appropriate permissions (Admin, Contributor, or KB creator) can access certain actions.
- Introduced computed properties to manage permissions for sharing knowledge bases, managing data sources, and executing graph extraction.
- Adjusted the AgentList and KnowledgeBase components to reflect these changes, improving user experience by preventing unauthorized actions from being displayed.
- Ensured that the backend routes are aligned with the updated frontend role checks, enhancing security and clarity in user interactions.
2026-05-18 17:28:58 +08:00
wizardchen cc6ac6ac50 fix(frontend): unify radio button theme and disabled selection
- Add global t-radio-button outline styles in theme.css (brand fill when checked).

- Align ModelEditor, share KB, datasource, agent/MCP settings with t-radio-button.

- Remove redundant :deep overrides in AgentEditorModal, KB editor, FAQEntryManager, etc.

- Use brand disabled tone for disabled+checked radio buttons so selection stays visible.
2026-05-07 21:51:22 +08:00
Claude f140c12518 feat(frontend): unify font rendering and add font picker in settings
The UI used hardcoded "PingFang SC" in 50+ components, while the global
font stack in App.vue used a different fallback chain. Outside of mainland
China this caused visibly different fonts in the sidebar, breadcrumbs,
search and agent views compared to settings and document panes.

- Introduce --app-font-family / --app-font-family-mono CSS variables in
  theme.css and route TDesign's --td-font-family through them
- Add a useFont composable that persists the user's choice in localStorage
  and applies it via document.documentElement.style before mount
- Replace hardcoded font-family declarations across the app with the new
  variables (TencentSans logo and the SVG attribute list are preserved)
- Add UI font and monospace font selectors in General Settings with
  i18n strings for en-US, zh-CN, ko-KR and ru-RU

https://claude.ai/code/session_01S1FVPf4jRfWXkTSnpMmMp7
2026-05-05 00:48:40 +08:00
wizardchen c4ebc1f60e feat: enhance UserMenu and KnowledgeBase components with loading skeletons and improved UI elements, including GitHub star tooltip and translations for better user experience 2026-04-11 18:51:16 +08:00
wizardchen 6d8b47e57c feat: implement theme synchronization and loading skeletons across various components, enhancing user experience during content loading 2026-04-11 18:51:16 +08:00
nullkey 1151d90bb9 fix(knowledge): allow deselecting document category by clicking again
Previously clicking an already-selected category did nothing, forcing
users to refresh the page to view all documents. Now clicking the
active category toggles the selection off, returning to the unfiltered
view.
2026-03-31 21:16:31 +08:00
wizardchen f7ec47306c refactor: unify dropdown menu styles across components
- Removed redundant dropdown menu styles from various components and centralized them in a new `dropdown-menu.less` file.
- Updated components to use the unified styles, ensuring consistency in appearance and behavior across the application.

This change simplifies maintenance and enhances the visual coherence of dropdown menus.
2026-03-16 20:13:30 +08:00
ochan.kwon db7cef5f17 feat(i18n): replace hardcoded Chinese strings with i18n calls across frontend
Replace all user-visible hardcoded Chinese strings in Vue/TS source files
with proper i18n function calls and add corresponding translation keys
to all 4 locale files (zh-CN, en-US, ko-KR, ru-RU).

Changes:
- Replace 80+ hardcoded Chinese strings across 30+ source files
- Add ~450 new translation keys per locale file
- Cover components, views, utils, hooks, and API modules
- Remove Chinese fallback patterns (|| '中文') from existing t() calls
- Add mermaid toolbar and ollama date format translations

Intentionally preserved (backend API values / backward compatibility):
- FAQ CSV column headers and parsing constants
- RelevanceLevel type and Record key mappings
- Graph database engine status comparison ('未启用')
- Language name labels ('简体中文')
2026-03-06 10:34:08 +08:00
wizardchen dbc7c32874 feat: update theme and UI styles across components
- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability.
- Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows.
- Enhanced SVG icons to use `currentColor` for better adaptability to theme changes.
- Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application.

These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
2026-03-05 18:14:14 +08:00
wizardchen 9a073d62bf feat(api): enhance organization shared knowledge base and agent functionalities
- Introduced new interfaces for handling shared knowledge bases and agents, including visibility and selection modes for agents.
- Added API functions to list shared knowledge bases and agents within an organization, improving data retrieval for UI components.
- Updated existing components to utilize the new API endpoints and interfaces, ensuring accurate representation of shared resources.
- Enhanced error handling in API calls to provide clearer feedback on failures.

This update improves the functionality and user experience by providing better access to shared resources and enhancing the overall data structure within the application.
2026-02-09 11:40:25 +08:00
wizardchen d3324d4592 feat(ui): enhance styling and layout consistency across components
- Updated background colors and margins in ListSpaceSidebar, KnowledgeBase, OrganizationList, and other components for a unified visual experience.
- Improved padding, font sizes, and hover effects in various UI elements to enhance readability and user interaction.
- Introduced scrollbar styling and box shadows for better aesthetics and functionality in sidebar components.

This update improves the overall user interface by ensuring consistent styling and enhancing the usability of components across the application.
2026-02-09 11:40:25 +08:00
wizardchen 4aef8938f2 feat(ui): update icon usage and enhance styling in share settings and knowledge base components
- Replaced organization icons with a new control platform icon in AgentShareSettings, ShareKnowledgeBaseDialog, and KBShareSettings for consistency.
- Added new styles for the agent icon to improve visual representation.
- Adjusted padding, margins, and layout in various components including ListSpaceSidebar, KnowledgeBase, and OrganizationList to enhance overall UI consistency and readability.
- Introduced hover effects and popover details for knowledge cards to improve user interaction and information accessibility.

This update enhances the user interface by ensuring consistent iconography and improving the layout and interaction design across components.
2026-02-09 11:40:25 +08:00
wizardchen c806eaf7f9 feat(agent): enhance agent and skill management features
- Updated the API to include disabled agent IDs for better management of user-specific agent visibility.
- Introduced a new function to set the disabled state for shared agents, allowing users to manage their shared agent preferences.
- Added a new Skills API to retrieve available skills, enhancing the overall agent capabilities.
- Improved the AgentSelector and related components to filter out disabled agents, ensuring a cleaner user experience.
- Updated localization strings to reflect new features and improve clarity in agent and skill management.

This update enhances the user experience by providing better control over agent visibility and introducing new skill management functionalities.
2026-02-09 11:40:25 +08:00
wizardchen 2db1f1e707 feat(knowledge): enhance UI components with improved icons and metadata
- Replaced static organization icons with the SpaceAvatar component for better visual representation in organization selection and sharing settings.
- Updated organization metadata display to include user and knowledge base share counts with new icons for clarity.
- Enhanced access information in knowledge base and FAQ entry views with improved iconography and tooltips for better user guidance.
- Adjusted styles for consistency and improved readability across various components.

This update enhances the user experience by providing clearer visuals and more informative displays related to organizations and knowledge sharing.
2026-02-09 11:40:25 +08:00
wizardchen 4158773849 feat: add organization management features
- Introduced a new API for organization management, including creation, updating, and deletion of organizations.
- Implemented organization sharing functionality for knowledge bases, allowing users to share knowledge bases with specific organizations and set permissions.
- Added UI components for organization selection and sharing dialogs.
- Enhanced existing components to support organization-related features, including shared knowledge base handling and organization role management.

This update enhances collaboration capabilities within the application by allowing users to manage and share knowledge bases across different organizations.
2026-02-09 11:40:25 +08:00
wizardchen faf1c9a37b feat: add matched question field to FAQ search results 2026-01-26 16:32:18 +08:00
wizardchen 6c9d31496f feat: 添加FAQ导入成功条目详情展示 2026-01-14 17:16:53 +08:00
wizardchen 0f35ffccc6 feat: 优化FAQ导入结果卡片UI与功能 2026-01-14 17:14:50 +08:00
wizardchen 25247c67e5 fix: 修正删除标签使用正确的ID字段 2026-01-14 17:14:39 +08:00
wizardchen 8702cab035 refactor: 移除重复的导入结果统计卡片 2026-01-14 17:14:29 +08:00
wizardchen 6399d6ba0b fix: 修正FAQ标签过滤使用seq_id而非id的类型问题 2026-01-14 17:14:18 +08:00
wizardchen 14d7d3d995 feat: 为 FAQ 和标签引入 seq_id 支持 2026-01-14 17:13:44 +08:00
wizardchen 84a4ec62de refactor: 简化FAQ导入结果获取逻辑
将导入结果字段合并到FAQImportProgress结构体中,当状态为completed时自动填充。删除了独立的GetLastFAQImportResult接口和相关方法,客户端改为通过进度接口获取已完成任务的结果,并使用localStorage记录最后完成的任务ID。
2026-01-14 17:09:19 +08:00
wizardchen 9215c82d3b feat: 添加FAQ导入结果持久化展示功能 2026-01-14 17:09:19 +08:00
wizardchen b71e7084fd feat: 将未分类FAQ条目转为"未分类"标签 2026-01-07 11:08:59 +08:00
wizardchen 20499d0d2e refactor: 统一标签列表渲染逻辑,移除重复的未分类标签处理代码 2026-01-05 10:38:14 +08:00
wizardchen ad450e6bce feat: 重构FAQ导入进度,改用Redis存储任务状态 2025-12-22 13:11:31 +08:00
wizardchen ad6bd157fd feat: 新增FAQ条目导出功能,支持CSV格式导出 2025-12-17 22:04:18 +08:00
wizardchen c461a59ecd feat: 新增FAQ推荐标签和批量操作支持,优化标签删除逻辑 2025-12-12 19:57:08 +08:00
wizardchen f26cbe02e1 feat: Add synchronous creation of single FAQ entry and duplicate question detection, update API documentation and frontend handling 2025-12-02 21:14:24 +08:00
wizardchen 845d990a48 feat: Add tag management and FAQ management APIs, enhance knowledge base functionality with keyword search and custom file naming support 2025-12-02 20:39:59 +08:00
wizardchen 057cfd9eb0 feat: Enhance FAQ import functionality and UI improvements
- Added support for tracking the status of FAQ import tasks, including progress indicators for ongoing imports.
- Introduced new localization strings for processing tasks and batch operations in multiple languages.
- Updated the FAQ entry manager to display import progress and improved user feedback during the import process.
- Enhanced the KnowledgeBase component to reflect the processing state of knowledge items, improving user experience during document uploads.
- Implemented batch deletion functionality for chunks, streamlining the management of knowledge base content.
2025-11-23 17:32:50 +08:00
wizardchen 9e98848d69 feat: Add statistics localization and enhance knowledge base functionality
- Introduced new localization strings for document count, FAQ entries, and chunk count in English, Russian, and Chinese.
- Updated the KnowledgeBase and KnowledgeBaseList components to display knowledge and chunk counts.
- Implemented backend functions to count knowledge items and chunks associated with each knowledge base, improving data management and user insights.
2025-11-21 01:39:43 +08:00
wizardchen 34d842cea8 feat: Improve knowledge base loading and dropdown UI in manual knowledge editor
- Enhanced the knowledge base loading function with detailed logging for better debugging and visibility of the data flow.
- Filtered knowledge bases to include only document types, improving the relevance of displayed options.
- Updated the dropdown component to include a custom empty state message when no document-type knowledge bases are available.
- Adjusted z-index styles for dropdowns to ensure proper visibility in various UI contexts.
- Added localization strings for the new empty state message in English, Russian, and Chinese.
2025-11-20 14:24:48 +08:00
wizardchen aabc9faf74 feat: Optimize dropdown positioning and UI components for knowledge base management
- Enhanced dropdown positioning logic to dynamically adjust based on available space, ensuring better visibility and usability.
- Improved UI styles for dropdown menus and action items, including consistent padding, margins, and hover effects.
- Updated localization strings for better clarity in knowledge base actions and menu items.
- Refactored related components to streamline the user experience when interacting with knowledge base features.
2025-11-20 13:37:21 +08:00
wizardchen 3b1a859374 feat: Enhance knowledge base management with new create action and improved UI
- Added a new "Create Knowledge Base" action in the menu for easier knowledge base creation.
- Updated localization strings in English, Russian, and Chinese to include a subtitle for knowledge base management.
- Improved UI components to better display knowledge base options and actions, including a new header subtitle in the KnowledgeBaseList view.
- Refactored related components to streamline the knowledge base list and FAQ entry management.
2025-11-20 12:13:23 +08:00
wizardchen b2b97ac3a3 feat: Add quick actions for document management in knowledge base
- Introduced a new section for quick actions in the menu, allowing users to upload documents and create FAQs directly from the interface.
- Implemented file upload functionality with validation and error handling.
- Enhanced localization for new quick action strings in English, Russian, and Chinese.
- Updated the UI to improve user experience when interacting with knowledge base actions.
2025-11-20 10:33:26 +08:00
wizardchen 601f73ec5f feat: Refactor agent configuration by removing deprecated parameters and enhancing conversation model management
- Removed the `thinkingModelId` and `rerankModelId` from agent configuration, streamlining the settings structure.
- Introduced a new `conversationModels` interface to manage summary and rerank model IDs.
- Updated related UI components and API logic to accommodate the changes in agent configuration.
- Enhanced localization for new conversation model settings in English, Russian, and Chinese.
2025-11-20 10:33:26 +08:00
wizardchen 884a765f3a feat: 优化FAQ工具提示样式和知识库卡片UI设计 2025-11-20 01:25:31 +08:00
wizardchen fdf5d9d781 feat: Implement knowledge tag management and batch updates for FAQ entries
- Added API functions for listing, creating, updating, and deleting knowledge base tags.
- Introduced batch update functionality for enabling/disabling FAQ entries and updating their tags.
- Enhanced the KnowledgeBase.vue and FAQEntryManager.vue components to support tag management and batch operations.
- Updated localization files to include new strings related to tag management and batch operations.
2025-11-18 11:48:37 +08:00
wizardchen da5f71dfd3 feat: Add MinIO and graph database status handling with localization updates
- Introduced a new boolean field for MinIO status in the system info API response.
- Updated localization files in English, Russian, and Chinese to include warnings and instructions related to MinIO and graph database configurations.
- Enhanced the KBAdvancedSettings component to display alerts and disable options based on the status of MinIO and graph database.
- Implemented logic to check system status on component mount and adjust settings accordingly.
2025-11-17 11:38:02 +08:00
wizardchen 7dd8861366 feat: Refine FAQ Entry Manager UI and localization for clarity and usability
- Updated the FAQ Entry Manager layout to enhance the organization of question types with distinct styling for similar and negative questions.
- Improved localization strings in Chinese for better clarity, including simplified terms for document and FAQ types.
- Enhanced search results display by adding index numbers and optimizing the layout for better user experience.
- Implemented responsive design adjustments and improved styling for better visual consistency across components.
2025-11-16 23:22:00 +08:00
wizardchen 4f766a21c6 feat: Revamp FAQ Entry Manager and localization for improved user experience
- Updated the FAQ Entry Manager UI with a new layout, enhancing the organization of standard questions, similar questions, negative questions, and answers.
- Improved localization strings for better clarity and guidance in Chinese, including detailed descriptions for each FAQ component.
- Implemented responsive design adjustments and optimized performance for the FAQ management interface.
- Enhanced the search functionality with clearer labels and descriptions, ensuring a more intuitive user experience.
2025-11-16 22:23:59 +08:00
wizardchen 1d0b228e81 feat: Add download options for example files in FAQ Entry Manager
- Introduced a dropdown menu for downloading example files in JSON, CSV, and Excel formats.
- Updated localization files to include new strings for download options in English, Russian, and Chinese.
- Enhanced the FAQ Entry Manager UI with improved layout and styling for the file upload section.
2025-11-16 17:56:26 +08:00
wizardchen fa237a8c13 feat: Enhance document and FAQ management UI with localization updates
- Added a new document management section with titles and subtitles in English, Russian, and Chinese.
- Updated the FAQ management interface to include subtitles for better user guidance.
- Improved layout and styling for document and FAQ sections to enhance user experience.
- Ensured localization support for new UI elements across multiple languages.
2025-11-15 03:29:40 +08:00
wizardchen 25fdaed8ca feat: Implement FAQ functionality in Knowledge Base
- Added support for creating and managing FAQ knowledge bases, including new API endpoints for listing, upserting, updating, and deleting FAQ entries.
- Enhanced the frontend to allow users to create FAQ knowledge bases and manage FAQ entries with a dedicated interface.
- Introduced new types and configurations for FAQ handling in the backend, ensuring proper indexing and retrieval of FAQ entries.
- Updated localization files to include new strings related to FAQ management in multiple languages.
- Refactored existing components to accommodate the new FAQ features, improving user experience and functionality.
2025-11-15 01:30:17 +08:00