Skip to content

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

Request DB Stub

Tianzhou Chen0861b014d4fe
diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vue
index 2107d42db8..b4978c48b1 100644
--- a/frontend/src/components/QuickActionPanel.vue
+++ b/frontend/src/components/QuickActionPanel.vue
@@ -19,7 +19,7 @@
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
- d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"
></path>
</svg>
</span>
@@ -122,6 +122,35 @@
</h3>
</div>
+ <div
+ v-if="quickActionList.includes('datasource.add')"
+ class="flex flex-col items-center w-28"
+ >
+ <router-link to="/datasource/new" class="btn-icon">
+ <span
+ class="inline-flex items-center p-3 bg-blue-600 hover:bg-blue-700 rounded-full"
+ >
+ <svg
+ class="w-6 h-6 text-white"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
+ ></path>
+ </svg>
+ </span>
+ </router-link>
+ <h3 class="mt-1 text-base font-normal text-accent tracking-tight">
+ Request DB
+ </h3>
+ </div>
+
<div
v-if="quickActionList.includes('datasource.schema.edit')"
class="flex flex-col items-center w-28"
@@ -180,7 +209,7 @@
<div
v-if="quickActionList.includes('environment.add')"
- class="flex flex-col items-center w-28"
+ class="flex flex-col items-center w-36"
>
<button class="btn-icon">
<span
@@ -203,7 +232,9 @@
</svg>
</span>
</button>
- <h3 class="mt-1 text-center text-base font-normal text-accent">New</h3>
+ <h3 class="mt-1 text-center text-base font-normal text-accent">
+ Add Environment
+ </h3>
</div>
<div
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index c44bf00ef8..f8664942b2 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -56,8 +56,7 @@ const routes: Array<RouteRecordRaw> = [
quickActionList: [
"instance.add",
"user.manage",
- "datasource.query",
- "datasource.data.edit",
+ "datasource.add",
"datasource.schema.edit",
"ticket.create",
],
@@ -246,6 +245,20 @@ const routes: Array<RouteRecordRaw> = [
},
props: { content: true },
},
+ {
+ path: "datasource/new",
+ name: "workspace.datasource.detail",
+ meta: {
+ title: () => "Request Database",
+ },
+ components: {
+ content: defineAsyncComponent(
+ () => import("../views/DataSourceDetail.vue")
+ ),
+ leftSidebar: MainSidebar,
+ },
+ props: { content: true, leftSidebar: true },
+ },
{
path: "pipeline/:pipelineId",
name: "workspace.pipeline.detail",
@@ -314,6 +327,7 @@ router.beforeEach((to, from, next) => {
to.name === "workspace.inbox" ||
to.name === "workspace.environment" ||
to.name === "workspace.instance" ||
+ to.name === "workspace.datasource.detail" ||
to.name?.toString().startsWith("setting")
) {
next();
diff --git a/frontend/src/views/DataSourceDetail.vue b/frontend/src/views/DataSourceDetail.vue
new file mode 100644
index 0000000000..82032fc175
--- /dev/null
+++ b/frontend/src/views/DataSourceDetail.vue
@@ -0,0 +1,11 @@
+<template>
+ <div>DataSource Detail</div>
+</template>
+
+<script lang="ts">
+export default {
+ name: "DataSourceDetail",
+ props: {},
+ setup(props, ctx) {},
+};
+</script>