Files
ai-taxonomy-literature-anal…/components/PaperGroup.tsx
T
claude-bot 72a6552d28
Deploy / deploy (push) Successful in 8m53s
Lean page: remove the duplicate "Analysed in depth" section
The paper table already links every paper and marks analysed ones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FbMbJPadPzVwvt9rU9GBNo
2026-10-23 21:38:47 +08:00

42 lines
1.7 KiB
TypeScript

import Link from 'next/link';
import type { PaperListContent } from '../lib/content-papers';
/** Body of an analysis page about a group of papers (kind 'papers'). */
export default function PaperGroup({ list }: { list: PaperListContent }) {
return (
<>
<div className="cards">
<div className="card"><div className="stat">{list.total}</div>papers in this group</div>
<div className="card"><div className="stat">{list.analysed.length}</div>analysed in depth</div>
{list.byVenue.slice(0, 4).map((v) => <div key={v.conf_short} className="card"><div className="stat">{v.n}</div>at {v.conf_short}</div>)}
</div>
{list.benchmarks.length > 0 && (
<>
<h2>Benchmarks these papers use</h2>
<table>
<thead><tr><th>Benchmark</th><th>Papers</th></tr></thead>
<tbody>{list.benchmarks.map((b) => <tr key={b.id}><td><Link href={`/benchmarks/${b.id}`}>{b.name}</Link></td><td>{b.n}</td></tr>)}</tbody>
</table>
</>
)}
<h2>All papers in the group</h2>
<p className="sub">Matched by text (title, abstract, keywords); a paper may be a false match.</p>
<table>
<thead><tr><th>Paper</th><th>Venue</th><th>Date</th><th>Analysis</th></tr></thead>
<tbody>
{list.papers.map((p) => (
<tr key={p.id}>
<td><Link href={`/papers/${p.id}`}>{p.title}</Link></td>
<td style={{ whiteSpace: 'nowrap' }}>{p.conf_short}</td>
<td style={{ whiteSpace: 'nowrap' }}>{p.date}</td>
<td>{p.analysed ? '✓' : ''}</td>
</tr>
))}
</tbody>
</table>
</>
);
}