Skip to content

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

Add success color

Tianzhou Chen7e0262b70b1f
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 29608848f6..16d4f822de 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -31,6 +31,12 @@
--color-error: #dc2626;
/* red-700 */
--color-error-hover: #b91c1c;
+
+ /* green-600 */
+ --color-success: #16a34a;
+ /* green-700 */
+ --color-success-hover: #15803d;
+
/* gray-200 */
--color-link-hover: #e5e7eb;
@@ -64,6 +70,10 @@
@apply border border-transparent rounded-md text-accent-text bg-error hover:bg-error-hover disabled:bg-error disabled:opacity-50 disabled:cursor-not-allowed px-4 py-2 text-sm leading-5 font-medium focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-2;
}
+.btn-success {
+ @apply border border-transparent rounded-md text-accent-text bg-success hover:bg-success-hover disabled:bg-success disabled:opacity-50 disabled:cursor-not-allowed px-4 py-2 text-sm leading-5 font-medium focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-2;
+}
+
.control {
@apply focus:ring-control focus:border-control border-control-border rounded-md;
}
diff --git a/frontend/src/bbkit/BBAlert.vue b/frontend/src/bbkit/BBAlert.vue
index 5c09bc214b..0dfb2a0f54 100644
--- a/frontend/src/bbkit/BBAlert.vue
+++ b/frontend/src/bbkit/BBAlert.vue
@@ -49,7 +49,7 @@
class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100"
>
<svg
- class="h-6 w-6 text-green-600"
+ class="h-6 w-6 text-success"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
diff --git a/frontend/src/bbkit/BBNotification.vue b/frontend/src/bbkit/BBNotification.vue
index b504e3f9b9..2878c4192d 100644
--- a/frontend/src/bbkit/BBNotification.vue
+++ b/frontend/src/bbkit/BBNotification.vue
@@ -29,7 +29,7 @@
<div class="flex items-start">
<div v-if="style == 'SUCCESS'" class="flex-shrink-0">
<svg
- class="h-6 w-6 text-green-600"
+ class="h-6 w-6 text-success"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
diff --git a/frontend/src/bbkit/BBStepBar.vue b/frontend/src/bbkit/BBStepBar.vue
index e62380ede8..1d06419fb8 100644
--- a/frontend/src/bbkit/BBStepBar.vue
+++ b/frontend/src/bbkit/BBStepBar.vue
@@ -121,7 +121,7 @@ export default {
case "RUNNING":
return "bg-white border-2 border-blue-600 text-blue-600 hover:text-blue-700 hover:border-blue-700";
case "DONE":
- return "bg-green-600 hover:bg-green-700 text-white";
+ return "bg-success hover:bg-success-hover text-white";
case "FAILED":
return "bg-error text-white hover:text-white hover:bg-error-hover";
case "CANCELED":
diff --git a/frontend/src/components/TaskTable.vue b/frontend/src/components/TaskTable.vue
index 9d862403c7..8e6e7e5451 100644
--- a/frontend/src/components/TaskTable.vue
+++ b/frontend/src/components/TaskTable.vue
@@ -127,7 +127,7 @@ const iconStatusMap = {
},
DONE: {
name: "Done",
- class: "bg-green-600 hover:bg-green-700 text-white",
+ class: "bg-success hover:bg-success-hover text-white",
},
FAILED: {
name: "Failed",
diff --git a/frontend/src/views/TaskActivityPanel.vue b/frontend/src/views/TaskActivityPanel.vue
index 258fa4706c..e27cc0bdbc 100644
--- a/frontend/src/views/TaskActivityPanel.vue
+++ b/frontend/src/views/TaskActivityPanel.vue
@@ -295,7 +295,7 @@
>
<!-- Heroicon name: solid/check-circle -->
<svg
- class="-ml-1 mr-2 h-5 w-5 text-green-500"
+ class="-ml-1 mr-2 h-5 w-5 text-success"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vue
index f663350ec2..dddfb19a8c 100644
--- a/frontend/src/views/TaskDetail.vue
+++ b/frontend/src/views/TaskDetail.vue
@@ -32,7 +32,7 @@
<button type="button" class="btn-primary px-4 py-2">Approve</button>
</template>
<template v-else-if="pendingState() === 'RESOLVE'">
- <button type="button" class="btn-primary px-4 py-2">Resolve</button>
+ <button type="button" class="btn-success px-4 py-2">Resolve</button>
</template>
<template v-else-if="pendingState() === 'RUNNING'">
<button type="button" class="btn-primary px-4 py-2">Cancel</button>
diff --git a/frontend/src/views/TaskFlow.vue b/frontend/src/views/TaskFlow.vue
index 513389a530..2bccd27b23 100644
--- a/frontend/src/views/TaskFlow.vue
+++ b/frontend/src/views/TaskFlow.vue
@@ -172,7 +172,7 @@ export default {
case "RUNNING":
return "bg-white border-2 border-blue-600 text-blue-600 hover:text-blue-700 hover:border-blue-700";
case "DONE":
- return "bg-green-600 hover:bg-green-700 text-white";
+ return "bg-success hover:bg-success-hover text-white";
case "FAILED":
return "bg-error text-white hover:text-white hover:bg-error-hover";
case "CANCELED":
diff --git a/frontend/src/views/TaskSidebar.vue b/frontend/src/views/TaskSidebar.vue
index f024e32062..cbe7c59177 100644
--- a/frontend/src/views/TaskSidebar.vue
+++ b/frontend/src/views/TaskSidebar.vue
@@ -72,7 +72,7 @@
<div class="flex items-center space-x-2">
<!-- Heroicon name: solid/lock-open -->
<svg
- class="h-5 w-5 text-green-500"
+ class="h-5 w-5 text-success"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
@@ -82,7 +82,7 @@
d="M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"
/>
</svg>
- <span class="text-green-700 text-sm font-medium">Open Issue</span>
+ <span class="text-success text-sm font-medium">Open Issue</span>
</div>
<div class="flex items-center space-x-2">
<!-- Heroicon name: solid/chat-alt -->
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 6e9b16daed..718cc2503b 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -30,6 +30,9 @@ module.exports = {
error: "var(--color-error)",
"error-hover": "var(--color-error-hover)",
+ success: "var(--color-success)",
+ "success-hover": "var(--color-success-hover)",
+
"link-hover": "var(--color-link-hover)",
"block-border": "var(--color-block-border)",