feat: enhance note creation and editing experience

- Added dynamic title extraction from the first block of BlockNote documents for NOTE type.
- Updated editor routes to support new note creation with a BlockNote editor.
- Implemented unsaved changes dialog for better user experience when navigating away from the editor.
- Refactored BlockNoteEditor to ensure the first block is a heading when creating new notes.
- Removed the old note creation page in favor of the new streamlined editor experience.
This commit is contained in:
Anish Sarkar 2025-12-16 13:57:06 +05:30
parent 8eceb7a5cb
commit e1e813702a
6 changed files with 386 additions and 173 deletions

View file

@ -213,7 +213,7 @@ export function AppSidebarProvider({
// Handle add note
const handleAddNote = useCallback(() => {
router.push(`/dashboard/${searchSpaceId}/notes/new`);
router.push(`/dashboard/${searchSpaceId}/editor/new`);
}, [router, searchSpaceId]);
// Memoized updated navSecondary