Skip to content

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

Add BBAttention

天舟137f4379691d
diff --git a/frontend/src/bbkit/BBAttention.vue b/frontend/src/bbkit/BBAttention.vue
new file mode 100644
index 0000000000..0422e2fab0
--- /dev/null
+++ b/frontend/src/bbkit/BBAttention.vue
@@ -0,0 +1,48 @@
+<template>
+ <div class="rounded-md bg-yellow-50 p-4">
+ <div class="flex">
+ <div class="flex-shrink-0">
+ <!-- Heroicon name: solid/exclamation -->
+ <svg
+ class="h-5 w-5 text-yellow-400"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fill-rule="evenodd"
+ d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
+ clip-rule="evenodd"
+ />
+ </svg>
+ </div>
+ <div class="ml-3">
+ <h3 class="text-sm font-medium text-yellow-800">{{ title }}</h3>
+ <div v-if="description" class="mt-2 text-sm text-yellow-700">
+ <p>
+ {{ description }}
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script lang="ts">
+export default {
+ name: "BBAttention",
+ emits: ["toggle"],
+ props: {
+ title: {
+ default: "Attention needed",
+ type: String,
+ },
+ description: {
+ default: "",
+ type: String,
+ },
+ },
+ setup(props, ctx) {},
+};
+</script>
diff --git a/frontend/src/bbkit/index.ts b/frontend/src/bbkit/index.ts
index 9196178dcd..cefd063cc6 100644
--- a/frontend/src/bbkit/index.ts
+++ b/frontend/src/bbkit/index.ts
@@ -1,4 +1,5 @@
import BBAlert from "./BBAlert.vue";
+import BBAttention from "./BBAttention.vue";
import BBAvatar from "./BBAvatar.vue";
import BBButtonAdd from "./BBButtonAdd.vue";
import BBButtonConfirm from "./BBButtonConfirm.vue";
@@ -24,6 +25,7 @@ import {
export {
BBAlert,
+ BBAttention,
BBAvatar,
BBButtonAdd,
BBButtonConfirm,
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 6e47c645cd..0f60b1c100 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -12,6 +12,7 @@ import "./assets/css/tailwind.css";
import { makeServer } from "./miragejs/server";
import {
BBAlert,
+ BBAttention,
BBAvatar,
BBButtonAdd,
BBButtonConfirm,
@@ -167,6 +168,7 @@ app
.use(router)
.use(VueClipboard)
.component("BBAlert", BBAlert)
+ .component("BBAttention", BBAttention)
.component("BBAvatar", BBAvatar)
.component("BBButtonAdd", BBButtonAdd)
.component("BBButtonConfirm", BBButtonConfirm)