(props: { labs: LabEntry[] })
| 779 | } |
| 780 | |
| 781 | function LabsPage(props: { labs: LabEntry[] }) { |
| 782 | return ( |
| 783 | <TableSection title="Labs" count={props.labs.length} columns={5} hideHeading> |
| 784 | <table data-enhanced-table> |
| 785 | <thead> |
| 786 | <tr> |
| 787 | <SortableTh>Lab</SortableTh> |
| 788 | <SortableTh>Description</SortableTh> |
| 789 | <SortableTh type="number">Models</SortableTh> |
| 790 | <SortableTh type="number">Providers</SortableTh> |
| 791 | <SortableTh>Last Updated</SortableTh> |
| 792 | </tr> |
| 793 | </thead> |
| 794 | <tbody> |
| 795 | {props.labs.map((lab) => ( |
| 796 | <tr data-search={`${lab.name} ${lab.description ?? ""} ${lab.id} ${lab.families.join(" ")}`}> |
| 797 | <td data-sort={lab.name}> |
| 798 | <LabLink labId={lab.id} labName={lab.name} /> |
| 799 | <span class="subtle mono">{lab.id}</span> |
| 800 | </td> |
| 801 | <td>{lab.description ?? "-"}</td> |
| 802 | <td data-sort={String(lab.models.length)}>{lab.models.length}</td> |
| 803 | <td data-sort={String(lab.providerCount)}>{lab.providerCount}</td> |
| 804 | <td data-sort={sortDate(lab.lastUpdated)}>{lab.lastUpdated ?? "-"}</td> |
| 805 | </tr> |
| 806 | ))} |
| 807 | <EmptyRow columns={5} /> |
| 808 | </tbody> |
| 809 | </table> |
| 810 | </TableSection> |
| 811 | ); |
| 812 | } |
| 813 | |
| 814 | function ModelPage(props: { model: ModelEntry }) { |
| 815 | const { model } = props; |
nothing calls this directly
no test coverage detected