From a3071a53cb1ae86ac39adce28a70943516ca4694 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 26 Apr 2026 22:46:47 -0400 Subject: [PATCH] feat(routing): land on Journal at root; move Knowledge to /knowledge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Routing changes: - / now redirects to /journal (Journal becomes the home view) - /knowledge becomes a real route pointing at KnowledgeView (was a redirect to /) - /notes redirect target updated from / to /knowledge (the Knowledge surface, which is where the notes-related dashboard lives) To revert (Knowledge as home): change the redirect target on the / route back to "/knowledge". Knowledge stays a real route either way, so the swap is a one-line edit. Nav: Knowledge link in AppHeader now points to /knowledge. The "active" check simplified to route.path === "/knowledge" since / is no longer Knowledge's home. The brand logo link stays at "/" — clicks still go "home", which is now Journal. Keyboard shortcuts in App.vue (Escape, g h, g t) still navigate to "/" and correctly land on Journal via the redirect — no change needed there. Co-Authored-By: Claude Opus 4.7 --- frontend/src/components/AppHeader.vue | 6 +++--- frontend/src/router/index.ts | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/AppHeader.vue b/frontend/src/components/AppHeader.vue index 839574c..7bf8791 100644 --- a/frontend/src/components/AppHeader.vue +++ b/frontend/src/components/AppHeader.vue @@ -16,7 +16,7 @@ const router = useRouter(); const route = useRoute(); const isChatActive = computed(() => route.path.startsWith("/chat")) -const isKnowledgeActive = computed(() => route.path === "/" || route.path === "/knowledge"); +const isKnowledgeActive = computed(() => route.path === "/knowledge"); const mobileMenuOpen = ref(false); @@ -74,7 +74,7 @@ router.afterEach(() => {