Skip to content

feat: remove all 3D modeling and Three.js visualizations#33

Merged
mnaimfaizy merged 5 commits intomainfrom
copilot/remove-3d-modeling-visualization
Apr 9, 2026
Merged

feat: remove all 3D modeling and Three.js visualizations#33
mnaimfaizy merged 5 commits intomainfrom
copilot/remove-3d-modeling-visualization

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

Summary

Completely removes all 3D modeling, Three.js, and related visualization infrastructure from the application. The platform now exclusively uses 2D SVG-based interactive visualizations.

Changes

Deleted Files

  • src/three/ — entire Three.js engine directory (core engine, animation scheduler, React bridge, all models)
  • src/features/javascript/components/visualizations/3d/ — EventLoop3D, MemoryHeap3D
  • src/components/models3d/ — ComplexityLandscape3D, Python 3D models (PythonVM3D, MemoryProfiler3D, CallGraph3D)
  • src/components/ThreeDLayout.tsx
  • src/components/shared/ThreeDControlPanel.tsx
  • src/components/shared/ModeTabs.tsx
  • src/components/shared/CallStackControlPanel.tsx
  • src/features/datastructures/components/sections/Visualizations3D.tsx

Updated Source Files

  • 10 JavaScript engine sections (CallStack, EventLoop, MemoryHeap, GarbageCollection, JITCompilation, JavaScriptRuntime, V8Runtime, WebAPIs, TaskQueues, ParserAST): removed mode state, ModeTabs toggle, and all 3D rendering paths — now always renders 2D visualization
  • Python AdvancedConcepts: removed 3D section with PythonVM3D, MemoryProfiler3D, CallGraph3D and associated progressive loading infrastructure
  • Big-O RealWorldApplications: removed ComplexityLandscape3D section
  • DataStructures page: removed Visualizations3D lazy import and route
  • Sidebar: removed "3D Visualizations" navigation item
  • src/core/config/env.ts: removed enable3D feature flag
  • src/utils/memoryMonitor.ts: removed Three.js WebGLRenderer dependency; kept browser-native performance utilities used by the Playground's ExecutionEngine

Dependencies

  • Removed three@0.180.0 and @types/three@0.180.0 from package.json and package-lock.json

Docs Updated

  • README.md — removed 3D architecture section, updated visualization tech stack
  • 15 docs files updated to remove Three.js/3D references

Validation

  • ✅ Build passes (tsc -b && vite build) — no Three.js vendor chunk in output
  • ✅ All 211 tests pass
  • ✅ ESLint clean
  • ✅ CodeQL: 0 security alerts

Copilot AI and others added 5 commits April 8, 2026 21:52
- Remove ModeTabs import and mode state from all 7 JS section components
- Replace conditional 2D/3D ternary with direct 2D TwoDLayout render
- Remove unused useState import from AdvancedConcepts.tsx

Affected files: GarbageCollection, JITCompilation, JavaScriptRuntime,
V8Runtime, WebAPIs, TaskQueues, ParserAST, AdvancedConcepts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mnaimfaizy <34773846+mnaimfaizy@users.noreply.github.com>
Update 15 documentation files to reflect that the application no
longer uses Three.js or 3D visualizations. The app now exclusively
uses SVG-based 2D visualizations.

Changes:
- Replace 'Three.js for immersive learning' with 'interactive 2D
  visualizations' in all About/README description text
- Remove EventLoop3D, MemoryHeap3D, PythonVM3D, MemoryProfiler3D,
  CallGraph3D, ComplexityLandscape3D, Visualizations3D component refs
- Remove models3d/ directory references from implementation plans
- Remove src/three/ and vendor-three bundle references
- Remove 3D Visualization Concepts sections from implementation plans
- Remove enable3D / VITE_FEATURE_3D feature flag references
- Remove ModeTabs 3D extension reference
- Update bundle size tables to remove vendor-three chunk
- Mark 3D Visualization System as removed in Implementation-Status-Report
- Remove threejs and 3d-visualization from repository topic lists

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mnaimfaizy <34773846+mnaimfaizy@users.noreply.github.com>
Restore the non-3D bullet points ('Icons properly tree-shaken' and
'Components are code-split ready') that were inadvertently removed
from Navigation-Improvements-Report.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mnaimfaizy <34773846+mnaimfaizy@users.noreply.github.com>
@mnaimfaizy mnaimfaizy marked this pull request as ready for review April 9, 2026 04:28
@mnaimfaizy mnaimfaizy merged commit 6df1f1a into main Apr 9, 2026
9 checks passed
@mnaimfaizy mnaimfaizy deleted the copilot/remove-3d-modeling-visualization branch April 9, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants