feat(dashboard): Top providers row drillable to /providers?provider=NPI

This commit is contained in:
Tyler
2026-06-21 14:06:29 -06:00
parent 88da3a6246
commit 5d6b5894f3
+16 -1
View File
@@ -289,7 +289,22 @@ export function Dashboard() {
<CardContent className="pt-0">
<ul className="space-y-4">
{topProviders.map((p, i) => (
<li key={p.npi} className="flex items-center gap-3">
<li
key={p.npi}
onClick={() =>
navigate(`/providers?provider=${encodeURIComponent(p.npi)}`)
}
onKeyDown={(e) => {
if (e.key === "Enter")
navigate(
`/providers?provider=${encodeURIComponent(p.npi)}`
);
}}
role="button"
tabIndex={0}
aria-label={`View provider ${p.name}`}
className="drillable flex items-center gap-3"
>
<div className="h-7 w-7 rounded-md bg-muted/60 ring-1 ring-inset ring-border/40 flex items-center justify-center mono text-[10.5px] text-muted-foreground">
{String(i + 1).padStart(2, "0")}
</div>