WeKnora/frontend
adawang 6efd2093f5 fix(frontend): list writable shared KBs in manual knowledge editor
The "add to knowledge base" action on the chat page opens the manual
editor, whose target picker was populated only from listKnowledgeBases()
— the caller's own KBs. A user who was granted editor access to a shared
KB therefore could not select it, even though the backend
(CreateManualKnowledge) accepts editor/admin permission.

Also fetch shared knowledge bases and merge those the user can write to
(editor/admin) into the picker, de-duplicated against owned KBs and
limited to document-type KBs. Viewer-only shares stay excluded.

Fixes #1689

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 16:41:38 +08:00
..
packages chore: Update Dockerfile and package-lock.json for xlsx package management 2025-11-17 13:15:10 +08:00
public feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
src fix(frontend): list writable shared KBs in manual knowledge editor 2026-06-16 16:41:38 +08:00
.dockerignore feat(docker): streamline frontend build process and update Docker configuration 2026-06-10 16:04:11 +08:00
.gitignore init commit 2025-08-05 15:08:07 +08:00
Dockerfile feat(docker): streamline frontend build process and update Docker configuration 2026-06-10 16:04:11 +08:00
docker-entrypoint.sh feat: support remote backend and HTTPS proxy 2026-02-09 17:58:35 +08:00
embed.html feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
env.d.ts feat(frontend): inject commit ID into frontend build for version tracking 2026-06-09 18:08:57 +08:00
index.html fix(frontend): bundle tdesign-icons sprite locally for offline deploys 2026-04-23 18:21:49 +08:00
nginx.conf feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
package-lock.json feat(release): update to version 0.6.2 with new features and improvements 2026-06-10 15:21:40 +08:00
package.json feat(release): update to version 0.6.2 with new features and improvements 2026-06-10 15:21:40 +08:00
package.json.md5 fix: update environment configuration for debugging and logging, enhance SQLite FTS5 table management, and improve API base URL handling 2026-04-11 18:51:16 +08:00
pnpm-workspace.yaml fix(frontend): configure pnpm v11 build approvals in workspace file 2026-05-08 16:34:33 +08:00
tsconfig.app.json init commit 2025-08-05 15:08:07 +08:00
tsconfig.json init commit 2025-08-05 15:08:07 +08:00
tsconfig.node.json init commit 2025-08-05 15:08:07 +08:00
vite.config.ts feat: add EPUB and MHTML document support 2026-06-16 11:25:27 +08:00