Skip to content

judge-dashboard: enrich Notion rows with input hero + prompt#30

Merged
thibaut-bp merged 1 commit into
mainfrom
feat/judge-dashboard-notion-input-context
Jun 17, 2026
Merged

judge-dashboard: enrich Notion rows with input hero + prompt#30
thibaut-bp merged 1 commit into
mainfrom
feat/judge-dashboard-notion-input-context

Conversation

@thibaut-bp

Copy link
Copy Markdown
Contributor

Goke needs to analyse what went well or badly per rating. The Notion DB now captures the input hero image and the exact prompt sent to the workflow alongside the rated output.

New Notion columns:

  • Hero image (Files) — re-uploaded to Notion so it survives Runflow's 24h CDN cache.
  • Prompt (Rich text) — exact prompt string.
  • Hero source URL (URL) — for debugging only.

Works for both preset and live judge generations. Skipped tiles in build-presets.py get prompt + hero_url reconstructed deterministically from the preset definition.

Goke needs to correlate ratings to inputs after the contest, so the Notion
DB now captures, per rated tile:
- Hero image (Files) — the input hero re-uploaded to Notion alongside the
  generated output so both survive Runflow's 24h CDN cache.
- Prompt (Rich text) — exact prompt string sent to brand-locked-variant-nux.
- Hero source URL (URL) — original static URL of the hero for debugging.

Wiring:
- Dashboard submitRatings now sends prompt + hero_url per result. Pulls from
  r.prompt / r.hero_url (preset runs) or r.payload.prompt /
  r.payload.primary_design_ref (live judge generations).
- applyPreset propagates prompt + hero_url from PRESETS into the tile state.
- build-presets.py reconstructs prompt + hero_url deterministically for
  every tile in /tmp/presets-output.json, even ones skipped because the
  file is already on disk. bake-runs.py forwards them into PRESETS.
- submit-ratings.mjs uploads both the rated output and the input hero to
  Notion in parallel and writes them to the Image + Hero image properties.
@thibaut-bp thibaut-bp merged commit 5cd8b42 into main Jun 17, 2026
1 of 3 checks passed
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
runflow-templates Building Building Preview, Comment Jun 17, 2026 10:15pm
templates Building Building Preview, Comment Jun 17, 2026 10:15pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant