mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(video): reclaim outDir on createRenderJob throw + hide empty 4th highlight
Final whole-branch review (Opus) triaged two FIX items from the SDD nits
ledger; the rest ship as-is.
- render.js: a synchronous throw from createRenderJob (post-mkdtemp, not
awaited) left an empty outDir on disk — the outer catch only reclaimed
extractDir. Reclaim outDir too when it exists, and correct the stale
comment that claimed the out dir was never created.
- {vertical,square}.html: the 4th highlights <li> lived in the DOM hidden
only by JS, so a no-JS / failed-script render would show an empty bullet.
Start it style="display:none" and reveal on populate, so an unscripted
render shows nothing instead.
Vitest smoke (release-announcement.test.js) 4/4 green; render.js syntax
checked. Python suite untouched by this fix (JS/HTML only).
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">Fable-mode adopted fleet-wide</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">FE/UX-UI design bar shipped</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">Feature spotlight goes live on X</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text"></span></li>
|
||||
<li class="highlights__item" style="display:none"><span class="highlights__tick"></span><span class="highlights__text"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
if (!textEl) continue;
|
||||
if (i < highlights.length && highlights[i]) {
|
||||
textEl.textContent = String(highlights[i]);
|
||||
items[i].style.display = "";
|
||||
} else {
|
||||
items[i].style.display = "none";
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">Fable-mode adopted fleet-wide</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">FE/UX-UI design bar shipped</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text">Feature spotlight goes live on X</span></li>
|
||||
<li class="highlights__item"><span class="highlights__tick"></span><span class="highlights__text"></span></li>
|
||||
<li class="highlights__item" style="display:none"><span class="highlights__tick"></span><span class="highlights__text"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
if (!textEl) continue;
|
||||
if (i < highlights.length && highlights[i]) {
|
||||
textEl.textContent = String(highlights[i]);
|
||||
items[i].style.display = "";
|
||||
} else {
|
||||
items[i].style.display = "none";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user