Skip to content

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

refactor(sql-editor): move sql editor icon on the left side of inbox icon (#447)

Yunwei Xiaoa22dacf3e5e9
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 2ec6ab973b..d4e73e0e6a 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -104,14 +104,7 @@
{{ $t("common.role.developer") }}
</div>
</div>
- <router-link to="/inbox" exact-active-class>
- <span
- v-if="inboxSummary.hasUnread"
- class="absolute rounded-full ml-4 -mt-1 h-2.5 w-2.5 bg-accent opacity-75"
- ></span>
- <heroicons-outline:bell class="w-6 h-6" />
- </router-link>
- <router-link to="/sql-editor" class="bar-link px-2 py-2 rounded-md">
+ <router-link to="/sql-editor">
<NTooltip>
<template #trigger>
<heroicons-outline:terminal class="w-6 h-6" />
@@ -119,6 +112,13 @@
{{ $t("sql-editor.self") }}
</NTooltip>
</router-link>
+ <router-link to="/inbox" exact-active-class>
+ <span
+ v-if="inboxSummary.hasUnread"
+ class="absolute rounded-full ml-4 -mt-1 h-2.5 w-2.5 bg-accent opacity-75"
+ ></span>
+ <heroicons-outline:bell class="w-6 h-6" />
+ </router-link>
<div v-if="isDevFeatures" class="cursor-pointer" @click="toggleLocales">
<heroicons-outline:translate class="w-6 h-6" />
</div>
diff --git a/frontend/src/views/DashboardSidebar.vue b/frontend/src/views/DashboardSidebar.vue
index e3cb3665e8..9926e36944 100644
--- a/frontend/src/views/DashboardSidebar.vue
+++ b/frontend/src/views/DashboardSidebar.vue
@@ -6,18 +6,18 @@
{{ $t("common.home") }}
</router-link>
<router-link
- to="/anomaly-center"
+ to="/sql-editor"
class="outline-item group flex items-center px-2 py-2"
>
- <heroicons-outline:shield-exclamation class="w-5 h-5 mr-2" />
- {{ $t("anomaly-center") }}
+ <heroicons-outline:terminal class="w-5 h-5 mr-2" />
+ {{ $t("sql-editor.self") }}
</router-link>
<router-link
- to="/sql-editor"
+ to="/anomaly-center"
class="outline-item group flex items-center px-2 py-2"
>
- <heroicons-outline:terminal class="w-5 h-5 mr-2" />
- {{ $t("sql-editor.self") }}
+ <heroicons-outline:shield-exclamation class="w-5 h-5 mr-2" />
+ {{ $t("anomaly-center") }}
</router-link>
<div>
<BookmarkListSidePanel />