Skip to content

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

Add Archive view stub and the sidebar item.

天舟03261f3c59ee
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index aca07a17e3..ec7a8882e7 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -39,6 +39,25 @@
<div class="flex-1 h-0 py-4 overflow-y-auto">
<router-view name="leftSidebar" />
</div>
+ <router-link
+ to="/archive"
+ class="outline-item group flex items-center px-4 py-2"
+ >
+ <svg
+ class="w-5 h-5 mr-2"
+ fill="currentColor"
+ viewBox="0 0 20 20"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d="M4 3a2 2 0 100 4h12a2 2 0 100-4H4z"></path>
+ <path
+ fill-rule="evenodd"
+ d="M3 8h14v7a2 2 0 01-2 2H5a2 2 0 01-2-2V8zm5 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"
+ clip-rule="evenodd"
+ ></path>
+ </svg>
+ Archive
+ </router-link>
<div
class="flex-shrink-0 flex border-t border-block-border px-4 py-2"
>
@@ -79,6 +98,25 @@
<div class="flex-1 flex flex-col py-2 overflow-y-auto">
<router-view name="leftSidebar" />
</div>
+ <router-link
+ to="/archive"
+ class="outline-item group flex items-center px-4 py-2"
+ >
+ <svg
+ class="w-5 h-5 mr-2"
+ fill="currentColor"
+ viewBox="0 0 20 20"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d="M4 3a2 2 0 100 4h12a2 2 0 100-4H4z"></path>
+ <path
+ fill-rule="evenodd"
+ d="M3 8h14v7a2 2 0 01-2 2H5a2 2 0 01-2-2V8zm5 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"
+ clip-rule="evenodd"
+ ></path>
+ </svg>
+ Archive
+ </router-link>
<div
v-if="showIntro"
class="flex-shrink-0 flex justify-center border-t border-block-border py-2"
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 9cd04a513b..6c392e52c0 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -164,6 +164,19 @@ const routes: Array<RouteRecordRaw> = [
leftSidebar: true,
},
},
+ {
+ path: "archive",
+ name: "workspace.archive",
+ meta: { title: () => "Archive" },
+ components: {
+ content: () => import("../views/Archive.vue"),
+ leftSidebar: DashboardSidebar,
+ },
+ props: {
+ content: true,
+ leftSidebar: true,
+ },
+ },
{
// "u" stands for user. Strictly speaking, it's not accurate because we
// may refer to other principal type in the future. But from the endusers'
@@ -526,6 +539,7 @@ router.beforeEach((to, from, next) => {
to.name === "error.500" ||
to.name === "workspace.home" ||
to.name === "workspace.inbox" ||
+ to.name === "workspace.archive" ||
to.name === "workspace.environment" ||
to.name === "workspace.database" ||
to.name === "workspace.database.create" ||
diff --git a/frontend/src/views/Archive.vue b/frontend/src/views/Archive.vue
new file mode 100644
index 0000000000..43040ba004
--- /dev/null
+++ b/frontend/src/views/Archive.vue
@@ -0,0 +1,12 @@
+<template>
+ <h1>Archive</h1>
+ <div class="flex-shrink-0 flex border-t border-block-border p-4"></div>
+</template>
+
+<script lang="ts">
+export default {
+ name: "Archive",
+ components: {},
+ setup(props, ctx) {},
+};
+</script>