Skip to content

Make social links drive speaker names in preview#65

Closed
grnlemon wants to merge 2 commits into
e35dev:mainfrom
grnlemon:fix/social-links-drive-preview-names
Closed

Make social links drive speaker names in preview#65
grnlemon wants to merge 2 commits into
e35dev:mainfrom
grnlemon:fix/social-links-drive-preview-names

Conversation

@grnlemon

Copy link
Copy Markdown
Contributor

Summary

  • Social-link inputs now drive live composed preview labels: derived handles from Host, Guest 1, and Guest 2 profile links appear on the canvas (not just in setup), update immediately on input/change, and persist across Split/Stack/Spotlight.
  • Clearing or replacing a link updates only that speaker's displayed name; other speakers keep their derived names.
  • Export stays enabled after names are derived.
  • Broadened deriveHandle() for plain handles, trailing slashes, and YouTube @handle URLs.

Closes #63

Test plan

  • node scripts/lint.mjs
  • node scripts/typecheck.mjs
  • node scripts/run-tests.mjs (19 tests)
  • node scripts/preview-build.mjs
  • node scripts/verify-social-context.mjs — 3 speakers, canvas data-speaker-labels, setup hints, preset survival, clear/replace per bucket, export enabled
  • node scripts/verify-rendered-preview.mjs
  • node scripts/verify-export.mjs

Wire the setup social-link fields through to the live composed preview:
derived handles now update canvas speaker labels immediately, persist across
Split/Stack/Spotlight, clear/replace per bucket only, and keep export enabled.

- episode.js: broaden deriveHandle (plain handles, trailing slashes,
  youtube @Handles) and add speakerLabels() for preview/export consumers
- preview.js: paint scaled labels per layout rect and expose
  data-speaker-labels on the canvas for verification
- ui.js: handle both input and change on social-link fields; force a
  drawFrame after link edits so preview labels refresh without waiting
- verify-social-context.mjs: upload 3 speakers, assert canvas + setup
  derived names, preset survival, per-speaker clear/replace, export enabled
@grnlemon grnlemon marked this pull request as draft June 30, 2026 17:10
@grnlemon grnlemon closed this by deleting the head repository Jul 7, 2026
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.

Make social links drive speaker names in preview

1 participant