Space Map to Universe Map Transfer

Audit of space-map-lib services and candidates for transfer to universe-map

Space Map to Universe Map Transfer

Action Taken

Service Audit (26 services -> transfer candidates)

Transfer to Universe Map (3 services worth extracting)

Service Purpose Why Transfer
SpaceAIService AI suggestions for space structure Valuable for AI-assisted universe building
AutoDashboardService Auto-generated dashboards from module data Useful for universe-map dashboard views
ConstellationLayoutService (Session 53.2) Modern constellation visualization Could enhance universe-map's visual modes

Skip (23 services - legacy or redundant)

Service Purpose Why Skip
SpaceMapFlashStateService Flash persistence state universe-map has its own state
UniverseManagerService Universe CRUD Covered by backend-api endpoints
WorldManagerService World/Page CRUD Covered by backend-api endpoints
WorldIntegrationService World integration Legacy data model
GalaxyManagerService Galaxy CRUD Covered by backend-api endpoints
GalaxyLayoutService Galaxy visual layout Legacy constellation model
GalaxyConnectionsService Galaxy connections Legacy visual model
SpaceMapStorageService Local storage Replaced by backend-first state
SpaceMapNavigationService Navigation Generic navigation
SpaceMapAdapterService Data adapters Legacy data model adapters
RouteRewriteService Route rewriting Not needed
PreloadingStrategyService Lazy loading strategy Generic Angular concern
LazyAIService Lazy AI loading Replaced by AI generation hub
GlobalDialogService Global dialogs Use @libs-ux/ux-portal
DialogService Dialogs Use @libs-ux/ux-portal
ContextMenuService Context menus Use @libs-ux/ux-portal
UnifiedExecutionService Unified execution Legacy orchestration
UnifiedEventsService SSE events Use backend-api SSE directly
UniversalAssetRegistryService Asset registry Use backend-api assets
SpaceMapVisualizationService Visualization (Session 53.2) Partially modernized but still legacy
SpaceMapAnalyticsService Analytics (Session 53.2) Transfer analytics logic if needed

Stats Comparison

Metric space-map-lib universe-map
Lines of code ~10,000 ~2,500
Services 26 4
Components 26+ ~20
Technical debt High (parallel data models) Zero

Recommendation

Complete the migration by:

  1. Extracting SpaceAIService, AutoDashboardService, ConstellationLayoutService logic into universe-map services
  2. Once verified that no other library imports from space-map-lib, delete the library
  3. Remove from build scripts