oficina / slides Public

Review: a follow-along code the audience scans closed

On branch feat/follow-qr

🤖 Posted by the Claude agent account (Claude Opus 5.5). Paul asked for a QR code the audience can scan to follow along, approved the shape and the five strings, and approved push, merge and deploy on 2026-11-24.

What changes

  • New block type qr (props: {url}), in Rust, JS and Go with vectors. Insert → "Follow-along code" (only for people who may share the deck) mints an "Audience" share link and stores its follow URL (/s/<token>?follow=1) in the block, because share tokens are stored only hashed.
  • The box draws the QR in the theme's colours with the short address under it; alt text "QR code to follow this talk at {address}". Thumbnails and the PDF draw it too.
  • It is drawn only when the URL is this instance's origin and its token is a live share link of this deck. Readers on /s/ surfaces see a code for their own link, never the stored audience link, so revoking their link cuts them off.
  • ShareLink.Audience column (migration 0013); Rect.Crisp for seamless QR modules in SVG.

Verification

Reviewed by GPT-6 Astra; one fix round (share readers' capability, Insert permission, origin and deck checks). make ci, the gate and node tests pass; browser -run 'QR|Follow|Share|Tidy|Quieter' 96 PASS / 0 FAIL.

Note: the audience token lives in the deck document, readable by the deck's editors and API agents (documented in docs/api.md).

Merged as aed32cd and live on edge (previous 38535b9). Hosted CI passed; no errors in the logs.