Add opt-in date grouping for the All Notes list

This commit is contained in:
Yuri Karamian
2026-06-24 22:38:23 +02:00
parent 3ef0e14581
commit 987b1b9ed7
5 changed files with 83 additions and 6 deletions
+4
View File
@@ -39,6 +39,7 @@
rootNoteCount,
viewMode,
sortMode,
groupNotesByDate,
tasksLayout,
tasksHideCompleted,
tasksOnlyFlagged,
@@ -210,6 +211,7 @@
notebook_order: $notebookOrder,
note_order: $noteOrder,
sort_mode: $sortMode,
group_notes_by_date: $groupNotesByDate,
last_view_mode: $viewMode,
last_notebook: $activeNotebook?.relative_path ?? null,
last_tag: $activeTag,
@@ -553,6 +555,7 @@
$effect(() => {
$sortMode;
$groupNotesByDate;
$tasksLayout;
$tasksHideCompleted;
$tasksOnlyFlagged;
@@ -584,6 +587,7 @@
$notebookOrder = state.notebook_order ?? {};
$noteOrder = state.note_order ?? {};
if (state.sort_mode === 'created' || state.sort_mode === 'title' || state.sort_mode === 'modified' || state.sort_mode === 'custom') $sortMode = state.sort_mode;
if (typeof state.group_notes_by_date === 'boolean') $groupNotesByDate = state.group_notes_by_date;
if (state.tasks_layout === 'calendar' || state.tasks_layout === 'list') $tasksLayout = state.tasks_layout;
if (typeof state.tasks_hide_completed === 'boolean') $tasksHideCompleted = state.tasks_hide_completed;
if (typeof state.tasks_only_flagged === 'boolean') $tasksOnlyFlagged = state.tasks_only_flagged;