|
1 | | -# Dashboard Panel |
| 1 | +# Dashboard |
2 | 2 |
|
3 | 3 | ## One-Liner |
4 | 4 |
|
5 | | -**The Dashboard is a VS Code webview-based management interface** — Provides visual access to project configuration, specs, memory, and settings through an intuitive GUI. |
| 5 | +**The Dashboard provides an at-a-glance overview of your project's workflow status, statistics, and recent activity through an intuitive widget-based interface.** |
6 | 6 |
|
7 | 7 | --- |
8 | 8 |
|
9 | 9 | ## Pain Points Solved |
10 | 10 |
|
11 | 11 | | Pain Point | Current State | Dashboard Solution | |
12 | 12 | |------------|---------------|-------------------| |
13 | | -| **Config complexity** | JSON files hard to edit | Visual form-based editing | |
14 | | -| **No overview** | Can't see project state at a glance | Unified dashboard view | |
15 | | -| **Scattered settings** | Settings in multiple files | Centralized management | |
16 | | -| **No visual feedback** | CLI only, no UI | Interactive webview | |
| 13 | +| **No project visibility** | Can't see overall project health | Project info banner with tech stack and development index | |
| 14 | +| **Scattered metrics** | Stats across multiple locations | Centralized statistics with sparklines | |
| 15 | +| **Unknown workflow status** | Hard to track session progress | Pie chart with status breakdown | |
| 16 | +| **Lost in recent work** | No quick access to active sessions | Session carousel with task details | |
| 17 | +| **Indexing status unclear** | Don't know if code is indexed | Real-time index status indicator | |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Page Overview |
| 22 | + |
| 23 | +**Location**: `ccw/frontend/src/pages/HomePage.tsx` |
| 24 | + |
| 25 | +**Purpose**: Dashboard home page providing project overview, statistics, workflow status, and recent activity monitoring. |
| 26 | + |
| 27 | +**Access**: Navigation → Dashboard (default home page) |
| 28 | + |
| 29 | +### Layout |
| 30 | + |
| 31 | +``` |
| 32 | ++--------------------------------------------------------------------------+ |
| 33 | +| Dashboard Header (title + refresh) | |
| 34 | ++--------------------------------------------------------------------------+ |
| 35 | +| WorkflowTaskWidget (Combined Card) | |
| 36 | +| +--------------------------------------------------------------------+ | |
| 37 | +| | Project Info Banner (expandable) | | |
| 38 | +| | - Project name, description, tech stack badges | | |
| 39 | +| | - Quick stats (features, bugfixes, enhancements) | | |
| 40 | +| | - Index status indicator | | |
| 41 | +| +----------------------------------+---------------------------------+ | |
| 42 | +| | Stats Section | Workflow Status | Task Details (Carousel) | | |
| 43 | +| | - 6 mini cards | - Pie chart | - Session nav | | |
| 44 | +| | - Sparklines | - Legend | - Task list (2 columns) | | |
| 45 | +| +----------------+-----------------+-------------------------------+ | |
| 46 | ++--------------------------------------------------------------------------+ |
| 47 | +| RecentSessionsWidget | |
| 48 | +| +--------------------------------------------------------------------+ | |
| 49 | +| | Tabs: All Tasks | Workflow | Lite Tasks | | |
| 50 | +| | +---------------+---------------+-------------------------------+ | | |
| 51 | +| | | Task cards with status, progress, tags, time | | | |
| 52 | +| | +---------------------------------------------------------------+ | | |
| 53 | ++--------------------------------------------------------------------------+ |
| 54 | +``` |
17 | 55 |
|
18 | 56 | --- |
19 | 57 |
|
20 | 58 | ## Core Features |
21 | 59 |
|
22 | 60 | | Feature | Description | |
23 | 61 | |---------|-------------| |
24 | | -| **Project Overview** | Tech stack, dependencies, status | |
25 | | -| **Spec Manager** | View and edit specification files | |
26 | | -| **Memory Viewer** | Browse persistent memories | |
27 | | -| **API Settings** | Configure AI model endpoints | |
28 | | -| **System Settings** | Global and project settings | |
| 62 | +| **Project Info Banner** | Expandable banner showing project name, description, tech stack (languages, frameworks, architecture), development index (features/bugfixes/enhancements), and real-time index status | |
| 63 | +| **Statistics Section** | 6 mini stat cards (Active Sessions, Total Tasks, Completed Tasks, Pending Tasks, Failed Tasks, Today Activity) with 7-day sparkline trends | |
| 64 | +| **Workflow Status Pie Chart** | Donut chart showing session status breakdown (completed, in progress, planning, paused, archived) with percentages | |
| 65 | +| **Session Carousel** | Auto-rotating (5s) session cards with task list, progress bar, and manual navigation arrows | |
| 66 | +| **Recent Sessions Widget** | Tabbed view of recent tasks across all task types with filtering, status badges, and progress indicators | |
| 67 | +| **Real-time Updates** | Auto-refresh every 60 seconds for stats and 30 seconds for index status | |
29 | 68 |
|
30 | 69 | --- |
31 | 70 |
|
32 | | -## Access |
| 71 | +## Usage Guide |
33 | 72 |
|
34 | | -Open via VS Code command palette: |
35 | | -``` |
36 | | -CCW: Open Dashboard |
37 | | -``` |
| 73 | +### Basic Workflow |
38 | 74 |
|
39 | | -Or via CLI: |
40 | | -```bash |
41 | | -ccw view |
42 | | -``` |
| 75 | +1. **View Project Overview**: Check the project info banner for tech stack and development index |
| 76 | +2. **Monitor Statistics**: Review mini stat cards for current project metrics and trends |
| 77 | +3. **Track Workflow Status**: View pie chart for session status distribution |
| 78 | +4. **Browse Active Sessions**: Use session carousel to see task details and progress |
| 79 | +5. **Access Recent Work**: Switch between All Tasks/Workflow/Lite Tasks tabs to find specific sessions |
| 80 | + |
| 81 | +### Key Interactions |
| 82 | + |
| 83 | +| Interaction | How to Use | |
| 84 | +|-------------|------------| |
| 85 | +| **Expand Project Details** | Click the chevron button in the project banner to show architecture, components, patterns | |
| 86 | +| **Navigate Sessions** | Click arrow buttons or wait for auto-rotation (5s interval) in the carousel | |
| 87 | +| **View Session Details** | Click on any session card to navigate to session detail page | |
| 88 | +| **Filter Recent Tasks** | Click tab buttons to filter by task type (All/Workflow/Lite) | |
| 89 | +| **Refresh Dashboard** | Click the refresh button in the header to reload all data | |
| 90 | + |
| 91 | +### Index Status Indicator |
| 92 | + |
| 93 | +| Status | Icon | Meaning | |
| 94 | +|--------|------|---------| |
| 95 | +| **Building** | Pulsing blue dot | Code index is being built/updated | |
| 96 | +| **Completed** | Green dot | Index is up-to-date | |
| 97 | +| **Idle** | Gray dot | Index status is unknown/idle | |
| 98 | +| **Failed** | Red dot | Index build failed | |
43 | 99 |
|
44 | 100 | --- |
45 | 101 |
|
46 | | -## Dashboard Sections |
| 102 | +## Components Reference |
| 103 | + |
| 104 | +### Main Components |
47 | 105 |
|
48 | | -### 1. Project Overview |
49 | | -- Technology stack detection |
50 | | -- Dependency status |
51 | | -- Workflow session status |
| 106 | +| Component | Location | Purpose | |
| 107 | +|-----------|----------|---------| |
| 108 | +| `DashboardHeader` | `@/components/dashboard/DashboardHeader.tsx` | Page header with title and refresh action | |
| 109 | +| `WorkflowTaskWidget` | `@/components/dashboard/widgets/WorkflowTaskWidget.tsx` | Combined widget with project info, stats, workflow status, and session carousel | |
| 110 | +| `RecentSessionsWidget` | `@/components/dashboard/widgets/RecentSessionsWidget.tsx` | Recent sessions across workflow and lite tasks | |
| 111 | +| `MiniStatCard` | (internal to WorkflowTaskWidget) | Individual stat card with optional sparkline | |
| 112 | +| `HomeEmptyState` | (internal to WorkflowTaskWidget) | Empty state display when no sessions exist | |
| 113 | + |
| 114 | +### State Management |
| 115 | + |
| 116 | +- **Local state**: |
| 117 | + - `hasError` - Error tracking for critical failures |
| 118 | + - `projectExpanded` - Project info banner expansion state |
| 119 | + - `currentSessionIndex` - Active session in carousel |
| 120 | + - `activeTab` - Recent sessions widget filter tab |
| 121 | + |
| 122 | +- **Custom hooks**: |
| 123 | + - `useWorkflowStatusCounts` - Session status distribution data |
| 124 | + - `useDashboardStats` - Statistics with auto-refresh (60s) |
| 125 | + - `useProjectOverview` - Project information and tech stack |
| 126 | + - `useIndexStatus` - Real-time index status (30s refresh) |
| 127 | + - `useSessions` - Active sessions data |
| 128 | + - `useLiteTasks` - Lite tasks data for recent widget |
| 129 | + |
| 130 | +--- |
52 | 131 |
|
53 | | -### 2. Spec Manager |
54 | | -- List all specs |
55 | | -- Edit spec content |
56 | | -- Enable/disable specs |
| 132 | +## Configuration |
57 | 133 |
|
58 | | -### 3. Memory Viewer |
59 | | -- Browse memory entries |
60 | | -- Search memories |
61 | | -- Export/import |
| 134 | +No configuration required. The dashboard automatically fetches data from the backend. |
62 | 135 |
|
63 | | -### 4. API Settings |
64 | | -- Configure API keys |
65 | | -- Set model endpoints |
66 | | -- Manage rate limits |
| 136 | +### Auto-Refresh Intervals |
67 | 137 |
|
68 | | -### 5. System Settings |
69 | | -- Global configuration |
70 | | -- Project overrides |
71 | | -- Hook management |
| 138 | +| Data Type | Interval | |
| 139 | +|-----------|----------| |
| 140 | +| Dashboard stats | 60 seconds | |
| 141 | +| Index status | 30 seconds | |
| 142 | +| Discovery sessions | 3 seconds (on discovery page) | |
72 | 143 |
|
73 | 144 | --- |
74 | 145 |
|
75 | 146 | ## Related Links |
76 | 147 |
|
77 | | -- [API Settings](/features/api-settings) - API configuration |
78 | | -- [System Settings](/features/system-settings) - System configuration |
79 | | -- [Spec System](/features/spec) - Specification management |
| 148 | +- [Sessions](/features/sessions) - View and manage all sessions |
| 149 | +- [Queue](/features/queue) - Issue execution queue management |
| 150 | +- [Discovery](/features/discovery) - Discovery session tracking |
| 151 | +- [Memory](/features/memory) - Persistent memory management |
| 152 | +- [System Settings](/features/system-settings) - Global application settings |
0 commit comments