3.7 KiB
3.7 KiB
Dashboard
Main application dashboard with key metrics and recent activity.
Layout
╭──────────────────────────────────────────────────────────────────────────────╮
│ {{title}} {{userName}} ▼ │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ {{greeting}} │
│ │
│ ╭───────────────────╮ ╭───────────────────╮ ╭──────────────────────╮ │
│ │ {{metricCard1}} │ │ {{metricCard2}} │ │ {{metricCard3}} │ │
│ ╰───────────────────╯ ╰───────────────────╯ ╰──────────────────────╯ │
│ │
│ {{recentActivityTitle}} │
│ ╭────────────────────────────────────────────────────────────────────────╮ │
│ │ {{activityList}} │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
Components Used
- navigation: Top navigation bar with user menu
- card: Metric cards for key statistics (3x)
- badge: Status indicators and trend arrows
- list: Recent activity feed
States
Loaded State
Dashboard fully loaded with all data displayed.
Loading State
While fetching dashboard data - shows spinner.
Error State
When data fetch fails - shows error message.
Variables
title(string): Dashboard titleuserName(string): Current user's namegreeting(string): Personalized greetingmetricCard1(component): First metric card (e.g., Revenue)metricCard2(component): Second metric card (e.g., Users)metricCard3(component): Third metric card (e.g., Growth)recentActivityTitle(string): Activity section headeractivityList(component): List of recent activities
User Flows
- User logs in and lands on dashboard
- Dashboard loads metrics and activity data
- User can click metric cards for detailed views
- User can interact with activity items
- User can access navigation menu via dropdown
Accessibility
- Role: main
- ARIA Label: "Dashboard main content"
- Keyboard: Tab navigation through interactive elements
- Screen Reader: All metrics and activities properly labeled