Skip to content

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

fix: resolve Vue warnings for missing template and invalid watch source (#17326)

boojackbdf3492d69db
diff --git a/frontend/src/components/DatabaseInfo.vue b/frontend/src/components/DatabaseInfo.vue
index b1bd85bdba..8b180884fc 100644
--- a/frontend/src/components/DatabaseInfo.vue
+++ b/frontend/src/components/DatabaseInfo.vue
@@ -8,7 +8,7 @@
>
<template
v-if="
- formatEnvironmentName(instanceEnvironment.id) !==
+ database.instanceResource.environment !==
database.effectiveEnvironment
"
#prefix
@@ -19,6 +19,7 @@
:show-icon="false"
:link="link"
:text-class="`text-control-light ${link ? 'hover:underline' : ''}`"
+ :null-environment-placeholder="'Null'"
/>
</template>
</InstanceV1Name>
@@ -35,6 +36,7 @@
:show-icon="false"
:link="link"
:text-class="`text-control-light ${link ? 'hover:underline' : ''}`"
+ :null-environment-placeholder="'Null'"
/>
<DatabaseV1Name
@@ -56,7 +58,7 @@ import {
InstanceV1Name,
} from "@/components/v2";
import { useEnvironmentV1Store } from "@/store";
-import { formatEnvironmentName, type ComposedDatabase } from "@/types";
+import { type ComposedDatabase } from "@/types";
const props = withDefaults(
defineProps<{
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue b/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
index d0770a73cc..e7ea8a0855 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/HeaderSection.vue
@@ -1,7 +1,7 @@
<template>
<div
- class="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 py-4"
- :class="sidebarMode === 'MOBILE' ? 'pl-6 pr-4' : 'px-6'"
+ class="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-2 py-2"
+ :class="sidebarMode === 'MOBILE' ? 'pl-4 pr-2' : 'px-4'"
>
<div class="flex-1 flex items-center gap-x-2">
<IssueStatusIcon
diff --git a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
index 1d08e9976e..26665616a9 100644
--- a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
+++ b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
@@ -163,7 +163,7 @@ const openChecksDrawer = (status: PlanCheckRun_Result_Status) => {
// Prepare plan check runs.
watch(
- [selectedSpec.value.id, statusCountString],
+ [() => selectedSpec.value.id, statusCountString],
async () => {
if (planSpecHasPlanChecks(selectedSpec.value)) {
await refreshResources(["planCheckRuns"], true /** force */);
diff --git a/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue b/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
index 9fe1ed9d46..3bac15d5fd 100644
--- a/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
+++ b/frontend/src/components/Plan/components/RolloutView/TaskRunTable.vue
@@ -75,11 +75,7 @@ const columnList = computed((): DataTableColumn<TaskRun>[] => {
key: "status",
width: 48,
render: (taskRun: TaskRun) => {
- return (
- <div class="flex items-center gap-1">
- <TaskRunStatusIcon status={taskRun.status} />
- </div>
- );
+ return <TaskRunStatusIcon status={taskRun.status} />;
},
},
{
diff --git a/frontend/src/views/project/PlanSpecsView.vue b/frontend/src/views/project/PlanSpecsView.vue
index 254385a86d..169e1ad852 100644
--- a/frontend/src/views/project/PlanSpecsView.vue
+++ b/frontend/src/views/project/PlanSpecsView.vue
@@ -1,3 +1,6 @@
+<!-- eslint-disable vue/valid-template-root -->
+<template></template>
+
<script lang="ts" setup>
import { head } from "lodash-es";
import { useRoute, useRouter } from "vue-router";