Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: several ui update (#10104)

ecmadao7d0230d523fa
diff --git a/frontend/src/NotificationContext.vue b/frontend/src/NotificationContext.vue
index 6ea4ec7bd7..2504950c92 100644
--- a/frontend/src/NotificationContext.vue
+++ b/frontend/src/NotificationContext.vue
@@ -48,7 +48,7 @@ const watchNotification = () => {
title: () =>
h(
"div",
- { class: "text-sm font-medium text-gray-900 whitespace-pre-wrap" },
+ { class: "text-sm font-medium text-gray-900 whitespace-pre-wrap mt-1" },
item.title
),
content: () =>
diff --git a/frontend/src/views/BannerDemo.vue b/frontend/src/views/BannerDemo.vue
index 16425925b5..f3a1e76e27 100644
--- a/frontend/src/views/BannerDemo.vue
+++ b/frontend/src/views/BannerDemo.vue
@@ -36,10 +36,12 @@
</div>
<div class="order-2 flex-shrink-0 sm:order-3 sm:ml-3 -mr-1">
- <NButton quaternary @click.prevent="show = false">
+ <NButton quaternary size="small" @click.prevent="show = false">
<span class="sr-only">{{ $t("common.dismiss") }}</span>
- <!-- Heroicon name: outline/x -->
- <heroicons-outline:x class="h-6 w-6 text-white" />
+ <template #icon>
+ <!-- Heroicon name: outline/x -->
+ <heroicons-outline:x class="h-6 w-6 text-white" />
+ </template>
</NButton>
</div>
</div>
diff --git a/frontend/src/views/BannerExternalUrl.vue b/frontend/src/views/BannerExternalUrl.vue
index 799e8a0b9f..bd1f119553 100644
--- a/frontend/src/views/BannerExternalUrl.vue
+++ b/frontend/src/views/BannerExternalUrl.vue
@@ -21,10 +21,12 @@
</router-link>
</div>
<div class="order-2 flex-shrink-0 sm:order-3 sm:ml-3 -mr-1">
- <NButton @click.prevent="show = false">
+ <NButton quaternary size="small" @click.prevent="show = false">
<span class="sr-only">{{ $t("common.dismiss") }}</span>
- <!-- Heroicon name: outline/x -->
- <heroicons-outline:x class="h-6 w-6 text-white" />
+ <template #icon>
+ <!-- Heroicon name: outline/x -->
+ <heroicons-outline:x class="h-6 w-6 text-white" />
+ </template>
</NButton>
</div>
</div>
diff --git a/frontend/src/views/auth/Activate.vue b/frontend/src/views/auth/Activate.vue
index 0a9a157447..9ded0f457e 100644
--- a/frontend/src/views/auth/Activate.vue
+++ b/frontend/src/views/auth/Activate.vue
@@ -42,10 +42,9 @@
</label>
<div class="mt-1 rounded-md shadow-sm">
<BBTextField
- id="password"
v-model:value="state.password"
type="password"
- autocomplete="on"
+ :input-props="{ id: 'password', autocomplete: 'on' }"
required
/>
</div>
diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vue
index 6b0d3fde42..a627e836fa 100644
--- a/frontend/src/views/auth/Signin.vue
+++ b/frontend/src/views/auth/Signin.vue
@@ -27,9 +27,13 @@
</label>
<div class="mt-1 rounded-md shadow-sm">
<BBTextField
- id="email"
v-model:value="state.email"
required
+ :input-props="{
+ id: 'email',
+ autocomplete: 'on',
+ type: 'email',
+ }"
placeholder="[email protected]"
/>
</div>
@@ -61,10 +65,9 @@
class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"
>
<BBTextField
- id="password"
v-model:value="state.password"
:type="state.showPassword ? 'text' : 'password'"
- autocomplete="on"
+ :input-props="{ id: 'password', autocomplete: 'on' }"
required
/>
<div
@@ -146,10 +149,10 @@
</label>
<div class="mt-1 rounded-md shadow-sm">
<BBTextField
- id="username"
v-model:value="state.email"
required
placeholder="jim"
+ :input-props="{ id: 'username', autocomplete: 'on' }"
/>
</div>
</div>
@@ -168,10 +171,9 @@
class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"
>
<BBTextField
- id="password"
v-model:value="state.password"
:type="state.showPassword ? 'text' : 'password'"
- autocomplete="on"
+ :input-props="{ id: 'password', autocomplete: 'on' }"
required
/>
<div
@@ -299,7 +301,7 @@ onMounted(async () => {
const params = new URLSearchParams(url.search);
state.email = params.get("email") ?? (isDemo.value ? "[email protected]" : "");
state.password = params.get("password") ?? (isDemo.value ? "1024" : "");
- state.showPassword = isDemo.value != null;
+ state.showPassword = !!isDemo.value;
await identityProviderStore.fetchIdentityProviderList();
if (
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vue
index 77ba4de4e3..93e6e32ad6 100644
--- a/frontend/src/views/auth/Signup.vue
+++ b/frontend/src/views/auth/Signup.vue
@@ -36,10 +36,10 @@
</label>
<div class="mt-1 rounded-md shadow-sm">
<BBTextField
- id="email"
v-model:value="state.email"
required
placeholder="[email protected]"
+ :input-props="{ id: 'email' }"
@input="onTextEmail"
/>
</div>
@@ -57,10 +57,9 @@
class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"
>
<BBTextField
- id="password"
v-model:value="state.password"
:type="state.showPassword ? 'text' : 'password'"
- autocomplete="off"
+ :input-props="{ id: 'password', autocomplete: 'off' }"
required
@input="refreshPasswordValidation"
/>
@@ -100,10 +99,9 @@
class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"
>
<BBTextField
- id="password-confirm"
v-model:value="state.passwordConfirm"
:type="state.showPassword ? 'text' : 'password'"
- autocomplete="off"
+ :input-props="{ id: 'password-confirm', autocomplete: 'off' }"
:placeholder="$t('auth.sign-up.confirm-password-placeholder')"
required
@input="refreshPasswordValidation"