Skip to content

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

Style the pipeline type tag

Tianzhou Chen43b0c12e343b
diff --git a/frontend/src/components/PipelineTable.vue b/frontend/src/components/PipelineTable.vue
index 361ada61bc..9be368a53c 100644
--- a/frontend/src/components/PipelineTable.vue
+++ b/frontend/src/components/PipelineTable.vue
@@ -10,11 +10,19 @@
<span class="">#{{ pipeline.id }}</span>
</BBTableCell>
<BBTableCell class="w-16">
- <span class="">{{ pipeline.attributes.type }}</span>
+ <span
+ class="border border-gray-500 px-1 text-gray-600 text-xs font-semibold"
+ >
+ {{
+ pipeline.attributes.type == "AUTH"
+ ? capitalize(pipeline.attributes.type)
+ : pipeline.attributes.type
+ }}</span
+ >
</BBTableCell>
<BBTableCell class="w-16">
<span
- class="px-2 inline-flex text-xs font-semibold rounded-full"
+ class="px-2 py-1 inline-flex text-xs font-semibold rounded-full"
:class="statusMap[pipeline.attributes.status].class"
>
{{ statusMap[pipeline.attributes.status].name }}
@@ -39,6 +47,7 @@
<script lang="ts">
import { reactive, PropType } from "vue";
import { useRouter } from "vue-router";
+import capitalize from "lodash-es/capitalize";
import moment from "moment";
import {
BBTableColumn,
@@ -170,6 +179,7 @@ export default {
statusMap,
stageList,
humanize,
+ capitalize,
clickPipeline,
};
},
diff --git a/frontend/src/miragejs/factories/pipeline.js b/frontend/src/miragejs/factories/pipeline.js
index ba0a6061b0..b53b0bac7d 100644
--- a/frontend/src/miragejs/factories/pipeline.js
+++ b/frontend/src/miragejs/factories/pipeline.js
@@ -34,7 +34,7 @@ export default {
} else if (dice < 0.66) {
return "DML";
} else {
- return "OTHER";
+ return "AUTH";
}
},
currentStageId() {
diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.ts
index 028788cb7e..ae125fe97b 100644
--- a/frontend/src/types/bytebase.ts
+++ b/frontend/src/types/bytebase.ts
@@ -28,7 +28,7 @@ export type Pipeline = ResourceObject & {
createdTs: number;
lastUpdatedTs: number;
status: "CREATED" | "RUNNING" | "DONE" | "FAILED" | "CANCELED";
- type: "DDL" | "DML" | "OTHER";
+ type: "DDL" | "DML" | "AUTH";
currentStageId: string;
stageProgressList: {
stageId: string;