Skip to content

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

chore: remove unused files in plan (#14469)

boojack481441da05b0
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
index f09c26cd42..2a5d7c9d39 100644
--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
@@ -24,11 +24,16 @@
</span>
</MaskSpinner>
- <NTabs v-model:value="state.selectedTab" type="card" style="flex: 1">
+ <NTabs
+ v-model:value="state.selectedTab"
+ size="small"
+ type="card"
+ class="flex-1"
+ >
<NTabPane
+ class="flex-1"
name="schema-editor"
:tab="$t('schema-editor.self')"
- style="flex: 1"
display-directive="show:lazy"
>
<SchemaEditorLite
@@ -42,9 +47,9 @@
/>
</NTabPane>
<NTabPane
+ class="flex-1"
name="raw-sql"
:tab="$t('schema-editor.raw-sql')"
- style="flex: 1"
display-directive="show:lazy"
>
<div class="w-full h-full grid grid-rows-[50px,_1fr] overflow-y-auto">
diff --git a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue
index 46d4297dd0..08d5de3e57 100644
--- a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue
+++ b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue
@@ -35,11 +35,11 @@
<script setup lang="ts">
import { computed, ref } from "vue";
+import { TaskSpinner } from "@/components/IssueV1/components/common";
import { SQLCheckPanel } from "@/components/SQLCheck";
import type { Advice } from "@/types/proto/v1/sql_service";
import { Advice_Status } from "@/types/proto/v1/sql_service";
import { databaseForSpec, usePlanContext } from "../../logic";
-import { TaskSpinner } from "../common";
const props = defineProps<{
isRunning: boolean;
diff --git a/frontend/src/components/Plan/components/common/DropdownItemWithErrorList.vue b/frontend/src/components/Plan/components/common/DropdownItemWithErrorList.vue
deleted file mode 100644
index 3de4e2e66e..0000000000
--- a/frontend/src/components/Plan/components/common/DropdownItemWithErrorList.vue
+++ /dev/null
@@ -1,23 +0,0 @@
-<template>
- <NTooltip
- :disabled="errors.length === 0"
- :keep-alive-on-hover="false"
- style="width: max-content"
- >
- <template #trigger>
- <slot />
- </template>
- <template #default>
- <ErrorList :errors="errors" />
- </template>
- </NTooltip>
-</template>
-
-<script lang="ts" setup>
-import { NTooltip } from "naive-ui";
-import ErrorList from "./ErrorList.vue";
-
-defineProps<{
- errors: string[];
-}>();
-</script>
diff --git a/frontend/src/components/Plan/components/common/TaskSpinner.vue b/frontend/src/components/Plan/components/common/TaskSpinner.vue
deleted file mode 100644
index 5ce2098fc7..0000000000
--- a/frontend/src/components/Plan/components/common/TaskSpinner.vue
+++ /dev/null
@@ -1,22 +0,0 @@
-<template>
- <svg
- class="animate-spin"
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- >
- <circle
- class="opacity-25"
- cx="12"
- cy="12"
- r="10"
- stroke="currentColor"
- stroke-width="4"
- />
- <path
- class="opacity-75"
- fill="currentColor"
- d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
- />
- </svg>
-</template>
diff --git a/frontend/src/components/Plan/components/common/index.ts b/frontend/src/components/Plan/components/common/index.ts
index 0cdc6f3693..54c6860e1a 100644
--- a/frontend/src/components/Plan/components/common/index.ts
+++ b/frontend/src/components/Plan/components/common/index.ts
@@ -1,5 +1,3 @@
-import DropdownItemWithErrorList from "./DropdownItemWithErrorList.vue";
import ErrorList from "./ErrorList.vue";
-import TaskSpinner from "./TaskSpinner.vue";
-export { ErrorList, DropdownItemWithErrorList, TaskSpinner };
+export { ErrorList };
diff --git a/frontend/src/components/Plan/logic/common.ts b/frontend/src/components/Plan/logic/common.ts
deleted file mode 100644
index e69de29bb2..0000000000