Improve program hierarchy 6123#6145
Conversation
|
✅ All Jest tests passed! This PR is ready to merge. |
1 similar comment
|
✅ All Jest tests passed! This PR is ready to merge. |
- Add hierarchical tree view sidebar for block navigation - Implement collapsible nodes with expand/collapse functionality - Add block navigation and highlighting features - Include responsive design with dark mode support - Integrate with existing block system and stage - Add toggle button and proper event handling Files: - js/program-explorer.js (new) - Core explorer logic - css/program-explorer.css (new) - Complete styling - js/activity.js (modified) - Explorer initialization - js/loader.js (modified) - Module configuration - index.html (modified) - Resource loading - PROGRAM_EXPLORER_IMPLEMENTATION.md (new) - Documentation
b79797d to
e2c8f91
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Any significant changes are always needs to be discusssed in the meet and then only we add and why did u checked performace its a feature |
|
I apologize for not discussing this significant change in the meeting first. I should have followed the established process. I have also unchecked the Performance category — this is purely
Would you like me to hold off on further development until we can discuss this more? |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
- Remove temporary documentation file - Remove unnecessary comments and code - Simplify method implementations - Maintain clean, production-ready code Files cleaned: - js/program-explorer.js (removed redundant comments) - css/program-explorer.css (kept essential styles only) - PROGRAM_EXPLORER_IMPLEMENTATION.md (removed temporary file)
|
✅ All Jest tests passed! This PR is ready to merge. |
|
✅ All Jest tests passed! This PR is ready to merge. |
Summary
Adds a Program Structure Explorer sidebar that visualizes block hierarchy
as a collapsible tree view, addressing #6123.
Changes
js/program-explorer.js— hierarchy extraction, tree rendering,navigation, and live updates (~491 lines)
css/program-explorer.css— sidebar styling with dark mode andresponsive support
js/activity.js— explorer initialization infinishedLoadingjs/loader.js— module shim configurationindex.html— resource loadingHow It Works
connections[0] === nullconnectionsto build the hierarchy treeTesting
Manually tested with:
Screencast.From.2026-03-08.12-05-03.mp4
this resolves issue: #6123