Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
canary
lobe-chat
/
tests
下载当前目录
G
GitHub
✨ feat(agent-explorer): support multi-select delete in document tree (
#15125
)
f685d5c2
创建于
18 小时前
历史提交
文件
最后提交记录
最后更新时间
i18n
🐛 fix(i18n): preload default language from JSON to avoid Suspense on first render (#12895) * 🐛 fix(i18n): preload default language from JSON to avoid Suspense on first render - Sync load en-US common/error/chat from locales/en-US/*.json - Use JSON (not locales/default/*.ts) as runtime values - TS source is type-only - Prevents useTranslation from suspending, avoids CLS from 44px skeleton fallback Made-with: Cursor * ✨ feat(i18n): enable partial loading of languages and add tests for dynamic namespace loading Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com>
2 个月前
mocks
🐛 fix(desktop): add missing Stats and Creds tabs to Electron componentMap (#13243)
1 个月前
openapi
🐛 fix(kb): clean up vector storage when deleting knowledge bases (#13254) * 🐛 feat(db): add findExclusiveFileIds, deleteWithFiles, deleteAllWithFiles to KnowledgeBaseModel Add methods to safely clean up vector storage when deleting knowledge bases: - findExclusiveFileIds: identifies files belonging only to a specific KB - deleteWithFiles: deletes KB and its exclusive files with chunks/embeddings - deleteAllWithFiles: bulk version for deleting all user KBs * 🐛 fix(kb): wire vector cleanup in TRPC router, OpenAPI service, and client - TRPC removeKnowledgeBase: use deleteWithFiles when removeFiles=true + S3 cleanup - TRPC removeAllKnowledgeBases: use deleteAllWithFiles + S3 cleanup - OpenAPI deleteKnowledgeBase: use deleteWithFiles + S3 cleanup - Client service: default removeFiles=true when deleting knowledge base * 🐛 fix(knowledgeBase): change default behavior of deleteKnowledgeBase to not remove files and update related tests Signed-off-by: Innei <tukon479@gmail.com> * ✨ feat(knowledgeBase): add optional query parameter to deleteKnowledgeBase for file removal - Introduced `removeFiles` query parameter to control the deletion of exclusive files and derived data when deleting a knowledge base. - Updated `KnowledgeBaseController`, `KnowledgeBaseService`, and related schemas to support this new functionality. This change enhances the flexibility of the delete operation, allowing users to choose whether to remove associated files. Signed-off-by: Innei <tukon479@gmail.com> * 🐛 fix: cascade knowledge base deletion and add orphan cleanup runbook * ✨ feat(knowledgeRepo): implement cascading deletion for file-backed documents - Enhanced the `KnowledgeRepo` to ensure that when a document with an associated file is deleted, all related data (files, chunks, embeddings) are also removed. - Introduced a new method `deleteDocumentWithRelations` to handle the cascading deletion logic. - Updated tests to verify that all related entities are deleted when a file-backed document is removed. This change improves data integrity by ensuring that no orphaned records remain after deletions. Signed-off-by: Innei <tukon479@gmail.com> * Defer DocumentService file initialization * Fix flaky database tests and knowledge repo fixtures * Add deletion regression tests for folders and external files * :rewind: chore: remove kb orphan cleanup files from pr --------- Signed-off-by: Innei <tukon479@gmail.com>
1 个月前
setup.ts
✨ feat(agent-explorer): support multi-select delete in document tree (#15125) * ✨ feat(agent-explorer): support multi-select delete in document tree - Right-click on a multi-selected row deletes the whole selection; dedupe descendants when an ancestor folder is also selected - Reserve chevron slot in SkillsList rows so atomic and bundled skills align - Centralize EMPTY_ARRAY (typed `never[]`, frozen) in @lobechat/const * ♻️ refactor: migrate delete confirm dialog from antd modal to confirmModal * ✅ test: stabilize bun vitest environment * 🔧 ci: avoid authenticated checkout for PR tests
18 小时前
utils.tsx
🌐 chore: translate non-English comments to English in tests-utils and heterogeneous-agents (#14914)
5 天前