From bb0fe6c7496c47902a24a388f24c86c43e3f3ba5 Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Thu, 12 Mar 2026 18:49:01 -0500 Subject: [PATCH] Note and task ui fixes --- src/components/NotesSidebar.tsx | 6 +++- src/components/TaskDetail.tsx | 48 +++++++++++---------------- src/views/NotepadView.tsx | 58 ++++++++++++++++++++++----------- 3 files changed, 63 insertions(+), 49 deletions(-) diff --git a/src/components/NotesSidebar.tsx b/src/components/NotesSidebar.tsx index 8f8bdef..2ae8046 100644 --- a/src/components/NotesSidebar.tsx +++ b/src/components/NotesSidebar.tsx @@ -64,7 +64,11 @@ export const NotesSidebar: Component<{ n = n.filter(note => note.tags?.includes(getFavoriteTag())); } - return n; + return n.sort((a, b) => { + const titleA = a.title || "Untitled"; + const titleB = b.title || "Untitled"; + return titleB.localeCompare(titleA); + }); }); const handleCreateNote = async () => { diff --git a/src/components/TaskDetail.tsx b/src/components/TaskDetail.tsx index 1b0347a..6988c09 100644 --- a/src/components/TaskDetail.tsx +++ b/src/components/TaskDetail.tsx @@ -434,6 +434,24 @@ export const TaskDetail: Component = (props) => { + + {/* File Upload Shortcut */} +
+ +
{/* Metadata Row (Dates/Timestamps) */} @@ -694,35 +712,7 @@ export const TaskDetail: Component = (props) => { - {/* Close button (Mobile only) */} - - + - - + + + +
+ + +
+
+