Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add tooltip css class and use it to indicate whether the project is version control enabled in the database list
天舟643ad155c4d2
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.cssindex fc71efbd0c..a2f7231341 100644--- a/frontend/src/assets/css/tailwind.css+++ b/frontend/src/assets/css/tailwind.css@@ -171,3 +171,11 @@.anchor-link {@apply cursor-pointer hover:underline focus:outline-none;}++.tooltip {+ @apply invisible absolute -mt-8 ml-2 px-2 py-1 rounded bg-black bg-opacity-75 text-white;+}++.tooltip-wrapper:hover .tooltip {+ @apply visible z-50;+}diff --git a/frontend/src/components/DatabaseTable.vue b/frontend/src/components/DatabaseTable.vueindex 0d9b625276..ebbfd3d25b 100644--- a/frontend/src/components/DatabaseTable.vue+++ b/frontend/src/components/DatabaseTable.vue@@ -9,7 +9,36 @@><template v-slot:body="{ rowData: database }"><BBTableCell v-if="showProjectColumn" :leftPadding="4" class="w-16">- {{ projectName(database.project) }}+ <div class="flex flex-row space-x-2 items-center">+ <div class="tooltip-wrapper">+ <svg+ v-if="database.project.workflowType == 'UI'"+ class="w-4 h-4"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ ></svg>+ <template v-else-if="database.project.workflowType == 'VCS'">+ <span class="tooltip">Version control enabled</span>+ <svg+ class="w-4 h-4 text-control hover:text-control-hover"+ 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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"+ ></path>+ </svg>+ </template>+ </div>+ <div>{{ projectName(database.project) }}</div>+ </div></BBTableCell><BBTableCell:leftPadding="showProjectColumn ? undefined : 4"