Skip to content

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

chore: tweak tags usage (#10955)

boojack3999f6f1594c
diff --git a/frontend/src/components/Issue/activity/ActionCreator.vue b/frontend/src/components/Issue/activity/ActionCreator.vue
index c462fb56b1..e7d4d52b71 100644
--- a/frontend/src/components/Issue/activity/ActionCreator.vue
+++ b/frontend/src/components/Issue/activity/ActionCreator.vue
@@ -10,11 +10,7 @@
<span class="font-medium text-main whitespace-nowrap">
{{ user?.title }}
</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>
+ <SystemBotTag />
</div>
</template>
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Approver.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Approver.vue
index 84ffca3093..607695ba7f 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Approver.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Approver.vue
@@ -13,12 +13,7 @@
>
{{ $t("custom-approval.issue-review.you") }}
</span>
- <span
- v-if="step.approver?.name === SYSTEM_BOT_USER_NAME"
- class="ml-1 px-1 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
- >
- {{ $t("settings.members.system-bot") }}
- </span>
+ <SystemBotTag v-if="step.approver?.name === SYSTEM_BOT_USER_NAME" />
</div>
</template>
diff --git a/frontend/src/components/User/Settings/UserDataTableByRole/cells/UserNameCell.vue b/frontend/src/components/User/Settings/UserDataTableByRole/cells/UserNameCell.vue
index 0723926064..8a5d8b6527 100644
--- a/frontend/src/components/User/Settings/UserDataTableByRole/cells/UserNameCell.vue
+++ b/frontend/src/components/User/Settings/UserDataTableByRole/cells/UserNameCell.vue
@@ -8,24 +8,11 @@
<router-link :to="`/users/${user.email}`" class="normal-link">
{{ user.title }}
</router-link>
- <span
- v-if="currentUserV1.name === user.name"
- class="inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
- >
- {{ $t("settings.members.yourself") }}
- </span>
- <span
- v-if="user.name === SYSTEM_BOT_USER_NAME"
- class="inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
- >
- {{ $t("settings.members.system-bot") }}
- </span>
- <span
+ <YouTag v-if="currentUserV1.name === user.name" />
+ <SystemBotTag v-if="user.name === SYSTEM_BOT_USER_NAME" />
+ <ServiceAccountTag
v-if="user.userType === UserType.SERVICE_ACCOUNT"
- class="inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
- >
- {{ $t("settings.members.service-account") }}
- </span>
+ />
</div>
<span v-if="user.name !== SYSTEM_BOT_USER_NAME" class="textlabel">
{{ user.email }}
diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vue
index cd47fedc00..98c4ea0f2c 100644
--- a/frontend/src/views/ProfileDashboard.vue
+++ b/frontend/src/views/ProfileDashboard.vue
@@ -52,12 +52,9 @@
<h1 v-else class="pb-1.5 text-2xl font-bold text-main truncate">
{{ user.title }}
</h1>
- <span
+ <ServiceAccountTag
v-if="user.userType === UserType.SERVICE_ACCOUNT"
- class="inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-semibold bg-green-100 text-green-800"
- >
- {{ $t("settings.members.service-account") }}
- </span>
+ />
</div>
</div>
</div>