π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-2674] chore: open parent issues in peek-overview from the parent badge. (#5872)
Prateek Shouryab833e3b10c2d
diff --git a/web/core/components/issues/issue-detail/parent/root.tsx b/web/core/components/issues/issue-detail/parent/root.tsxindex 1e8fbb01cd..c96ecd69ac 100644--- a/web/core/components/issues/issue-detail/parent/root.tsx+++ b/web/core/components/issues/issue-detail/parent/root.tsx@@ -2,14 +2,15 @@import { FC } from "react";import { observer } from "mobx-react";-import Link from "next/link";import { MinusCircle } from "lucide-react";import { TIssue } from "@plane/types";// component// ui-import { CustomMenu } from "@plane/ui";+import { ControlLink, CustomMenu } from "@plane/ui";// hooksimport { useIssues, useProjectState } from "@/hooks/store";+import useIssuePeekOverviewRedirection from "@/hooks/use-issue-peek-overview-redirection";+import { usePlatformOS } from "@/hooks/use-platform-os";// plane web componentsimport { IssueIdentifier } from "@/plane-web/components/issues";// types@@ -29,6 +30,8 @@ export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {// hooksconst { issueMap } = useIssues();const { getProjectStates } = useProjectState();+ const { handleRedirection } = useIssuePeekOverviewRedirection();+ const { isMobile } = usePlatformOS();const parentIssue = issueMap?.[issue.parent_id || ""] || undefined;@@ -42,7 +45,10 @@ export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {return (<><div className="mb-5 flex w-min items-center gap-3 whitespace-nowrap rounded-md border border-custom-border-300 bg-custom-background-80 px-2.5 py-1 text-xs">- <Link href={`/${workspaceSlug}/projects/${parentIssue?.project_id}/issues/${parentIssue.id}`} target="_blank">+ <ControlLink+ href={`/${workspaceSlug}/projects/${parentIssue?.project_id}/issues/${parentIssue.id}`}+ onClick={() => handleRedirection(workspaceSlug, parentIssue, isMobile)}+ ><div className="flex items-center gap-2"><div className="flex items-center gap-2.5"><span className="block h-2 w-2 rounded-full" style={{ backgroundColor: stateColor }} />@@ -56,7 +62,7 @@ export const IssueParentDetail: FC<TIssueParentDetail> = observer((props) => {</div><span className="truncate text-custom-text-100">{(parentIssue?.name ?? "").substring(0, 50)}</span></div>- </Link>+ </ControlLink><CustomMenu ellipsis optionsClassName="p-1.5"><div className="border-b border-custom-border-300 text-xs font-medium text-custom-text-200">