Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
perf(issues): link every issue entry point to its identifier (MUL-9807) (#11152)
Jiayuan Zhang62e9c5aa6e0c
diff --git a/packages/core/issues/canonical-id.test.tsx b/packages/core/issues/canonical-id.test.tsxindex 4c6669cbf9..c226fa3c45 100644--- a/packages/core/issues/canonical-id.test.tsx+++ b/packages/core/issues/canonical-id.test.tsx@@ -125,6 +125,22 @@ describe("useCanonicalIssue", () => {expect(getIssue).toHaveBeenCalledTimes(1);});+ // In-app links carry the identifier, often to an issue a list, peek or+ // create already cached by UUID.+ it("opens an identifier URL from the issue cached by UUID without a request", async () => {+ qc.setQueryData(issueKeys.detail("ws-1", ISSUE_UUID), issue);++ const { result } = renderHook(() => useCanonicalIssue("ws-1", "TRS-134"), {+ wrapper: createWrapper(qc),+ });++ expect(result.current.canonicalId).toBe(ISSUE_UUID);+ expect(result.current.isResolving).toBe(false);+ expect(result.current.issue).toEqual(issue);+ await new Promise((resolve) => setTimeout(resolve, 50));+ expect(getIssue).not.toHaveBeenCalled();+ });+// The realtime updaters patch `issueKeys.detail(wsId, issue.id)` with the// UUID from the websocket payload; the resolution response is older and must// never overwrite it.diff --git a/packages/core/issues/canonical-id.ts b/packages/core/issues/canonical-id.tsindex 51de347f67..a80ace8efd 100644--- a/packages/core/issues/canonical-id.ts+++ b/packages/core/issues/canonical-id.ts@@ -1,5 +1,5 @@import { useEffect } from "react";-import { useQuery, useQueryClient } from "@tanstack/react-query";+import { useQuery, useQueryClient, type QueryClient } from "@tanstack/react-query";import type { Issue } from "../types";import { issueDetailOptions, issueKeys } from "./queries";import { useIssueReadState } from "./read-state";@@ -11,6 +11,25 @@ export function isIssueUuid(value: string): boolean {return UUID_RE.test(value);}+/**+ * The `/{ws}/issues/{segment}` a link to an issue known only by its UUID+ * should carry: the identifier once the issue is cached, else the UUID. The+ * issue page rewrites a UUID address to the identifier after load, and on web+ * that rewrite mounts the page a second time.+ */+export function useIssueRouteRef(wsId: string, issueId: string): string {+ const { data } = useQuery({ ...issueDetailOptions(wsId, issueId), enabled: false });+ return data?.identifier || issueId;+}++/** An issue cached under its UUID whose identifier is `identifier`. */+function cachedIssueByIdentifier(qc: QueryClient, wsId: string, identifier: string): Issue | undefined {+ for (const [key, data] of qc.getQueriesData<Issue>({ queryKey: [...issueKeys.all(wsId), "detail"] })) {+ if (data?.identifier === identifier && key[key.length - 1] === data.id) return data;+ }+ return undefined;+}+export interface CanonicalIssue {/*** The issue's UUID, or `null` while an identifier is still resolving or if@@ -71,6 +90,9 @@ export function useCanonicalIssue(const resolve = useQuery({...issueDetailOptions(wsId, routeId),enabled: resolveEnabled,+ // An identifier link to an issue some list or peek already loaded by UUID+ // opens from that entry instead of fetching the issue again.+ initialData: resolveEnabled ? () => cachedIssueByIdentifier(qc, wsId, routeId) : undefined,});const canonicalId = isUuid ? routeId : (resolve.data?.id ?? null);@@ -86,9 +108,10 @@ export function useCanonicalIssue(// Mirror the loaded row into its identifier-keyed entry, the reverse of the// `initialData` hop above.//- // In-app links still carry the UUID, so opening one lands on the UUID URL and- // the route then rewrites the address bar to the identifier. That rewrite is- // a navigation: the route re-renders with the identifier as its segment, and+ // A link that only knows the UUID (an old URL, or an issue not yet cached)+ // lands on the UUID URL and the route then rewrites the address bar to the+ // identifier. That rewrite is a navigation: the route re-renders with the+ // identifier as its segment, and// without this seed the resolution query above would miss on a cache entry// nothing has filled and re-fetch an issue already in hand — a second request// for one issue open. The `??` keeps a realtime-patched entry intact, anddiff --git a/packages/views/agents/components/agent-live-peek-card.test.tsx b/packages/views/agents/components/agent-live-peek-card.test.tsxindex 00e7b57eab..f48523426f 100644--- a/packages/views/agents/components/agent-live-peek-card.test.tsx+++ b/packages/views/agents/components/agent-live-peek-card.test.tsx@@ -197,7 +197,7 @@ describe("AgentLivePeekCard", () => {expect(screen.getByText("Working")).toBeInTheDocument();// identifier + title both render under the same link.const link = screen.getByRole("link", { name: /MUL-42/ });- expect(link).toHaveAttribute("href", "/test/issues/issue-42");+ expect(link).toHaveAttribute("href", "/test/issues/MUL-42");expect(link.textContent).toContain("Wire up live peek");});diff --git a/packages/views/agents/components/agent-live-peek-card.tsx b/packages/views/agents/components/agent-live-peek-card.tsxindex 4081091aff..a3ab09b0df 100644--- a/packages/views/agents/components/agent-live-peek-card.tsx+++ b/packages/views/agents/components/agent-live-peek-card.tsx@@ -129,7 +129,7 @@ export function AgentLivePeekCard({ agentId }: AgentLivePeekCardProps) {issueId={currentIssueId}label={t(($) => $.live_peek.current_issue_label)}emptyLabel={t(($) => $.live_peek.no_current_issue)}- issueHref={(id) => p.issueDetail(id)}+ issueHref={(ref) => p.issueDetail(ref)}/><LastActivityRowtask={lastTerminal}@@ -174,7 +174,7 @@ function CurrentIssueRow({issueId: string | null;label: string;emptyLabel: string;- issueHref: (id: string) => string;+ issueHref: (ref: string) => string;}) {// Lazy issue detail — only enabled while the card is mounted AND we have// a running issue id. snapshot already gives us the id; this hook just@@ -191,7 +191,7 @@ function CurrentIssueRow({issue ? (<TruncatedTooltip content={`${issue.identifier} ${issue.title}`}><AppLink- href={issueHref(issueId)}+ href={issueHref(issue.identifier)}className="min-w-0 truncate text-brand hover:underline"><span className="mr-1 font-mono text-micro">{issue.identifier}</span>diff --git a/packages/views/agents/components/tabs/activity-tab.tsx b/packages/views/agents/components/tabs/activity-tab.tsxindex dfb50327e4..50c1311e59 100644--- a/packages/views/agents/components/tabs/activity-tab.tsx+++ b/packages/views/agents/components/tabs/activity-tab.tsx@@ -556,6 +556,7 @@ function useTaskRowModel(task: AgentTask) {cfg,hasIssue,issue,+ issueRef: issue?.identifier || task.issue_identifier || task.issue_id,title,SourceIcon,sourceLabel,@@ -591,13 +592,13 @@ function TaskTitle({ task, title }: { task: AgentTask; title: string }) {);}-function OpenIssueIconLink({ issueId }: { issueId: string }) {+function OpenIssueIconLink({ issueRef }: { issueRef: string }) {const { t } = useT("agents");const paths = useWorkspacePaths();return (<Tooltip><TooltipTrigger- render={<AppLink href={paths.issueDetail(issueId)} />}+ render={<AppLink href={paths.issueDetail(issueRef)} />}aria-label={t(($) => $.tab_body.activity.open_issue_aria)}className={`flex items-center justify-center rounded-xs p-1 text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${TOUCH_ACTION_CLASS}`}>@@ -627,7 +628,7 @@ function LiveTaskRow({const timeAgo = useTimeAgo();const paths = useWorkspacePaths();const [cancelling, setCancelling] = useState(false);- const { cfg, hasIssue, issue, title, SourceIcon, sourceLabel, sourceFallback, statusLabel } =+ const { cfg, hasIssue, issue, issueRef, title, SourceIcon, sourceLabel, sourceFallback, statusLabel } =useTaskRowModel(task);const Icon = cfg.icon;const isRunning = task.status === "running";@@ -721,7 +722,7 @@ function LiveTaskRow({<Buttonvariant="outline"size="sm"- render={<AppLink href={paths.issueDetail(task.issue_id)} />}+ render={<AppLink href={paths.issueDetail(issueRef)} />}nativeButton={false}>{t(($) => $.sections.open)}@@ -743,7 +744,7 @@ const RecentTaskRow = memo(function RecentTaskRow({}) {const { t } = useT("agents");const timeAgo = useTimeAgo();- const { cfg, hasIssue, issue, title, SourceIcon, sourceLabel, failureLabel, statusLabel } =+ const { cfg, hasIssue, issue, issueRef, title, SourceIcon, sourceLabel, failureLabel, statusLabel } =useTaskRowModel(task);const Icon = cfg.icon;@@ -792,7 +793,7 @@ const RecentTaskRow = memo(function RecentTaskRow({)}</span><div className={HOVER_ACTIONS_CLASS}>- {hasIssue && <OpenIssueIconLink issueId={task.issue_id} />}+ {hasIssue && <OpenIssueIconLink issueRef={issueRef} />}<TranscriptButtontask={task}agentName={agentName}diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsxindex 9569eab67b..17eba07590 100644--- a/packages/views/autopilots/components/autopilot-detail-page.tsx+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx@@ -19,6 +19,7 @@ import {import { buildAutopilotWebhookUrl } from "@multica/core/autopilots";import { api } from "@multica/core/api";import { useWorkspaceId } from "@multica/core/hooks";+import { useIssueRouteRef } from "@multica/core/issues/canonical-id";import { useWorkspacePaths } from "@multica/core/paths";import { useActorName } from "@multica/core/workspace/hooks";import { memberListOptions } from "@multica/core/workspace/queries";@@ -204,6 +205,7 @@ function RunRow({}) {const { t, i18n } = useT("autopilots");const wsPaths = useWorkspacePaths();+ const issueRef = useIssueRouteRef(useWorkspaceId(), run.issue_id ?? "");const status = (RUN_VISUAL[run.status as RunStatus] ? (run.status as RunStatus) : "issue_created");const visual = RUN_VISUAL[status];const StatusIcon = visual.icon;@@ -277,7 +279,7 @@ function RunRow({if (run.issue_id) {return (- <AppLink href={wsPaths.issueDetail(run.issue_id)} className={cn(rowClass, "cursor-pointer")}>+ <AppLink href={wsPaths.issueDetail(issueRef)} className={cn(rowClass, "cursor-pointer")}>{content}</AppLink>);diff --git a/packages/views/autopilots/components/workspace-wakeups.test.tsx b/packages/views/autopilots/components/workspace-wakeups.test.tsxindex 198d40820e..2a098dd60b 100644--- a/packages/views/autopilots/components/workspace-wakeups.test.tsx+++ b/packages/views/autopilots/components/workspace-wakeups.test.tsx@@ -180,7 +180,7 @@ it("shows consumed running work separately from its off state and keeps transcri// A rule that is already off is not part of batch selection.expect(within(row).queryByRole("checkbox")).toBeNull();fireEvent.click(within(row).getByText("Issue a"));- expect(rowLinks).toEqual(["/ws/issues/issue-a"]);+ expect(rowLinks).toEqual(["/ws/issues/DEV-a"]);});it("confirms batch consequences and retains only failed selections for retry", async () => {diff --git a/packages/views/autopilots/components/workspace-wakeups.tsx b/packages/views/autopilots/components/workspace-wakeups.tsxindex a43a70ff22..caa81efbb4 100644--- a/packages/views/autopilots/components/workspace-wakeups.tsx+++ b/packages/views/autopilots/components/workspace-wakeups.tsx@@ -523,7 +523,7 @@ export function WorkspaceWakeups() {columns={columns}rows={rows}getRowId={rowId}- getRowHref={(row) => paths.issueDetail(row.issue_id)}+ getRowHref={(row) => paths.issueDetail(row.issue_identifier || row.issue_id)}getRowTitle={(row) => `${row.issue_identifier} ${row.issue_title}`}selection={{selectedIds: selected,diff --git a/packages/views/issues/components/board-card-peek.test.tsx b/packages/views/issues/components/board-card-peek.test.tsxindex 38d5d84611..b318eb792f 100644--- a/packages/views/issues/components/board-card-peek.test.tsx+++ b/packages/views/issues/components/board-card-peek.test.tsx@@ -175,7 +175,7 @@ describe("DraggableBoardCard side peek", () => {renderCard();// Handled here, not left to the browser (a new window on web).expect(fireEvent.click(link(), { shiftKey: true })).toBe(false);- expect(navigation.push).toHaveBeenCalledWith("/acme/issues/issue-1");+ expect(navigation.push).toHaveBeenCalledWith("/acme/issues/MUL-1");expect(peek.open).not.toHaveBeenCalled();expect(peek.toggle).not.toHaveBeenCalled();});diff --git a/packages/views/issues/components/board-card.tsx b/packages/views/issues/components/board-card.tsxindex 9c0ca2bd8d..56f435908f 100644--- a/packages/views/issues/components/board-card.tsx+++ b/packages/views/issues/components/board-card.tsx@@ -374,7 +374,7 @@ export const DraggableBoardCard = memo(function DraggableBoardCard({const p = useWorkspacePaths();const peek = useIssuePeekActions();const peeked = useIsIssuePeeked(issue.id);- const peekLinkProps = useIssuePeekLinkProps(issue.id);+ const peekLinkProps = useIssuePeekLinkProps(issue);const {attributes,listeners,diff --git a/packages/views/issues/components/gantt-view.tsx b/packages/views/issues/components/gantt-view.tsxindex 426bf7f293..5ffb825e2b 100644--- a/packages/views/issues/components/gantt-view.tsx+++ b/packages/views/issues/components/gantt-view.tsx@@ -324,7 +324,7 @@ function ScheduledRow({});const project = issue.project_id ? projects.find((pr) => pr.id === issue.project_id) : undefined;const peeked = useIsIssuePeeked(issue.id);- const peekLinkProps = useIssuePeekLinkProps(issue.id);+ const peekLinkProps = useIssuePeekLinkProps(issue);const start = parseDay(issue.start_date);const due = parseDay(issue.due_date);diff --git a/packages/views/issues/components/issue-detail.test.tsx b/packages/views/issues/components/issue-detail.test.tsxindex c182288475..5b371ea220 100644--- a/packages/views/issues/components/issue-detail.test.tsx+++ b/packages/views/issues/components/issue-detail.test.tsx@@ -1391,7 +1391,7 @@ describe("IssueDetail (shared)", () => {// single link to the issue's own detail route (used to open the full page// from the inline Inbox pane). A bare issue has no ancestor crumbs.const leaf = await screen.findByText("TES-1 Implement authentication");- expect(leaf.closest("a")).toHaveAttribute("href", "/test/issues/issue-1");+ expect(leaf.closest("a")).toHaveAttribute("href", "/test/issues/TES-1");});it("omits the project breadcrumb segment when the issue has no project_id", async () => {@@ -3933,7 +3933,7 @@ describe("IssueDetail (shared)", () => {await waitFor(() => expect(container.querySelector('[data-issue-sidebar-section="sub_issues"]')).not.toBeNull());const sidebar = within(container.querySelector<HTMLElement>('[data-issue-sidebar-section="sub_issues"]')!);expect(sidebar.getAllByRole("link")).toHaveLength(3);- expect(sidebar.getByRole("link", { name: /TES-11 Open destination/ })).toHaveAttribute("href", "/test/issues/child-open");+ expect(sidebar.getByRole("link", { name: /TES-11 Open destination/ })).toHaveAttribute("href", "/test/issues/TES-11");expect(sidebar.getByRole("link", { name: /TES-13 Cancelled destination/ })).toBeInTheDocument();expect(sidebar.getByRole("progressbar", { name: "Sub-issues" })).toHaveAttribute("aria-valuenow", "1");expect(sidebar.getByRole("progressbar", { name: "Sub-issues" })).toHaveAttribute("aria-valuemax", "3");@@ -3976,7 +3976,7 @@ describe("IssueDetail (shared)", () => {}const sidebar = within(document.querySelector<HTMLElement>('[data-issue-sidebar-section="sub_issues"]')!);const childLinks = () => sidebar.getAllByRole("link").map((link) => link.getAttribute("href"));- const urls = (numbers: number[]) => numbers.map((n) => `/test/issues/child-${n}`);+ const urls = (numbers: number[]) => numbers.map((n) => `/test/issues/TES-${n}`);const firstTen = [5, 8, 11, 14, 17, 20, 1, 4, 7, 10];expect(childLinks()).toEqual(urls(firstTen));expect(sidebar.getByText("6/25")).toBeInTheDocument();@@ -4019,7 +4019,7 @@ describe("IssueDetail (shared)", () => {await findInlineChild("Child 10");const sidebar = within(container.querySelector<HTMLElement>('[data-issue-sidebar-section="sub_issues"]')!);expect(sidebar.getAllByRole("link").map((link) => link.getAttribute("href"))).toEqual(- [2, 5, 8, 1, 4, 7, 10, 3, 6, 9].map((n) => `/test/issues/child-${n}`),+ [2, 5, 8, 1, 4, 7, 10, 3, 6, 9].map((n) => `/test/issues/TES-${n}`),);expect(sidebar.queryByRole("button", { name: /Show .* more|Collapse|View all/ })).not.toBeInTheDocument();expect(sidebar.getByText("1/10")).toBeInTheDocument();diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsxindex e1df87935e..ebb97327c2 100644--- a/packages/views/issues/components/issue-detail.tsx+++ b/packages/views/issues/components/issue-detail.tsx@@ -150,6 +150,7 @@ import {} from "./deliverables/deliverable-link";import { useQuery } from "@tanstack/react-query";import { useIssueReadState } from "@multica/core/issues/read-state";+import { useIssueRouteRef } from "@multica/core/issues/canonical-id";import { useAuthStore } from "@multica/core/auth";import { useWorkspacePaths } from "@multica/core/paths";import { useActorName } from "@multica/core/workspace/hooks";@@ -534,13 +535,15 @@ function duplicateActivityLink(entry: TimelineEntry): { id: string; identifier:function ActivityText({ entry, text }: { entry: TimelineEntry; text: string }) {const paths = useWorkspacePaths();const link = duplicateActivityLink(entry);+ // The identifier in the activity is a snapshot; the cache knows the current one.+ const linkRef = useIssueRouteRef(useWorkspaceId(), link?.id ?? "");const at = link ? text.indexOf(link.identifier) : -1;if (!link || at < 0) return <>{text}</>;return (<>{text.slice(0, at)}<AppLink- href={paths.issueDetail(link.id)}+ href={paths.issueDetail(linkRef)}newTabTitle={link.identifier}className="font-medium text-foreground underline-offset-4 hover:underline">@@ -1049,7 +1052,7 @@ function SubIssueRow({}/><AppLink- href={paths.issueDetail(child.id)}+ href={paths.issueDetail(child.identifier)}className="flex min-w-0 flex-1 items-center gap-2.5"><span className="text-caption text-muted-foreground tabular-nums shrink-0">@@ -3518,7 +3521,7 @@ export function IssueDetail({ issueId, onDelete, onArchive, onUnsubscribeArchive{parentIssueOpen && <div className="px-2"><div className="flex items-center gap-0.5 rounded-md px-2 hover:bg-accent/50 transition-colors group"><AppLink- href={paths.issueDetail(parentIssue.id)}+ href={paths.issueDetail(parentIssue.identifier)}className="flex flex-1 min-w-0 items-center gap-1.5 py-2 text-label"><StatusIcon@@ -3562,7 +3565,7 @@ export function IssueDetail({ issueId, onDelete, onArchive, onUnsubscribeArchive{sidebarChildIssues.map((child) => (<li key={child.id}><AppLink- href={paths.issueDetail(child.id)}+ href={paths.issueDetail(child.identifier)}title={`${child.identifier} ${child.title}`}aria-label={`${child.identifier} ${child.title}, ${resolveStatusLabel(child.status)}`}className="group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-2 text-label transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"@@ -3792,7 +3795,7 @@ export function IssueDetail({ issueId, onDelete, onArchive, onUnsubscribeArchive// panel. The workspace name is intentionally absent — "all issues" is a view,// not a container.const breadcrumbSegments: BreadcrumbSegment[] = parentIssue- ? [{ href: paths.issueDetail(parentIssue.id), label: parentIssue.identifier }]+ ? [{ href: paths.issueDetail(parentIssue.identifier), label: parentIssue.identifier }]: breadcrumbProject? [{@@ -3855,7 +3858,7 @@ export function IssueDetail({ issueId, onDelete, onArchive, onUnsubscribeArchive// Below the trigger, since the header sits at the top of the page.<TruncatedTooltip content={headerLeafLabel} side="bottom"><AppLink- href={paths.issueDetail(issue.id)}+ href={paths.issueDetail(issue.identifier)}className="flex min-w-0 transition-opacity hover:opacity-80"><span className="truncate font-medium text-foreground">@@ -4068,7 +4071,7 @@ export function IssueDetail({ issueId, onDelete, onArchive, onUnsubscribeArchive{parentIssue && !issue.source_context && (<AppLink- href={paths.issueDetail(parentIssue.id)}+ href={paths.issueDetail(parentIssue.identifier)}className="mt-2 inline-flex max-w-full items-center gap-1.5 text-label text-muted-foreground hover:text-foreground transition-colors group/parent"><span className="shrink-0">{t(($) => $.detail.sub_issue_of)}</span>diff --git a/packages/views/issues/components/issue-duplicates.test.tsx b/packages/views/issues/components/issue-duplicates.test.tsxindex 33d4cdc1bf..73efb3526b 100644--- a/packages/views/issues/components/issue-duplicates.test.tsx+++ b/packages/views/issues/components/issue-duplicates.test.tsx@@ -113,7 +113,7 @@ describe("IssueDuplicateBanner", () => {// The original's identifier and title sit inside the link, after the prefix.const link = await screen.findByRole("link", { name: /Duplicate of MUL-6980 Tap targets are too small/ });- expect(link.getAttribute("href")).toBe("/acme/issues/original");+ expect(link.getAttribute("href")).toBe("/acme/issues/MUL-6980");// The unmark control is not nested inside the link.const unmark = screen.getByRole("button", { name: "Not a duplicate" });expect(link.contains(unmark)).toBe(false);@@ -142,7 +142,7 @@ describe("IssueDuplicatesSection", () => {renderWithQuery(<IssueDuplicatesSection issueId="original" />);const row = await screen.findByRole("link", { name: /MUL-7412/ });- expect(row.getAttribute("href")).toBe("/acme/issues/duplicate");+ expect(row.getAttribute("href")).toBe("/acme/issues/MUL-7412");expect(screen.getByRole("button", { name: "Duplicates 2" })).toBeTruthy();// Every duplicate is cancelled, so the row shows who reported it instead// of a status icon that would be identical on each line.@@ -169,7 +169,7 @@ describe("IssueDuplicateOfMarker", () => {const marker = screen.getByRole("link", { name: "MUL-6980" });expect(marker.tagName).toBe("A");- expect(marker.getAttribute("href")).toBe("/acme/issues/original");+ expect(marker.getAttribute("href")).toBe("/acme/issues/MUL-6980");expect(marker.getAttribute("title")).toBe("Duplicate of MUL-6980 Tap targets are too small");fireEvent.click(marker);@@ -187,7 +187,7 @@ describe("IssueDuplicateOfMarker", () => {const marker = screen.getByRole("link", { name: "MUL-6980" });expect(marker.tagName).toBe("SPAN");fireEvent.click(marker);- expect(navigate).toHaveBeenCalledWith("/acme/issues/original", "push", "MUL-6980");+ expect(navigate).toHaveBeenCalledWith("/acme/issues/MUL-6980", "push", "MUL-6980");expect(rowClick).not.toHaveBeenCalled();});diff --git a/packages/views/issues/components/issue-duplicates.tsx b/packages/views/issues/components/issue-duplicates.tsxindex 05904365cb..ea2f5f8f3b 100644--- a/packages/views/issues/components/issue-duplicates.tsx+++ b/packages/views/issues/components/issue-duplicates.tsx@@ -52,7 +52,7 @@ export function IssueDuplicateBanner({return (<div className="mb-4 flex items-center gap-1 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-body"><AppLink- href={paths.issueDetail(original.id)}+ href={paths.issueDetail(original.identifier)}newTabTitle={original.identifier}className="group flex min-w-0 flex-1 items-center gap-2 py-1">@@ -107,7 +107,7 @@ export function IssueDuplicatesSection({ issueId }: { issueId: string }) {{duplicates.map((duplicate) => (<AppLinkkey={duplicate.id}- href={paths.issueDetail(duplicate.id)}+ href={paths.issueDetail(duplicate.identifier)}className="group flex items-center gap-1.5 rounded-md px-2 py-2 text-caption hover:bg-accent/50 transition-colors"><ActorAvatar@@ -177,7 +177,7 @@ function DuplicateOfAnchor({const tooltip = useMarkerTooltip(original);return (<AppLink- href={paths.issueDetail(original.id)}+ href={paths.issueDetail(original.identifier)}newTabTitle={original.identifier}title={tooltip}{...rowLinkInteractiveProps}@@ -201,7 +201,7 @@ function DuplicateOfControl({const paths = useWorkspacePaths();const navigate = useIntentNavigate();const tooltip = useMarkerTooltip(original);- const href = paths.issueDetail(original.id);+ const href = paths.issueDetail(original.identifier);const stop = (e: React.SyntheticEvent) => {e.preventDefault();e.stopPropagation();diff --git a/packages/views/issues/components/issue-mention-card.tsx b/packages/views/issues/components/issue-mention-card.tsxindex 5510b5d291..f84d0212f4 100644--- a/packages/views/issues/components/issue-mention-card.tsx+++ b/packages/views/issues/components/issue-mention-card.tsx@@ -85,7 +85,7 @@ function IssueMentionLink({ issueId, fallbackLabel }: IssueMentionCardProps) {: null;return (<AppLink- href={p.issueDetail(issueId)}+ href={p.issueDetail(issue?.identifier || issueId)}newTabTitle={fallbackLabel}className="issue-mention align-middle"onContextMenu={diff --git a/packages/views/issues/components/issue-peek.test.tsx b/packages/views/issues/components/issue-peek.test.tsxindex 389636f81e..eb52e92538 100644--- a/packages/views/issues/components/issue-peek.test.tsx+++ b/packages/views/issues/components/issue-peek.test.tsx@@ -1,6 +1,9 @@import { act, fireEvent, screen, waitFor } from "@testing-library/react";import { useEffect, type ReactNode } from "react";import { beforeEach, describe, expect, it, vi } from "vitest";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { issueKeys } from "@multica/core/issues/queries";+import type { Issue } from "@multica/core/types";import { renderWithI18n } from "../../test/i18n";import { NavigationProvider, type NavigationAdapter } from "../../navigation";import {@@ -14,6 +17,8 @@ vi.mock("@multica/core/paths", () => ({useWorkspacePaths: () => ({ issueDetail: (id: string) => `/acme/issues/${id}` }),}));+vi.mock("@multica/core/hooks", () => ({ useWorkspaceId: () => "ws-1" }));+// The panel's job is hosting; IssueDetail itself is covered by its own suite.vi.mock("./issue-detail", () => ({IssueDetail: ({@@ -91,13 +96,17 @@ function FakeCard({ id }: { id: string }) {);}+let qc: QueryClient;+function renderHost(columns: IssuePeekColumns = COLUMNS) {const ui = (cols: IssuePeekColumns) => (- <NavigationProvider value={navigation}>- <IssuePeekHost>- <FakeBoard columns={cols} />- </IssuePeekHost>- </NavigationProvider>+ <QueryClientProvider client={qc}>+ <NavigationProvider value={navigation}>+ <IssuePeekHost>+ <FakeBoard columns={cols} />+ </IssuePeekHost>+ </NavigationProvider>+ </QueryClientProvider>);const result = renderWithI18n(ui(columns));return { ...result, setColumns: (cols: IssuePeekColumns) => result.rerender(ui(cols)) };@@ -109,7 +118,10 @@ const waitForClosed = () => waitFor(() => expect(panel()).toBeNull());const openCard = (id: string) => fireEvent.click(screen.getByText(`card ${id}`));describe("IssuePeekHost", () => {- beforeEach(() => vi.clearAllMocks());+ beforeEach(() => {+ vi.clearAllMocks();+ qc = new QueryClient();+ });it("opens the peeked issue as a peek-variant detail and marks its card", () => {renderHost();@@ -212,6 +224,17 @@ describe("IssuePeekHost", () => {);});+ // The address the issue page settles on, so opening it navigates once.+ it("links to the full page by identifier once the issue is loaded", () => {+ qc.setQueryData(issueKeys.detail("ws-1", "i-3"), { id: "i-3", identifier: "MUL-3" } as Issue);+ renderHost();+ openCard("i-3");+ expect(screen.getByRole("link", { name: "Open full page" })).toHaveAttribute(+ "href",+ "/acme/issues/MUL-3",+ );+ });+it("stays open when the view changes, stepping in the new view's order", () => {const { setColumns } = renderHost();openCard("i-2");diff --git a/packages/views/issues/components/issue-peek.tsx b/packages/views/issues/components/issue-peek.tsxindex 765e6588c0..b29e48992d 100644--- a/packages/views/issues/components/issue-peek.tsx+++ b/packages/views/issues/components/issue-peek.tsx@@ -15,6 +15,8 @@ import { cn } from "@multica/ui/lib/utils";import { UI_EASE_OUT, UI_MOTION_DURATION } from "@multica/ui/lib/motion";import { useModalStore } from "@multica/core/modals";import { useWorkspacePaths } from "@multica/core/paths";+import { useWorkspaceId } from "@multica/core/hooks";+import { useIssueRouteRef } from "@multica/core/issues/canonical-id";import {createShortcutChord,isEditableShortcutTarget,@@ -359,6 +361,7 @@ function IssuePeekTrailingActions({ issueId }: { issueId: string }) {const { t } = useT("issues");const actions = useIssuePeekActions()!;const paths = useWorkspacePaths();+ const issueRef = useIssueRouteRef(useWorkspaceId(), issueId);return (<>@@ -366,7 +369,7 @@ function IssuePeekTrailingActions({ issueId }: { issueId: string }) {<TooltipTriggerrender={<AppLink- href={paths.issueDetail(issueId)}+ href={paths.issueDetail(issueRef)}aria-label={t(($) => $.peek.open_full_page)}className={cn(buttonVariants({ variant: "ghost", size: "icon-sm" }), "text-muted-foreground")}/>diff --git a/packages/views/issues/components/list-row.tsx b/packages/views/issues/components/list-row.tsxindex f4871afaae..037fc45e3b 100644--- a/packages/views/issues/components/list-row.tsx+++ b/packages/views/issues/components/list-row.tsx@@ -75,7 +75,7 @@ function ListRowContent({const locale = useLocale();const selection = useIssueSurfaceSelection();const peeked = useIsIssuePeeked(issue.id);- const peekLinkProps = useIssuePeekLinkProps(issue.id);+ const peekLinkProps = useIssuePeekLinkProps(issue);const selected = selection.selectedIds.has(issue.id);const toggle = selection.toggle;const p = useWorkspacePaths();diff --git a/packages/views/issues/components/source-context-viewer.test.tsx b/packages/views/issues/components/source-context-viewer.test.tsxindex 453692ae11..7b2fdc7b17 100644--- a/packages/views/issues/components/source-context-viewer.test.tsx+++ b/packages/views/issues/components/source-context-viewer.test.tsx@@ -102,7 +102,7 @@ describe("SourceContextBadge", () => {expect(summary).toHaveClass("border-border/60", "bg-muted/30");expect(screen.getByRole("link", { name: /MUL-7 Current source title/ })).toHaveAttribute("href",- "/acme/issues/source-issue",+ "/acme/issues/MUL-7",);expect(screen.getByText("1/3")).toBeInTheDocument();expect(screen.getByRole("button", { name: "Context snapshot" })).toBeInTheDocument();@@ -118,7 +118,7 @@ describe("SourceContextBadge", () => {fireEvent.click(screen.getByRole("button", { name: "Go to source comment" }));await waitFor(() => expect(refetch).toHaveBeenCalledOnce());- expect(navigationPush).toHaveBeenCalledWith("/acme/issues/source-issue#comment-selected");+ expect(navigationPush).toHaveBeenCalledWith("/acme/issues/NEW-7#comment-selected");});it("keeps the snapshot open when live-source revalidation fails", async () => {diff --git a/packages/views/issues/components/source-context-viewer.tsx b/packages/views/issues/components/source-context-viewer.tsxindex 5d879d9c89..d91d335531 100644--- a/packages/views/issues/components/source-context-viewer.tsx+++ b/packages/views/issues/components/source-context-viewer.tsx@@ -71,7 +71,7 @@ export function SourceContextBadge({const openCurrent = (value: IssueSourceContext) => {if (value.anchor_comment_state !== "available" || !value.current_source || value.can_open_current_source !== true) return;- navigation.push(`${paths.issueDetail(value.current_source.issue_id)}#comment-${value.current_source.anchor_comment_id}`);+ navigation.push(`${paths.issueDetail(value.current_source.identifier || value.current_source.issue_id)}#comment-${value.current_source.anchor_comment_id}`);};const refresh = async () => {try {@@ -156,7 +156,7 @@ export function SourceContextBadge({</span>{parentIssue ? (<AppLink- href={paths.issueDetail(parentIssue.id)}+ href={paths.issueDetail(parentIssue.identifier)}aria-label={`${originIdentifier} ${originTitle}`}className="group/source-parent flex min-w-0 items-center gap-1.5 rounded-sm font-medium text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">diff --git a/packages/views/issues/components/swimlane-view.test.tsx b/packages/views/issues/components/swimlane-view.test.tsxindex 58d4426a35..31eb913b78 100644--- a/packages/views/issues/components/swimlane-view.test.tsx+++ b/packages/views/issues/components/swimlane-view.test.tsx@@ -794,7 +794,7 @@ describe("SwimLaneView", () => {const links = screen.getAllByRole("link", { name: "Open parent issue" });expect(links).toHaveLength(1);- expect(links[0]).toHaveAttribute("href", expect.stringContaining("parent-1"));+ expect(links[0]).toHaveAttribute("href", "/acme/issues/PROJ-1");});it("calls onMoveIssue on drag-and-drop end", () => {diff --git a/packages/views/issues/components/swimlane-view.tsx b/packages/views/issues/components/swimlane-view.tsxindex 731bf5b775..302e4ba845 100644--- a/packages/views/issues/components/swimlane-view.tsx+++ b/packages/views/issues/components/swimlane-view.tsx@@ -233,7 +233,7 @@ interface LaneGroup {title: string;identifier: string;/** Parent issue (parent grouping only) — drives the open-parent link + status icon in the header. */- parentIssue: Pick<Issue, "id" | "status"> | null;+ parentIssue: Pick<Issue, "id" | "identifier" | "status"> | null;/** Project metadata (project grouping only) — drives the icon in the header. */project: Project | null;/** Actor (assignee grouping only) — drives the avatar in the header. */@@ -576,7 +576,7 @@ function buildServerLanes((unavailable ? labels.otherParents : labels.noParent),identifier: value.parent?.identifier ?? "",parentIssue: value.parent- ? { id: value.parent.id, status: value.parent.status as IssueStatus }+ ? { id: value.parent.id, identifier: value.parent.identifier, status: value.parent.status as IssueStatus }: null,project: null,actor: null,@@ -1722,7 +1722,7 @@ function DraggableSwimLane({content={t(($) => $.swimlane.open_parent)}trigger={<AppLink- href={paths.issueDetail(lane.parentIssue.id)}+ href={paths.issueDetail(lane.parentIssue.identifier || lane.parentIssue.id)}aria-label={t(($) => $.swimlane.open_parent)}className="inline-flex size-5 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground">diff --git a/packages/views/issues/components/table-view-editing.test.tsx b/packages/views/issues/components/table-view-editing.test.tsxindex bbcf280a12..14ddd1b13e 100644--- a/packages/views/issues/components/table-view-editing.test.tsx+++ b/packages/views/issues/components/table-view-editing.test.tsx@@ -475,7 +475,7 @@ describe("TableView cell editors under data refresh", () => {expect(navigationMocks.push).not.toHaveBeenCalled();// In preview mode Shift+Click opens the other target: the full page, in place.fireEvent.click(title, { shiftKey: true });- expect(navigationMocks.push).toHaveBeenCalledWith("/test/issues/a");+ expect(navigationMocks.push).toHaveBeenCalledWith("/test/issues/MUL-a");expect(peek.toggle).not.toHaveBeenCalled();fireEvent.click(row, { metaKey: true });expect(navigationMocks.openInNewTab).toHaveBeenCalledWith("/test/issues/MUL-a", "MUL-a");diff --git a/packages/views/issues/components/table-view.tsx b/packages/views/issues/components/table-view.tsxindex bec843abe2..232e69b9a0 100644--- a/packages/views/issues/components/table-view.tsx+++ b/packages/views/issues/components/table-view.tsx@@ -2225,7 +2225,7 @@ export function TableView({const openIssue = useCallback((issue: Issue, event?: React.MouseEvent) => {// Match card links, including the preferred default and modifier keys.- if (handlePeekClick(issue.id, event)) {+ if (handlePeekClick(issue, event)) {if (event?.shiftKey) window.getSelection()?.removeAllRanges();return;}diff --git a/packages/views/issues/surface/peek-context.tsx b/packages/views/issues/surface/peek-context.tsxindex 067f0dc54a..d6a3c054a9 100644--- a/packages/views/issues/surface/peek-context.tsx+++ b/packages/views/issues/surface/peek-context.tsx@@ -3,6 +3,7 @@import { createContext, useCallback, useContext, useMemo } from "react";import { useIssueOpeningStore, type IssueOpenMode } from "@multica/core/issues/stores/issue-opening-store";import { useWorkspacePaths } from "@multica/core/paths";+import type { Issue } from "@multica/core/types";import { useNavigation } from "../../navigation";/**@@ -139,6 +140,8 @@ export function useIssuePeekPosition() {return useContext(IssuePeekPositionContext);}+type PeekIssue = Pick<Issue, "id" | "identifier">;+/*** Shared by card/row links and the table's non-link click targets. Returns* whether it handled the click; when it did not, the caller's own navigation@@ -149,22 +152,22 @@ export function useIssuePeekClick() {const openMode = useIssueOpeningStore((s) => s.openMode);const { push } = useNavigation();const paths = useWorkspacePaths();- return useCallback((issueId: string, event?: React.MouseEvent) => {+ return useCallback((issue: PeekIssue, event?: React.MouseEvent) => {if (!peek || event?.defaultPrevented) return false;const target = event ? resolveIssueClick(event, openMode) : openMode;if (target === "peek") {event?.preventDefault();// A plain click opens (or keeps open) the issue. Shift+Click is the// explicit preview gesture and toggles it closed again, like Space.- if (event?.shiftKey) peek.toggle(issueId);- else peek.open(issueId);+ if (event?.shiftKey) peek.toggle(issue.id);+ else peek.open(issue.id);return true;}if (target === "page" && event?.shiftKey) {// Shift+Click in preview mode opens the full page in place. Left alone,// a link would hand Shift to the browser — a new window on web.event.preventDefault();- push(paths.issueDetail(issueId));+ push(paths.issueDetail(issue.identifier));return true;}return false;@@ -172,9 +175,10 @@ export function useIssuePeekClick() {}/** Empty outside a peek host, so other issue links retain normal navigation. */-export function useIssuePeekLinkProps(issueId: string) {+export function useIssuePeekLinkProps(issue: PeekIssue) {const peek = useIssuePeekActions();const handlePeekClick = useIssuePeekClick();+ const { id, identifier } = issue;return useMemo(() =>peek@@ -184,10 +188,10 @@ export function useIssuePeekLinkProps(issueId: string) {if (event.shiftKey) event.preventDefault();},onClick: (event: React.MouseEvent) => {- handlePeekClick(issueId, event);+ handlePeekClick({ id, identifier }, event);},}: {},- [peek, handlePeekClick, issueId],+ [peek, handlePeekClick, id, identifier],);}diff --git a/packages/views/layout/panels/pinned-section.test.tsx b/packages/views/layout/panels/pinned-section.test.tsxindex 53320099d8..0c9160a1bb 100644--- a/packages/views/layout/panels/pinned-section.test.tsx+++ b/packages/views/layout/panels/pinned-section.test.tsx@@ -109,9 +109,9 @@ describe("PinnedSection", () => {data: { identifier: "MUL-123", title: "Keep this pin", status: "todo" },error: null,};- // The issue route rewrites the pin's UUID URL to the identifier form.renderWithI18n(<Harness pathname="/acme/issues/MUL-123" currentIssueId="issue-1" />);const row = (await screen.findByText("Keep this pin")).closest("a");+ expect(row).toHaveAttribute("href", "/acme/issues/MUL-123");expect(row).toHaveAttribute("aria-current", "page");expect(screen.queryByText("MUL-123 Keep this pin")).toBeNull();expect(activePinnedRoute).toBe(true);@@ -141,7 +141,7 @@ describe("PinnedSection", () => {error: null,};renderWithI18n(<Harness pathname="/acme/issues/MUL-6" currentIssueId="issue-6" />);- const lastPin = () => document.querySelector('a[href="/acme/issues/issue-6"]');+ const lastPin = () => document.querySelectorAll("a")[5] ?? null;expect(lastPin()).toBeNull();expect(activePinnedRoute).toBe(false);diff --git a/packages/views/layout/panels/pinned-section.tsx b/packages/views/layout/panels/pinned-section.tsxindex 2da50f39cf..9179d9eb84 100644--- a/packages/views/layout/panels/pinned-section.tsx+++ b/packages/views/layout/panels/pinned-section.tsx@@ -59,8 +59,8 @@ function pinHref(p: WorkspacePaths, pin: PinnedItem): string {* panel can keep its plain rows unlit while a pinned item is the page on* screen.*- * An issue pin matches by id, not by path: the issue route rewrites its UUID- * URL to the `MUL-123` form, which a pin's href never equals.+ * An issue pin matches by id, not by path: the address names the issue by+ * UUID or by its `MUL-123` identifier.*/export function usePanelPins(wsId: string | undefined,@@ -252,6 +252,7 @@ function SortablePinItem({<AppLinkhref={href}newTabTitle={label}+ data-issue-id={issue?.id}draggable={false}aria-current={active ? "page" : undefined}className={cn(ISSUE_ROW_LINK_CLASS, "gap-2.5")}@@ -327,6 +328,7 @@ function PinRow({wsId: string;}) {const { t: tProjects } = useT("projects");+ const p = useWorkspacePaths();const isIssue = pin.item_type === "issue";const agents = useIssueAgentState(wsId, isIssue ? pin.item_id : "");const unread = useIssueUnread(wsId, isIssue ? pin.item_id : "");@@ -354,7 +356,7 @@ function PinRow({return (<SortablePinItempin={pin}- href={unreadIssueHref(href, unread)}+ href={unreadIssueHref(p.issueDetail(issue.identifier), unread)}onUnpin={onUnpin}label={issue.title}active={active}diff --git a/packages/views/layout/panels/team-panel.tsx b/packages/views/layout/panels/team-panel.tsxindex 84c8fd5f5d..a9f2e099af 100644--- a/packages/views/layout/panels/team-panel.tsx+++ b/packages/views/layout/panels/team-panel.tsx@@ -167,7 +167,7 @@ function AgentPanelLink({</DropdownMenuItem>)}{currentIssue && (- <DropdownMenuItem onClick={() => push(p.issueDetail(currentIssue.id))}>+ <DropdownMenuItem onClick={() => push(p.issueDetail(currentIssue.identifier))}><ArrowUpRight className="h-3.5 w-3.5" />{t(($) => $.panels.team.open_issue, { identifier: currentIssue.identifier })}</DropdownMenuItem>diff --git a/packages/views/modals/create-issue.test.tsx b/packages/views/modals/create-issue.test.tsxindex da0efc7ff6..dca133cd42 100644--- a/packages/views/modals/create-issue.test.tsx+++ b/packages/views/modals/create-issue.test.tsx@@ -899,7 +899,7 @@ describe("CreateIssueModal", () => {await user.click(screen.getByRole("button", { name: "View issue" }));- expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/issue-123");+ expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/TES-123");expect(mockToastDismiss).toHaveBeenCalledWith("toast-1");});@@ -1747,7 +1747,7 @@ describe("CreateIssueModal", () => {expect(screen.getByText(/Login bug/)).toBeInTheDocument();await user.click(screen.getByRole("button", { name: "View existing issue" }));- expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/issue-dup");+ expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/MUL-7");expect(mockToastDismiss).toHaveBeenCalledWith("toast-dup");});diff --git a/packages/views/modals/create-issue.tsx b/packages/views/modals/create-issue.tsxindex 1fa9fc8fd2..c183585ac6 100644--- a/packages/views/modals/create-issue.tsx+++ b/packages/views/modals/create-issue.tsx@@ -707,7 +707,7 @@ export function ManualCreatePanel({type="button"className="ml-7 mt-2 text-body text-primary hover:underline cursor-pointer"onClick={() => {- router.push(p.issueDetail(issue.id));+ router.push(p.issueDetail(issue.identifier));toast.dismiss(toastId);}}>@@ -818,7 +818,7 @@ export function ManualCreatePanel({type="button"className="ml-7 mt-2 text-body text-primary hover:underline cursor-pointer"onClick={() => {- router.push(p.issueDetail(dup.issue.id));+ router.push(p.issueDetail(dup.issue.identifier));toast.dismiss(toastId);}}>diff --git a/packages/views/search/root-view.tsx b/packages/views/search/root-view.tsxindex c811d0d592..7613dded77 100644--- a/packages/views/search/root-view.tsx+++ b/packages/views/search/root-view.tsx@@ -275,7 +275,7 @@ export function RootView({ model, rawQuery }: { model: RootModel; rawQuery: striissue={issue}query={server.results.query}disabled={server.stale}- onSelect={() => palette.navigate(p.issueDetail(issue.id))}+ onSelect={() => palette.navigate(p.issueDetail(issue.identifier))}/>))}</PaletteGroup>@@ -431,7 +431,7 @@ export function RootView({ model, rawQuery }: { model: RootModel; rawQuery: striissue={issue}query={server.results.query}disabled={server.stale}- onSelect={() => palette.navigate(p.issueDetail(issue.id))}+ onSelect={() => palette.navigate(p.issueDetail(issue.identifier))}/>))}</PaletteGroup>@@ -777,7 +777,7 @@ function EmptyState({ model }: { model: RootModel }) {key={`issue:${item.id}`}issue={item.issue}query=""- onSelect={() => palette.navigate(p.issueDetail(item.id))}+ onSelect={() => palette.navigate(p.issueDetail(item.issue.identifier))}trailing={<RowHint>{t(($) => $.types.issue)}</RowHint>}/>);diff --git a/packages/views/search/search-command.test.tsx b/packages/views/search/search-command.test.tsxindex 79d8c3eed4..5d31a9f541 100644--- a/packages/views/search/search-command.test.tsx+++ b/packages/views/search/search-command.test.tsx@@ -1270,7 +1270,7 @@ describe("SearchCommand", () => {expect(handRow()).toHaveTextContent(`Hand to agent: “${prompt}”`);fireEvent.keyDown(input(), { key: "Enter" });- expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/issue-812");+ expect(mockPush).toHaveBeenCalledWith("/ws-test/issues/MUL-812");expect(mockOpenModal).not.toHaveBeenCalled();expect(api("quickCreateIssue")).not.toHaveBeenCalled();});diff --git a/packages/views/squads/components/squad-detail-page.test.tsx b/packages/views/squads/components/squad-detail-page.test.tsxindex a07e4118a2..31e184ae71 100644--- a/packages/views/squads/components/squad-detail-page.test.tsx+++ b/packages/views/squads/components/squad-detail-page.test.tsx@@ -260,13 +260,13 @@ describe("SquadDetailPage", () => {expect(within(members).getByText("Lambda")).toBeInTheDocument();expect(within(members).getByText("Leader")).toBeInTheDocument();expect(within(members).getByText("Working on")).toBeInTheDocument();- expect(within(members).getByRole("link", { name: "ARIE-2" })).toHaveAttribute("href", "/acme/issues/i-1");+ expect(within(members).getByRole("link", { name: "ARIE-2" })).toHaveAttribute("href", "/acme/issues/ARIE-2");expect(within(section("Instructions")).getByText("Start with a failing test.")).toBeInTheDocument();expect(within(section("Instructions")).getByRole("button", { name: "Edit" })).toBeInTheDocument();const recent = section("Recent work");- expect(within(recent).getByRole("link", { name: /Fix login/ })).toHaveAttribute("href", "/acme/issues/i-1");+ expect(within(recent).getByRole("link", { name: /Fix login/ })).toHaveAttribute("href", "/acme/issues/ARIE-2");});it("keeps per-member actions in the row menu", async () => {diff --git a/packages/views/squads/components/squad-detail-page.tsx b/packages/views/squads/components/squad-detail-page.tsxindex 70e3e68dd5..8b5adb7196 100644--- a/packages/views/squads/components/squad-detail-page.tsx+++ b/packages/views/squads/components/squad-detail-page.tsx@@ -673,7 +673,7 @@ function SquadMembersSection({<><span className="shrink-0">{t(($) => $.detail.working_on)}</span><AppLink- href={p.issueDetail(primaryIssue.issue_id)}+ href={p.issueDetail(primaryIssue.identifier || primaryIssue.issue_id)}title={primaryIssue.title}className="shrink-0 font-mono uppercase transition-colors hover:text-foreground">@@ -885,7 +885,7 @@ function SquadRecentWorkSection({{issues.map((issue) => (<AppLinkkey={issue.id}- href={p.issueDetail(issue.id)}+ href={p.issueDetail(issue.identifier)}className="flex h-10 items-center gap-3 px-3 text-body transition-colors hover:bg-accent/50"><StatusIcon