From ab2e837f2192fb1ecda09f4d936bcc8d08118a0c Mon Sep 17 00:00:00 2001
From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Date: Wed, 16 Jul 2025 01:16:18 +0530
Subject: [PATCH] [WEB-4501] chore: update breadcrumb dropdown on customer
detail page #3675
---
.../ee/components/customers/detail/header.tsx | 30 +++++++++++--------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/apps/web/ee/components/customers/detail/header.tsx b/apps/web/ee/components/customers/detail/header.tsx
index b2900254de..fa4f67fef1 100644
--- a/apps/web/ee/components/customers/detail/header.tsx
+++ b/apps/web/ee/components/customers/detail/header.tsx
@@ -1,23 +1,24 @@
"use client";
import React, { FC, useRef } from "react";
import { observer } from "mobx-react";
-import Link from "next/link";
import { useParams } from "next/navigation";
// plane imports
import { PanelRight } from "lucide-react";
import { ICustomSearchSelectOption } from "@plane/types";
-import { Breadcrumbs, CustomersIcon, Header, CustomSearchSelect } from "@plane/ui";
+import { Breadcrumbs, CustomersIcon, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
// components
import { cn } from "@plane/utils";
import { BreadcrumbLink, SwitcherLabel } from "@/components/common";
// hooks
import { useWorkspace } from "@/hooks/store";
+import { useAppRouter } from "@/hooks/use-app-router";
// plane web imports
import { CustomerQuickActions } from "@/plane-web/components/customers/actions";
import { useCustomers } from "@/plane-web/hooks/store";
export const CustomerDetailHeader: FC = observer(() => {
const { workspaceSlug, customerId } = useParams();
+ const router = useAppRouter();
// hooks
const { currentWorkspace } = useWorkspace();
const { getCustomerById, customerIds } = useCustomers();
@@ -37,11 +38,7 @@ export const CustomerDetailHeader: FC = observer(() => {
return {
value: _customer.id,
query: _customer.name,
- content: (
-
-
-
- ),
+ content: ,
};
})
.filter((option) => option !== undefined) as ICustomSearchSelectOption[];
@@ -64,15 +61,22 @@ export const CustomerDetailHeader: FC = observer(() => {
/>
+ {
+ router.push(`/${workspaceSlug}/customers/${value}`);
+ }}
+ title={customer?.name}
+ icon={
+
+
+
}
- value={customerId.toString()}
- onChange={() => {}}
- options={switcherOptions}
+ isLast
/>
}
+ isLast
/>