Staging → Main: HTML Challenge UX polish + retry/repair + history#44
Merged
Conversation
Frontend - Drop fixed 1280x720 preview stage; iframe fills frame-shell directly so pages reflow at the actual rendered viewport like a resized browser. - Inject in-iframe scripts: localStorage/sessionStorage shim (so sandboxed pages that read storage on init don't abort), CSS reset with zero-specificity :where() rules, scrollbar styling, body/html bg detector that posts the computed colour back so the frame shell can match the page theme, and a content-bounds zoom-to-fit helper for pages with overflow:hidden bodies and oversized canvases. - Add UI scale (85/90/95/100%) via CSS `zoom` on `.app-shell`, with matching layout-box oversize so the app keeps filling the viewport at scale<1 and a `zoom: 1/scale` cancellation on the preview shell so iframes stay pixel-aligned. - Slot card: name + meta badges share a single row with ellipsis on long names, Thinking becomes a select that lives in the same row as Temp / Seed / Randomize, all controls share a 110x32 footprint. - Stream pane: fixed-height clamp(280px, 38vh, 520px) so streaming output scrolls inside its own box; auto-scrolls when at tail. - Setup panel: dropped duplicate "HTML Challenge" header + folder-path subtitle, moved Run / Cancel / Use Prompt and New Challenge + history search into a single top action row, search input wider. - History dropdown: per-row trash icon (fades in on hover) replaces standalone Delete button. Confirms via window.confirm. - Per-slot Change Model button on every manifested slot. Confirming the picker auto-retries the slot with an explicit override payload so manifest filename + metadata + rendered HTML stay consistent. - Random seed per slot (`int32` range), Randomize button on each card. Backend - Apply `mx.random.seed` before DFLASH/DDTree branches so seeds aren't silently dropped under speculative decoding. - Soft-delete challenges into a sibling `.trash/` directory instead of `shutil.rmtree`; restorable from disk, no third-party trash dep. - After a slot rerun, unlink the previous filename when the new model slug differs (path-traversal guarded) so folders don't accumulate orphan HTML files keyed to old model names. Tests - Updated `test_html_challenge_accepts_per_model_thinking_settings` for the slimmed payload (kept `seed`, dropped `topP` / `diversityStyle` / `diversityMode` which were UI-only and removed).
HTML Challenge UX polish, UI scale, preview hardening
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes the HTML Challenge feature work from staging to main.
Notable commits since last main merge:
src-tauri/gen/schemas/*.jsonremoved from index; gitignore already covers them.Test plan
npx tsc --noEmitnpm testpytest tests/test_backend_service.py.trash/.src-tauri/gen/schemas/*.jsonlocally without git noise.🤖 Generated with Claude Code