Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,9 @@ a {
from { stroke-dashoffset: 0; }
to { stroke-dashoffset: -72; }
}

/* An export capture shows the slide alone: hide the Next.js dev overlay and
its issue badge, which exist only under `next dev`. */
body:has(main[data-export]) nextjs-portal {
display: none !important;
}
1 change: 1 addition & 0 deletions components/core/SlideshowViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function SlideshowViewerClient({ config }: SlideshowViewerProps) {
onClick={handleMainClick}
data-total-steps={totalSteps}
data-current-step={currentStep}
data-export={exportMode ? '' : undefined}
>
{mounted && config.slides.map((slide, slideIndex) => {
const SlideComponent = getSlideComponent(slide);
Expand Down
2 changes: 2 additions & 0 deletions lib/slideshows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SlideshowConfig, SlideshowMetadata, flattenSlides } from "./types";
import { jrcSevilleHarness2026Config } from "@/slideshows/jrc-seville-harness-2026/config";
import { aiWebinarConfig } from "@/slideshows/ai-webinar/config";
import { abundanceDmvConfig } from "@/slideshows/abundance-dmv/config";
import { vanderbilt2025Config } from "@/slideshows/vanderbilt-2025/config";
Expand Down Expand Up @@ -36,6 +37,7 @@ import { appam2026Config } from "@/slideshows/appam-2026/config";
import { studentDebt2026Config } from "@/slideshows/student-debt-2026/config";

export const slideshows: SlideshowConfig[] = [
jrcSevilleHarness2026Config,
bist2026Config,
appam2026Config,
prop40Webinar2026Config,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions slideshows/jrc-seville-harness-2026/builds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// How many builds each multi-build slide has. This file holds plain data, so the server reads the numbers when it
// counts the deck's steps; a number exported from a client component reaches the server as a reference, not a value.
import { walkthrough } from './text';

/** One build per caption in text.walkthrough.steps. */
export const WALKTHROUGH_BUILDS = walkthrough.steps.length;
/** The models alone, then with the tool. */
export const POLICYBENCH_BUILDS = 2;
85 changes: 85 additions & 0 deletions slideshows/jrc-seville-harness-2026/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import { SlideshowConfig } from '@/lib/types';
import { speakers } from '@/lib/speakers';
import CoverSlide from './slides/CoverSlide';
import NeedsSlide from './slides/NeedsSlide';
import AiChangeSlide from './slides/AiChangeSlide';
import HarnessSlide from './slides/HarnessSlide';
import {
CommunicationSection,
DataSection,
PredictionsSection,
ResponsesSection,
RulesSection,
} from './slides/SectionSlide';
import EncoderWalkthroughSlide from './slides/EncoderWalkthroughSlide';
import LadderSlide from './slides/LadderSlide';
import SurveysSlide from './slides/SurveysSlide';
import TargetsSlide from './slides/TargetsSlide';
import DashboardSlide from './slides/DashboardSlide';
import CboSlide from './slides/CboSlide';
import BeliefsSlide from './slides/BeliefsSlide';
import SsppSlide from './slides/SsppSlide';
import MacroSlide from './slides/MacroSlide';
import PredictSlide from './slides/PredictSlide';
import ForecastSlide from './slides/ForecastSlide';
import { ThesisBill, ThesisConditional, ThesisUnconditional } from './slides/ThesisSlides';
import PolicyBenchNonzeroSlide from './slides/PolicyBenchNonzeroSlide';
import NextSkillsSlide from './slides/NextSkillsSlide';
import MillionsSlide from './slides/MillionsSlide';
import AbundanceSlide from './slides/AbundanceSlide';
import DeliberationSlide from './slides/DeliberationSlide';
import EndSlide from './slides/EndSlide';
import { POLICYBENCH_BUILDS, WALKTHROUGH_BUILDS } from './builds';
import { cover } from './text';

/**
* Max Ghenis at the JRC workshop in Seville, 23 November 2026: what a policymaker needs (rules, data, responses,
* predictions, communication), how AI changes that, the five pieces again as what AI needs to hill-climb on, then one
* section per piece; PolicyBench, alone and then with a tool (two builds of one slide), opens the fifth, and a slide on
* what AI should get right next follows it. Three slides on abundant policy analysis and a thank-you slide close the
* deck. Most slides are headings, icons, charts or screenshots. Their words come from text.ts; chart tick labels and a
* few other strings sit in the slide files.
*/
export const jrcSevilleHarness2026Config: SlideshowConfig = {
id: 'jrc-seville-harness-2026',
title: cover.title,
description:
'Max Ghenis at the JRC workshop "Building blocks for future economic analysis and modelling: the role of AI": evals for the rules, data, responses, predictions and communication behind policy analysis.',
date: '2026-11-23',
location: 'JRC workshop, Seville',
footerText: `${cover.title} · Seville · 23 November 2026`,
partnerLogo: { src: '/logos/axiom-foundation-white.svg', alt: 'Axiom Foundation' },
speakers: [{ ...speakers['max-ghenis'], title: 'PolicyEngine and the Axiom Foundation' }],
clickerKeys: true,
slides: [
CoverSlide,
NeedsSlide,
AiChangeSlide,
HarnessSlide,
RulesSection,
{ component: EncoderWalkthroughSlide, builds: WALKTHROUGH_BUILDS },
LadderSlide,
DataSection,
SurveysSlide,
TargetsSlide,
DashboardSlide,
ResponsesSection,
CboSlide,
BeliefsSlide,
SsppSlide,
MacroSlide,
PredictionsSection,
PredictSlide,
ForecastSlide,
ThesisUnconditional,
ThesisConditional,
ThesisBill,
CommunicationSection,
{ component: PolicyBenchNonzeroSlide, builds: POLICYBENCH_BUILDS },
NextSkillsSlide,
MillionsSlide,
AbundanceSlide,
DeliberationSlide,
EndSlide,
],
};
222 changes: 222 additions & 0 deletions slideshows/jrc-seville-harness-2026/deck.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
'use client';

import { CSSProperties, ReactNode, useEffect, useRef, useState } from 'react';
import { useSearchParams } from 'next/navigation';
import Slide from '@/components/core/Slide';
import SlideHeader from '@/components/layout/SlideHeader';

/**
* Shared pieces for this deck. Sizes are in vh so a slide fits a laptop and a projector alike, as in the APPAM
* deck's frame. Slides take their words from text.ts, apart from a few labels that a slide file defines for itself.
*/

/**
* On a slide built on Frame, `?bare=1` renders the body alone, with no title, sources or footer, so a picture of it
* can sit in another deck's template under that template's own title. Slides that do not use Frame ignore it. It has
* no effect on normal viewing or export.
*/
/**
* The bare body's height, about 465 px at 810: close to the height a body has under a title (about 493 px under a
* one-line title, about 451 px under a two-line one), so its type stays close to its size.
*/
export const BARE_BODY_HEIGHT = '57.4vh';

export function useBare(): boolean {
return useSearchParams()?.get('bare') === '1';
}

/**
* `&bzoom=Z` (1 to 1.6) zooms the bare body by Z, so its type is Z times larger, in a box of the same rendered size:
* CSS zoom scales the height given in vh, so that is divided by Z, while a percentage width is left as it is.
*/
function useBareZoom(): number {
const z = parseFloat(useSearchParams()?.get('bzoom') ?? '1');
return Number.isFinite(z) ? Math.min(Math.max(z, 1), 1.6) : 1;
}

type BareReport = { view: number[]; box: number[]; spill: number; minPx: number; minSvgPx: number; images: number };

/**
* A report on `root`: the smallest rendered type inside it (HTML and SVG text apart), how far anything reaches past
* its box, the window's and the box's sizes, and the image count.
*/
function measureBare(root: HTMLElement): BareReport {
const box = root.getBoundingClientRect();
let spill = 0;
let minPx = Infinity;
let minSvgPx = Infinity;
root.querySelectorAll<Element>('*').forEach((el) => {
const r = el.getBoundingClientRect();
if (r.width === 0 || r.height === 0) return;
spill = Math.max(spill, r.bottom - box.bottom, r.right - box.right, box.top - r.top, box.left - r.left);
const ownText = Array.from(el.childNodes).some((n) => n.nodeType === Node.TEXT_NODE && n.textContent?.trim());
if (!ownText) return;
if (el instanceof SVGTextContentElement) {
minSvgPx = Math.min(minSvgPx, r.height / 1.2);
} else {
const zoom = (el as HTMLElement & { currentCSSZoom?: number }).currentCSSZoom ?? 1;
minPx = Math.min(minPx, parseFloat(getComputedStyle(el).fontSize) * zoom);
}
});
const round = (x: number) => (Number.isFinite(x) ? Math.round(x * 10) / 10 : -1);
return { view: [window.innerWidth, window.innerHeight], box: [round(box.width), round(box.height)], spill: round(spill), minPx: round(minPx), minSvgPx: round(minSvgPx), images: root.querySelectorAll('img').length };
}

/**
* The bare body's box. With `&measure=1` it also writes a JSON report into a hidden element after layout (how far
* anything reaches past the box, in CSS px, and the smallest type), for a script that loads the page to read.
*/
export function BareBody({ children, className = '', style }: { children: ReactNode; className?: string; style?: CSSProperties }) {
const zoom = useBareZoom();
const measure = useSearchParams()?.get('measure') === '1';
const ref = useRef<HTMLDivElement>(null);
const [report, setReport] = useState<BareReport | null>(null);
useEffect(() => {
if (!measure) return;
const timer = setTimeout(() => ref.current && setReport(measureBare(ref.current)), 400);
return () => clearTimeout(timer);
}, [measure]);
return (
<>
<div
ref={ref}
className={className}
style={{ ...style, height: `calc(${BARE_BODY_HEIGHT} / ${zoom})`, width: '100%', zoom }}
>
{children}
</div>
{report && (
<pre id="bare-measure" hidden>
{JSON.stringify({ zoom, ...report })}
</pre>
)}
</>
);
}

export function Frame({
title,
kicker,
sources,
children,
}: {
title: string;
kicker?: string;
sources?: ReactNode;
children: ReactNode;
}) {
const bare = useBare();
if (bare) {
return (
<Slide showFooter={false}>
<BareBody className="text-gray-800" style={{ fontSize: 'clamp(16px, 2.7vh, 32px)' }}>
{children}
</BareBody>
</Slide>
);
}
return (
<Slide>
<div className="flex h-full flex-col">
<SlideHeader>
{kicker && <div className="slide-tag mb-[1.2vh]">{kicker}</div>}
<h1
className="font-display font-bold leading-tight tracking-tight text-pe-dark"
style={{ fontSize: 'clamp(26px, 4.2vh, 46px)' }}
>
{title}
</h1>
</SlideHeader>
<div className="min-h-0 flex-1 text-gray-800" style={{ fontSize: 'clamp(16px, 2.7vh, 32px)' }}>
{children}
</div>
{sources && <Sources>{sources}</Sources>}
</div>
</Slide>
);
}

/** Small print at the foot of a slide: sources, definitions and the qualifications a claim needs. */
export function Sources({ children }: { children: ReactNode }) {
return (
<div
className="mt-[1.2vh] space-y-[0.5vh] border-t border-gray-200 pt-[1vh] leading-snug text-gray-500"
style={{ fontSize: 'clamp(10px, 1.45vh, 17px)' }}
>
{children}
</div>
);
}

/** A full-bleed statement, for the turns in the talk. */
export function Statement({ title, sub, kicker }: { title: string; sub?: string; kicker?: string }) {
return (
<Slide fullBleed>
<div className="gradient-bg flex h-full w-full flex-col justify-center px-[9vw] pb-[10vh] text-white">
{kicker && (
<div className="mb-[3vh] font-mono uppercase tracking-[0.2em] text-white/60" style={{ fontSize: 'clamp(12px, 1.8vh, 20px)' }}>
{kicker}
</div>
)}
<h1 className="max-w-[80vw] font-bold leading-[1.12] tracking-tight" style={{ fontSize: 'clamp(34px, 7vh, 84px)' }}>
{title}
</h1>
<div className="accent-bar mt-[4vh] w-32" />
{sub && (
<p className="mt-[4vh] max-w-[70vw] leading-snug text-white/85" style={{ fontSize: 'clamp(18px, 3.3vh, 38px)' }}>
{sub}
</p>
)}
</div>
</Slide>
);
}

/** A card with the deck's teal left rule; `tone` swaps the rule to amber or gray. */
export function Card({
children,
tone = 'teal',
tag,
className = '',
}: {
children: ReactNode;
tone?: 'teal' | 'amber' | 'gray';
tag?: string;
className?: string;
}) {
const rule = tone === 'amber' ? 'var(--pe-amber)' : tone === 'gray' ? 'var(--color-gray-300)' : undefined;
return (
<div className={`content-card !p-[2.6vh] ${className}`} style={rule ? { borderLeftColor: rule } : undefined}>
{tag && (
<div className="slide-tag mb-[1.2vh]" style={tone === 'amber' ? { color: 'var(--pe-amber)' } : undefined}>
{tag}
</div>
)}
{children}
</div>
);
}

/** A row of steps joined by arrows. */
export function Steps({ steps, active }: { steps: string[]; active?: number }) {
return (
<div className="flex items-stretch gap-[1vw]">
{steps.map((step, i) => (
<div key={step} className="flex flex-1 items-center gap-[1vw]">
<div
className={`flex h-full flex-1 items-center justify-center rounded-xl border px-[1vw] py-[2vh] text-center font-semibold leading-snug ${
active === i ? 'border-pe-teal bg-pe-teal text-white' : 'border-gray-200 bg-white text-pe-dark'
}`}
>
{step}
</div>
{i < steps.length - 1 && (
<span aria-hidden className="text-pe-teal" style={{ fontSize: '1.4em' }}>
&rarr;
</span>
)}
</div>
))}
</div>
);
}
9 changes: 9 additions & 0 deletions slideshows/jrc-seville-harness-2026/slides/AbundanceSlide.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use client';

import PieceCards from './PieceCards';
import { abundance } from '../text';

/** What abundant policy analysis could look like, one card per piece of the stack, in NeedsSlide's format. */
export default function AbundanceSlide() {
return <PieceCards title={abundance.title} cards={abundance.cards} />;
}
24 changes: 24 additions & 0 deletions slideshows/jrc-seville-harness-2026/slides/AiChangeSlide.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use client';

import { Frame } from '../deck';
import { aiChange } from '../text';

/** Three points on how AI changes the analyst's job, each with a large numeral. */
export default function AiChangeSlide() {
return (
<Frame title={aiChange.title}>
<ol className="flex h-full flex-col justify-center-safe gap-[4.4vh] pb-[2vh]">
{aiChange.points.map((point, i) => (
<li key={point} className="grid grid-cols-[7vw_1fr] items-center">
<span aria-hidden className="font-extrabold leading-none tabular-nums text-pe-teal" style={{ fontSize: 'clamp(40px, 9vh, 104px)' }}>
{i + 1}
</span>
<p className="font-semibold leading-snug text-pe-dark" style={{ fontSize: 'clamp(20px, 3.9vh, 46px)' }}>
{point}
</p>
</li>
))}
</ol>
</Frame>
);
}
Loading
Loading