ux(wasm): polished demo — progress bar, mobile, two-phase UI#31
Merged
ux(wasm): polished demo — progress bar, mobile, two-phase UI#31
Conversation
Complete UX overhaul of the WASM browser demo: UI Architecture: - Two-phase layout: onboarding screen → chat screen (clean transition) - Onboarding hidden after model load, chat area takes full viewport - 100dvh layout with overflow: hidden — no scroll bounce on mobile - Model name + size shown in header bar after load Input: - Replaced <input> with auto-resizing <textarea> (Shift+Enter for newline) - Stop button appears during generation (Send/Stop toggle) Progress: - Visual progress bar with fill animation during download - Percentage + MB counter overlay - "Cached — instant load" badge auto-detected on page load Chat: - Chat bubbles with directional radius (user right-aligned, assistant left) - Max-width 85% for readability - Removed redundant system messages (Runtime ready, Model loaded) - Model info moved to header bar and stats bar Stats: - Model name + token count + tok/s in compact footer - "prefill..." shown during prompt processing Mobile: - Responsive card layout (stacks vertically on <600px) - viewport maximum-scale=1.0 prevents zoom on input focus - Compact padding and font sizes Bug fixes: - Removed double-set of generating=false - Cache detection uses stable cardId/metaId instead of text matching - Model cards properly disabled during download Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Complete UX overhaul based on hands-on testing. Every rough edge found has been addressed.
Before → After
<input>single line<textarea>auto-resize, Shift+Enter for newlinesTest plan
🤖 Generated with Claude Code