WASM showcase page - #100
Merged
Merged
Conversation
…t, cleanups - terminal.ts: paint one unconditional frame after refit() so reduced-motion visitors (and the first rAF before pause fires) always see a mature network - terminal.ts: capture agentCount at mount time; re-apply after set_preset so mobile's 12k override survives preset switches - tslime-wasm/Cargo.toml: drop silently-ignored [profile.release] (workspace profile wins; cargo was warning on every build) - tslime-wasm/src/lib.rs: doc tick() noting it is a no-op in headless/ANSI mode - pages.yml: widen path filter to include src/render/** and src/simulation/** so wasm rebuilds trigger on any core rendering or simulation change
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.
Client-side WASM→ANSI→xterm.js showcase page for GitHub Pages (tamirelazar.github.io/tslime).
What it does
src/render/ansi.rs) + thetslime-wasmshell from the prototype onto dev.set_preset(sim params only, reuses constructor seed),set_palette(render-only, no sim recreate), plus registry accessors. Fixes the hardcoded-seed-42 reconfigure bug.web/: vanilla-TS Vite app, warm "Variant A" chrome, static-HTML SEO first paint (title/meta/OG + poster), curated preset/palette pills, pause control, load-failure fallback, reduced-motion handling, mobile reduced workload.pages.yml: builds wasm + Vite and deploysweb/distto GitHub Pages (base/tslime/).Scope
v1 presets apply simulation params only (curated structure-driven set: Network/Organic/Vortex/Lightning/Tendrils); TUI-identical per-preset render looks are intentionally deferred. Palette switch recolors live.
Test plan
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(1213 unit + 56 golden + 19 doc) — all green; goldens unchanged.cargo build --no-default-features --lib+wasm-pack build(wasm32) — clean.web/:tsc --noEmit+pnpm buildclean; dist served at/tslime/.