From c9f0e65a3d492544fe1f2d21428a365e7e76e86e Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Sat, 9 May 2026 21:03:49 +0200 Subject: [PATCH] feat(PBI-49): add debugProps to jobs/ + ideas/ components --- components/ideas/download-md-button.tsx | 2 ++ components/ideas/idea-detail-layout.tsx | 3 ++- components/ideas/idea-list.tsx | 3 ++- components/ideas/idea-md-editor.tsx | 3 ++- components/ideas/idea-pbi-link-card.tsx | 5 +++-- components/ideas/idea-row-actions.tsx | 3 ++- components/ideas/idea-sync-tab.tsx | 3 ++- components/ideas/idea-timeline.tsx | 3 ++- components/ideas/user-chat-input.tsx | 5 +++-- components/jobs/job-card.tsx | 2 ++ components/jobs/job-detail-pane.tsx | 5 +++-- components/jobs/job-usage-pane.tsx | 5 +++-- components/jobs/jobs-board.tsx | 15 +++++++++------ components/jobs/jobs-column.tsx | 3 ++- components/jobs/sprint-sub-tasks-pane.tsx | 7 ++++++- 15 files changed, 45 insertions(+), 22 deletions(-) diff --git a/components/ideas/download-md-button.tsx b/components/ideas/download-md-button.tsx index 6e1a255..8280f25 100644 --- a/components/ideas/download-md-button.tsx +++ b/components/ideas/download-md-button.tsx @@ -9,6 +9,7 @@ import { Download } from 'lucide-react' import { toast } from 'sonner' import { Button } from '@/components/ui/button' +import { debugProps } from '@/lib/debug' import { downloadIdeaMdAction } from '@/actions/ideas' interface Props { @@ -47,6 +48,7 @@ export function DownloadMdButton({ ideaId, kind, hasContent }: Props) { onClick={handleClick} disabled={pending || !hasContent} title={hasContent ? `Download ${kind}_md` : 'Geen content'} + {...debugProps('download-md-button', 'DownloadMdButton', 'components/ideas/download-md-button.tsx')} > .md diff --git a/components/ideas/idea-detail-layout.tsx b/components/ideas/idea-detail-layout.tsx index adbb857..2284090 100644 --- a/components/ideas/idea-detail-layout.tsx +++ b/components/ideas/idea-detail-layout.tsx @@ -20,6 +20,7 @@ import { getIdeaStatusBadge } from '@/lib/idea-status-colors' import type { IdeaStatusApi } from '@/lib/idea-status' import { isIdeaEditable } from '@/lib/idea-status' import type { IdeaDto } from '@/lib/idea-dto' +import { debugProps } from '@/lib/debug' import { updateIdeaAction, archiveIdeaAction, updateSecondaryProductsAction } from '@/actions/ideas' import { IdeaRowActions } from '@/components/ideas/idea-row-actions' import { IdeaMdEditor } from '@/components/ideas/idea-md-editor' @@ -132,7 +133,7 @@ export function IdeaDetailLayout({ const badge = getIdeaStatusBadge(API_TO_DB[idea.status]) return ( -
+
{/* Breadcrumb / back-link */} +
{/* Top-bar: search + nieuw-knop */}
+
{errors.length > 0 && (

diff --git a/components/ideas/idea-pbi-link-card.tsx b/components/ideas/idea-pbi-link-card.tsx index 1d47854..d69f3d4 100644 --- a/components/ideas/idea-pbi-link-card.tsx +++ b/components/ideas/idea-pbi-link-card.tsx @@ -11,6 +11,7 @@ import { ExternalLink, Link2Off } from 'lucide-react' import { toast } from 'sonner' import { Button } from '@/components/ui/button' +import { debugProps } from '@/lib/debug' import { relinkIdeaPlanAction } from '@/actions/ideas' import type { IdeaDto } from '@/lib/idea-dto' @@ -27,7 +28,7 @@ export function IdeaPbiLinkCard({ idea, isDemo }: Props) { if (idea.pbi && idea.product_id) { return ( -

+

Gepland @@ -62,7 +63,7 @@ export function IdeaPbiLinkCard({ idea, isDemo }: Props) { } return ( -

+

diff --git a/components/ideas/idea-row-actions.tsx b/components/ideas/idea-row-actions.tsx index 769a6cd..98e8dd3 100644 --- a/components/ideas/idea-row-actions.tsx +++ b/components/ideas/idea-row-actions.tsx @@ -36,6 +36,7 @@ import { } from '@/components/ui/tooltip' import { DemoTooltip } from '@/components/shared/demo-tooltip' import { useSoloStore } from '@/stores/solo-store' +import { debugProps } from '@/lib/debug' import { startGrillJobAction, startMakePlanJobAction, @@ -134,7 +135,7 @@ export function IdeaRowActions({ idea, isDemo, onArchive }: IdeaRowActionsProps) } return ( -

+
{/* Bekijk PBI — alleen zichtbaar in PLANNED */} {status === 'planned' && idea.pbi && idea.product_id && (