From 597f22894c66e3438c7e46e23ca26e9b65f3f18c Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 18 Jul 2026 19:48:43 -0400 Subject: [PATCH] fix(v2): render visible labels on device-auth and token expiry selects The v2 RSelect/RTextField only render a visible label when `prefix-label` is set; with just `:label` the text degrades to a placeholder + aria-label. Because these fields always hold a value, the placeholder never shows, so no label was ever visible. Add `prefix-label="stacked"` to: - the "Token expires in" select (and the "Device name" field beside it) on the device authorization screen (DevicePair.vue) - the "Expiration" select in the create-client-token dialog, which had the same latent issue Fixes #3814 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../v2/components/Settings/CreateClientTokenDialog.vue | 1 + frontend/src/v2/views/DevicePair.vue | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/v2/components/Settings/CreateClientTokenDialog.vue b/frontend/src/v2/components/Settings/CreateClientTokenDialog.vue index 762218b29..dc5379442 100644 --- a/frontend/src/v2/components/Settings/CreateClientTokenDialog.vue +++ b/frontend/src/v2/components/Settings/CreateClientTokenDialog.vue @@ -416,6 +416,7 @@ onBeforeUnmount(() => { v-model="selectedExpiry" :items="expiryOptions" :label="t('settings.client-token-select-expiry')" + prefix-label="stacked" variant="outlined" density="comfortable" hide-details diff --git a/frontend/src/v2/views/DevicePair.vue b/frontend/src/v2/views/DevicePair.vue index c449329a0..9b17a57c6 100644 --- a/frontend/src/v2/views/DevicePair.vue +++ b/frontend/src/v2/views/DevicePair.vue @@ -20,12 +20,7 @@ import deviceAuthApi, { type ApiError = AxiosError<{ detail?: string }>; type Status = - | "loading" - | "ready" - | "submitting" - | "approved" - | "denied" - | "error"; + "loading" | "ready" | "submitting" | "approved" | "denied" | "error"; const route = useRoute(); const { t } = useI18n(); @@ -227,6 +222,7 @@ async function deny() { @@ -279,6 +275,7 @@ async function deny() {