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:

  1. Use only module tree counting
  2. Fetch from UnifiedDataService
  3. Add API calls within the preview
  4. 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


🔗 Related


Auto-generated by MCP Smart Consolidation