Skip to content

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

TaskCheck UI tweak

天舟a7f604c5d69f
diff --git a/frontend/src/components/TaskCheckBadgeBar.vue b/frontend/src/components/TaskCheckBadgeBar.vue
index 391f128fd5..45ed85cb26 100644
--- a/frontend/src/components/TaskCheckBadgeBar.vue
+++ b/frontend/src/components/TaskCheckBadgeBar.vue
@@ -48,7 +48,7 @@
<template v-else-if="checkRun.status == 'DONE'">
<template v-if="taskCheckStatus(checkRun) == 'SUCCESS'">
<svg
- class="-ml-1 mr-1.5 h-4 w-4 text-success"
+ class="-ml-1 mr-1.5 mt-0.5 h-4 w-4 text-success"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -63,13 +63,8 @@
</svg>
</template>
<template v-else-if="taskCheckStatus(checkRun) == 'WARN'">
- <span class="mr-1.5 font-medium text-warning" aria-hidden="true"
- >!</span
- >
- </template>
- <template v-else-if="taskCheckStatus(checkRun) == 'ERROR'">
<svg
- class="-ml-1 mr-1.5 h-4 w-4 text-error"
+ class="-ml-1 mr-1.5 mt-0.5 h-4 w-4 text-warning"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -79,30 +74,24 @@
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
- d="M6 18L18 6M6 6l12 12"
+ d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
></path>
</svg>
</template>
+ <template v-else-if="taskCheckStatus(checkRun) == 'ERROR'">
+ <span class="mr-1.5 font-medium text-error" aria-hidden="true"
+ >!</span
+ >
+ </template>
</template>
<template v-else-if="checkRun.status == 'FAILED'">
- <svg
- class="-ml-1 mr-1.5 h-4 w-4 text-error"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
+ <span class="mr-1.5 font-medium text-error" aria-hidden="true"
+ >!</span
>
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M6 18L18 6M6 6l12 12"
- ></path>
- </svg>
</template>
<template v-else-if="checkRun.status == 'CANCELED'">
<svg
- class="-ml-1 mr-1.5 h-4 w-4 text-control"
+ class="-ml-1 mr-1.5 mt-0.5 h-4 w-4 text-control"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
diff --git a/frontend/src/components/TaskCheckBar.vue b/frontend/src/components/TaskCheckBar.vue
index 2f125fe1e2..2c0a5d7267 100644
--- a/frontend/src/components/TaskCheckBar.vue
+++ b/frontend/src/components/TaskCheckBar.vue
@@ -1,5 +1,5 @@
<template>
- <div class="flex items-center space-x-2">
+ <div class="flex items-center space-x-4">
<button
type="button"
class="btn-small py-0.5"
@@ -21,17 +21,19 @@
:title="`Check result for '${task.name}'`"
@close="dimissModal"
>
- <div class="divide-y divide-block-border space-y-4 w-208">
- <TaskCheckBadgeBar
- :taskCheckRunList="task.taskCheckRunList"
- :showSelection="true"
- :selectedTaskCheckRun="state.selectedTaskCheckRun"
- @select-task-check-run="
- (checkRun) => {
- viewCheckRunDetail(checkRun);
- }
- "
- />
+ <div class="space-y-4 w-208">
+ <div>
+ <TaskCheckBadgeBar
+ :taskCheckRunList="task.taskCheckRunList"
+ :showSelection="true"
+ :selectedTaskCheckRun="state.selectedTaskCheckRun"
+ @select-task-check-run="
+ (checkRun) => {
+ viewCheckRunDetail(checkRun);
+ }
+ "
+ />
+ </div>
<BBTabFilter
class="pt-4"
:tabItemList="tabItemList"
diff --git a/frontend/src/components/TaskCheckRunPanel.vue b/frontend/src/components/TaskCheckRunPanel.vue
index 33604546e3..bb39b7b059 100644
--- a/frontend/src/components/TaskCheckRunPanel.vue
+++ b/frontend/src/components/TaskCheckRunPanel.vue
@@ -1,78 +1,82 @@
<template>
- <BBTable
- :columnList="columnList"
- :dataSource="taskCheckRun.result.resultList"
- :showHeader="false"
- :leftBordered="true"
- :rightBordered="true"
- :topBordered="true"
- :bottomBordered="true"
- :rowClickable="false"
- >
- <template v-slot:body="{ rowData: checkResult }">
- <BBTableCell :leftPadding="4" class="table-cell w-4">
- <div class="flex flex-row space-x-2">
- <div
- class="
- relative
- w-5
- h-5
- flex flex-shrink-0
- items-center
- justify-center
- rounded-full
- select-none
- "
- :class="statusIconClass(checkResult.status)"
- >
- <template v-if="checkResult.status == 'SUCCESS'">
- <svg
- class="w-4 h-4"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 20 20"
- fill="currentColor"
- aria-hidden="true"
- >
- <path
- fill-rule="evenodd"
- d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
- clip-rule="evenodd"
- />
- </svg>
- </template>
- <template v-if="checkResult.status == 'WARN'">
- <svg
- class="h-4 w-4"
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- stroke="currentColor"
- aria-hidden="true"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
- ></path>
- </svg>
- </template>
- <template v-else-if="checkResult.status == 'ERROR'">
- <span class="text-white font-medium text-base" aria-hidden="true"
- >!</span
- >
- </template>
+ <div>
+ <BBTable
+ :columnList="columnList"
+ :dataSource="taskCheckRun.result.resultList"
+ :showHeader="false"
+ :leftBordered="true"
+ :rightBordered="true"
+ :topBordered="true"
+ :bottomBordered="true"
+ :rowClickable="false"
+ >
+ <template v-slot:body="{ rowData: checkResult }">
+ <BBTableCell :leftPadding="4" class="table-cell w-4">
+ <div class="flex flex-row space-x-2">
+ <div
+ class="
+ relative
+ w-5
+ h-5
+ flex flex-shrink-0
+ items-center
+ justify-center
+ rounded-full
+ select-none
+ "
+ :class="statusIconClass(checkResult.status)"
+ >
+ <template v-if="checkResult.status == 'SUCCESS'">
+ <svg
+ class="w-4 h-4"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20"
+ fill="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ fill-rule="evenodd"
+ d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
+ clip-rule="evenodd"
+ />
+ </svg>
+ </template>
+ <template v-if="checkResult.status == 'WARN'">
+ <svg
+ class="h-4 w-4"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
+ ></path>
+ </svg>
+ </template>
+ <template v-else-if="checkResult.status == 'ERROR'">
+ <span
+ class="text-white font-medium text-base"
+ aria-hidden="true"
+ >!</span
+ >
+ </template>
+ </div>
</div>
- </div>
- </BBTableCell>
- <BBTableCell class="table-cell w-16">
- {{ checkResult.title }}
- </BBTableCell>
- <BBTableCell class="table-cell w-48">
- {{ checkResult.content }}
- </BBTableCell>
- </template>
- </BBTable>
+ </BBTableCell>
+ <BBTableCell class="table-cell w-16">
+ {{ checkResult.title }}
+ </BBTableCell>
+ <BBTableCell class="table-cell w-48">
+ {{ checkResult.content }}
+ </BBTableCell>
+ </template>
+ </BBTable>
+ </div>
</template>
<script lang="ts">