{value}
+ ) + ) : ( +{meta.empty}
+ )} ++ {debtItems.length} tech debt · {openItems.length - debtItems.length} other +
++ {asset.plans.filter((p) => p.planStatus === 'active').length} active +
+{item.area}
} +{item.area}
} +{plan.notes}
+ )} +{empty}
+ ) : ( +{edge.description}
+ )} +{asset.productName}
diff --git a/app/(dashboard)/products/[slug]/assets-section.tsx b/app/(dashboard)/products/[slug]/assets-section.tsx index eccbdff..d6601d6 100644 --- a/app/(dashboard)/products/[slug]/assets-section.tsx +++ b/app/(dashboard)/products/[slug]/assets-section.tsx @@ -1,6 +1,7 @@ 'use client' import { useEffect, useRef, useState, useTransition } from 'react' +import { useRouter } from 'next/navigation' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' @@ -192,13 +193,14 @@ export function AssetsSection({ } function AssetCard({ asset, onOpen }: { asset: Asset; onOpen: (asset: Asset) => void }) { + const router = useRouter() const Icon = assetTypeIcons[asset.type] const HealthIcon = healthIcons[asset.health] return ({assetTypeLabels[asset.type]}