Repository navigation
Open
Labels
Description
[Feature]: Bimodal Dashboard Interface
Category
Dashboard
Target Platform
Common (both platforms)
Feature Description
Replace the current dashboard with a bimodal interface that toggles between "Nutrition" and "Workout" modes via a swipeable header. Each mode has:
- Distinct color palette (blue for nutrition, orange for workouts)
- Context-specific primary action in the bottom dock (
+for logging,▶for starting workouts) - Adaptive content layout
Proposed Solution
Core Components:
- Swipeable Header: Horizontal swipe to toggle modes (with edge-bleed affordance)
- Morphing Dock Button: Center button changes icon/color based on mode:
- Nutrition:
+(solid blue) → logs meals/weight - Workout:
▶(solid orange) → starts live session
- Nutrition:
- Visual Distinction:
- Full-palette shift (blue ↔ orange)
- Smooth interpolation (250ms fade)
- Asymmetric haptics (heavy → workout, light → nutrition)
- Contextual Continuity:
- Ghosted nutrition summary in workout mode
- Completed workouts list in nutrition mode
Mockup Flow:
[Nutrition Mode] --swipe--> [Workout Mode]
• Blue palette • Orange palette
• Dock: + (log) • Dock: ▶ (start)
• Meal stack • Session timer
• Weight badge • Exercise list
• Progress bar • Exercise list
Problem Statement
Current dashboard suffers from:
- Button Competition: FAB (meal logging) and "Start Workout" button vie for attention
- Visual Clutter: Multiple high-priority widgets (meal stack, weight badge, workout button) create noise
- Mode Ambiguity: No clear separation between passive tracking and active workout contexts
Alternatives Considered
- Unified Action Hub: Single FAB → bottom sheet with both actions (rejected: adds friction)
- Session Overlay: Modal workout screen over dashboard (rejected: doesn't solve button clutter)
- Modular Pruning: User-customizable widgets (rejected: shifts labor to users)
- Daily Pulse Feed: Consolidated vertical digest (rejected: loses glanceability)
Additional Context
- Haptic Requirements: Must use platform-native APIs for consistency
- Animation: Chromatic bleed effect for color transitions
- Performance: Zero-latency state sync (<16ms frame budget)
- Accessibility: Color contrast ratios must meet WCAG AA in both modes
Implementation Notes
- Rust: Update
dashboard_stateenum insrc-tauri/src/state.rs - Svelte: New
DashboardMode.sveltecomponent with swipe handlers - Design System: Extend
@thwbh/veilchenpalette with workout orange variants
Traceability
- Spec ID:
DH-001(Dashboard bimodal interface) - Related Scenarios:
[DH-005]Swipe header toggles mode[DH-006]Dock button morphs with mode[GES-012]Haptic feedback on mode change
Activity