interactive playground #171
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 300 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #171"
general
weight: 0.35
ROKUMATE
#170
Closes #XX
<!-- Replace XX with the actual issue number if available -->
Description
This PR adds a fully functional Interactive Code Playground to the LearnHub platform.
The playground allows users to write, test, and preview HTML, CSS, and JavaScript code live in the browser.
Key features include real-time live preview, Monaco editor integration, localStorage-based save/load, download/export functionality, and clipboard sharing.
The playground is fully responsive, supports dark mode, and ensures secure code execution via sandboxed iframes.
Main Highlights:
-Main Component:
src/components/CodePlayground/index.tsx-Styling:
src/components/CodePlayground/CodePlayground.csssrc/components/CodePlayground/Template.tsx-
/docs/code-playground-demo.md-
/docs/web-development/playground.md- Integrated into main landing page
/docs/index.mdDependencies Added:
@monaco-editor/react– For syntax highlighting and code editor integrationType of PR
Screenshots / videos (if applicable)
before
<img width="1917" height="885" alt="image" src="https://github.com/user-attachments/assets/3f5f667a-785e-4f77-8048-f25a393f9bc5" />
after
<img width="1915" height="887" alt="image" src="https://github.com/user-attachments/assets/6e5b2ec7-bb60-4c28-ad89-d3fdfcd959f7" />
playground feature
<img width="1157" height="685" alt="image" src="https://github.com/user-attachments/assets/7a5269dd-9da5-4c66-99a6-ede1856b8ea1" />
video of added feature
https://github.com/user-attachments/assets/87ab0374-f644-4fc3-9ba6-79c67a89beef
Checklist:
CONTRIBUTING.mdfile before contributing.