Commit Graph
924 Commits
Author SHA1 Message Date
Vance IngallsandClaude Opus 4.6 0cf785963e fix(skills): change .phase overflow from hidden to auto for scrolling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:27:51 -07:00
Vance IngallsandClaude Opus 4.6 c84dc5b379 fix(skills): make template picker iframe fill phase container and scroll internally
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:18:41 -07:00
Vance IngallsandClaude Opus 4.6 cc69c98226 fix(skills): remove manual escape that double-escaped preview_html
json.dumps handles escaping. Manual replace was double-escaping
quotes causing \\\" in SVG attributes. Also strip <script>
tags from extracted preview HTML.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:16:56 -07:00
Vance IngallsandClaude Opus 4.6 1afe6a84c9 feat(skills): inline template rendering, tokenized presentations
34 templates copied and tokenized with --tp-* CSS variable contract.
Templates render inline in DOM (no iframes) so shader backgrounds
work behind them and CSS variables cascade naturally.
Removed deck-stage.js files (not needed for inline preview).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:12:10 -07:00
Vance IngallsandClaude Opus 4.6 3ad5495fbf feat(skills): inline template rendering replaces iframes
Templates render directly in the DOM via extracted preview_html.
Build script extracts first slide CSS + HTML, scopes with tp-{slug}
class prefix. No more iframes — shader canvases render behind
transparent template content, --tp-* variables cascade naturally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:08:58 -07:00
Vance IngallsandClaude Opus 4.6 0293876ee3 feat(skills): inline template rendering replaces iframes
Templates render directly in the DOM via extracted preview_html.
Build script extracts first slide CSS + HTML, scopes with tp-{slug}
class prefix. No more iframes — shader canvases render behind
transparent template content, --tp-* variables cascade naturally.

Fine-tune overrides set --tp-* directly on the inline container
element instead of injecting styles into an iframe document.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:08:27 -07:00
Vance IngallsandClaude Opus 4.6 88162af702 feat(skills): tokenized presentation templates with --tp-* variable contract
Copied 34 templates from beautiful-html-templates into repo.
tokenize-templates.py converts all hardcoded colors and fonts to
reference --tp-bg, --tp-fg, --tp-ac, --tp-mt, --tp-hf, --tp-bf tokens.
1240 color replacements across 34 templates.

Override functions simplified: just set --tp-* tokens, everything
cascades. No more luminance mapping or name heuristics needed.
--tp-bg-layer added for shader background swap support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 17:00:32 -07:00
Vance IngallsandClaude Opus 4.6 cf950155ec feat(skills): name-aware CSS variable mapping for palette overrides
Variables named sun/ember/coral/accent/brand map to accent color.
Variables named paper/canvas/bg/cream map to background.
Variables named ink/text/fg/dark map to foreground.
Variables named mute/gray/line/border map to muted.
Fallback to luminance for unrecognized names.

Fixes biennale-yellow's bright yellow accent being mapped to bg.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:49:12 -07:00
Vance IngallsandClaude Opus 4.6 5d59539873 feat(skills): add Template Default palette that clears all overrides
Selecting palette index 0 clears the finetune-override style in the
template iframe, reverting to the template's native colors/fonts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:46:59 -07:00
Vance IngallsandClaude Opus 4.6 74cf395d17 fix(skills): remove broken specimen grid, keep hero card only for now
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:41:59 -07:00
Vance IngallsandClaude Opus 4.6 946c82a975 fix(skills): restore corners, elevation, and motion preview sections
These were hidden in a display:none div during the component view
restructuring. Restored as visible showcase sections with their
eyebrow labels. Palette and type lead text remain hidden (unused).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:36:39 -07:00
Vance IngallsandClaude Opus 4.6 bb0a6cf379 feat(skills): react template picker with all configuration options
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:29:58 -07:00
Vance IngallsandClaude Opus 4.6 52c840cd92 fix(skills): stable template overrides — cache by slug, filter override style, fix font matching
Clear override CSS before reading originals to prevent drift.
Cache by template slug so all iframes for the same template share
original values. Font var matching tightened to --f-* prefix only.
Removed border-radius override that was breaking template layouts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:13:44 -07:00
Vance IngallsandClaude Opus 4.6 5efe9e1c4a fix(skills): stable template overrides with original-value caching
Cache each iframe's original CSS variable values on first capture,
then always remap from originals to prevent luminance drift on
repeated option changes. Apply overrides to ALL template iframes
(hero + specimen grid). Helper functions extracted for reuse.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:09:21 -07:00
Vance IngallsandClaude Opus 4.6 6553f1a2b3 fix(skills): clear transition overlay when navigating back to template picker
Remove .active from trans-overlay and .selected-exit from cards
in the embedded picker iframe when the back button is clicked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:06:13 -07:00
Vance IngallsandClaude Opus 4.6 71d24b7415 feat(skills): specimen grid shows template's own slides as component view
Replace generic component cards with the template's actual slides
rendered as small preview thumbnails below the hero card. Each slide
loads in its own iframe, navigated to the correct slide index,
with contextual text injected. Shows up to 6 slides per template.
Removed slide cycling nav from hero card — first slide only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 16:03:21 -07:00
Vance IngallsandClaude Opus 4.6 a754d71778 feat(skills): show only first slide per template, remove cycling arrows
Phase 1 shows a static first-slide preview for each template.
No arrows, no slide counter, no navigation. Cleaner grid, fewer
bugs from slide system differences. Full slide cycling available
in Phase 2 after selecting a template.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:56:55 -07:00
Vance IngallsandClaude Opus 4.6 6852f72e7b fix(skills): use translateY on container for scroll-mode slide navigation
overflow:hidden clips scrollHeight so scrollTop can't reach later
slides. Instead, clip the container to 1080px height and use
transform:translateY to shift the slide stack. No scrolling needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:56:16 -07:00
Vance IngallsandClaude Opus 4.6 13d6b22417 fix(skills): split slide navigation into scroll vs visibility modes
Deck-stage (absolute positioned) uses visibility toggling.
All other templates (vertical stacks, flex scrolls) use scrollTop
positioning — slides stay visible, container scrolls to target.
Detect mode by checking if slides have position:absolute.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:54:32 -07:00
Vance IngallsandClaude Opus 4.6 39aad53510 fix(skills): use scrollTop/scrollLeft instead of scrollIntoView
scrollIntoView bubbles and scrolls the parent page when cycling
slides inside template iframes. Replace with direct scrollTop/
scrollLeft assignment on the container, body, and documentElement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:52:33 -07:00
Vance IngallsandClaude Opus 4.6 a3948bc066 fix(skills): target all deck-stage sections, not just section.slide
Many deck-stage templates use section classes like s-cover, s-manifesto
instead of .slide. Target deck-stage>section directly and use .active
class for visibility toggling. Clear all active classes before setting
the first one on load.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:51:31 -07:00
Vance IngallsandClaude Opus 4.6 d1a279f54b feat(skills): wire all fine-tune options to template iframe
Apply palette (colors by luminance mapping), typography (font family
overrides for display/body CSS vars), corners (border-radius), and
background color to the template iframe on every option change.
Collects all CSS custom properties from template stylesheets and
remaps them based on the selected theme+palette+type+corners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:43:49 -07:00
Vance IngallsandClaude Opus 4.6 6daa1215a3 feat(skills): apply palette changes to template iframe in fine-tune
When a palette is selected in Phase 2, inject CSS variable overrides
into the template iframe using luminance-based color mapping. Same
approach as the template picker's applyPal function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:41:00 -07:00
Vance IngallsandClaude Opus 4.6 0b6c293ce3 docs(skills): add Template Original palette guidance for fine-tune revert
Agents should include a 'Template Original' palette as the first entry
in pick-design.html PALETTES so users can revert to native template
colors after trying custom palettes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:38:35 -07:00
Vance IngallsandClaude Opus 4.6 f447b9bef9 fix(skills): preserve template iframe when palette/options change
renderPreview() skips scene grid rebuild if a template iframe is
present, preventing palette changes from replacing the selected
template with the static preview_frames architecture.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:37:08 -07:00
Vance IngallsandClaude Opus 4.6 ad41d759cd fix(skills): use scrollIntoView for all slide navigation
All templates now use scrollIntoView instead of visibility toggling.
Works universally for scroll-stacked, transform-based, and absolute
positioned slides. Lock body overflow to show one slide at a time.
Reset child opacity on the active slide to fix animation start states.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:35:11 -07:00
Vance IngallsandClaude Opus 4.6 15f0297493 fix(skills): reset child opacity when cycling to a slide
Non-active slides had children with opacity:0 from animation reset.
When cycling to them, only the container got visible — children stayed
invisible. Now reset all child opacity/visibility when activating a slide.
Also stop setting opacity:0 on hidden slides — visibility:hidden suffices.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:32:21 -07:00
Vance IngallsandClaude Opus 4.6 1ffe474b1f feat(skills): playable video card using hyperframes-player component
Replace motion template thumbnail row with a full-width playable card
using <hyperframes-player>. Plays on hover, pauses and resets on leave.
First card: thesis composition restyled with biennale-yellow palette.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 15:02:57 -07:00
Vance IngallsandClaude Opus 4.6 28207e6ee9 feat(skills): add motion template row above presentation templates
New top row shows HyperFrames video compositions as motion templates.
Each card has a thumbnail, name, and 'video' badge. Clicking sends
a templatePick message with motionTemplate:true flag. Data injected
via __MOTION_TEMPLATES_JSON__ placeholder.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:56:44 -07:00
Vance IngallsandClaude Opus 4.6 48a06512ed docs(skills): document word-count variance requirement for text pools
The template picker matches replacement text to original word count.
Agents must generate pools with varied lengths so pickByLength has
good candidates for both short (2-word) and long (6+ word) slots.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:32:34 -07:00
Vance IngallsandClaude Opus 4.6 f8fdd7c3de feat(skills): match replacement text word count to original
pickByLength() scans the pool for the closest word-count match
to the original text. A 2-word headline gets a 2-word replacement,
a 15-word paragraph gets a similar-length one. Prevents layout
overflow from mismatched text lengths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:22:38 -07:00
Vance IngallsandClaude Opus 4.6 1a57ba3d5b fix(skills): inject text into deck-stage templates with section-only classes
deck-stage templates use <section class='s-cover'> not <section class='slide'>.
Query now falls back to section[class] when .slide finds nothing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:20:29 -07:00
Vance IngallsandClaude Opus 4.6 985c0bf1f4 feat(skills): inject contextual text into fine-tune scene grid iframe
Template picker passes PROMPT_TEXT and tone in the postMessage.
The bridge's iframe onload runs the same text injection logic
(display/headlines/body/stats/labels/smalls by font-size) so
the fine-tune preview shows contextual content, not placeholders.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:07:05 -07:00
Vance IngallsandClaude Opus 4.6 c230d71066 fix(skills): correct template iframe path to ../templates/ from .hyperframes/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:04:36 -07:00
Vance IngallsandClaude Opus 4.6 e912936f20 feat(skills): slower card lift and fade, 1.6s total animation
Scale 1→1.06 over first 45%, then 1.06→1.08 while fading out
over remaining 55%. Phase 2 triggers at 900ms mid-fade.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 14:00:19 -07:00
Vance IngallsandClaude Opus 4.6 36c7440003 feat(skills): staggered fade with subtle card lift on template select
Background fades to black (0.5s), card scales up 6% and holds,
then card fades out after background is dark. No dramatic zoom.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:58:46 -07:00
Vance IngallsandClaude Opus 4.6 bb863dba64 fix(skills): correct transform-origin to pull card zoom toward center
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:57:14 -07:00
Vance IngallsandClaude Opus 4.6 3e673b812e fix(skills): flip transform-origin direction for card zoom
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:56:33 -07:00
Vance IngallsandClaude Opus 4.6 9be255febf feat(skills): dynamic transform-origin scales card toward viewport center
Calculates offset from card center to viewport center and sets
transform-origin so the zoom always converges on the middle of
the screen regardless of card position.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:55:50 -07:00
Vance IngallsandClaude Opus 4.6 a459408954 fix(skills): phase 2 fires at 500ms for tighter transition overlap
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:54:14 -07:00
Vance IngallsandClaude Opus 4.6 74dfc1bc02 fix(skills): scale and fade run simultaneously in card zoom
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:53:13 -07:00
Vance IngallsandClaude Opus 4.6 d95291b7df fix(skills): single continuous zoom animation, no two-stage freeze
Replace two-class transition with one keyframe animation.
scale(1)→scale(4) over 0.9s, opacity fades after 60%.
cubic-bezier(0.4,0,0,1) for smooth acceleration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:51:25 -07:00
Vance IngallsandClaude Opus 4.6 30ee4d2711 feat(skills): dramatic zoom transition on template selection
Card scales to 3.5x (well beyond viewport) over 0.8s with
cubic-bezier easing. Background fades to black over 0.5s.
Card fades out at 0.4s delay. Phase 2 slides in over 0.6s.
Total transition ~900ms for cinematic feel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:48:51 -07:00
Vance IngallsandClaude Opus 4.6 a0655286f9 feat(skills): add transition animation between template and fine-tune
Click a template card: background fades to black, card scales up
and fades out over 450ms, then Phase 2 fades in with subtle slide-up.
Smooth handoff between browsing and configuring.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:34:34 -07:00
Vance IngallsandClaude Opus 4.6 ea9208261f perf(skills): remove 300ms delay on template selection
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:31:09 -07:00
Vance IngallsandClaude Opus 4.6 356096c417 fix(skills): back button switches to Phase 1 instead of navigating away
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:28:42 -07:00
Vance IngallsandClaude Opus 4.6 48a34f45f2 feat(skills): embed template picker as Phase 1 in design-picker.html
Replace moodboard HTML with iframe to template-picker.html. Tab says
'1. Template'. Clicking a template sends postMessage to parent which
triggers goToTune() — no page navigation, no flash. Template picker
and fine-tune live on the same page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:24:16 -07:00
Vance IngallsandClaude Opus 4.6 41edf7d85e fix(skills): rewire Phase 1 tab to link back to template picker
When pick-design.html is opened from the template picker bridge,
rewrite the Direction tab to show '← Template' and navigate back
to template-picker.html instead of showing the empty moodboard view.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:21:17 -07:00
Vance IngallsandClaude Opus 4.6 f24812ff0d feat(skills): inject selected template iframe into fine-tune scene grid
When bridging from template picker, replace the static preview_frames
with a live iframe of the selected template. Includes slide cycling,
deck-stage fallback CSS, opacity reset for animation start states,
and scroll-mode detection for flex-scroll templates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:19:41 -07:00
Vance IngallsandClaude Opus 4.6 d5e3d6565d fix(skills): add element guards and template-picker bridge to design-picker.html
Guard mood-title, mood-grid, pal-bar, mood-next-btn references so
pick-design.html works when Phase 1 is replaced by template picker.
Add handleTemplatePick bridge that reads sessionStorage/postMessage
and auto-advances to Phase 2 with selected template metadata.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:15:09 -07:00