Skip to content

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

chore: update layout and style (#7507)

Liu Ji0fd4b61663e5
diff --git a/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
index 66e0a6dccc..63eec54086 100644
--- a/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
@@ -7,23 +7,34 @@
>
<template #default>
<div v-if="action" class="flex flex-col gap-y-4">
- <p class="textlabel">
- {{ $t("common.comment") }}
- <RequiredStar v-show="props.action === 'SEND_BACK'" />
- </p>
- <NInput
- v-model:value="comment"
- type="textarea"
- :placeholder="$t('issue.leave-a-comment')"
- :autosize="{
- minRows: 3,
- maxRows: 10,
- }"
- />
+ <div class="flex flex-col gap-y-1">
+ <div class="font-medium text-control">
+ {{ $t("common.issue") }}
+ </div>
+ <div class="textinfolabel">
+ {{ issue.title }}
+ </div>
+ </div>
+
+ <div class="flex flex-col gap-y-1">
+ <p class="font-medium text-control">
+ {{ $t("common.comment") }}
+ <RequiredStar v-show="props.action === 'SEND_BACK'" />
+ </p>
+ <NInput
+ v-model:value="comment"
+ type="textarea"
+ :placeholder="$t('issue.leave-a-comment')"
+ :autosize="{
+ minRows: 3,
+ maxRows: 10,
+ }"
+ />
+ </div>
</div>
</template>
<template #footer>
- <div v-if="action" class="py-1 flex justify-end gap-x-3">
+ <div v-if="action" class="flex justify-end gap-x-3">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
index 7f830a77cd..d0393d8ff6 100644
--- a/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
@@ -7,11 +7,17 @@
>
<template #default>
<div v-if="action" class="flex flex-col gap-y-4">
- <div class="text-sm">
- {{ issue.title }}
+ <div class="flex flex-col gap-y-1">
+ <div class="font-medium text-control">
+ {{ $t("common.issue") }}
+ </div>
+ <div class="textinfolabel">
+ {{ issue.title }}
+ </div>
</div>
+
<div class="flex flex-col gap-y-1">
- <p class="textlabel">
+ <p class="font-medium text-control">
{{ $t("common.comment") }}
</p>
<NInput
@@ -27,7 +33,7 @@
</div>
</template>
<template #footer>
- <div v-if="action" class="py-1 flex justify-end gap-x-3">
+ <div v-if="action" class="flex justify-end gap-x-3">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
index 8a924b073f..5e6c220e77 100644
--- a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
@@ -6,38 +6,45 @@
@close="$emit('close')"
>
<template #default>
- <div v-if="action" class="flex flex-col gap-y-4">
- <div class="text-sm">
- <label v-if="taskList.length > 1" class="textlabel">
- {{ $t("common.tasks") }}
+ <div v-if="action" class="flex flex-col gap-y-4 h-full overflow-y-hidden">
+ <div
+ class="flex flex-col gap-y-1 shrink overflow-y-hidden justify-start"
+ >
+ <label class="font-medium text-control">
+ <template v-if="taskList.length === 1">
+ {{ $t("common.task") }}
+ </template>
+ <template v-else>{{ $t("common.tasks") }}</template>
</label>
- <ul class="mt-1 max-h-[45vh] overflow-y-auto">
- <li
- v-for="item in distinctTaskList"
- :key="item.task.uid"
- class="text-sm textinfolabel"
+ <div class="flex-1 overflow-y-auto">
+ <ul
+ class="textinfolabel space-y-1"
+ :class="[distinctTaskList.length > 1 && 'list-disc pl-4']"
>
- <span class="textinfolabel">
- {{ item.task.title }}
- </span>
- <span v-if="item.similar.length > 0" class="ml-2 text-gray-400">
- {{
- $t("task.n-similar-tasks", {
- count: item.similar.length + 1,
- })
- }}
- </span>
- </li>
- </ul>
- <PlanCheckBar
- v-if="taskList.length === 1 && action === 'ROLLOUT'"
- :allow-run-checks="false"
- :task="taskList[0]"
- class="pt-2"
- />
+ <li v-for="item in distinctTaskList" :key="item.task.uid">
+ <span class="break-all">
+ {{ item.task.title }}
+ </span>
+ <span v-if="item.similar.length > 0" class="ml-1 text-gray-400">
+ {{
+ $t("task.n-similar-tasks", {
+ count: item.similar.length + 1,
+ })
+ }}
+ </span>
+ </li>
+ </ul>
+ </div>
</div>
- <div class="flex flex-col gap-y-1">
- <p class="textlabel">
+ <PlanCheckBar
+ v-if="taskList.length === 1 && action === 'ROLLOUT'"
+ :allow-run-checks="false"
+ :task="taskList[0]"
+ class="shrink-0 flex-col gap-y-1"
+ label-class="!text-base"
+ />
+ <div class="flex flex-col gap-y-1 shrink-0">
+ <p class="font-medium text-control">
{{ $t("common.comment") }}
</p>
<NInput
@@ -53,7 +60,7 @@
</div>
</template>
<template #footer>
- <div v-if="action" class="flex justify-end gap-x-4">
+ <div v-if="action" class="flex justify-end gap-x-3">
<NButton @click="$emit('close')">
{{ $t("common.cancel") }}
</NButton>
diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue
index b6ef8df7bc..f39edb38ba 100644
--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue
+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBar.vue
@@ -1,6 +1,9 @@
<template>
<div class="flex items-start gap-x-4">
- <div class="textlabel h-[26px] inline-flex items-center">
+ <div
+ class="textlabel h-[26px] inline-flex items-center"
+ :class="labelClass"
+ >
{{ $t("task.task-checks") }}
</div>
@@ -35,6 +38,7 @@ import {
} from "@/components/IssueV1/logic";
import { rolloutServiceClient } from "@/grpcweb";
import { PlanCheckRun_Type, Task } from "@/types/proto/v1/rollout_service";
+import { VueClass } from "@/utils";
import PlanCheckBadgeBar from "./PlanCheckBadgeBar.vue";
import PlanCheckPanel from "./PlanCheckPanel.vue";
import PlanCheckRunButton from "./PlanCheckRunButton.vue";
@@ -42,6 +46,7 @@ import PlanCheckRunButton from "./PlanCheckRunButton.vue";
const props = defineProps<{
allowRunChecks?: boolean;
task: Task;
+ labelClass?: VueClass;
}>();
const { issue, events } = useIssueContext();