Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: remove plan check run expand button in issue page (#12841)
boojacke679cadb828e
diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vueindex 3d406c8239..8d57ad35ea 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue@@ -11,36 +11,13 @@<PlanCheckBadgeBar:plan-check-run-list="planCheckRunList"@select-type="selectedType = $event"- >- <NTooltip v-if="planCheckRunList.length > 0" trigger="hover">- <template #trigger>- <NButton- strong- secondary- circle- bordered- size="small"- type="tertiary"- @click="state.showPlanCheckDetail = true"- >- <template #icon>- <ChevronsUpDownIcon class="w-4 h-auto" />- </template>- </NButton>- </template>- {{ $t("common.expand") }}- </NTooltip>- </PlanCheckBadgeBar>+ /></div><div class="flex justify-end items-center shrink-0"><PlanCheckRunButton v-if="allowRunChecks" @run-checks="runChecks" /></div>- <div v-if="state.showPlanCheckDetail" class="w-full mt-2">- <PlanCheckPanel :plan-check-run-list="planCheckRunList" />- </div>-<PlanCheckModalv-if="planCheckRunList.length > 0 && selectedType":selected-type="selectedType"@@ -51,9 +28,7 @@</template><script lang="ts" setup>-import { ChevronsUpDownIcon } from "lucide-vue-next";-import { NButton, NTooltip } from "naive-ui";-import { reactive, ref } from "vue";+import { ref } from "vue";import {notifyNotEditableLegacyIssue,useIssueContext,@@ -66,13 +41,8 @@ import type {import type { VueClass } from "@/utils";import PlanCheckBadgeBar from "./PlanCheckBadgeBar.vue";import PlanCheckModal from "./PlanCheckModal.vue";-import PlanCheckPanel from "./PlanCheckPanel.vue";import PlanCheckRunButton from "./PlanCheckRunButton.vue";-interface LocalState {- showPlanCheckDetail: boolean;-}-withDefaults(defineProps<{allowRunChecks?: boolean;@@ -87,9 +57,6 @@ withDefaults();const { issue, events } = useIssueContext();-const state = reactive<LocalState>({- showPlanCheckDetail: !issue.value.rollout, // Show plan check detail by default if there is no rollout.-});const selectedType = ref<PlanCheckRun_Type>();const runChecks = () => {diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vueindex 4db7d5a5d7..5d91cb4bf7 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckPanel.vue@@ -9,7 +9,7 @@<PlanCheckBadgeBar:plan-check-run-list="planCheckRunList":selected-type="selectedTypeRef"- @select-type="(type) => (selectedTypeRef = type)"+ @select-type="handlePlanCheckRunTypeChange"/><PlanCheckDetail@@ -24,7 +24,7 @@<script setup lang="ts">import { first, orderBy } from "lodash-es";-import { computed, ref, watch } from "vue";+import { computed, ref } from "vue";import { useI18n } from "vue-i18n";import { databaseForSpec, useIssueContext } from "@/components/IssueV1/logic";import type { TabFilterItem } from "@/components/v2";@@ -100,25 +100,21 @@ const isLatestPlanCheckRun = computed(() => {const tabItemList = computed(() => {return selectedPlanCheckRunList.value.map<TabFilterItem<string>>(- (checkRun, i) => {+ (planCheckRun, i) => {const label =i === 0? t("common.latest")- : checkRun.createTime- ? humanizeDate(checkRun.createTime)- : `UID(${checkRun.uid})`;+ : planCheckRun.createTime+ ? humanizeDate(planCheckRun.createTime)+ : `UID(${planCheckRun.uid})`;return {label,- value: checkRun.uid,+ value: planCheckRun.uid,};});});-watch(selectedPlanCheckRunList, (list) => {- selectedPlanCheckRunUID.value = first(list)?.uid;-});-const database = computed(() => {const spec = selectedSpec.value;if (!spec || spec.id === String(EMPTY_ID)) {@@ -126,4 +122,9 @@ const database = computed(() => {}return databaseForSpec(issue.value, spec);});++const handlePlanCheckRunTypeChange = (type: PlanCheckRun_Type) => {+ selectedTypeRef.value = type;+ selectedPlanCheckRunUID.value = first(selectedPlanCheckRunList.value)?.uid;+};</script>