/** * Completeness dots: one dot per data domain, filled when the entity has ≥1 record in it. * Domains: taxonomy, epidemiology, survival, genomics, evidence, drugs, trials, literature. */ export const COMPLETENESS_DOMAINS = ['taxonomy', 'epidemiology', 'survival', 'genomics', 'evidence', 'drugs', 'trials', 'literature'] as const; export function CompletenessDots({ filled, className = '' }: { filled: Record; className?: string }) { const on = COMPLETENESS_DOMAINS.filter((d) => Boolean(filled[d])); return ( `${filled[d] ? '●' : '○'} ${d}`).join(' ')}> {COMPLETENESS_DOMAINS.map((d) => ( ))} ); }