This document outlines the UI/UX design for the analytics dashboard using ASCII art representations and detailed descriptions.
+----------------------------------+
| Analytics |
| Dashboard |
| |
| +------------------------+ |
| | API Key Input | |
| +------------------------+ |
| |
| +------------------------+ |
| | Login | |
| +------------------------+ |
| |
+----------------------------------+
- Clean, centered layout
- Company/product logo at the top
- Simple API key input field
- Clear login button with loading state
- Error message display area below the form
+--------+-------------------------+
| | Dashboard Header |
| Sidebar +-------------------------+
| | |
| Nav | +----------------+ |
| Menu | | Quick Stats | |
| | +----------------+ |
| | |
| | +----------------+ |
| | | Main Chart | |
| | +----------------+ |
| | |
| | +----------------+ |
| | | Secondary Data | |
| | +----------------+ |
+--------+-------------------------+
- Company logo/name
- Navigation menu
- Dashboard
- Analytics
- Settings
- Documentation
- User info at bottom
- Welcome message
- Date range selector
- Refresh button
- Settings/Profile dropdown
+----------+ +----------+ +----------+
| Visits | | Users | | Actions |
| 12,345 | | 5,432 | | 2,345 |
+----------+ +----------+ +----------+
+----------------------------------+
| Analytics Over Time |
| |
| ^ |
| | * |
| | * * |
| | * * |
| | * |
| +------------------------- |
| |
+----------------------------------+
+----------------------------------+
| Real-time Activity Feed |
| |
| > User clicked button |
| > Page view: /products |
| > Error logged: API timeout |
| > New user session started |
| |
+----------------------------------+
+----------------------------------+
| Settings |
| |
| [ ] Auto-refresh |
| [ ] Real-time notifications |
| [ ] Email reports |
| |
| Refresh Interval: [15min ▼] |
| |
| [Save Changes] |
+----------------------------------+
- Primary: #8884d8 (Purple from Recharts)
- Background: #F7FAFC
- Text: #2D3748
- Accents: #4FD1C5
- Headings: Inter
- Body: System UI
- Consistent 4px/8px grid
- Comfortable padding around components
- Sidebar collapses to top nav on mobile
- Charts become scrollable
- Stats stack vertically
- Minimum padding preserved
- Skeleton loaders for charts
- Spinner for data fetching
- Disabled states for controls
- Clear error messages
- Retry options
- Fallback UI components