Architecture: How does dock-layout fit within the 5-level GoGrab Space bui...

Documentation for Sessions

🏗️ Architecture: How does dock-layout fit within the 5-level GoGrab Space bui...

📋 Decision Context

Question:

How does dock-layout fit within the 5-level GoGrab Space building blocks architecture?

Task: Not specified


🎯 Decision Made

Chosen:

dock-layout serves as a LAYOUT SYSTEM (parallel to Galaxy layout.template) that can host widgets at Level 2. In Development mode, it's a tool for space-builders. In Renderable mode, it becomes a widget container displaying end-user content. This dual-purpose aligns with the platform-builder vision.

Options Considered:

  1. dock-layout as Widget (Level 2)
  2. dock-layout as Layout System (parallel to Galaxy templates)
  3. dock-layout as Module (Level 3)

💭 Reasoning

The 5-level architecture is: Properties → Widgets → Modules → Galaxies → Universe. Galaxy has layout.template (split-sidebar, dashboard, etc). dock-layout can be an advanced, flexible layout.template alternative OR a standalone widget container. For content creation (what user described), dock-layout zones contain widgets. Space-builders configure zones in Development mode, end-users see Renderable mode. This maintains modularity: dock-layout is a UI library, widgets are content, modules provide business logic.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation