Home: approvals module; drug page: graph link
2 changed files +6 −0
modified
apps/web/src/app/drug/[slug]/page.tsx
+2 −0
@@ -2,6 +2,7 @@ import type { Metadata } from 'next'; | ||
| 2 | 2 | import Link from 'next/link'; |
| 3 | 3 | import { notFound } from 'next/navigation'; |
| 4 | 4 | import { ExternalLink } from 'lucide-react'; |
| 5 | +import { GraphLink } from '@/components/graph/graph-link'; | |
| 5 | 6 | import { PageHeader, Section, KV, Note } from '@/components/ui/section'; |
| 6 | 7 | import { Badge, ClaimBadge } from '@/components/ui/badge'; |
| 7 | 8 | import { EmptyState } from '@/components/ui/empty-state'; |
@@ -93,6 +94,7 @@ export default async function DrugPage({ params, searchParams }: { params: Promi | ||
| 93 | 94 | <PageHeader kicker={`Drug${d.kind ? ` · ${humanize(d.kind)}` : ''}`} title={d.name} lede={d.description ?? undefined}> |
| 94 | 95 | <p className="mt-2 flex flex-wrap items-center gap-2 text-[12.5px]"> |
| 95 | 96 | <span className="ci-mono text-ink-3">{d.id}</span> |
| 97 | + <GraphLink type="drug" ref={d.slug} /> | |
| 96 | 98 | {d.ncit_code ? ( |
| 97 | 99 | <a className="ci-link inline-flex items-center gap-1" href={`https://evsexplore.semantics.cancer.gov/evsexplore/concept/ncit/${d.ncit_code}`} target="_blank" rel="noopener noreferrer"> |
| 98 | 100 | NCIt {d.ncit_code} <ExternalLink className="h-3 w-3" aria-hidden /> |
modified
apps/web/src/app/page.tsx
+4 −0
@@ -18,6 +18,7 @@ import { TrialIntelModule } from '@/components/home/trial-intel-module'; | ||
| 18 | 18 | import { TrialMapModule } from '@/components/home/trial-map-module'; |
| 19 | 19 | import { GraphModule } from '@/components/home/graph-module'; |
| 20 | 20 | import { ExplorerModule } from '@/components/home/explorer-module'; |
| 21 | +import { ApprovalsModule } from '@/components/home/approvals-module'; | |
| 21 | 22 | |
| 22 | 23 | export const revalidate = 900; |
| 23 | 24 | |
@@ -88,6 +89,9 @@ export default async function HomePage() { | ||
| 88 | 89 | {/* Clinical trial intelligence (SPEC §10) */} |
| 89 | 90 | <TrialIntelModule limit={8} /> |
| 90 | 91 | |
| 92 | + {/* New oncology approvals (SPEC §14) */} | |
| 93 | + <ApprovalsModule limit={8} /> | |
| 94 | + | |
| 91 | 95 | {/* Rankings preview */} |
| 92 | 96 | <Section |
| 93 | 97 | id="rankings" |
| 94 | 98 | |