Skip to content

Phase 4: WebAssembly playground and static gallery - #6

Merged
JFrusher merged 1 commit into
phase-3-logicfrom
phase-4-web
Oct 24, 2026
Merged

JFrusher merged 1 commit into
phase-3-logicfrom
phase-4-web

Conversation

@JFrusher

Copy link
Copy Markdown
Owner

Stacked on #5. Implements Phase 4 of ROADMAP.md.

  • M4.1 Emscripten build (src/wasm/theos_wasm.cpp) using wasm exceptions; check(source) returns JSON with diagnostics, nodes and a Mermaid graph. A Node smoke test runs the WASM build.
  • M4.2 Playground: CodeMirror with .theo highlighting, a live verdict ("The argument holds." / "does not hold yet"), the graph with failing nodes outlined, diagnostics as glosses that jump to their line, examples, and shareable #src= links.
  • M4.3 theosc site gallery pages: graph, sources, definitions, claims, Fitch-style proofs (a bar per subproof, a double bar for box, underlined assumptions), objections and replies.
  • Design: a palette taken from manuscript pigments (lapis for what holds, rubric red for errors and objections, gold for axioms), set in IM Fell English and Alegreya Sans.
  • Web workflow: native and WASM builds, Node and Playwright smoke tests, and a GitHub Pages deploy on main.

Needs you: enable GitHub Pages with "GitHub Actions" as the source in repository settings, or the deploy job on main will fail. PR runs don't deploy.

Verified locally with Playwright and Chromium: the playground loads, affirming the consequent is rejected with counterexample A = false, B = true, the fixed argument holds again, and gallery pages render their graphs. Screenshots helped fix two problems: graph labels were too small to read, and proof line numbers drifted right as subproofs nested.


Generated by Claude Code

- Emscripten target (src/wasm/theos_wasm.cpp): embind check(source)
  returning diagnostics, node list and a Mermaid graph as JSON
- Playground (web/): CodeMirror editor with .theo highlighting, live
  verdict, graph with failing nodes marked, diagnostics as glosses that
  jump to their line, shareable #src= links, examples
- theosc site: gallery pages with graph, sources, definitions, claims,
  Fitch-style proofs (bars per subproof, strict double bars, underlined
  assumptions), objections and replies; index page
- Manuscript palette shared by playground, gallery and Mermaid classDefs;
  long graph labels wrapped
- Web workflow: native + wasm builds, Node wasm smoke test, Playwright
  browser smoke test, GitHub Pages deployment on main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019WEmxyo9CRKSbjbEdCuJTG
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ba6c3970-c6f6-4870-8869-934bd96ad755
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JFrusher
JFrusher marked this pull request as ready for review October 24, 2026 23:22
@JFrusher
JFrusher merged commit 3bf9457 into phase-3-logic Oct 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants