({ id, domain, name, organizationId }: IServiceProject)
| 43 | } |
| 44 | |
| 45 | function ProjectCard({ id, domain, name, organizationId }: IServiceProject) { |
| 46 | return ( |
| 47 | <ProjectCardRoot> |
| 48 | <Link |
| 49 | to="/$organizationId/$projectId" |
| 50 | params={{ |
| 51 | organizationId, |
| 52 | projectId: id, |
| 53 | }} |
| 54 | className="col p-4 transition-transform" |
| 55 | > |
| 56 | <div className="font-medium flex items-center gap-2 text-lg pb-2"> |
| 57 | <div className="row gap-2 flex-1"> |
| 58 | {domain && <SerieIcon name={domain ?? ''} />} |
| 59 | {name} |
| 60 | </div> |
| 61 | </div> |
| 62 | <div className="-mx-4 aspect-[8/1] mb-4"> |
| 63 | <ProjectChartOuter id={id} /> |
| 64 | </div> |
| 65 | <div className="flex flex-1 gap-4 h-9 md:h-4"> |
| 66 | <ProjectMetrics id={id} /> |
| 67 | </div> |
| 68 | </Link> |
| 69 | <LinkButton |
| 70 | variant="ghost" |
| 71 | href={`/${organizationId}/${id}/settings`} |
| 72 | className="text-muted-foreground absolute top-2 right-2" |
| 73 | > |
| 74 | <SettingsIcon size={16} /> |
| 75 | </LinkButton> |
| 76 | </ProjectCardRoot> |
| 77 | ); |
| 78 | } |
| 79 | |
| 80 | function ProjectChartOuter({ id }: { id: string }) { |
| 81 | const trpc = useTRPC(); |
nothing calls this directly
no outgoing calls
no test coverage detected