Refactor Blockly Interface to V2 Standards - #171
Conversation
- Implement Value-Block-First architecture for object creation. - Consolidate Primitives and Lights into polymorphic blocks with dropdowns. - Update BabylonSceneManager to support direct object references. - Standardize ID generation using 'id_' prefix and random UIDs. - Reorganize Toolbox into functional categories. - Add V2 Standards Demo workspace. - Define ORDER_AWAIT and ORDER_FUNCTION_CALL for reliable code generation. - Add intensity support to createLight and create_light block. - Refactor Assets, Particles, and UI blocks to return references. - Update Playwright tests with robust initialization logic. Co-authored-by: brettfxio <105930054+brettfxio@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Implement Value-Block-First architecture for object creation. - Consolidate Primitives and Lights into polymorphic blocks with dropdowns. - Update BabylonSceneManager to support direct object references and intensity for lights. - Standardize ID generation using 'id_' prefix and random UIDs for all creation blocks. - Reorganize Toolbox into functional categories (Essentials, Create, Transform, World, Events, UI, Audio). - Remove standard 'text' block to enforce asset/variable usage for strings. - Add V2 Standards Demo workspace at `_workspaces/v2-standards-demo.md`. - Define ORDER_AWAIT and ORDER_FUNCTION_CALL for reliable code generation. - Refactor Assets, Particles, and UI blocks to return references. - Update Playwright tests (critical and collision) with robust initialization logic and new block types. Co-authored-by: brettfxio <105930054+brettfxio@users.noreply.github.com>
This PR refactors the current Blockly implementation to clean up the interface to our 3D engine.
Key changes include:
set myBox to create box).create_primitiveblock and a singlecreate_lightblock with dropdown selection.BabylonSceneManagerto accept these references in all transformation and property-setting methods.id_), while the user interaction remains abstract via variables._workspaces/v2-standards-demo.mdto showcase the new standards in action.tests/critical.spec.jsand exposed global APIs to ensure automated tests are more robust against UI overlays and asynchronous loading.PR created automatically by Jules for task 14956375615490280516 started by @brettfxio