diff --git a/api/routers/notes.py b/api/routers/notes.py index 4935057..ddc8f15 100644 --- a/api/routers/notes.py +++ b/api/routers/notes.py @@ -96,7 +96,7 @@ async def create_note(note_data: NoteCreate): note_type=new_note.note_type, created=str(new_note.created), updated=str(new_note.updated), - command_id=command_id, + command_id=str(command_id) if command_id else None, ) except HTTPException: raise @@ -160,7 +160,7 @@ async def update_note(note_id: str, note_update: NoteUpdate): note_type=note.note_type, created=str(note.created), updated=str(note.updated), - command_id=command_id, + command_id=str(command_id) if command_id else None, ) except HTTPException: raise diff --git a/frontend/src/app/(dashboard)/notebooks/[id]/page.tsx b/frontend/src/app/(dashboard)/notebooks/[id]/page.tsx index c942bc5..97ec398 100644 --- a/frontend/src/app/(dashboard)/notebooks/[id]/page.tsx +++ b/frontend/src/app/(dashboard)/notebooks/[id]/page.tsx @@ -230,7 +230,7 @@ export default function NotebookPage() { {/* Chat Column - always expanded, takes remaining space */} -
+
{isEditing ? t.sources.editNote : t.sources.createNote} -
+ {isEditing && noteLoading ? (
{t.common.loading} diff --git a/frontend/src/app/(dashboard)/notebooks/components/NotesColumn.tsx b/frontend/src/app/(dashboard)/notebooks/components/NotesColumn.tsx index 05e39b2..bb915f2 100644 --- a/frontend/src/app/(dashboard)/notebooks/components/NotesColumn.tsx +++ b/frontend/src/app/(dashboard)/notebooks/components/NotesColumn.tsx @@ -179,11 +179,11 @@ export function NotesColumn({
{note.title && ( -

{note.title}

+

{note.title}

)} {note.content && ( -

+

{note.content}

)} diff --git a/frontend/src/components/common/InlineEdit.tsx b/frontend/src/components/common/InlineEdit.tsx index b5acb4a..d1677ce 100644 --- a/frontend/src/components/common/InlineEdit.tsx +++ b/frontend/src/components/common/InlineEdit.tsx @@ -87,7 +87,7 @@ export function InlineEdit({
)} -
+