Skip to content

Add GitHub Pages JavaScript playground#10

Merged
konard merged 3 commits intomasterfrom
issue-9-b9100f6b4cfe
May 8, 2026
Merged

Add GitHub Pages JavaScript playground#10
konard merged 3 commits intomasterfrom
issue-9-b9100f6b4cfe

Conversation

@konard
Copy link
Copy Markdown
Member

@konard konard commented May 8, 2026

Fixes #9.

Summary

  • Adds a Vite + TypeScript GitHub Pages documentation app under site/.
  • Uses Monaco Editor for the JavaScript playground with runtime hints for Link, LinksConstants, UnitedLinks, api.metric, api.visualize, and sleep.
  • Runs playground code in a module worker, imports the generated wasm-pack --target web package, captures console output, renders console.table, metrics, errors, execution duration, and a directed doublets graph.
  • Adds .github/workflows/pages.yml for Pages deployment and extends release CI to build the browser demo.
  • Updates README with the hosted demo URL and local playground commands.
  • Adds tests/docs_site.rs to guard the Pages/demo delivery surface.
  • Bumps the package version to 0.1.3.
  • Adds the issue case study, evidence, logs, and review screenshots under docs/case-studies/issue-9 and docs/screenshots.

Reproduce Locally

wasm-pack build --release --target web --out-dir site/public/pkg --out-name doublets_web
npm ci --prefix site
npm run dev --prefix site

Production Pages build:

GITHUB_PAGES=true npm run build --prefix site

Verification

  • cargo fmt --all -- --check
  • cargo check --locked --tests --all-features
  • cargo test --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
  • cargo clippy --locked --tests --all-features -- -D warnings
  • wasm-pack build --release --target bundler --out-dir pkg
  • wasm-pack test --node
  • npm pack --dry-run from pkg/
  • npm audit --prefix site
  • wasm-pack build --release --target web --out-dir site/public/pkg --out-name doublets_web
  • npm run build --prefix site
  • GITHUB_PAGES=true npm run build --prefix site
  • Playwright verification of the dev server and production /doublets-web/ artifact path

Screenshots

Desktop:

Desktop playground

Mobile:

Mobile playground

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #9
@konard konard self-assigned this May 8, 2026
@konard konard changed the title [WIP] Add GitHub pages with best on market code editor with syntax highlight for JavaScript, and browser console visualization Add GitHub Pages JavaScript playground May 8, 2026
@konard konard marked this pull request as ready for review May 8, 2026 06:41
@konard
Copy link
Copy Markdown
Member Author

konard commented May 8, 2026

Working session summary

Implemented and finalized PR 10: #10

What changed:

  • Added the GitHub Pages Vite/TypeScript playground in site/ with Monaco, worker-based wasm execution, captured console output, metrics, and graph visualization.
  • Added Pages deployment workflow and extended release CI to build the browser demo.
  • Added README demo docs, issue case study/evidence/logs, screenshots, and tests/docs_site.rs.
  • Bumped version to 0.1.3.
  • Removed the prepared branch placeholder file from the final PR diff.

Verification:

  • Local Rust, wasm-pack, npm audit, Vite builds, and Playwright checks passed.
  • Fresh CI for head SHA 6acb97e passed: Ubuntu, macOS, Windows, and “Build and Test npm Package”.
  • PR is ready for review, merge state is clean, and the tracked working tree is clean.

This summary was automatically extracted from the AI working session output.

@konard
Copy link
Copy Markdown
Member Author

konard commented May 8, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $26.312156

📊 Context and tokens usage:

  • 501.0K / 1.1M (48%) input tokens, 63.6K / 128K (50%) output tokens

Total: (501.0K + 18.4M cached) input tokens, 63.6K output tokens, $26.312156 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Repository (95614KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Copy Markdown
Member Author

konard commented May 8, 2026

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@konard konard merged commit 2b749b2 into master May 8, 2026
5 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.

Add GitHub pages with best on market code editor with syntax highlight for JavaScript, and browser console visualization

1 participant