Skip to content

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

chore: spinner for rollout stages view (#17303)

boojack6df9b59893c8
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
index 389b11f85c..a64c254d3c 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
@@ -9,11 +9,11 @@
<div class="relative flex items-start">
<div class="relative">
<div class="pt-1.5 bg-white"></div>
- <UserAvatar :user="creator" />
+ <UserAvatar override-class="w-7 h-7 font-medium" :user="creator" />
<div
class="absolute -bottom-1 -right-1 w-4 h-4 bg-control-bg rounded-full ring-2 ring-white flex items-center justify-center"
>
- <PlusIcon class="w-3 h-3 text-control" />
+ <PlusIcon class="w-4 h-4 text-control" />
</div>
</div>
diff --git a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
index ef1817bc87..20adda9ebc 100644
--- a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
+++ b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
@@ -1,10 +1,8 @@
<template>
- <div class="space-y-2">
- <div class="flex items-center justify-between gap-2">
- <h3 class="text-base font-medium">
- {{ $t("common.activity") }}
- </h3>
- </div>
+ <div class="space-y-4">
+ <h3 class="text-base font-medium">
+ {{ $t("common.activity") }}
+ </h3>
<IssueCommentList />
</div>
</template>
diff --git a/frontend/src/components/Plan/components/RolloutView/RolloutView.vue b/frontend/src/components/Plan/components/RolloutView/RolloutView.vue
index 1d8e4b4429..b2452840f1 100644
--- a/frontend/src/components/Plan/components/RolloutView/RolloutView.vue
+++ b/frontend/src/components/Plan/components/RolloutView/RolloutView.vue
@@ -2,8 +2,11 @@
<div class="w-full h-full flex flex-col">
<!-- Content area -->
<div class="w-full flex-1 p-4">
+ <div v-if="!ready" class="flex items-center justify-center py-12">
+ <BBSpin class="w-6 h-6 text-primary" />
+ </div>
<div
- v-if="mergedStages.length === 0"
+ v-else-if="mergedStages.length === 0"
class="flex items-center justify-center py-12"
>
<div class="flex flex-col items-center gap-4 max-w-md text-center">
@@ -52,6 +55,7 @@ import { create } from "@bufbuild/protobuf";
import { LayersIcon } from "lucide-vue-next";
import { ref } from "vue";
import { useI18n } from "vue-i18n";
+import { BBSpin } from "@/bbkit";
import { rolloutServiceClientConnect } from "@/grpcweb";
import { pushNotification, useCurrentProjectV1 } from "@/store";
import { CreateRolloutRequestSchema } from "@/types/proto-es/v1/rollout_service_pb";
@@ -65,7 +69,7 @@ import { useRolloutViewContext } from "./context";
const { t } = useI18n();
const { project } = useCurrentProjectV1();
const { events } = usePlanContextWithRollout();
-const { rollout, mergedStages } = useRolloutViewContext();
+const { rollout, mergedStages, ready } = useRolloutViewContext();
const runTasksPanel = ref<{
show: boolean;