Implementation: How should the canvas display module types vs layout types?
Documentation for Sessions
⚙️ Implementation: How should the canvas display module types vs layout types?
📋 Decision Context
Question:
How should the canvas display module types vs layout types?
Task: Session 24.1: Make canvas module types logical and meaningful
🎯 Decision Made
Chosen:
Smart display: content type for feature modules, layout type for containers
Options Considered:
- Show both layout and content type for all sections
- Show only layout type (FLEXBOX/TEMPLATE)
- Smart display: content type for feature modules, layout type for containers
💭 Reasoning
Showing FLEXBOX for feature modules (Menu Management, Orders, etc.) is meaningless and confusing. Feature modules are leaf nodes that render business features - they don't need layout information displayed. Only container sections that have children need to show their layout type. This makes the visual representation logical and informative.
📁 Files Involved
libs/libs-space/universe-canvas/src/lib/components/canvas-section/canvas-section.component.htmllibs/libs-space/universe-canvas/src/lib/components/canvas-section/canvas-section.component.scsslibs/libs-space/universe-canvas/src/lib/services/canvas-module-converter.service.ts
🔗 Related
- Decision ID:
dev_1767663847038_jwlg821 - Session: 22
- Workspace: editor2
Auto-generated by MCP Smart Consolidation