Skip to content

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

fix: add definition link and panel for pre check (#9398)

rebelice2d4975ea8217
diff --git a/frontend/src/components/SQLCheck/SQLCheckDetail.vue b/frontend/src/components/SQLCheck/SQLCheckDetail.vue
index 3e1d1adbf9..5a681ec50d 100644
--- a/frontend/src/components/SQLCheck/SQLCheckDetail.vue
+++ b/frontend/src/components/SQLCheck/SQLCheckDetail.vue
@@ -34,6 +34,14 @@
<div class="bb-grid-cell">
<div>
<span>{{ row.content }}</span>
+ <template v-if="row.advice.detail">
+ <span
+ class="ml-1 normal-link"
+ @click="state.activeResultDefinition = row.advice.detail"
+ >{{ $t("sql-review.view-definition") }}</span
+ >
+ <span class="border-r border-control-border ml-1"></span>
+ </template>
<template v-if="getActiveRule(row.advice.title as RuleType)">
<span
class="ml-1 normal-link"
@@ -64,6 +72,12 @@
:disabled="true"
@cancel="state.activeRule = undefined"
/>
+
+ <PlanCheckResultDefinitionModal
+ v-if="state.activeResultDefinition"
+ :definition="state.activeResultDefinition"
+ @cancel="state.activeResultDefinition = undefined"
+ />
</template>
<script setup lang="ts">