Implementation: How should the RuntimePreview component show real universe d...
Documentation for Sessions
⚙️ Implementation: How should the RuntimePreview component show real universe d...
📋 Decision Context
Question:
How should the RuntimePreview component show real universe data instead of mock data?
Task: Not specified
🎯 Decision Made
Chosen:
Fetch from UnifiedDataService
Options Considered:
- Use only module tree counting
- Fetch from UnifiedDataService
- Add API calls within the preview
- Accept stats as inputs from parent
💭 Reasoning
Injected UnifiedDataService into RuntimePreviewComponent to access real pages, widgets, and flows data. The computed signals pageCount, widgetCount, and flowCount now first check UnifiedDataService for actual data associated with the current universeId before falling back to module tree counting. Also updated UniverseHubComponent to load UnifiedDataService data when loading a universe, ensuring the preview has real stats. The platformName input is now properly passed from UniverseHub to show the actual universe name.
📁 Files Involved
libs/libs-space/universe-canvas/src/lib/components/runtime-preview/runtime-preview.component.tslibs/libs-space/universe-canvas/src/lib/components/universe-hub/universe-hub.component.tslibs/libs-space/universe-canvas/src/lib/components/universe-hub/universe-hub.component.html
🔗 Related
- Decision ID:
dev_1767768045035_s2biiyq - Session: 22
- Workspace: editor2
Auto-generated by MCP Smart Consolidation