From a532a8d851726cc240162a28bb2af98c3614c70a Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Thu, 30 Apr 2026 19:28:07 +0200 Subject: [PATCH] refactor: remove duplicate header labels on backlog page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both the product H1 + description in the page header and the "Product Backlog" panel-title in the PBI panel duplicated info already visible in the NavBar. Removed both, keeping the right-aligned action bars (activate/sprint/settings, plus filters/+PBI) intact. PanelNavBar component is unchanged — Stories and Taken panels keep their titles. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/(app)/products/[id]/page.tsx | 10 +- components/backlog/pbi-list.tsx | 158 +++++++++++++++---------------- 2 files changed, 78 insertions(+), 90 deletions(-) diff --git a/app/(app)/products/[id]/page.tsx b/app/(app)/products/[id]/page.tsx index 647d8c6..85519dd 100644 --- a/app/(app)/products/[id]/page.tsx +++ b/app/(app)/products/[id]/page.tsx @@ -92,14 +92,8 @@ export default async function ProductBacklogPage({ params, searchParams }: Props return (
- {/* Product header */} -
-
-

{product.name}

- {product.description && ( -

{product.description}

- )} -
+ {/* Product header — actions only; product-naam zit al in NavBar */} +
{user?.active_product_id !== id && ( diff --git a/components/backlog/pbi-list.tsx b/components/backlog/pbi-list.tsx index 8f79138..3995102 100644 --- a/components/backlog/pbi-list.tsx +++ b/components/backlog/pbi-list.tsx @@ -24,7 +24,6 @@ import { toast } from 'sonner' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover' -import { PanelNavBar } from '@/components/shared/panel-nav-bar' import { useSelectionStore } from '@/stores/selection-store' import { usePlannerStore } from '@/stores/planner-store' import { useBacklogStore } from '@/stores/backlog-store' @@ -330,92 +329,87 @@ export function PbiList({ productId, isDemo }: PbiListProps) { return (
- - {filterPriority !== 'all' && ( - - )} - {filterStatus !== 'all' && ( - - )} - - - {`Filters${activeFilterCount > 0 ? ` (${activeFilterCount})` : ''}`} - - } - /> - - - - -
- -
-
-
- +
+ {filterPriority !== 'all' && ( + + )} + {filterStatus !== 'all' && ( + + )} + + + {`Filters${activeFilterCount > 0 ? ` (${activeFilterCount})` : ''}`} + + } + /> + + + + +
- - - } - /> +
+
+
+ + + +
{pbis.length === 0 ? (