Merge types of work, benchmarks and taxonomy into /landscape; add /contents tree (Tools of agents)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FbMbJPadPzVwvt9rU9GBNo
This commit is contained in:
2026-10-23 05:10:54 +00:00
parent 13062bf08e
commit dac4d94bfe
14 changed files with 362 additions and 168 deletions
+2 -3
View File
@@ -6,9 +6,8 @@ import { ReactNode } from 'react';
const LINKS = [
{ href: '/', label: 'Overview' },
{ href: '/papers', label: 'Papers' },
{ href: '/work-types', label: 'Types of work' },
{ href: '/benchmarks', label: 'Benchmarks' },
{ href: '/taxonomy', label: 'Taxonomy' },
{ href: '/landscape', label: 'Landscape' },
{ href: '/contents', label: 'Contents' },
];
export default function Layout({ title, children }: { title?: string; children: ReactNode }) {
+1 -1
View File
@@ -14,7 +14,7 @@ export default function LegacyTypeView({ data, page, llm, slug }: { data: Data;
const withScores = results.length > 0;
return (
<Layout title={`${area.label} · ${role.label}`}>
<p><Link href="/work-types">← All types of work</Link></p>
<p><Link href="/landscape#types">← All types of work</Link></p>
<h1>{role.label}</h1>
<p className="sub">in <b>{area.label}</b> · {type.n_papers.toLocaleString()} papers ({type.n_llm_labeled} labelled in detail)</p>
+72
View File
@@ -0,0 +1,72 @@
import { one, query } from './db';
import { listReviews } from './reviews';
import { Area, Role } from './worktypes';
/** Your tree of content. Add nodes here; each node pulls its numbers from the areas / taxonomy nodes it lists. */
export interface ContentNode {
id: string;
title: string;
blurb: string;
areas: string[]; // work-type areas (areas.id)
taxonomy: string[]; // taxonomy node ids
children: ContentNode[];
}
export const CONTENT_TREE: ContentNode = {
id: 'root',
title: 'Contents',
blurb: 'The structure of the survey write-up.',
areas: [],
taxonomy: [],
children: [
{
id: 'tools-of-agents',
title: 'Tools of agents',
blurb: 'How agents call tools: function calling, MCP, API use and tool-integrated reasoning.',
areas: ['tool-use'],
taxonomy: ['agents/tools'],
children: [],
},
],
};
export function findNode(id: string, n: ContentNode = CONTENT_TREE): ContentNode | null {
if (n.id === id) return n;
for (const c of n.children) { const f = findNode(id, c); if (f) return f; }
return null;
}
export async function getContent(node: ContentNode) {
const areas = await query<Area>('SELECT a.*, 0 AS n FROM areas a WHERE a.id = ANY(?) ORDER BY sort', [node.areas]);
const [roles, byRole, benchmarks, taxonomy, papers, total, reviews] = await Promise.all([
query<Role>('SELECT r.*, 0 AS n FROM roles r ORDER BY sort'),
query<{ type_id: string; n: number; n_llm: number }>(
`SELECT type_id, COUNT(*) AS n, SUM((source='llm')::int) AS n_llm FROM paper_work_types WHERE split_part(type_id,'|',1) = ANY(?) GROUP BY type_id`, [node.areas]),
query<{ id: number; name: string; n: number; n_new: number }>(
`SELECT b.id, b.name, COUNT(DISTINCT pb.paper_id) AS n, SUM(pb.is_new) AS n_new
FROM paper_benchmarks pb JOIN benchmarks b ON b.id = pb.bench_id JOIN paper_work_types w ON w.paper_id = pb.paper_id
WHERE split_part(w.type_id,'|',1) = ANY(?) GROUP BY b.id ORDER BY n DESC, b.id LIMIT 12`, [node.areas]),
query<{ id: string; label: string; n: number }>(
`SELECT pt.node_id AS id, t.label, COUNT(DISTINCT pt.paper_id) AS n FROM paper_taxonomy pt JOIN taxonomy t ON t.id = pt.node_id
WHERE pt.node_id = ANY(?) GROUP BY pt.node_id, t.label`, [node.taxonomy]),
query<{ id: number; title: string; conf_short: string; date: string; summary: string | null }>(
`SELECT p.id, p.title, c.short AS conf_short, COALESCE(c.start_date,'2026-06-01') AS date, pm.summary
FROM papers p JOIN conferences c ON c.slug = p.conf LEFT JOIN paper_meta pm ON pm.paper_id = p.id
WHERE p.id IN (SELECT paper_id FROM paper_work_types WHERE split_part(type_id,'|',1) = ANY(?) AND source = 'llm')
ORDER BY date DESC, p.id LIMIT 20`, [node.areas]),
one<{ n: number }>(`SELECT COUNT(DISTINCT paper_id) AS n FROM paper_work_types WHERE split_part(type_id,'|',1) = ANY(?)`, [node.areas]),
listReviews(),
]);
const cells = new Map(byRole.map((r) => [r.type_id, r]));
return {
areas,
total: total?.n ?? 0,
roles: roles
.map((r) => ({ ...r, cells: node.areas.map((a) => ({ id: `${a}|${r.id}`, ...(cells.get(`${a}|${r.id}`) ?? { n: 0, n_llm: 0 }) })) }))
.filter((r) => r.cells.some((c) => c.n > 0)),
benchmarks,
taxonomy,
papers,
reviews: reviews.filter((r) => node.areas.includes(r.area)),
};
}
+8
View File
@@ -1,4 +1,12 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
// the three list pages were merged into /landscape (query strings are carried over)
async redirects() {
return [
{ source: '/work-types', destination: '/landscape#types', permanent: false },
{ source: '/benchmarks', destination: '/landscape#benchmarks', permanent: false },
{ source: '/taxonomy', destination: '/landscape#taxonomy', permanent: false },
];
},
};
+1 -1
View File
@@ -15,7 +15,7 @@ export default function BenchmarkPage({ data }: { data: Data }) {
const { bench, papers, byType, results } = data;
return (
<Layout title={bench.name}>
<p><Link href="/benchmarks">← All benchmarks</Link></p>
<p><Link href="/landscape#benchmarks">← All benchmarks</Link></p>
<h1>{bench.name}</h1>
<p className="sub">{bench.n_papers} papers · introduced in {bench.n_new} of them</p>
-24
View File
@@ -1,24 +0,0 @@
import type { GetServerSideProps } from 'next';
import Link from 'next/link';
import Layout from '../../components/Layout';
import { getBenchmarks } from '../../lib/worktypes';
interface Props { rows: Awaited<ReturnType<typeof getBenchmarks>> }
export const getServerSideProps: GetServerSideProps<Props> = async () => ({ props: { rows: await getBenchmarks(2) } });
export default function Benchmarks({ rows }: Props) {
return (
<Layout title="Benchmarks">
<h1>Benchmarks</h1>
<p className="sub">Benchmarks named in at least two papers’ abstracts. Extracted from the detailed agent-paper labels and matched by name in the remaining papers.</p>
<table>
<thead><tr><th>Benchmark</th><th>Papers</th><th>Introduced in 2026</th><th>Scores recorded</th></tr></thead>
<tbody>
{rows.map((b) => (
<tr key={b.id}><td><Link href={`/benchmarks/${b.id}`}>{b.name}</Link></td><td>{b.n_papers}</td><td>{b.n_new || ''}</td><td>{b.n_results || ''}</td></tr>
))}
</tbody>
</table>
</Layout>
);
}
+1 -1
View File
@@ -34,7 +34,7 @@ export default function ConferencePage({ conf, tops, tracks }: Props) {
<Link href={`/papers?node=${t.id}&conf=${conf.slug}`}>{t.label}</Link> <span className="sub">{t.n.toLocaleString()}</span>
</p>
))}
<Link href="/taxonomy">See the full tree with all venues →</Link>
<Link href="/landscape#taxonomy">See the full tree with all venues →</Link>
</div>
</Layout>
);
+109
View File
@@ -0,0 +1,109 @@
import type { GetServerSideProps } from 'next';
import Link from 'next/link';
import Layout from '../components/Layout';
import { CONTENT_TREE, ContentNode, findNode, getContent } from '../lib/content';
import { typeSlug } from '../lib/slug';
type Content = Awaited<ReturnType<typeof getContent>>;
interface Props { node: { id: string; title: string; blurb: string; areas: string[]; taxonomy: string[] }; content: Content }
export const getServerSideProps: GetServerSideProps<Props> = async ({ query }) => {
const want = String(query.node ?? CONTENT_TREE.children[0].id);
const node = findNode(want);
if (!node || node.id === 'root') return { notFound: true };
const { children: _c, ...plain } = node;
return { props: { node: plain, content: await getContent(node) } };
};
function Tree({ node, selected }: { node: ContentNode; selected: string }) {
return (
<ul className="tree">
{node.children.map((c) => (
<li key={c.id}>
<Link href={`/contents?node=${c.id}`} className={c.id === selected ? 'sel' : ''}>{c.title}</Link>
{c.children.length > 0 && <Tree node={c} selected={selected} />}
</li>
))}
</ul>
);
}
export default function Contents({ node, content }: Props) {
const area = content.areas[0];
return (
<Layout title={node.title}>
<h1>Contents</h1>
<p className="sub">The tree of content for the write-up. Each entry draws its numbers from the survey data.</p>
<div className="layout">
<aside className="side">
<div className="card">
<b>{CONTENT_TREE.title}</b>
<Tree node={CONTENT_TREE} selected={node.id} />
</div>
</aside>
<section>
<h2 style={{ marginTop: 0 }}>{node.title}</h2>
<p className="sub">{node.blurb}</p>
<div className="cards">
<div className="card"><div className="stat">{content.total.toLocaleString()}</div>papers in this area{area ? ` (${area.label.split(',')[0]})` : ''}</div>
{content.taxonomy.map((t) => (
<Link key={t.id} href={`/papers?node=${t.id}`} className="card" style={{ color: 'inherit', textDecoration: 'none' }}>
<div className="stat">{t.n.toLocaleString()}</div>in taxonomy: <b style={{ color: 'var(--accent)' }}>{t.label}</b>
</Link>
))}
<div className="card"><div className="stat">{content.benchmarks.length}</div>benchmarks most used here</div>
</div>
{content.reviews.length > 0 && (
<>
<h2>Reviews</h2>
<div className="cards">
{content.reviews.map((r) => (
<Link key={r.type_id} href={`/work-types/${typeSlug(r.type_id)}`} className="card" style={{ color: 'inherit', textDecoration: 'none' }}>
<b style={{ color: 'var(--accent)' }}>{r.title}</b>
<div className="sub" style={{ margin: '4px 0 0', fontSize: 13 }}>{r.n} papers</div>
</Link>
))}
</div>
</>
)}
<h2>By kind of contribution</h2>
<table>
<thead><tr><th>Role</th><th>What it fixes → varies</th><th>Papers</th><th>Read in detail</th></tr></thead>
<tbody>
{content.roles.map((r) => (
<tr key={r.id}>
<td><b>{r.label}</b></td>
<td>{r.fixes || '—'} → {r.varies || '—'}</td>
<td>{r.cells.reduce((s, c) => s + c.n, 0)}</td>
<td>{r.cells.filter((c) => c.n > 0).map((c) => <Link key={c.id} href={`/work-types/${typeSlug(c.id)}`}>{c.n_llm > 0 ? `${c.n_llm} labelled` : 'rule-labelled'}</Link>)}</td>
</tr>
))}
</tbody>
</table>
<h2>Benchmarks used</h2>
<table>
<thead><tr><th>Benchmark</th><th>Papers</th><th>Introduced in 2026</th></tr></thead>
<tbody>
{content.benchmarks.map((b) => (
<tr key={b.id}><td><Link href={`/benchmarks/${b.id}`}>{b.name}</Link></td><td>{b.n}</td><td>{b.n_new || ''}</td></tr>
))}
</tbody>
</table>
<h2>Recent papers (read in detail)</h2>
{content.papers.map((p) => (
<div key={p.id} className="paper">
<h3><Link href={`/papers/${p.id}`}>{p.title}</Link></h3>
<div className="meta">{p.conf_short} · {p.date}</div>
{p.summary && <p>{p.summary}</p>}
</div>
))}
{content.taxonomy[0] && <p><Link href={`/papers?node=${content.taxonomy[0].id}`}>All papers in “{content.taxonomy[0].label}” →</Link></p>}
</section>
</div>
</Layout>
);
}
+1 -1
View File
@@ -72,7 +72,7 @@ export default function Home({ conferences, stats, topics, today }: Props) {
<div className="bar" style={{ width: `${(t.count / max) * 100}%` }} />
</div>
))}
<Link href="/taxonomy">Explore the full taxonomy tree →</Link>
<Link href="/landscape#taxonomy">Explore the full taxonomy tree →</Link>
</div>
</Layout>
);
+159
View File
@@ -0,0 +1,159 @@
import type { GetServerSideProps } from 'next';
import Link from 'next/link';
import Layout from '../components/Layout';
import TaxonomyTree from '../components/TaxonomyTree';
import { getConferences, getNodeConfBreakdown, getTaxonomyTree } from '../lib/queries';
import { getBenchmarks, getMatrix } from '../lib/worktypes';
import { listReviews } from '../lib/reviews';
import { typeSlug } from '../lib/slug';
import { TaxNode } from '../lib/types';
type Matrix = Awaited<ReturnType<typeof getMatrix>>;
interface Props {
matrix: Matrix;
reviews: Awaited<ReturnType<typeof listReviews>>;
benchmarks: Awaited<ReturnType<typeof getBenchmarks>>;
tree: TaxNode[];
breakdown: Record<string, Record<string, number>>;
confLabel: Record<string, string>;
src: 'llm' | 'all';
llm: boolean;
}
export const getServerSideProps: GetServerSideProps<Props> = async ({ query }) => {
const src = query.src === 'llm' ? 'llm' : 'all';
const llm = query.llm === '1';
const [matrix, reviews, benchmarks, tree, breakdown, confs] = await Promise.all([
getMatrix({ src }), listReviews(), getBenchmarks(2), getTaxonomyTree({ llm }), getNodeConfBreakdown({ llm }), getConferences(),
]);
return { props: { matrix, reviews, benchmarks, tree, breakdown, confLabel: Object.fromEntries(confs.map((c) => [c.slug, c.short])), src, llm } };
};
const SECTIONS = [
{ id: 'types', label: 'Types of work' },
{ id: 'benchmarks', label: 'Benchmarks' },
{ id: 'taxonomy', label: 'Taxonomy' },
];
export default function Landscape({ matrix, reviews, benchmarks, tree, breakdown, confLabel, src, llm }: Props) {
const { roles, areas, cells } = matrix;
const max = Math.max(1, ...Object.values(cells));
const groups: ('agent' | 'general')[] = ['agent', 'general'];
/** link back to this page with one filter changed, keeping the other */
const here = (patch: { src?: 'llm' | 'all'; llm?: boolean }, hash: string) => {
const s = patch.src ?? src; const l = patch.llm ?? llm;
const sp = new URLSearchParams();
if (s === 'llm') sp.set('src', 'llm');
if (l) sp.set('llm', '1');
const q = sp.toString();
return `/landscape${q ? '?' + q : ''}#${hash}`;
};
const q = llm ? '&llm=1' : '';
return (
<Layout title="Landscape">
<h1>Research landscape</h1>
<p className="sub">The three views of the corpus on one page: what kind of work papers do, which benchmarks they use, and where they sit in the topic tree.</p>
<div className="tabs">
{SECTIONS.map((s) => <a key={s.id} href={`#${s.id}`}>{s.label}</a>)}
</div>
<section id="types">
<h2>Types of work</h2>
<p className="sub">
A type of work = research <b>area</b> × <b>role</b>. The role says what a paper contributes and what it holds fixed versus varies, so two papers on the same benchmark land in different types when one
fixes the agent and changes the environment while the other does the opposite. A paper can belong to several types.
</p>
{reviews.length > 0 && (
<>
<h3>Reviews ({reviews.length})</h3>
<div className="cards">
{reviews.map((r) => (
<Link key={r.type_id} href={`/work-types/${typeSlug(r.type_id)}`} className="card" style={{ color: 'inherit', textDecoration: 'none' }}>
<div className="sub" style={{ margin: 0, fontSize: 12 }}>{areas.find((a) => a.id === r.area)?.label ?? r.area} · {roles.find((x) => x.id === r.role)?.label ?? r.role}</div>
<b style={{ color: 'var(--accent)' }}>{r.title}</b>
<div className="sub" style={{ margin: '4px 0 0', fontSize: 13 }}>{r.n} papers · {(r.abstract ?? '').slice(0, 160)}…</div>
</Link>
))}
</div>
</>
)}
<div className="filters" style={{ marginTop: 12 }}>
<Link className={`btn ${src === 'all' ? '' : 'ghost'}`} href={here({ src: 'all' }, 'types')}>All papers (LLM labels + rules)</Link>
<Link className={`btn ${src === 'llm' ? '' : 'ghost'}`} href={here({ src: 'llm' }, 'types')}>Detailed labels only (agent-related, read by LLM)</Link>
</div>
<h3>Roles</h3>
<table>
<thead><tr><th>Role</th><th>Fixes</th><th>Varies</th><th>What it means</th><th>Papers</th></tr></thead>
<tbody>
{roles.map((r) => (
<tr key={r.id}><td><b>{r.label}</b></td><td>{r.fixes || '—'}</td><td>{r.varies || '—'}</td><td>{r.descr}</td><td>{r.n.toLocaleString()}</td></tr>
))}
</tbody>
</table>
{groups.map((g) => (
<div key={g}>
<h3>{g === 'agent' ? 'Agent research areas' : 'Other LLM research areas'}</h3>
<div style={{ overflowX: 'auto' }}>
<table>
<thead>
<tr><th>Area</th>{roles.map((r) => <th key={r.id} title={r.label} style={{ fontSize: 10 }}>{r.id}</th>)}<th>Σ</th></tr>
</thead>
<tbody>
{areas.filter((a) => a.kind === g).map((a) => (
<tr key={a.id}>
<td style={{ whiteSpace: 'nowrap' }}>{a.label.length > 52 ? a.label.slice(0, 50) + '…' : a.label}</td>
{roles.map((r) => {
const id = `${a.id}|${r.id}`; const n = cells[id] ?? 0;
return (
<td key={r.id} style={n ? { background: `color-mix(in srgb, var(--accent) ${Math.min(80, 8 + (n / max) * 120)}%, transparent)` } : undefined}>
{n ? <Link href={`/work-types/${typeSlug(id)}${src === 'llm' ? '?src=llm' : ''}`}>{n}</Link> : ''}
</td>
);
})}
<td>{a.n.toLocaleString()}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
))}
</section>
<section id="benchmarks">
<h2>Benchmarks</h2>
<p className="sub">Benchmarks named in at least two papers’ abstracts ({benchmarks.length}). Extracted from the detailed agent-paper labels and matched by name in the remaining papers.</p>
<div style={{ maxHeight: 520, overflow: 'auto', border: '1px solid var(--line)', borderRadius: 10 }}>
<table style={{ border: 0 }}>
<thead><tr><th>Benchmark</th><th>Papers</th><th>Introduced in 2026</th><th>Scores recorded</th></tr></thead>
<tbody>
{benchmarks.map((b) => (
<tr key={b.id}><td><Link href={`/benchmarks/${b.id}`}>{b.name}</Link></td><td>{b.n_papers}</td><td>{b.n_new || ''}</td><td>{b.n_results || ''}</td></tr>
))}
</tbody>
</table>
</div>
</section>
<section id="taxonomy">
<h2>Taxonomy</h2>
<p className="sub">
One topic tree across all conferences. Each paper keeps its conference as a tag: the chips next to a topic show how many of its papers come from each venue, and clicking one lists them.
</p>
<div className="filters">
<Link className="btn ghost" href={here({ llm: !llm }, 'taxonomy')}>{llm ? 'Include non-LLM papers' : 'LLM-related only'}</Link>
</div>
<div className="card">
<TaxonomyTree
openAll
nodes={tree}
breakdown={breakdown}
confLabel={confLabel}
href={(id) => `/papers?node=${id}${q}`}
chipHref={(id, conf) => `/papers?node=${id}&conf=${conf}${q}`}
/>
</div>
</section>
</Layout>
);
}
-51
View File
@@ -1,51 +0,0 @@
import type { GetServerSideProps } from 'next';
import Link from 'next/link';
import Layout from '../components/Layout';
import TaxonomyTree from '../components/TaxonomyTree';
import { getConferences, getNodeConfBreakdown, getTaxonomyTree } from '../lib/queries';
import { TaxNode } from '../lib/types';
interface Props {
tree: TaxNode[];
llm: boolean;
breakdown: Record<string, Record<string, number>>;
confLabel: Record<string, string>;
}
export const getServerSideProps: GetServerSideProps<Props> = async ({ query }) => {
const llm = query.llm === '1';
const [tree, breakdown, confs] = await Promise.all([getTaxonomyTree({ llm }), getNodeConfBreakdown({ llm }), getConferences()]);
return {
props: {
tree,
llm,
breakdown,
confLabel: Object.fromEntries(confs.map((c) => [c.slug, c.short])),
},
};
};
export default function Taxonomy({ tree, llm, breakdown, confLabel }: Props) {
const q = llm ? '&llm=1' : '';
return (
<Layout title="Taxonomy">
<h1>Taxonomy tree</h1>
<p className="sub">
One topic tree across all conferences. Each paper keeps its conference as a tag: the chips next to a topic show how many of its papers come from each venue, and clicking one lists them.
</p>
<div className="filters">
<Link className="btn ghost" href={llm ? '/taxonomy' : '/taxonomy?llm=1'}>{llm ? 'Include non-LLM papers' : 'LLM-related only'}</Link>
</div>
<div className="card">
<TaxonomyTree
openAll
nodes={tree}
breakdown={breakdown}
confLabel={confLabel}
href={(id) => `/papers?node=${id}${q}`}
chipHref={(id, conf) => `/papers?node=${id}&conf=${conf}${q}`}
/>
</div>
</Layout>
);
}
+1 -1
View File
@@ -43,7 +43,7 @@ export default function WorkTypePage(props: Props) {
const wf = data.note?.workflow ?? [];
return (
<Layout title={r.title}>
<p><Link href="/work-types">← All types of work</Link> · <Link href={`/work-types/${slug}?view=data`}>data view</Link></p>
<p><Link href="/landscape#types">← All types of work</Link> · <Link href={`/work-types/${slug}?view=data`}>data view</Link></p>
<div className="article-grid">
<nav className="toc">{toc.map((t) => <a key={t.id} href={`#${t.id}`} className={t.sub ? 'sub-toc' : ''}>{t.label}</a>)}</nav>
<article className="article">
-85
View File
@@ -1,85 +0,0 @@
import type { GetServerSideProps } from 'next';
import Link from 'next/link';
import Layout from '../../components/Layout';
import { Area, Role, getMatrix } from '../../lib/worktypes';
import { typeSlug } from '../../lib/slug';
import { listReviews } from '../../lib/reviews';
interface Props { roles: Role[]; areas: Area[]; cells: Record<string, number>; src: 'llm' | 'all'; reviews: Awaited<ReturnType<typeof listReviews>> }
export const getServerSideProps: GetServerSideProps<Props> = async ({ query }) => {
const src = query.src === 'llm' ? 'llm' : 'all';
return { props: { ...(await getMatrix({ src })), src, reviews: await listReviews() } };
};
export default function WorkTypes({ roles, areas, cells, src, reviews }: Props) {
const max = Math.max(1, ...Object.values(cells));
const groups: ('agent' | 'general')[] = ['agent', 'general'];
return (
<Layout title="Types of work">
<h1>Types of work</h1>
<p className="sub">
A type of work = research <b>area</b> × <b>role</b>. The role says what a paper contributes and what it holds fixed versus varies, so two papers on the same benchmark land in different types when one
fixes the agent and changes the environment while the other does the opposite. A paper can belong to several types.
</p>
{reviews.length > 0 && (
<>
<h2>Reviews ({reviews.length})</h2>
<div className="cards">
{reviews.map((r) => (
<Link key={r.type_id} href={`/work-types/${typeSlug(r.type_id)}`} className="card" style={{ color: 'inherit', textDecoration: 'none' }}>
<div className="sub" style={{ margin: 0, fontSize: 12 }}>{areas.find((a) => a.id === r.area)?.label ?? r.area} · {roles.find((x) => x.id === r.role)?.label ?? r.role}</div>
<b style={{ color: 'var(--accent)' }}>{r.title}</b>
<div className="sub" style={{ margin: '4px 0 0', fontSize: 13 }}>{r.n} papers · {(r.abstract ?? '').slice(0, 160)}…</div>
</Link>
))}
</div>
<h2>All types (area × role)</h2>
</>
)}
<div className="filters">
<Link className={`btn ${src === 'all' ? '' : 'ghost'}`} href="/work-types">All papers (LLM labels + rules)</Link>
<Link className={`btn ${src === 'llm' ? '' : 'ghost'}`} href="/work-types?src=llm">Detailed labels only (agent-related, read by LLM)</Link>
</div>
<h2>Roles</h2>
<table>
<thead><tr><th>Role</th><th>Fixes</th><th>Varies</th><th>What it means</th><th>Papers</th></tr></thead>
<tbody>
{roles.map((r) => (
<tr key={r.id}><td><b>{r.label}</b></td><td>{r.fixes || '—'}</td><td>{r.varies || '—'}</td><td>{r.descr}</td><td>{r.n.toLocaleString()}</td></tr>
))}
</tbody>
</table>
{groups.map((g) => (
<section key={g}>
<h2>{g === 'agent' ? 'Agent research areas' : 'Other LLM research areas'}</h2>
<div style={{ overflowX: 'auto' }}>
<table>
<thead>
<tr><th>Area</th>{roles.map((r) => <th key={r.id} title={r.label} style={{ fontSize: 10 }}>{r.id}</th>)}<th>Σ</th></tr>
</thead>
<tbody>
{areas.filter((a) => a.kind === g).map((a) => (
<tr key={a.id}>
<td style={{ whiteSpace: 'nowrap' }}>{a.label.length > 52 ? a.label.slice(0, 50) + '…' : a.label}</td>
{roles.map((r) => {
const id = `${a.id}|${r.id}`; const n = cells[id] ?? 0;
return (
<td key={r.id} style={n ? { background: `color-mix(in srgb, var(--accent) ${Math.min(80, 8 + (n / max) * 120)}%, transparent)` } : undefined}>
{n ? <Link href={`/work-types/${typeSlug(id)}${src === 'llm' ? '?src=llm' : ''}`}>{n}</Link> : ''}
</td>
);
})}
<td>{a.n.toLocaleString()}</td>
</tr>
))}
</tbody>
</table>
</div>
</section>
))}
</Layout>
);
}
+7
View File
@@ -64,3 +64,10 @@ sup.cite{font-size:11px;margin-left:1px}sup.cite a{text-decoration:none}
.refs{font-size:13.5px;padding-left:28px}.refs li{margin:4px 0}.refs li:target{background:var(--accent-bg)}
.qa-ok{color:#1b9e77;font-weight:600}.qa-fixed{color:#e0702b;font-weight:600}
details.extract summary{cursor:pointer;font-weight:600;margin:8px 0}
/* landscape: in-page section tabs */
.tabs{display:flex;gap:6px;position:sticky;top:49px;z-index:4;background:var(--bg);padding:8px 0;margin-bottom:4px;border-bottom:1px solid var(--line)}
.tabs a{padding:5px 14px;border:1px solid var(--line);border-radius:99px;background:var(--card);color:var(--fg)}
.tabs a:hover{border-color:var(--accent);text-decoration:none}
section[id]{scroll-margin-top:100px}
h3{font-size:16px;margin:18px 0 8px}