From 06b8a0407023adeef7091af7f95c0c7ea1bb91fb Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 30 Sep 2026 20:46:52 -0400 Subject: [PATCH] Render the v2 pair page and share the auth footer /pair only had a default view, so the v2 named router-view rendered nothing and the QR pairing link opened a blank page. Give it a v2 view like /pair/device and drop PairDispatcher. Move the language selector and version tag bar into AuthFooter, used by the sign-in layout and both pair shells. Co-Authored-By: Claude Opus 5.5 (1M context) --- frontend/src/plugins/router.ts | 5 +++- .../src/v2/components/shared/AuthFooter.vue | 28 +++++++++++++++++++ .../src/v2/components/shared/VersionTag.vue | 4 +-- frontend/src/v2/layouts/AuthLayout.vue | 28 +++---------------- frontend/src/v2/router/routes.test.ts | 8 ++++++ frontend/src/v2/router/routes.ts | 3 +- frontend/src/v2/views/DevicePairShell.vue | 17 +++-------- frontend/src/v2/views/PairDispatcher.vue | 23 --------------- frontend/src/v2/views/PairShell.vue | 17 +++-------- 9 files changed, 55 insertions(+), 78 deletions(-) create mode 100644 frontend/src/v2/components/shared/AuthFooter.vue delete mode 100644 frontend/src/v2/views/PairDispatcher.vue diff --git a/frontend/src/plugins/router.ts b/frontend/src/plugins/router.ts index ddbb0029b..aa1297314 100644 --- a/frontend/src/plugins/router.ts +++ b/frontend/src/plugins/router.ts @@ -508,7 +508,10 @@ const routes = [ { path: "/pair", name: ROUTES.PAIR, - component: () => import("@/v2/views/PairDispatcher.vue"), + components: { + default: () => import("@/views/Pair.vue"), + v2: v2For(ROUTES.PAIR), + }, }, // Console mode (separate UI namespace under /console): v1 only; v2 merges // console behavior into the main UI via the universal input system. diff --git a/frontend/src/v2/components/shared/AuthFooter.vue b/frontend/src/v2/components/shared/AuthFooter.vue new file mode 100644 index 000000000..4412c9279 --- /dev/null +++ b/frontend/src/v2/components/shared/AuthFooter.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/frontend/src/v2/components/shared/VersionTag.vue b/frontend/src/v2/components/shared/VersionTag.vue index 0f39bc3b2..389040d3d 100644 --- a/frontend/src/v2/components/shared/VersionTag.vue +++ b/frontend/src/v2/components/shared/VersionTag.vue @@ -1,6 +1,6 @@ @@ -16,10 +15,7 @@ import DevicePair from "@/v2/views/DevicePair.vue";
-
- -
- + @@ -68,15 +64,10 @@ import DevicePair from "@/v2/views/DevicePair.vue"; max-width: 460px; } -.r-v2-devpair-shell__lang { +/* Absolute so it stays out of the grid and the stage keeps its centring. */ +.r-v2-devpair-shell__footer { position: absolute; left: var(--r-space-4); - bottom: var(--r-space-3); - z-index: 1; -} - -.r-v2-devpair-shell__version { - position: absolute; right: var(--r-space-4); bottom: var(--r-space-3); z-index: 1; diff --git a/frontend/src/v2/views/PairDispatcher.vue b/frontend/src/v2/views/PairDispatcher.vue deleted file mode 100644 index 891f9a205..000000000 --- a/frontend/src/v2/views/PairDispatcher.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/frontend/src/v2/views/PairShell.vue b/frontend/src/v2/views/PairShell.vue index aead6248f..8e16eee24 100644 --- a/frontend/src/v2/views/PairShell.vue +++ b/frontend/src/v2/views/PairShell.vue @@ -2,8 +2,7 @@ // PairShell: minimal AuthLayout-equivalent for /pair under v2. We can't // reuse AuthLayout directly because /pair is a top-level route with no // nested ; the shell inlines Pair.vue instead. -import LanguageSelector from "@/v2/components/shared/LanguageSelector.vue"; -import VersionTag from "@/v2/components/shared/VersionTag.vue"; +import AuthFooter from "@/v2/components/shared/AuthFooter.vue"; import Pair from "@/v2/views/Pair.vue"; @@ -13,10 +12,7 @@ import Pair from "@/v2/views/Pair.vue";
-
- -
- + @@ -55,15 +51,10 @@ import Pair from "@/v2/views/Pair.vue"; max-width: 440px; } -.r-v2-pair-shell__lang { +/* Absolute so it stays out of the grid and the stage keeps its centring. */ +.r-v2-pair-shell__footer { position: absolute; left: var(--r-space-4); - bottom: var(--r-space-3); - z-index: 1; -} - -.r-v2-pair-shell__version { - position: absolute; right: var(--r-space-4); bottom: var(--r-space-3); z-index: 1;