fix: default sidebar section to Inbox on app launch and vault switch

Changed DEFAULT_SELECTION from 'all' (All Notes) to 'inbox' so the
app always opens on the Inbox section. During a session the user's
navigation is preserved; on next launch or vault switch it resets
to Inbox.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-04-05 13:44:18 +02:00
parent 4bbd1f4b29
commit 4573ea80c3

View File

@@ -70,7 +70,7 @@ declare global {
}
}
const DEFAULT_SELECTION: SidebarSelection = { kind: 'filter', filter: 'all' }
const DEFAULT_SELECTION: SidebarSelection = { kind: 'filter', filter: 'inbox' }
/** Wraps useEditorSave to also keep outgoingLinks in sync on save and on content change. */
function App() {