⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
fix(web): show parent in subtask breadcrumb, close panel on navigation (#101)
Croff0f0a6f66bf1d
diff --git a/apps/web/src/components/layout/IssueBreadcrumb.tsx b/apps/web/src/components/layout/IssueBreadcrumb.tsxindex c76efaa9..1cc609b2 100644--- a/apps/web/src/components/layout/IssueBreadcrumb.tsx+++ b/apps/web/src/components/layout/IssueBreadcrumb.tsx@@ -1,16 +1,20 @@import Link from 'next/link';import { ChevronRight } from 'lucide-react';-import { projectPath } from '@/utils/paths';+import type { IssueRef } from '@/lib/api';+import { issuePath, projectPath } from '@/utils/paths';-// The header title on an issue page: project name › issue identifier.+// The header title on an issue page: project name › issue identifier, with the+// parent identifier in between when the issue is a subtask.export default function IssueBreadcrumb({projectKey,projectName,identifier,+ parent,}: {projectKey: string | null;projectName: string;identifier: string | null;+ parent: IssueRef | null;}) {return (<span className="flex min-w-0 items-center gap-1.5">@@ -20,6 +24,17 @@ export default function IssueBreadcrumb({>{projectName}</Link>+ {parent && projectKey && (+ <>+ <ChevronRight className="size-3.5 shrink-0 text-muted-foreground" />+ <Link+ href={issuePath(projectKey, parent.sequenceNumber)}+ className="truncate text-muted-foreground hover:text-foreground"+ >+ {parent.identifier}+ </Link>+ </>+ )}<ChevronRight className="size-3.5 shrink-0 text-muted-foreground" /><span className="truncate font-medium">{identifier ?? '…'}</span></span>diff --git a/apps/web/src/components/layout/Shell.tsx b/apps/web/src/components/layout/Shell.tsxindex ad9968c4..b0f84778 100644--- a/apps/web/src/components/layout/Shell.tsx+++ b/apps/web/src/components/layout/Shell.tsx@@ -128,6 +128,7 @@ export default function Shell({route={route}projectName={project?.project.name ?? 'Project'}issueIdentifier={issueQuery.data?.identifier ?? null}+ issueParent={issueQuery.data?.parent ?? null}/>}hasProject={!!project}diff --git a/apps/web/src/components/layout/ShellHeaderTitle.tsx b/apps/web/src/components/layout/ShellHeaderTitle.tsxindex c1a9441a..19587291 100644--- a/apps/web/src/components/layout/ShellHeaderTitle.tsx+++ b/apps/web/src/components/layout/ShellHeaderTitle.tsx@@ -1,4 +1,5 @@import { SETTINGS_SECTIONS } from '@/utils/settingsSections';+import type { IssueRef } from '@/lib/api';import type { ShellRoute } from '@/hooks/useShellRoute';import CycleBreadcrumb from '@/components/layout/CycleBreadcrumb';import InitiativeBreadcrumb from '@/components/layout/InitiativeBreadcrumb';@@ -24,10 +25,12 @@ export default function ShellHeaderTitle({route,projectName,issueIdentifier,+ issueParent,}: {route: ShellRoute;projectName: string;issueIdentifier: string | null;+ issueParent: IssueRef | null;}) {if (route.routeIssueSeq != null) {return (@@ -35,6 +38,7 @@ export default function ShellHeaderTitle({projectKey={route.projectKey}projectName={projectName}identifier={issueIdentifier}+ parent={issueParent}/>);}diff --git a/apps/web/src/hooks/useOverlays.ts b/apps/web/src/hooks/useOverlays.tsindex 523980c5..da90d705 100644--- a/apps/web/src/hooks/useOverlays.ts+++ b/apps/web/src/hooks/useOverlays.ts@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { usePathname } from 'next/navigation';import type { NewIssueDefaults } from '@/utils/project';// The project-level overlays: the new-project modal, the command palette, the@@ -21,6 +22,13 @@ export function useOverlays(showChatByDefault: boolean) {const [chatEnabled, setChatEnabled] = useState(false);const [chatOpen, setChatOpen] = useState(false);+ // The panel is not addressed by the URL, so a link inside it navigates the page+ // behind it and leaves the panel standing over the new page.+ const pathname = usePathname();+ useEffect(() => {+ setOpenIssueId(null);+ }, [pathname]);+// The preference arrives after the first render, so it is applied in an effect,// and only once — a manual toggle afterwards stays as the user left it.const defaultApplied = useRef(false);