Feat/python rooms supabase#40
Merged
risuhfoundry merged 6 commits intoApr 10, 2026
Merged
Conversation
|
@swayam0 is attempting to deploy a commit to the akyourowngames' projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Objective
This PR expands the Python curriculum to cover fundamental topics more deeply and transitions the room system to a dedicated persistence layer using Supabase. This move optimizes performance by reducing the client-side bundle size and allows for dynamic content updates without redeployments.
🛠️ Key Changes
Extended Curriculum: Increased the room count from 12 to 16 rooms (4 rooms for each core topic: Variables, Data Types, Control Flow, and Functions).
New Content:
Variables: Added Update and Increment (focus on variable reassignment).
Data Types: Added Introduction to Lists (focus on indexing and basic list operations).
Control Flow: Added The While Loop (focus on indefinite iteration).
Functions: Added Default Parameters (focus on flexible function signatures).
Constraint Compliance: All new rooms strictly follow the
RoomBlueprint
type and utilize bannedConcepts to maintain a beginner-friendly focus.
2. Supabase Persistence Layer
Dynamic Fetching: Updated @/src/lib/supabase/python-rooms.ts to fetch room data from the python_rooms table at runtime.
Bundle Optimization: Refactored the fetching logic to use dynamic imports for the hardcoded fallback blueprints. This ensures that the large blueprint array is only loaded if the Supabase connection fails, significantly reducing the initial payload.
Data Synchronization:
Updated
supabase/seed_python_rooms.sql
with the complete 16-room dataset.
Added helper scripts in scripts/ to streamline future seeding operations.
🧪 Verification Results
Visual Audit: Verified the rendering of new rooms via local development (Screenshots attached in the workspace walkthrough).
Fallback Integrity: Confirmed that the system gracefully falls back to local blueprints if the database is unreachable.
Performance: Verified that
room-blueprints.ts
is no longer part of the critical path in the main client bundle.