← Commit history

Publish 0.25.1

Colby Knox ·af1d497aad · ·parent c7323f7
4 files changed +41−13
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "hero-studio",   "title": "Hero Studio",   "type": "app",-  "version": "0.25.0",+  "version": "0.25.1",   "description": "The hero-image lab with a human gate: `hero-studio pose <owner/slug>` opens the studio in front of the human, posed for their package, and blocks until they click Generate, producing the provenance-stamped 2000x1250 PNG the registry's hero gate requires. The image carries the title and artwork; the exported image also bakes the type pill (top right) and full wiki slug (bottom right); the page shows the hero bare, and only the homepage marquee overlays its own dynamic info. Every hero wears its PAGE OWNER's brand guide (<owner>/brand): colors, type, logo and background themes, Adom's included; an unresolved guide holds unbranded rather than borrowing Adom's look. Placement is fixed for all. The floating app window is the showcase: it auto-loads a real screenshot from the package's wiki page (screenshots/, docs/), takes a manual import, or a full-hero import (the human-ratified re-stamp path for existing heroes). The pose gate opens in verification mode: per-item checklist (title, subtitle, showcase, type match) and a Generate that unlocks only fully confirmed. Includes showcase bleeds, brand tile themes, gradient angles, pixel-faithful wiki marquee and index-card previews, and a component-hero mode with a photo/raytrace/phong fallback ladder.",   "license": "MIT",   "tags": [
page.json+1−1
@@ -2,7 +2,7 @@   "slug": "hero-studio",   "title": "Hero Studio",   "type": "app",-  "version": "0.25.0",+  "version": "0.25.1",   "description": "The hero-image lab with a human gate: `hero-studio pose <owner/slug>` opens the studio in front of the human, posed for their package, and blocks until they click Generate, producing the provenance-stamped 2000x1250 PNG the registry's hero gate requires. The image carries the title and artwork; the exported image also bakes the type pill (top right) and full wiki slug (bottom right); the page shows the hero bare, and only the homepage marquee overlays its own dynamic info. Every hero wears its PAGE OWNER's brand guide (<owner>/brand): colors, type, logo and background themes, Adom's included; an unresolved guide holds unbranded rather than borrowing Adom's look. Placement is fixed for all. The floating app window is the showcase: it auto-loads a real screenshot from the package's wiki page (screenshots/, docs/), takes a manual import, or a full-hero import (the human-ratified re-stamp path for existing heroes). The pose gate opens in verification mode: per-item checklist (title, subtitle, showcase, type match) and a Generate that unlocks only fully confirmed. Includes showcase bleeds, brand tile themes, gradient angles, pixel-faithful wiki marquee and index-card previews, and a component-hero mode with a photo/raytrace/phong fallback ladder.",   "license": "MIT",   "tags": [
public/js/wizard.js+19−4
@@ -410,7 +410,14 @@ function wizRenderRail() {   });   wizFitRail();   const act = rail.querySelector('.schip.active');-  if (act) act.scrollIntoView({ inline: 'center', block: 'nearest' });+  if (act) centerInRow(rail, act);+}+// Center a chip or card inside its own scrolling row. scrollIntoView would+// also scroll every ancestor, the page included, and shift the whole studio+// sideways in a narrow pane.+function centerInRow(row, el) {+  const r = row.getBoundingClientRect(), e = el.getBoundingClientRect();+  row.scrollLeft += (e.left + e.width / 2) - (r.left + r.width / 2); } function wizFitRail() {   const rail = $('wsteprail');@@ -865,9 +872,17 @@ function wizardRender() {   const cards = $('wcards');   cards.textContent = '';   cards.classList.toggle('custom', !s.options);+  // The row is shared by every step: an option step scrolls it sideways to+  // center the chosen card, and a custom step (headline, review) must not+  // inherit that offset, since it hides horizontal overflow and the human+  // could never scroll back to its left edge.+  cards.scrollLeft = 0;+  if (cards.dataset.step !== s.id) { cards.scrollTop = 0; cards.dataset.step = s.id; }+  // Custom steps have nothing to cycle; hidden arrows would still take+  // 108px of a narrow dock.   const showArrows = !!s.options;-  $('warr-l').style.visibility = showArrows ? 'visible' : 'hidden';-  $('warr-r').style.visibility = showArrows ? 'visible' : 'hidden';+  $('warr-l').style.display = showArrows ? '' : 'none';+  $('warr-r').style.display = showArrows ? '' : 'none';   if (s.options) {     const opts = s.options();     const cur = s.get();@@ -875,7 +890,7 @@ function wizardRender() {     $('wd-count').textContent = (Math.max(0, idx) + 1) + ' of ' + opts.length;     opts.forEach(o => cards.appendChild(wizCard(o, o.v === cur, () => { s.set(o.v); })));     const on = cards.querySelector('.card.on');-    if (on) on.scrollIntoView({ inline: 'center', block: 'nearest' });+    if (on) centerInRow(cards, on);   } else {     $('wd-count').textContent = '';     if (s.custom) s.custom(cards);
public/studio.css+20−7
@@ -7,6 +7,7 @@ header {   height:44px; flex:0 0 44px; display:flex; align-items:center; gap:12px;   padding:0 12px; background:var(--surface); border-bottom:1px solid var(--border);+  min-width:0; overflow:hidden; }  .brand { display:flex; align-items:center; gap:8px; white-space:nowrap; }@@ -25,7 +26,16 @@ header {  .subject .meta { font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--text-2); white-space:nowrap; } -.actions { margin-left:auto; display:flex; gap:6px; }+.actions { margin-left:auto; display:flex; gap:6px; flex:0 0 auto; }+/* a narrow pane (a split editor, a small laptop) keeps the buttons on one+   line and gives up the app name first, then the page title */+@media (max-width: 560px) {+  .brand .name, .vsep { display:none; }+  .subject .meta { display:none; }+}+@media (max-width: 420px) {+  #btn-rand span { display:none; }+}  .iconbtn {   width:30px; height:30px; border:1px solid var(--border); border-radius:8px; background:transparent;@@ -345,13 +355,15 @@ body.classic #wdock, body.classic #weditring { display:none !important; }   box-shadow:0 0 22px rgba(0,184,176,.18); } #weditring.on { opacity:.85; } .wiz-lab { font-size:11px; color:var(--text-2); letter-spacing:.06em; text-transform:uppercase; font-family:'Familjen Grotesk'; }-.wiz-headline { flex:1; display:flex; flex-direction:column; gap:7px; max-width:560px; margin:0 auto; }-.wiz-sizerow { display:flex; align-items:center; gap:10px; }+.wiz-headline { flex:1; display:flex; flex-direction:column; gap:7px; max-width:560px; min-width:0; margin:0 auto; }+/* a narrow dock wraps the button under the slider; nothing here may be wider+   than the column, or the panel overflows a box that cannot scroll sideways */+.wiz-sizerow { display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; min-width:0; } .wiz-sizerow .wiz-lab { flex:0 0 auto; }-.wiz-sizerow input[type=range] { flex:1; min-width:120px; accent-color:var(--accent); }+.wiz-sizerow input[type=range] { flex:1 1 80px; min-width:80px; accent-color:var(--accent); } .wiz-sizerow .wiz-sizeval { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-2); width:52px; text-align:right; }-.wiz-sizerow .btn { flex:0 0 auto; }-.wiz-headline .hin { background:var(--overlay); border:1px solid var(--border); border-radius:8px; color:var(--text);+.wiz-sizerow .btn { flex:0 0 auto; max-width:100%; }+.wiz-headline .hin { box-sizing:border-box; width:100%; min-width:0; background:var(--overlay); border:1px solid var(--border); border-radius:8px; color:var(--text);   padding:8px 12px; font-size:14px; font-family:'Satoshi'; } .wordpick { display:flex; flex-wrap:wrap; gap:4px; max-width:560px; } .wtok { padding:2px 8px; border:1px solid var(--border); border-radius:6px; font-size:12px; cursor:pointer;@@ -403,7 +415,7 @@ body[data-render] #wdock, body[data-render] #weditring { display:none !important body.wizard #contexts { display:none; } body.wizard.show-ctx #contexts { display:flex; } /* header buttons: one quiet family, labels not mystery icons */-.hbtn { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border); background:transparent;+.hbtn { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; flex:0 0 auto; border:1px solid var(--border); background:transparent;   color:var(--text-2); border-radius:8px; padding:5px 12px; font-size:12.5px; font-family:'Satoshi'; cursor:pointer;   transition:all .15s ease; } .hbtn:hover { border-color:var(--accent); color:var(--text); background:rgba(0,184,176,.07); }@@ -441,6 +453,7 @@ body.wizard.show-ctx #contexts { display:flex; } #wcards.custom { align-items:stretch; overflow-y:auto; overflow-x:hidden; height:100%; align-self:stretch; min-height:0;   scrollbar-width:thin; scrollbar-color:var(--border) transparent; } #wcardsrow:has(> #wcards.custom) { align-items:stretch; }+#wcards.custom > * { min-width:0; max-width:100%; } #wcards.custom::-webkit-scrollbar { display:block; width:7px; }  /* Brand step: the sentences about this guide read as a compact wrapping