1.4 KiB
1.4 KiB
Workspace Productization Round 2 Plan
For agent: REQUIRED SUB-SKILL: Use Section 4 or Section 5 to implement this plan. Goal: Tighten the knowledge-base workspace into a compact product-grade operations UI without changing the backend data model. Architecture: Keep the current Vue SPA and FastAPI APIs, but restructure the workspace around three layers: knowledge-base navigation, global system overview, and current knowledge-base actions. Support features such as global Dify diff, modal uploads, and online preview through existing APIs, adding only lightweight summary/diff endpoints where needed. Tech Stack: Vue 3, TypeScript, Tailwind CSS, Uppy, FastAPI, SQLAlchemy, Dify API
Scope
- Replace the sidebar “detail cards” with compact knowledge-base navigation items.
- Add global summary metrics and a global Dify diff entry point.
- Move batch upload into a modal and separate file vs folder selection.
- Simplify filters and document actions.
- Add online preview for source/Markdown where browser support allows.
- Keep all user-facing terminology as “知识库 / Knowledge Base”.
Verification
cd backend && python -m pytest tests/test_uploads.py tests/test_files_api.py -qcd frontend && npm run build- Deploy updated
backendandfrontendto192.168.100.230 - Verify homepage, login, knowledge-base list, global diff, upload modal, preview actions, and delete flows on server