feat: pybe v2.2 ship major learning experience overhaul - #22
Open
Just-Here-TO-Code wants to merge 2 commits into
Open
feat: pybe v2.2 ship major learning experience overhaul#22Just-Here-TO-Code wants to merge 2 commits into
Just-Here-TO-Code wants to merge 2 commits into
Conversation
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.
PR: PyBe v2.2, First-Principles Learning Engine, Dynamic Dashboard Themes & Socratic Misconception Spotter
Overview & Core Objective
This Pull Request introduces PyBe v2.2, elevating PyBe from a scenario-based learning platform into a First-Principles Problem-Based Learning (PBL) Engine.
Instead of teaching syntax rules upfront, PyBe v2.2 forces learners to experience the exact friction point where manual code breaks, guiding them to rediscover Python constructs from memory architecture up. In addition, v2.2 introduces 4 immersive theme worlds (Default, Potterheads, Marvel, and Anime) with dynamic scenario switching across all 13 curriculum chapters.
Key Features Introduced
1. First-Principles Learning Engine
variables): Live RAM address0x7F8value allocation.operators): Interactive multiplication & division node calculations.strings): Array cell decomposition ([0] -> 'P',[1] -> 'y').conditionals): Live branching logic with score sliders.loops): Interactive execution cursor stepping across items.lists): Live+ append()and- pop()memory counters.dictionaries): Directsets): Instant deduplication filter.functions): Parameter input substitution and return value processing.search-filter): Sequential pattern-matching target highlight.try/exceptShield Simulator (error-handling): Interactive exception blocker preventing app crashes.algorithms): Ascending/descending sorting step-by-step.files): Volatile RAM data transfer to permanent disk files.$ python main.py).SummaryPhase). Detects 5 common beginner mental traps:=with==).Provides targeted Socratic prompts guiding the student to re-evaluate their mental model.
2. Dynamic Dashboard Theme Engine & Theme-Switched Curriculum
/api/casestudiesand/api/scenarios) strictly filters content by queried theme.3. Tailored Light & Dark Mode Color Palettes
Introduced bespoke HSL color tokens for both Light and Dark modes across all themes:
#1E1610) & Warm Light Parchment (#FAF4E8) with Dark Wizard Ink (#291E16).#0B132B) & Titanium Light (#F1F5F9) with Slate Ink (#0F172A).#120D1D) & Sakura Lavender Light (#FAF5FF) with Cyber Ink (#1E1B4B)./retain original public landing page styling untouched.4. Database Expansion (93 Total Scenarios)
Curriculum Matrix (13 Chapters)
variables0x7F8Slot Inspectoroperatorsstringsconditionalsloopslistsdictionariessetsfunctionssearch-filtererror-handlingtry/exceptShield SimulatoralgorithmsfilesFiles Changed
client/src/pages/ChapterPage.jsx: AddedBeforeVsAfter,MentalModelLab,MicroSandbox, andSocraticSpotterinSummaryPhaseandTheoryPhase.client/src/data/curriculum.js: AddedbeforeVsAfterdefinitions for all 13 chapters & exportedgetThemedChapter().client/src/styles/index.css: Added Light & Dark mode color variables for Potterheads, Marvel, and Anime themes.client/src/pages/AppHome.jsx&CaseStudies.jsx: Theme selector UI & strict theme filter tabs.server/src/seed.js&server/src/data/db.json: Seeded 93 scenarios across all themes.server/src/routes/casestudies.js&store.js: Backend theme filtering API routes.README.md,product.md,WIKI.md: Comprehensive documentation updates..gitignore: Cleaned up to exclude build output, logs, and IDE files.Verification & Testing
npm run buildinclient/, Passed cleanly (2.80s) without warnings.node server/src/seed.js, Seeded 93 PyBe scenarios successfully.MicroSandbox, state updates inMentalModelLab, and Socratic prompt generation inSummaryPhase.💬 Reviewer Notes
All changes maintain 100% backward compatibility with existing user sessions and offline
localStorageprogress tracking.