Skip to content

Feat/workspace refactor#34

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

Feat/workspace refactor#34
NianJiuZst merged 3 commits intomainfrom
feat/workspace-refactor

Conversation

@NianJiuZst
Copy link
Copy Markdown
Owner

No description provided.

…lity

- Fix: parent folder now stays expanded after creating sub-folder or sub-document
- Fix: creating a document in a folder expands the parent folder
- Add delete option to 'more' menu for BOTH folders and documents (not just folders)
- Documents now also show 'more' icon on hover for deletion
- Delete handler: DELETE /documents/:id for docs, DELETE /documents/folder/:id for folders
- Root-level documents can now be deleted via their more menu
- When creating a doc/folder in a deeply nested parent, fetch fresh tree first
- Then compute all ancestor folder IDs and add them all to expanded Set
- This ensures multi-level nested folders (3+ levels) render correctly after creation
- Use fresh /documents/tree fetch to get accurate ancestor path
… buttons

- Replace text labels with react-icons/md icons (MdFormatBold, MdFormatItalic, etc.)
- Compact 8x8 icon buttons in a single row with separator dividers
- Active state shows blue background, hover shows gray background
- All 38 tests pass
@NianJiuZst NianJiuZst merged commit ac7c1f0 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