From fdde95654d39ed55b79ca84b529bcb972b251f67 Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Wed, 13 May 2026 15:16:42 +0200 Subject: [PATCH] feat(PBI-82): vervang inline checkboxlijst door Popover in idea-detail-layout Co-Authored-By: Claude Sonnet 4.6 --- components/ideas/idea-detail-layout.tsx | 57 ++++++++++++++++--------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/components/ideas/idea-detail-layout.tsx b/components/ideas/idea-detail-layout.tsx index 0a86514..2f333d4 100644 --- a/components/ideas/idea-detail-layout.tsx +++ b/components/ideas/idea-detail-layout.tsx @@ -16,6 +16,7 @@ import { toast } from 'sonner' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Textarea } from '@/components/ui/textarea' +import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover' import { getIdeaStatusBadge } from '@/lib/idea-status-colors' import type { IdeaStatusApi } from '@/lib/idea-status' import { isIdeaEditable } from '@/lib/idea-status' @@ -363,25 +364,43 @@ function IdeaFormSection({ idea, products, isDemo, pending, secondaryProducts }: {products.filter((p) => p.id !== productId).length > 0 && (
-
- {products - .filter((p) => p.id !== productId) - .map((p) => ( - - ))} -
+ + + {selectedSecondary.length > 0 + ? `Extra producten (${selectedSecondary.length})` + : 'Extra producten'} + + } + /> + + {products + .filter((p) => p.id !== productId) + .map((p) => ( + + ))} + +
)}