From 8907362c5896ccae3c5966d6f2ad217eb3f8f15a Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 20 Nov 2025 22:19:22 +0000 Subject: [PATCH] feat: add card breadcrumb navigation --- apps/web/src/components/SideNavigation.tsx | 4 +- .../src/views/card/components/Dropdown.tsx | 2 +- apps/web/src/views/card/index.tsx | 81 ++++++++++++------- 3 files changed, 53 insertions(+), 34 deletions(-) diff --git a/apps/web/src/components/SideNavigation.tsx b/apps/web/src/components/SideNavigation.tsx index 503829dc..68383de6 100644 --- a/apps/web/src/components/SideNavigation.tsx +++ b/apps/web/src/components/SideNavigation.tsx @@ -122,10 +122,10 @@ export default function SideNavigation({ )} >
-
+
{!isCollapsed && ( -

+

kan.bn

diff --git a/apps/web/src/views/card/components/Dropdown.tsx b/apps/web/src/views/card/components/Dropdown.tsx index 938c2f36..67b05023 100644 --- a/apps/web/src/views/card/components/Dropdown.tsx +++ b/apps/web/src/views/card/components/Dropdown.tsx @@ -28,7 +28,7 @@ export default function BoardDropdown() { }, ]} > - + ); } diff --git a/apps/web/src/views/card/index.tsx b/apps/web/src/views/card/index.tsx index 8aaa281a..ee5004f1 100644 --- a/apps/web/src/views/card/index.tsx +++ b/apps/web/src/views/card/index.tsx @@ -217,47 +217,66 @@ export default function CardPage({ isTemplate }: { isTemplate?: boolean }) { -
+
+ {/* Full-width top strip with board link and dropdown */} +
+ {!card && isLoading && ( +
+
+
+ )} + {card && ( + <> +
+ + {workspace.name} + + + + {board?.name} + +
+
+ +
+ + )} + {!card && !isLoading && ( +

+ {t`Card not found`} +

+ )} +
-
+
{!card && isLoading && (
-
)} {card && ( - <> - - {board?.name} - - -
-
- -
-
-
- +
+
+
- +
)} {!card && !isLoading && (