({
organization,
showDeleted,
showTrialEndDate = false,
}: {
organization: AdminOrganization;
showDeleted?: boolean;
showTrialEndDate?: boolean;
})
| 175 | <span className="text-muted-foreground text-sm"> |
| 176 | {organization.deleted_at ? 'Yes' : 'No'} |
| 177 | </span> |
| 178 | </TableCell> |
| 179 | )} |
| 180 | </> |
| 181 | ); |
| 182 | } |
| 183 | |
| 184 | function UsageRow({ |
| 185 | organization, |
| 186 | showDeleted, |
| 187 | showTrialEndDate = false, |
| 188 | }: { |
| 189 | organization: AdminOrganization; |
| 190 | showDeleted?: boolean; |
| 191 | showTrialEndDate?: boolean; |
| 192 | }) { |
| 193 | return ( |
| 194 | <> |
| 195 | <TableCell className="min-w-40 font-medium"> |
| 196 | <span>{organization.name}</span> |
| 197 | </TableCell> |
| 198 | {showTrialEndDate && ( |
| 199 | <TableCell className="min-w-32"> |
| 200 | {organization.free_trial_end_at ? ( |
| 201 | <div className="flex flex-col leading-tight"> |
| 202 | <span className="text-sm">{formatDateOnly(organization.free_trial_end_at)}</span> |
| 203 | <span className="text-muted-foreground text-xs"> |
| 204 | {formatRelativeTime(organization.free_trial_end_at)} |
| 205 | </span> |
| 206 | </div> |
| 207 | ) : ( |
| 208 | <span className="text-muted-foreground text-sm">—</span> |
| 209 | )} |
| 210 | </TableCell> |
| 211 | )} |
| 212 | <TableCell className="min-w-28"> |
| 213 | <span className="font-mono text-sm"> |
| 214 | {formatMicrodollars(organization.microdollars_used, 0)} |
| 215 | </span> |
| 216 | </TableCell> |
| 217 | <TableCell className="min-w-28"> |
| 218 | <span className="font-mono text-sm"> |
| 219 | {formatMicrodollars( |
| 220 | organization.total_microdollars_acquired - organization.microdollars_used, |
| 221 | 0 |
| 222 | )} |
| 223 | </span> |
| 224 | </TableCell> |
| 225 | <TableCell className="min-w-28"> |
| 226 | <span className="text-sm tabular-nums"> |
| 227 | <span className="font-medium">{organization.member_count}</span> |
| 228 | {organization.seat_count > 0 && ( |
| 229 | <span className="text-muted-foreground"> / {organization.seat_count}</span> |
| 230 | )} |
| 231 | </span> |
| 232 | </TableCell> |
| 233 | <TableCell> |
| 234 | <PillGroup |
nothing calls this directly
no test coverage detected