Skip to content

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

chore: add tag for archived releases (#14212)

boojack37b722ed1bb0
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
index 6daf10c240..2198e9232d 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue
@@ -1,24 +1,32 @@
<template>
<div
v-if="isValidReleaseName(release.name) && ready"
- class="text-sm text-control-light flex space-x-1 items-center"
+ class="w-full text-sm text-control-light flex space-x-1 items-center"
>
- <PackageIcon class="w-4 h-auto" />
- <EllipsisText>
- <a :href="`/${release.name}`" target="_blank" class="normal-link">
- <span>{{ release.title }}</span>
- </a>
- </EllipsisText>
+ <PackageIcon class="w-5 h-auto shrink-0" />
+ <a :href="`/${release.name}`" target="_blank" class="normal-link truncate">
+ {{ release.title }}
+ </a>
+ <NTag
+ v-if="release.state === State.DELETED"
+ class="shrink-0"
+ type="warning"
+ size="small"
+ round
+ >
+ {{ $t("common.archived") }}
+ </NTag>
</div>
</template>
<script setup lang="ts">
import { PackageIcon } from "lucide-vue-next";
+import { NTag } from "naive-ui";
import { computed } from "vue";
-import EllipsisText from "@/components/EllipsisText.vue";
import { useIssueContext } from "@/components/IssueV1";
import { useReleaseByName } from "@/store";
import { isValidReleaseName } from "@/types";
+import { State } from "@/types/proto/v1/common";
const { issue } = useIssueContext();
diff --git a/frontend/src/components/Project/ProjectReleasesPanel.vue b/frontend/src/components/Project/ProjectReleasesPanel.vue
index 5b0ddf00fb..4d4a312be1 100644
--- a/frontend/src/components/Project/ProjectReleasesPanel.vue
+++ b/frontend/src/components/Project/ProjectReleasesPanel.vue
@@ -5,7 +5,6 @@
:session-key="`project-${project.name}-releases`"
:project="project.name"
:page-size="50"
- :show-deleted="state.showArchived"
>
<template #table="{ releaseList, loading }">
<ReleaseDataTable
@@ -15,17 +14,10 @@
/>
</template>
</PagedReleaseTable>
- <p>
- <NCheckbox v-model:checked="state.showArchived">
- <span class="textinfolabel">{{ $t("release.show-archived") }}</span>
- </NCheckbox>
- </p>
</div>
</template>
<script lang="ts" setup>
-import { NCheckbox } from "naive-ui";
-import { reactive } from "vue";
import type { ComposedProject } from "@/types";
import PagedReleaseTable from "../Release/PagedReleaseTable.vue";
import ReleaseDataTable from "../Release/ReleaseDataTable.vue";
@@ -33,12 +25,4 @@ import ReleaseDataTable from "../Release/ReleaseDataTable.vue";
defineProps<{
project: ComposedProject;
}>();
-
-interface LocalState {
- showArchived: boolean;
-}
-
-const state = reactive<LocalState>({
- showArchived: false,
-});
</script>