Skip to content

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

chore: move archive from sidebar to setting tab (#9091)

ecmadaoc2227f720130
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index 880c5104d6..8757be724a 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -98,13 +98,6 @@
<div class="flex-1 flex flex-col py-0 overflow-y-auto">
<router-view name="leftSidebar" />
</div>
- <router-link
- to="/archive"
- class="outline-item group flex items-center px-4 py-1.5"
- >
- <heroicons-outline:archive class="w-5 h-5 mr-2" />
- {{ $t("common.archive") }}
- </router-link>
<div
class="flex-shrink-0 flex justify-between border-t border-block-border px-3 py-1.5"
>
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index cf96783875..3a7278559e 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -56,6 +56,7 @@ import {
} from "@/utils";
import DashboardSidebar from "@/views/DashboardSidebar.vue";
import Home from "@/views/Home.vue";
+import SettingSidebar from "@/views/SettingSidebar.vue";
import MultiFactor from "@/views/auth/MultiFactor.vue";
import Signin from "@/views/auth/Signin.vue";
import Signup from "@/views/auth/Signup.vue";
@@ -311,10 +312,10 @@ const routes: Array<RouteRecordRaw> = [
{
path: "archive",
name: "workspace.archive",
- meta: { title: () => t("common.archive") },
+ meta: { title: () => t("common.archived") },
components: {
content: () => import("../views/Archive.vue"),
- leftSidebar: DashboardSidebar,
+ leftSidebar: SettingSidebar,
},
props: {
content: true,
@@ -340,7 +341,7 @@ const routes: Array<RouteRecordRaw> = [
},
components: {
content: () => import("../views/ProfileDashboard.vue"),
- leftSidebar: () => import("../views/SettingSidebar.vue"),
+ leftSidebar: SettingSidebar,
},
props: { content: true },
},
@@ -350,7 +351,7 @@ const routes: Array<RouteRecordRaw> = [
meta: { title: () => t("common.settings") },
components: {
content: () => import("../layouts/SettingLayout.vue"),
- leftSidebar: () => import("../views/SettingSidebar.vue"),
+ leftSidebar: SettingSidebar,
},
props: {
content: true,
diff --git a/frontend/src/views/SettingSidebar.vue b/frontend/src/views/SettingSidebar.vue
index aba88d7584..b0776d1e08 100644
--- a/frontend/src/views/SettingSidebar.vue
+++ b/frontend/src/views/SettingSidebar.vue
@@ -8,7 +8,13 @@
</template>
<script lang="ts" setup>
-import { UserCircle, Building, ShieldCheck, Link } from "lucide-vue-next";
+import {
+ UserCircle,
+ Building,
+ ShieldCheck,
+ Link,
+ Archive,
+} from "lucide-vue-next";
import { computed, h } from "vue";
import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
@@ -196,6 +202,11 @@ const settingSidebarItemList = computed((): SidebarItem[] => {
},
],
},
+ {
+ title: t("common.archived"),
+ icon: h(Archive),
+ path: "/archive",
+ },
];
});
</script>