Notes layout improvements and soft delete

This commit is contained in:
2026-03-04 17:44:24 -06:00
parent 391f52af23
commit 9cbe7dcb12
4 changed files with 198 additions and 75 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export const NotesSidebar: Component<{
const currentUserId = pb.authStore.model?.id;
const filteredNotes = createMemo(() => {
let n = store.notes;
let n = store.notes.filter(note => !note.deletedAt);
if (searchQuery()) {
const q = searchQuery().toLowerCase();
n = n.filter(note => note.title.toLowerCase().includes(q) || note.tags.some(t => t.toLowerCase().includes(q)));