Skip to content

v42 Junction: branching tours, tilt-shift bokeh, print PDF, and galleries - #33

Merged
I-794 merged 6 commits into
mainfrom
claude/relaxed-wozniak-ahy5j1
Nov 10, 2026
Merged

I-794 merged 6 commits into
mainfrom
claude/relaxed-wozniak-ahy5j1

Conversation

@I-794

@I-794 I-794 commented Nov 10, 2026

Copy link
Copy Markdown
Owner

This release adds four major features to Glint:

Branching Tours

  • Hotspots now target specific pages by ID instead of always advancing to the next step
  • src/state/tour-core.js provides DOM-free tour helpers: normalizeTour(), resolveTourTargets(), and tourLinks() for validating and resolving page targets to step indices
  • Tour player (src/share/tour-player.js) now tracks visited steps and supports back navigation via a trail array
  • Board view shows tour link visualization with dashed arrows between pages
  • Tour UI updated to let users select target pages from a dropdown, with visual feedback showing where each hotspot jumps

Tilt-Shift Bokeh & Focus Pull

  • New bokeh mode: tilt (sharp band with blur growing away) alongside existing subject mode
  • src/render/bokeh-core.js adds tiltBand() geometry and pullEase() easing for Motion Studio focus pulls
  • Blur caching refactored: blurCache keeps blurred copies by input + settings, so focus pull and tilt band only composite without re-running expensive lens blur
  • tiltActive() and focusProgress() helpers in src/render/bokeh.js drive the new modes
  • Bokeh UI expanded with mode toggle, tilt band controls (position, width, feather, angle), and focus pull settings

Print-Ready PDF Export

  • New src/features/print-pdf.js and src/render/print-core.js provide print geometry and PDF generation
  • Supports standard paper sizes (A3/A4/A5, Letter, Tabloid, Business Card, Poster) plus custom dimensions
  • Layout options: Fit (with margin) or Fill, bleed box, crop marks, orientation auto-detection
  • DPI readout shows design's native resolution and upscale impact; verdict warns if too soft for print
  • Preferences stored in localStorage; PDF written with jsPDF

Galleries (Roll Shots & Pins)

  • New gallery share kind for collections of images with captions
  • src/features/share-links.js adds collectGallery() to render Roll shots or page Pins as a gallery
  • Viewer (src/share/viewer.js) renders galleries as responsive grid with lightbox modal
  • src/share/share-poster.js generates gallery posters (up to 4 tiles + count chip)
  • src/features/roll.js exports renderRollShots() for iterating shots with callback

Supporting Changes

  • Share links now support expiry: EXPIRY constants (never, 1d, 7d, 30d) and isExpired() check
  • src/state/motion-clock.js adds localProgress() for Motion Studio timeline integration
  • Tour hotspots display target page number as a badge in the overlay
  • Bokeh normalization handles v34+ saves and fills in missing tilt/pull fields
  • Project migration: v25 designs with action: 'next' hotspots gain target: null and drop the action field
  • Version bumped to 42.0; editor title and changelog updated to "v42 · Junction"
  • Regression tests added for tour targets, bokeh tilt/pull, and print layout

All new modules are DOM-free where possible (tour-core, bokeh-core, print-core) to support testing and reuse.

A tour hotspot gets a target (a page id, or null for the next step). New DOM-free src/state/tour-core.js normalizes tours and turns targets into step indexes when the steps are collected, so blank pages and deleted targets fall back to the next step. The shared player follows goto, retraces visited steps on Back and preloads jump targets; the share manifest keeps a goto only when it is a step inside the tour. The Tour panel gets a Goes to picker, the board draws the jumps as dashed arrows (not stored), and schema goes 25 to 26.

Also fixes two older bugs found on the way: the callout position picker stored the old side, and dragging a page tile other than the one being edited filed the editor's design under the dragged page.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
Bokeh gets a second mode: tilt-shift keeps one band sharp (position, width, softness, angle) and needs no subject mask, so it works on any image and on every composition path. The lens blur is now cached per amount, and the tilt band and the new Motion Studio focus lane only composite cached layers: a pull moves the band, or in subject mode fades the blur. state.bokeh gains mode / tilt / pull through normalizeBokeh (schema 26).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
…xpire

A new gallery manifest kind holds up to 30 captioned images; the Share panel offers it as Roll (every shot, rendered with the design as set) and Pins (this page's pinned steps). The viewer shows a grid with a keyboard-friendly lightbox, and the link preview is a tile poster.

Links can last 1, 7 or 30 days. The client sends only the choice; share-commit stamps expiresAt, the manifest and page routes answer 404 once it has passed, and the daily sweep deletes the files through a marker whose name carries the time. Deleting a link removes its marker. No new function or route.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
A new Print PDF section (Export, Pro) places the design on A3 to business-card paper or a custom size: Fit inside a margin or Fill edge to edge, 0 to 10 mm bleed, crop marks, this page or all pages, JPEG or PNG. Geometry lives in the DOM-free render/print-core.js (trim, bleed and page boxes, the source crop for Fill, mark segments, effective dpi) and is covered by tests. The PDF is RGB and uses the design's own pixels with an optional smooth upscale; the panel shows the real dpi and warns when it is low. Settings are per-viewer prefs (glint_print_prefs), so no schema change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
Version 42.0.0, the v42 Junction header, What's new, the changelog spotlight and entry, a Features page line, and a real junction-tour shot (the Iris steps as a branching tour in the viewer). CLAUDE.md: state registry (tour targets, Bokeh tilt and pull, schema 26), the v42 shipped row, share kinds and expiry, and the backlog.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
glint Ready Ready Preview Nov 10, 2026 11:33pm UTC

One conflict, in scripts/regression-tests.mjs: both import lines are kept. Also makes the waitlist privacy test deterministic: it looked for the fragments ada, grace and example in random base64, which matched by chance about once in a hundred runs; it now looks for the addresses themselves.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
@I-794
I-794 merged commit 5b64243 into main Nov 10, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 8bf8c59c Deployed Nov 10, 2026 by vercel[bot]
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.

2 participants