Skip to content

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

chore: link to issue title (#15628)

boojack9ba1b541d00d
diff --git a/frontend/src/components/IssueV1/components/IssueTableV1.vue b/frontend/src/components/IssueV1/components/IssueTableV1.vue
index 7f62cae8df..d9a86b1b22 100644
--- a/frontend/src/components/IssueV1/components/IssueTableV1.vue
+++ b/frontend/src/components/IssueV1/components/IssueTableV1.vue
@@ -64,8 +64,6 @@ import IssueLabelSelector, {
} from "./IssueLabelSelector.vue";
import IssueStatusIconWithTaskSummary from "./IssueStatusIconWithTaskSummary.vue";
-type Mode = "ALL" | "PROJECT";
-
const { t } = useI18n();
const columnList = computed((): DataTableColumn<ComposedIssue>[] => {
@@ -106,20 +104,28 @@ const columnList = computed((): DataTableColumn<ComposedIssue>[] => {
return (
<div class="flex items-center space-x-2">
<IssueStatusIconWithTaskSummary issue={issue} />
- <div class="whitespace-nowrap text-control text-opacity-80">
- {`#${extractIssueUID(issue.name)}`}
- </div>
- <NPerformantEllipsis>
- {{
- default: () => (
- <span
- class="min-w-32 shrink"
- innerHTML={highlight(issue.title)}
- ></span>
- ),
- tooltip: () => issue.title,
+ <a
+ href={issueUrl(issue)}
+ class="flex items-center space-x-2 select-none"
+ onClick={(e: MouseEvent) => {
+ e.stopPropagation();
}}
- </NPerformantEllipsis>
+ >
+ <div class="whitespace-nowrap text-control text-opacity-80">
+ {`#${extractIssueUID(issue.name)} `}
+ </div>
+ <NPerformantEllipsis>
+ {{
+ default: () => (
+ <span
+ class="min-w-32 shrink"
+ innerHTML={highlight(issue.title)}
+ ></span>
+ ),
+ tooltip: () => issue.title,
+ }}
+ </NPerformantEllipsis>
+ </a>
{labels.length > 0 && (
<IssueLabelSelector
class="!w-auto shrink-0"
@@ -138,7 +144,7 @@ const columnList = computed((): DataTableColumn<ComposedIssue>[] => {
key: "project",
title: t("common.project"),
width: 150,
- hide: !showExtendedColumns.value || props.mode === "PROJECT",
+ hide: !showExtendedColumns.value || !props.showProject,
render: (issue) => issue.projectEntity.title,
},
{
@@ -181,14 +187,13 @@ const props = withDefaults(
issueList: ComposedIssue[];
bordered?: boolean;
title?: string;
- mode?: Mode;
highlightText?: string;
loading?: boolean;
+ showProject?: boolean;
showSelection?: boolean;
}>(),
{
title: "",
- mode: "ALL",
highlightText: "",
loading: true,
bordered: false,
@@ -233,6 +238,17 @@ const selectedIssueList = computed(() => {
);
});
+const issueUrl = (issue: ComposedIssue) => {
+ const route = router.resolve({
+ name: PROJECT_V1_ROUTE_ISSUE_DETAIL,
+ params: {
+ projectId: extractProjectResourceName(issue.project),
+ issueSlug: issueV1Slug(issue),
+ },
+ });
+ return route.fullPath;
+};
+
const rowProps = (issue: ComposedIssue) => {
return {
style: "cursor: pointer;",
@@ -240,14 +256,7 @@ const rowProps = (issue: ComposedIssue) => {
emitWindowEvent("bb.issue-detail", {
uid: extractIssueUID(issue.name),
});
- const route = router.resolve({
- name: PROJECT_V1_ROUTE_ISSUE_DETAIL,
- params: {
- projectId: extractProjectResourceName(issue.project),
- issueSlug: issueV1Slug(issue),
- },
- });
- const url = route.fullPath;
+ const url = issueUrl(issue);
if (e.ctrlKey || e.metaKey) {
window.open(url, "_blank");
} else {
diff --git a/frontend/src/components/Project/ProjectIssuesPanel.vue b/frontend/src/components/Project/ProjectIssuesPanel.vue
index 8668e6de3a..b0c3f59d21 100644
--- a/frontend/src/components/Project/ProjectIssuesPanel.vue
+++ b/frontend/src/components/Project/ProjectIssuesPanel.vue
@@ -59,7 +59,6 @@
>
<template #table="{ list, loading }">
<IssueTableV1
- mode="PROJECT"
:bordered="true"
:loading="loading"
:issue-list="applyUIIssueFilter(list, mergedUIIssueFilter)"
diff --git a/frontend/src/views/MyIssues.vue b/frontend/src/views/MyIssues.vue
index 65564c33fe..0eee8830ed 100644
--- a/frontend/src/views/MyIssues.vue
+++ b/frontend/src/views/MyIssues.vue
@@ -64,6 +64,7 @@
:loading="loading"
:issue-list="applyUIIssueFilter(list, mergedUIIssueFilter)"
:highlight-text="state.params.query"
+ :show-project="true"
/>
</template>
</PagedTable>