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 && (