Skip to content

feat(frontend): major sidebar refactor - workspace tree, favorites, new modal#31

Merged
NianJiuZst merged 4 commits intomainfrom
feat/workspace-refactor
Mar 29, 2026
Merged

feat(frontend): major sidebar refactor - workspace tree, favorites, new modal#31
NianJiuZst merged 4 commits intomainfrom
feat/workspace-refactor

Conversation

@NianJiuZst
Copy link
Copy Markdown
Owner

Major sidebar refactor with workspace tree, favorites, and new document modal. All 21 tests pass.

…ew modal

Breaking changes:
- cloud-docs/page.tsx now shows workspace introduction (Programming & AI Workspace)
- knowledge-base/page.tsx repurposed as Favorites list page
- layout.tsx: full sidebar refactor with:
  - Workspace: expandable with inline FolderTree (from API /documents/tree)
  - Favorites, Personal Notes, Shared Docs, Plugins as nav items
  - 'New' button opens creation modal (Blank Document / From Template / New Folder)
  - Rename right panel from 'Curator Assistant' to 'DocVault Assistant'
  - FolderTreeInline: supports expand/collapse, folder nesting, inline folder creation
  - New button triggers TemplateSelectorModal for doc/folder creation
- SearchBar placeholder: Chinese → English 'Search documents...'
- CloudDocsPage tests updated for new workspace intro content
- NotesPage: 4 tests (header, New button, search bar, sample notes)
- SharedPage: 3 tests (header, search bar, shared docs with access labels)
- PluginsPage: 3 tests (header, Browse button, plugin list with badges)
- KnowledgeBasePage (Favorites): 3 tests (header, search bar, favorite docs)
…ch to FolderTree tests

- Fix import path in layout.tsx: ../cloud-docs/components → ./cloud-docs/components
- Add missing beforeEach import to FolderTree.test.tsx
@NianJiuZst NianJiuZst merged commit a162af7 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant