Files
syops/project-governance/plans/2026-03-28-workspace-productization-round-2-plan.md
2026-04-27 17:03:56 +08:00

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 -q
  • cd frontend && npm run build
  • Deploy updated backend and frontend to 192.168.100.230
  • Verify homepage, login, knowledge-base list, global diff, upload modal, preview actions, and delete flows on server