Pattern: How should we implement tab navigation across all Vitto AI c...
Documentation for Sessions
🎨 Pattern: How should we implement tab navigation across all Vitto AI c...
Date: 2026-02-17
Time: 19:06:57 UTC
Session: gspace1-111.2
Agent: angular
Confidence: 95%
Status: ✅ Documented
📋 Decision Context
Question:
How should we implement tab navigation across all Vitto AI components?
Task: Session 111.2 - Complete migration of all Vitto components from manual tab styling to ux-tabs component
🎯 Decision Made
Chosen:
Use the centralized ux-tabs component with variant="floating" and appropriate level (1, 2, or 3)
Options Considered:
- Create custom tab styles for each component
- Use ux-tabs component with standardized hierarchy
- Mix of custom and component-based approaches
💭 Reasoning
DRY principle - eliminated 288+ lines of duplicated SCSS by migrating to ux-tabs. Single source of truth ensures consistent design system adherence, easier maintenance, and automatic enforcement of three-level tab hierarchy (Level 1: 16px/52px, Level 2: 14px/44px, Level 3: 12px/36px). Router integration works seamlessly for route-based tabs. All future tab implementations should use ux-tabs to maintain consistency.
📁 Files Involved
libs/libs-ui-core/ui-core/src/lib/components/ux-tabs/ux-tabs.component.tslibs/libs-ui-core/ui-core/src/lib/components/ux-tabs/ux-tabs.component.htmllibs/libs-ui-core/ui-core/src/lib/components/ux-tabs/ux-tabs.component.scsslibs/libs-ai/vitto-hub/src/lib/components/vitto-command-hub/vitto-command-hub.component.htmllibs/libs-ai/vitto-hub/src/lib/components/observatory-panel/observatory-panel.component.htmllibs/libs-ai/vitto-hub/src/lib/components/skill-studio/skill-studio.component.htmllibs/libs-ai/vitto-hub/src/lib/components/cost-dashboard/cost-dashboard.component.html
🔗 Related
- Decision ID:
dev_1771355217499_l8lqglq - Session: 111
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation