From a3b59371c8be7b71b62f77efe1147d99f643e322 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Mon, 1 Jun 2026 17:30:38 -0500 Subject: [PATCH 01/25] add notebook context detection to useActiveContext Adds a `notebook` variant to the `ActiveContext` union type, detected from the `/histories/:historyId/pages/:pageId` route. Both `pageId` and `historyId` are exposed so downstream consumers can scope chat and proposals to the right page without additional lookups. GalaxyAI.vue gains the `faBook` icon branch for notebook context so the context indicator already renders correctly when the user is editing a history notebook. Covers the new branch with vitest cases for both detection and labeling. Co-Authored-By: Claude Co-Authored-By: John Chilton --- client/src/components/GalaxyAI.vue | 4 ++- .../src/composables/useActiveContext.test.ts | 27 +++++++++++++++++++ client/src/composables/useActiveContext.ts | 13 ++++++++- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/client/src/components/GalaxyAI.vue b/client/src/components/GalaxyAI.vue index 1ecfda352a2..66fe69b5250 100644 --- a/client/src/components/GalaxyAI.vue +++ b/client/src/components/GalaxyAI.vue @@ -1,5 +1,5 @@