|
| 1 | +--- |
| 2 | +status: draft |
| 3 | +phase: 3 |
| 4 | +name: Auto-Pilot Dashboard Improvements |
| 5 | +--- |
| 6 | + |
| 7 | +# UI Specification: Intelligence Hub Dashboard |
| 8 | + |
| 9 | +## 1. Vision & Goals |
| 10 | +Transform the dashboard into a visually striking, reactive "Intelligence Hub" that provides real-time feedback on autonomous processes. |
| 11 | + |
| 12 | +## 2. Spacing & Layout |
| 13 | +- **Scale**: Multiples of 4px (4, 8, 12, 16, 20, 24, 32, 48, 64). |
| 14 | +- **Pulse Bar**: |
| 15 | + - Position: Top-center of the `.main-container`. |
| 16 | + - Type: Absolute positioned, floating 16px from the top. |
| 17 | + - Height: 36px. |
| 18 | + - Padding: 0 16px. |
| 19 | + - Border-radius: 18px (pill shape). |
| 20 | + - Background: `rgba(15, 23, 42, 0.8)` with `backdrop-filter: blur(10px)`. |
| 21 | +- **Sidebar Cleanup**: |
| 22 | + - `project-list`: Add `padding-right: 12px` to prevent scrollbar overlap with text. |
| 23 | + - `project-item`: Increase vertical gap to 4px. |
| 24 | + - Ensure `.main-container` has `padding-top: 64px` to accommodate the floating Pulse Bar. |
| 25 | + |
| 26 | +## 3. Typography |
| 27 | +- **Primary Font**: `Inter`, system-ui, sans-serif. |
| 28 | +- **Sizes**: |
| 29 | + - **Status Labels**: 11px (0.6875rem) - All caps, letter-spacing 0.05em. |
| 30 | + - **Body/Nav**: 13px (0.8125rem). |
| 31 | + - **Sub-headers**: 14px (0.875rem) - Semi-bold. |
| 32 | + - **Headers**: 20px (1.25rem) - Bold. |
| 33 | +- **Weights**: |
| 34 | + - Regular (400) |
| 35 | + - Medium (500) |
| 36 | + - Bold (700) |
| 37 | +- **Line Heights**: |
| 38 | + - Body: 1.5 |
| 39 | + - Heading: 1.2 |
| 40 | + |
| 41 | +## 4. Color Palette |
| 42 | +- **Dominant Surface (60%)**: `#020617` (Deep space blue). |
| 43 | +- **Secondary Surface (30%)**: `rgba(15, 23, 42, 0.9)` (Sidebar/Cards). |
| 44 | +- **Accent (10%)**: `#38bdf8` (Electric blue) - Reserved for: |
| 45 | + - Active status dots. |
| 46 | + - Animation glows. |
| 47 | + - Active navigation items. |
| 48 | +- **Semantic Colors**: |
| 49 | + - `success`: `#22c55e` (Green) - Connected status, Successful sync. |
| 50 | + - `warning`: `#eab308` (Yellow) - Sync in progress. |
| 51 | + - `destructive`: `#ef4444` (Red) - Error states, Dismiss action. |
| 52 | + |
| 53 | +## 5. Components & Interactions |
| 54 | + |
| 55 | +### 5.1 Pulse Bar (New) |
| 56 | +A horizontal pill-shaped container containing the following status groups: |
| 57 | +1. **CONNECTED**: Dot (Green) + Label "CONNECTED". |
| 58 | +2. **AUTO-PILOT**: Dot (Blue) + Label "AUTO-PILOT". |
| 59 | +3. **ATLASSIAN SYNC**: Icon (Cloud/Gear) + Label "ATLASSIAN SYNC". |
| 60 | + |
| 61 | +### 5.2 Animations |
| 62 | +- **`pulse-glow`**: |
| 63 | + - Trigger: Breathing animation applied to the dot or icon. |
| 64 | + - Keyframes: |
| 65 | + - `0%`: `box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7)`. |
| 66 | + - `70%`: `box-shadow: 0 0 0 10px rgba(56, 189, 248, 0)`. |
| 67 | + - `100%`: `box-shadow: 0 0 0 0 rgba(56, 189, 248, 0)`. |
| 68 | +- **Consumption Consumption Triggers**: |
| 69 | + - **AUTO-PILOT Pulse**: Triggered when a new commit is detected in the stream. |
| 70 | + - **CONNECTED Pulse**: Triggered when a new refinement event is detected in the stream. |
| 71 | +- **`rotate-gear`**: |
| 72 | + - Trigger: Applied to the Atlassian icon during sync. |
| 73 | + - Keyframes: `transform: rotate(360deg)` infinite 2s linear. |
| 74 | + |
| 75 | +### 5.3 Atlassian Sync States |
| 76 | +| State | Icon | Text | Color | |
| 77 | +|-------|------|------|-------| |
| 78 | +| **IDLE** | `cloud` | ATLASSIAN SYNC | `--text-secondary` | |
| 79 | +| **SYNCING** | `settings` (Rotating) | SYNCING... | `--accent-blue` | |
| 80 | +| **SUCCESS** | `cloud-check` | SYNC COMPLETE | `--success` | |
| 81 | +| **ERROR** | `cloud-off` | SYNC FAILED | `--destructive` | |
| 82 | + |
| 83 | +## 6. Copywriting |
| 84 | +- **Primary CTA**: "SYNC NOW" (Header). |
| 85 | +- **Secondary CTA**: "APPROVE MANDATE" (Cards). |
| 86 | +- **Destructive**: "DISMISS" (Cards). |
| 87 | +- **Empty State**: "No intelligence events detected yet." |
| 88 | +- **Error state**: "Dashboard state unavailable. Check connection." |
| 89 | + |
| 90 | +## 7. Registry & Assets |
| 91 | +- **Icon Library**: [Lucide](https://lucide.dev/). |
| 92 | +- **Charts**: [Chart.js](https://www.chartjs.org/). |
| 93 | +- **Registry**: None (Standard HTML/JS). |
| 94 | + |
| 95 | +## 8. Safety Gate |
| 96 | +- **Third-party usage**: CDN for Lucide and Chart.js (Approved). |
| 97 | +- **Network**: Dashboard uses standard fetch to internal `/api` routes only. |
0 commit comments