import Link from "next/link"; import { ExternalLink, Rocket } from "lucide-react"; import type { ProjectProduct } from "@peppa/core"; import { ago } from "@/components/common"; import { Button } from "@/components/ui/button"; import { Hidden } from "@/components/cards"; import { deployProdAction } from "@/app/(app)/actions"; const host = (url: string) => url.replace(/^https?:\/\//, ""); /** * PEP-111: «Ваш продукт» on the project page — where the result is and what to do next, for a * product manager who asks «где это работает?». Nothing is shown before the first accepted story. */ export function ProductCard({ product, projectKey, chat = true, engineer = false, back }: { product: ProjectProduct; projectKey: string; chat?: boolean; /** PEP-119: «Инженер» gets the link to the releases tab, «Продакт» — one button. */ engineer?: boolean; back?: string }) { // «Показать всем»: the same action as the button in «Релизы», without sending a product manager there. const showAll = engineer ? ( <> показать её всем можно в Релизах. > ) : (
); const { live, check, doneStories } = product; if (!live && !check && doneStories === 0) return null; const next = chat && (Что дальше: опишите следующую задачу аналитику в чате — он поможет сформулировать стори, агенты сделают.
); return (