Skip to content

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

chore: show system bot name while auto skip approval node (#5665)

Liu Jia18b962fd22d
diff --git a/frontend/src/components/Issue/activity/ActionCreator.vue b/frontend/src/components/Issue/activity/ActionCreator.vue
index 6780fc9502..d8b474b0bf 100644
--- a/frontend/src/components/Issue/activity/ActionCreator.vue
+++ b/frontend/src/components/Issue/activity/ActionCreator.vue
@@ -6,6 +6,16 @@
exact-active-class=""
>{{ activity.creator.name }}</router-link
>
+ <div v-else class="inline-flex items-center">
+ <span class="font-medium text-main whitespace-nowrap">
+ {{ activity.creator.name }}
+ </span>
+ <span
+ class="ml-0.5 inline-flex items-center px-1 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
+ >
+ {{ $t("settings.members.system-bot") }}
+ </span>
+ </div>
</template>
<script lang="ts" setup>
diff --git a/frontend/src/components/Issue/activity/ActionSentence.vue b/frontend/src/components/Issue/activity/ActionSentence.vue
index a5feb80fb5..f3d9b2bf9d 100644
--- a/frontend/src/components/Issue/activity/ActionSentence.vue
+++ b/frontend/src/components/Issue/activity/ActionSentence.vue
@@ -68,7 +68,11 @@ const renderActionSentence = () => {
}
}
if (payload.approvalEvent?.status === "APPROVED") {
- return renderSpan(t("custom-approval.issue-review.approved-issue"));
+ const verb = maybeAutomaticallyVerb(
+ activity,
+ t("custom-approval.issue-review.approved-issue")
+ );
+ return renderSpan(verb);
}
}
diff --git a/frontend/src/components/Issue/activity/ActivityAction.vue b/frontend/src/components/Issue/activity/ActivityAction.vue
index d49a2dd938..c2d6aea431 100644
--- a/frontend/src/components/Issue/activity/ActivityAction.vue
+++ b/frontend/src/components/Issue/activity/ActivityAction.vue
@@ -3,7 +3,10 @@
<div class="min-w-0 flex-1 pt-1 flex justify-between">
<div class="text-sm text-control-light space-x-1">
<ActionCreator
- v-if="activity.creator.id !== SYSTEM_BOT_ID"
+ v-if="
+ activity.creator.id !== SYSTEM_BOT_ID ||
+ activity.type === 'bb.issue.comment.create'
+ "
:activity="activity"
/>