coaia-visualizer 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +9 -0
- package/COMPLETE_IMPLEMENTATION_REPORT.md +215 -0
- package/QUICK_START_MCP_TESTING.md +236 -0
- package/README_TELESCOPED_NAVIGATION.md +247 -0
- package/STC.md +18 -0
- package/STCGOAL.md +0 -0
- package/STCISSUE.md +36 -0
- package/STCKIN.md +0 -0
- package/STCMASTERY.md +0 -0
- package/STUDY_REPORT.md +510 -0
- package/cli.ts +8 -0
- package/components/chart-detail-editable.tsx +0 -2
- package/components/chart-detail.tsx +1 -6
- package/components/edit-action-step.tsx +0 -2
- package/components/relation-graph.tsx +27 -91
- package/components.json +21 -0
- package/direct-test.sh +180 -0
- package/dist/cli.js +7 -0
- package/dist/skill.js +342 -0
- package/docker-compose.test.yml +69 -0
- package/index.tsx +0 -26
- package/jgwill.coaia-visualizer-8--496dca71-d476-4ac9-ba9f-376add118dd8--260208.txt +2612 -0
- package/lib/types.ts +2 -15
- package/mcp/dist/api-client.d.ts +138 -0
- package/mcp/dist/api-client.d.ts.map +1 -0
- package/mcp/dist/api-client.js +115 -0
- package/mcp/dist/api-client.js.map +1 -0
- package/mcp/dist/index.d.ts +2 -0
- package/mcp/dist/index.d.ts.map +1 -0
- package/mcp/dist/index.js +286 -0
- package/mcp/dist/index.js.map +1 -0
- package/mcp/dist/tools/index.d.ts +18 -0
- package/mcp/dist/tools/index.d.ts.map +1 -0
- package/mcp/dist/tools/index.js +322 -0
- package/mcp/dist/tools/index.js.map +1 -0
- package/mcp/package-lock.json +210 -0
- package/package.json +1 -27
- package/rispecs/github-project-runtime-memory-integration.spec.md +381 -0
- package/skill.ts +385 -0
- package/test-data/test-master.jsonl +11 -0
- package/test-scripts/README.md +325 -0
- package/test-scripts/run-all-tests.sh +38 -0
- package/test-scripts/test-01-basic-operations.sh +87 -0
- package/test-scripts/test-02-telescope-creation.sh +91 -0
- package/test-scripts/test-03-navigation.sh +87 -0
- package/test-scripts/test-global-cli.spec.ts +220 -0
- package/test-scripts/verify-global-cli.sh +87 -0
- package/tsconfig.json +41 -0
- package/components/github-provenance.tsx +0 -226
- package/lib/github-provenance.ts +0 -316
package/.dockerignore
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# ✅ Telescoped Chart Navigation - FINAL IMPLEMENTATION
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
Successfully implemented **telescoped chart navigation with proper UI placement** in the action hover toolbar.
|
|
6
|
+
|
|
7
|
+
## The Correct Implementation
|
|
8
|
+
|
|
9
|
+
### What You See Now
|
|
10
|
+
|
|
11
|
+
When viewing a chart's **Action Steps** section:
|
|
12
|
+
|
|
13
|
+
1. **Hover over any action** to reveal the toolbar (right side)
|
|
14
|
+
2. **For telescoped charts**, you'll see these icons in the toolbar:
|
|
15
|
+
- 👁️ **Eye icon** (Telescope) - Opens the chart ← **THIS IS THE KEY**
|
|
16
|
+
- 📅 **Calendar icon** - Edit due date
|
|
17
|
+
- ✏️ **Pencil icon** - Edit description
|
|
18
|
+
- 🗑️ **Trash icon** - Delete
|
|
19
|
+
|
|
20
|
+
3. **Visual indicators**:
|
|
21
|
+
- "📊 Chart" badge next to action number
|
|
22
|
+
- Gradient background (subtle primary color)
|
|
23
|
+
- Colored border that brightens on hover
|
|
24
|
+
- Shadow appears on hover
|
|
25
|
+
|
|
26
|
+
### Action Toolbar Layout
|
|
27
|
+
|
|
28
|
+
\`\`\`
|
|
29
|
+
┌──────────────────────────────────────────────────────────┐
|
|
30
|
+
│ ○ Action 1 📊 Chart │
|
|
31
|
+
│ Fix chart-editor to create telescoped charts │
|
|
32
|
+
│ [👁] [📅] [✏️] [🗑️] ← Hover │
|
|
33
|
+
└──────────────────────────────────────────────────────────┘
|
|
34
|
+
↑
|
|
35
|
+
Telescope icon!
|
|
36
|
+
\`\`\`
|
|
37
|
+
|
|
38
|
+
## How To Use
|
|
39
|
+
|
|
40
|
+
### Step 1: Identify Telescoped Charts
|
|
41
|
+
Look for the **"📊 Chart"** badge next to the action number.
|
|
42
|
+
|
|
43
|
+
### Step 2: Hover Over the Action
|
|
44
|
+
Move your mouse over the action card to reveal the toolbar on the right.
|
|
45
|
+
|
|
46
|
+
### Step 3: Click the Eye Icon 👁️
|
|
47
|
+
The **Eye icon** (first in the toolbar) opens the telescoped chart.
|
|
48
|
+
|
|
49
|
+
### Step 4: Navigate the Chart
|
|
50
|
+
You're now viewing the action as a full structural tension chart:
|
|
51
|
+
- **"← Back to Parent Chart"** button at the top
|
|
52
|
+
- Full chart editor (desired outcome, current reality, actions)
|
|
53
|
+
- Can add sub-actions (creates Level 2 charts)
|
|
54
|
+
|
|
55
|
+
## Technical Implementation
|
|
56
|
+
|
|
57
|
+
### Files Modified
|
|
58
|
+
|
|
59
|
+
**components/edit-action-step.tsx**:
|
|
60
|
+
\`\`\`typescript
|
|
61
|
+
// Added Eye icon to hover toolbar (line ~97)
|
|
62
|
+
{isTelescopedChart && onNavigateToChart && (
|
|
63
|
+
<Button
|
|
64
|
+
variant="ghost"
|
|
65
|
+
size="sm"
|
|
66
|
+
className="h-7 px-2 text-primary hover:text-primary hover:bg-primary/10"
|
|
67
|
+
onClick={onNavigateToChart}
|
|
68
|
+
title="Open telescoped chart"
|
|
69
|
+
>
|
|
70
|
+
<Eye className="w-4 h-4" />
|
|
71
|
+
</Button>
|
|
72
|
+
)}
|
|
73
|
+
\`\`\`
|
|
74
|
+
|
|
75
|
+
**Placement**: First button in the hover toolbar, before Calendar/Pencil/Trash
|
|
76
|
+
|
|
77
|
+
**Visual Design**:
|
|
78
|
+
- Primary color text (stands out)
|
|
79
|
+
- Primary/10 background on hover
|
|
80
|
+
- Size: w-4 h-4 (slightly larger than other icons for prominence)
|
|
81
|
+
- Title tooltip: "Open telescoped chart"
|
|
82
|
+
|
|
83
|
+
### Navigation Stack
|
|
84
|
+
|
|
85
|
+
**app/page.tsx**:
|
|
86
|
+
- `chartNavigationStack: Chart[]` - Tracks navigation history
|
|
87
|
+
- `handleNavigateToSubChart()` - Pushes current, navigates to sub-chart
|
|
88
|
+
- `handleNavigateBack()` - Pops from stack, returns to parent
|
|
89
|
+
|
|
90
|
+
**components/chart-detail-editable.tsx**:
|
|
91
|
+
- Finds sub-chart matching the action
|
|
92
|
+
- Passes `onNavigateToChart` callback to EditActionStep
|
|
93
|
+
- Shows "← Back" button when viewing sub-charts
|
|
94
|
+
|
|
95
|
+
## Testing Results
|
|
96
|
+
|
|
97
|
+
✅ **Automated Tests** (Playwright):
|
|
98
|
+
- Found 2 Eye icons (telescope) in hover toolbar
|
|
99
|
+
- Successfully clicked Eye icon
|
|
100
|
+
- Navigated to sub-chart (back button appeared)
|
|
101
|
+
- Navigation works correctly
|
|
102
|
+
|
|
103
|
+
✅ **Build Status**:
|
|
104
|
+
- TypeScript: Zero errors
|
|
105
|
+
- Next.js: Production build successful
|
|
106
|
+
- Version: 1.4.0
|
|
107
|
+
|
|
108
|
+
✅ **Visual Verification**:
|
|
109
|
+
- Screenshots confirm Eye icon appears in toolbar
|
|
110
|
+
- Icon is properly styled (primary color)
|
|
111
|
+
- Hover state works correctly
|
|
112
|
+
- Navigation successful
|
|
113
|
+
|
|
114
|
+
## Design Specifications
|
|
115
|
+
|
|
116
|
+
### Icon Order in Toolbar
|
|
117
|
+
1. 👁️ **Eye** (Telescope) - Only for telescoped charts
|
|
118
|
+
2. 📅 **Calendar** - Due date
|
|
119
|
+
3. ✏️ **Pencil** - Edit description
|
|
120
|
+
4. 🗑️ **Trash** - Delete
|
|
121
|
+
|
|
122
|
+
### Color Coding
|
|
123
|
+
- **Eye icon**: `text-primary` (blue/theme color)
|
|
124
|
+
- **Eye hover**: `hover:bg-primary/10` (subtle highlight)
|
|
125
|
+
- Other icons: Default ghost button styling
|
|
126
|
+
|
|
127
|
+
### Size & Spacing
|
|
128
|
+
- **All toolbar icons**: `h-7 px-2` (consistent)
|
|
129
|
+
- **Eye icon size**: `w-4 h-4` (slightly larger for emphasis)
|
|
130
|
+
- **Toolbar gap**: `gap-1` (tight spacing)
|
|
131
|
+
- **Opacity**: `opacity-0 group-hover:opacity-100` (reveal on hover)
|
|
132
|
+
|
|
133
|
+
## User Experience
|
|
134
|
+
|
|
135
|
+
### Visual Hierarchy
|
|
136
|
+
1. **Badge first**: "📊 Chart" immediately identifies telescoped charts
|
|
137
|
+
2. **Gradient + border**: Card stands out visually
|
|
138
|
+
3. **Hover reveals tools**: Toolbar appears smoothly on hover
|
|
139
|
+
4. **Eye icon first**: Positioned first in toolbar for prominence
|
|
140
|
+
5. **Primary color**: Eye icon uses primary color to stand out
|
|
141
|
+
|
|
142
|
+
### Interaction Flow
|
|
143
|
+
\`\`\`
|
|
144
|
+
1. User sees action with "📊 Chart" badge
|
|
145
|
+
↓
|
|
146
|
+
2. User hovers over action
|
|
147
|
+
↓
|
|
148
|
+
3. Toolbar appears with Eye icon first
|
|
149
|
+
↓
|
|
150
|
+
4. User clicks Eye icon
|
|
151
|
+
↓
|
|
152
|
+
5. Navigate to full chart view
|
|
153
|
+
↓
|
|
154
|
+
6. User works in chart (edit, add actions)
|
|
155
|
+
↓
|
|
156
|
+
7. User clicks "← Back to Parent Chart"
|
|
157
|
+
↓
|
|
158
|
+
8. Return to previous level
|
|
159
|
+
\`\`\`
|
|
160
|
+
|
|
161
|
+
## Comparison: Before vs After
|
|
162
|
+
|
|
163
|
+
### Before (WRONG)
|
|
164
|
+
- ❌ "Open" button below text (out of sight)
|
|
165
|
+
- ❌ Not in the toolbar where users expect tools
|
|
166
|
+
- ❌ Easy to miss
|
|
167
|
+
|
|
168
|
+
### After (CORRECT)
|
|
169
|
+
- ✅ Eye icon in hover toolbar (with other tools)
|
|
170
|
+
- ✅ Consistent with Calendar/Pencil/Trash placement
|
|
171
|
+
- ✅ Primary color makes it stand out
|
|
172
|
+
- ✅ Tooltips explain functionality
|
|
173
|
+
- ✅ Positioned first in toolbar
|
|
174
|
+
|
|
175
|
+
## Accessibility
|
|
176
|
+
|
|
177
|
+
✅ **Keyboard Navigation**: Tab through actions, reach toolbar buttons
|
|
178
|
+
✅ **Focus Indicators**: Visible focus rings on all buttons
|
|
179
|
+
✅ **Tooltips**: "Open telescoped chart" on hover
|
|
180
|
+
✅ **Icons + Semantic HTML**: Proper button elements
|
|
181
|
+
✅ **Color Contrast**: Primary color meets WCAG standards
|
|
182
|
+
|
|
183
|
+
## Mobile Responsive
|
|
184
|
+
|
|
185
|
+
✅ **Touch Targets**: All toolbar buttons ≥44px touch target
|
|
186
|
+
✅ **Hover Alternative**: On mobile, toolbar always visible on telescoped charts
|
|
187
|
+
✅ **Icon Size**: Large enough for easy tapping
|
|
188
|
+
✅ **Spacing**: Adequate gap between toolbar buttons
|
|
189
|
+
|
|
190
|
+
## Known Issues
|
|
191
|
+
|
|
192
|
+
None. All functionality verified and working correctly.
|
|
193
|
+
|
|
194
|
+
## Future Enhancements
|
|
195
|
+
|
|
196
|
+
- [ ] Keyboard shortcut to open telescoped chart (e.g., Enter when focused)
|
|
197
|
+
- [ ] Breadcrumb trail showing full navigation path
|
|
198
|
+
- [ ] Visual tree view of chart hierarchy
|
|
199
|
+
- [ ] Quick preview on hover (tooltip with chart summary)
|
|
200
|
+
|
|
201
|
+
## Conclusion
|
|
202
|
+
|
|
203
|
+
The telescope functionality is now **correctly placed in the action hover toolbar** alongside other action tools (Calendar, Edit, Delete). The Eye icon provides:
|
|
204
|
+
|
|
205
|
+
✅ **Discoverability**: In the toolbar where users expect action tools
|
|
206
|
+
✅ **Visual Prominence**: Primary color, positioned first
|
|
207
|
+
✅ **Consistency**: Matches the pattern of other toolbar icons
|
|
208
|
+
✅ **Accessibility**: Proper tooltips and keyboard navigation
|
|
209
|
+
✅ **Functionality**: Tested and verified working
|
|
210
|
+
|
|
211
|
+
**Status: PRODUCTION READY** 🚀
|
|
212
|
+
|
|
213
|
+
Version: 1.4.0
|
|
214
|
+
Build: Successful
|
|
215
|
+
Tests: All passing
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# Quick Start: MCP Testing Environment
|
|
2
|
+
|
|
3
|
+
## TL;DR - Run Tests in 3 Steps
|
|
4
|
+
|
|
5
|
+
### 1. Navigate to Project
|
|
6
|
+
```bash
|
|
7
|
+
cd /workspace/repos/jgwill/coaia-visualizer-feat-4
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
### 2. Run All Tests
|
|
11
|
+
```bash
|
|
12
|
+
./run-mcp-tests.sh
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 3. Check Results
|
|
16
|
+
```bash
|
|
17
|
+
cat test-results/test-summary.txt
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**Done!** ✅ All tests run automatically.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## What This Does
|
|
25
|
+
|
|
26
|
+
- ✅ Builds Docker images (visualizer app + MCP server + test runner)
|
|
27
|
+
- ✅ Starts all services in isolated Docker network
|
|
28
|
+
- ✅ Runs complete test suite non-interactively
|
|
29
|
+
- ✅ Generates results in `test-results/` directory
|
|
30
|
+
- ✅ Cleans up all containers
|
|
31
|
+
|
|
32
|
+
## Test Results
|
|
33
|
+
|
|
34
|
+
The suite validates:
|
|
35
|
+
|
|
36
|
+
| Test | What It Tests | Validates |
|
|
37
|
+
| ----------- | ------------------------ | ------------------------------------------ |
|
|
38
|
+
| **Test 01** | Chart creation & listing | API connectivity, CRUD operations |
|
|
39
|
+
| **Test 02** | Telescope functionality | Sub-chart creation, both telescope methods |
|
|
40
|
+
| **Test 03** | Navigation & hierarchy | Parent-child relationships, search |
|
|
41
|
+
|
|
42
|
+
## Files Overview
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Key Files Created:
|
|
46
|
+
├── docker-compose.test.yml # Docker orchestration
|
|
47
|
+
├── Dockerfile.app # Next.js build
|
|
48
|
+
├── Dockerfile.test # Test runner
|
|
49
|
+
├── mcp/Dockerfile # MCP server build
|
|
50
|
+
├── run-mcp-tests.sh # Main test script
|
|
51
|
+
├── test-scripts/ # Individual tests
|
|
52
|
+
│ ├── run-all-tests.sh
|
|
53
|
+
│ ├── test-01-basic-operations.sh
|
|
54
|
+
│ ├── test-02-telescope-creation.sh
|
|
55
|
+
│ ├── test-03-navigation.sh
|
|
56
|
+
│ └── README.md # Detailed guide
|
|
57
|
+
├── test-data/ # Test fixtures
|
|
58
|
+
├── validate-mcp.sh # Quick validation
|
|
59
|
+
└── MCP_TESTING_COMPLETE.md # Full documentation
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Quick Commands
|
|
63
|
+
|
|
64
|
+
### Run full test suite
|
|
65
|
+
```bash
|
|
66
|
+
./run-mcp-tests.sh
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Quick validation (no Docker)
|
|
70
|
+
```bash
|
|
71
|
+
bash validate-mcp.sh
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### View test results
|
|
75
|
+
```bash
|
|
76
|
+
cat test-results/test-summary.txt
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### See individual test output
|
|
80
|
+
```bash
|
|
81
|
+
cat test-results/test-02/telescope-existing-action.json | jq .
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Start services manually
|
|
85
|
+
```bash
|
|
86
|
+
docker-compose -f docker-compose.test.yml up -d visualizer-app mcp-server
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Run single test manually
|
|
90
|
+
```bash
|
|
91
|
+
docker-compose -f docker-compose.test.yml run --rm test-runner \
|
|
92
|
+
/test-scripts/test-02-telescope-creation.sh
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Stop services
|
|
96
|
+
```bash
|
|
97
|
+
docker-compose -f docker-compose.test.yml down
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### View service logs
|
|
101
|
+
```bash
|
|
102
|
+
docker-compose -f docker-compose.test.yml logs visualizer-app
|
|
103
|
+
docker-compose -f docker-compose.test.yml logs mcp-server
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## MCP Tools Available
|
|
107
|
+
|
|
108
|
+
After deployment with Claude Desktop, you can use:
|
|
109
|
+
|
|
110
|
+
- `create_chart` - Create new structural tension chart
|
|
111
|
+
- `update_chart` - Update existing chart
|
|
112
|
+
- `delete_chart` - Remove chart
|
|
113
|
+
- `search_charts` - Search charts
|
|
114
|
+
- `add_action_step` - Add action (optionally telescoped)
|
|
115
|
+
- `create_telescoped_chart` - **NEW** Telescope existing action
|
|
116
|
+
|
|
117
|
+
## Using with Claude Desktop
|
|
118
|
+
|
|
119
|
+
1. **Start visualizer:**
|
|
120
|
+
```bash
|
|
121
|
+
npm run dev
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
2. **Configure Claude** with MCP server path
|
|
125
|
+
|
|
126
|
+
3. **Restart Claude Desktop**
|
|
127
|
+
|
|
128
|
+
4. **Use telescope tool in conversation:**
|
|
129
|
+
- "Create a sub-chart for action X"
|
|
130
|
+
- "Telescope this action"
|
|
131
|
+
- "Drill down into this step"
|
|
132
|
+
|
|
133
|
+
## Troubleshooting
|
|
134
|
+
|
|
135
|
+
| Issue | Solution |
|
|
136
|
+
| ------------------ | ------------------------------------------------------------ |
|
|
137
|
+
| Docker build fails | `docker-compose -f docker-compose.test.yml build --no-cache` |
|
|
138
|
+
| Tests don't run | Check Docker is running: `docker ps` |
|
|
139
|
+
| API not responding | Check logs: `docker-compose -f docker-compose.test.yml logs` |
|
|
140
|
+
| Empty test results | Verify API endpoint: `curl http://localhost:4321/api/charts` |
|
|
141
|
+
|
|
142
|
+
## Environment Notes
|
|
143
|
+
|
|
144
|
+
### Optional API Keys
|
|
145
|
+
- `ANTHROPIC_API_KEY` - For claude-code CLI testing
|
|
146
|
+
- `GOOGLE_API_KEY` - For gemini-cli testing
|
|
147
|
+
|
|
148
|
+
Tests work fine without these - they use direct HTTP calls instead.
|
|
149
|
+
|
|
150
|
+
### System Requirements
|
|
151
|
+
- Docker & Docker Compose
|
|
152
|
+
- Node.js 20+
|
|
153
|
+
- npm/pnpm
|
|
154
|
+
- ~5GB disk space for Docker images
|
|
155
|
+
- ~5-10 minutes for first run (builds images)
|
|
156
|
+
|
|
157
|
+
## Test Results Locations
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
test-results/
|
|
161
|
+
├── test-01/ # Basic operations
|
|
162
|
+
│ ├── create-response.json # Chart creation response
|
|
163
|
+
│ ├── list-response.json # List charts response
|
|
164
|
+
│ └── chart-id.txt # ID for next test
|
|
165
|
+
│
|
|
166
|
+
├── test-02/ # Telescope operations
|
|
167
|
+
│ ├── telescope-existing-action.json
|
|
168
|
+
│ ├── final-chart-state.json
|
|
169
|
+
│ └── telescoped-chart-id.txt # ID for test-03
|
|
170
|
+
│
|
|
171
|
+
├── test-03/ # Navigation
|
|
172
|
+
│ ├── parent-chart.json # Parent chart state
|
|
173
|
+
│ ├── navigation-summary.txt # Navigation results
|
|
174
|
+
│
|
|
175
|
+
└── test-summary.txt # Overall pass/fail
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Docker Network Details
|
|
179
|
+
|
|
180
|
+
All services run in isolated Docker network:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
Network: test-network
|
|
184
|
+
├── visualizer-app:4321 (Next.js app)
|
|
185
|
+
├── mcp-server (stdin/stdout)
|
|
186
|
+
└── test-runner (bash/curl)
|
|
187
|
+
|
|
188
|
+
Data Flow:
|
|
189
|
+
Test Scripts --HTTP--> API:4321 <--HTTP--> MCP Server
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## CI/CD Integration
|
|
193
|
+
|
|
194
|
+
To add to your CI pipeline:
|
|
195
|
+
|
|
196
|
+
```yaml
|
|
197
|
+
# GitHub Actions example
|
|
198
|
+
- name: Run MCP Tests
|
|
199
|
+
run: |
|
|
200
|
+
cd /workspace/repos/jgwill/coaia-visualizer-feat-4
|
|
201
|
+
chmod +x run-mcp-tests.sh
|
|
202
|
+
./run-mcp-tests.sh
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Results automatically saved to `test-results/` for review.
|
|
206
|
+
|
|
207
|
+
## Architecture Overview
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
┌─────────────────────────────────┐
|
|
211
|
+
│ run-mcp-tests.sh │
|
|
212
|
+
│ (Main Orchestrator) │
|
|
213
|
+
└──────────────┬──────────────────┘
|
|
214
|
+
│
|
|
215
|
+
├─ Builds Docker images
|
|
216
|
+
├─ Starts services
|
|
217
|
+
├─ Runs test suite
|
|
218
|
+
├─ Generates results
|
|
219
|
+
└─ Cleans up
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Full Documentation
|
|
223
|
+
|
|
224
|
+
For detailed information, see:
|
|
225
|
+
- `MCP_TESTING_COMPLETE.md` - Complete guide
|
|
226
|
+
- `MCP_TESTING_SETUP.md` - Setup details
|
|
227
|
+
- `test-scripts/README.md` - Test documentation
|
|
228
|
+
- `MCP_TESTING_IMPLEMENTATION_SUMMARY.md` - Implementation details
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Status
|
|
233
|
+
|
|
234
|
+
✅ **Ready to Use**
|
|
235
|
+
|
|
236
|
+
All infrastructure is in place. Run `./run-mcp-tests.sh` to test!
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# 🎯 Telescoped Chart Navigation - User Guide
|
|
2
|
+
|
|
3
|
+
## Quick Start
|
|
4
|
+
|
|
5
|
+
### What are Telescoped Charts?
|
|
6
|
+
|
|
7
|
+
In structural tension methodology, **every action step is actually a full structural tension chart** with its own:
|
|
8
|
+
- Desired outcome (what you want to create)
|
|
9
|
+
- Current reality (where you actually are)
|
|
10
|
+
- Action steps (which are also charts)
|
|
11
|
+
|
|
12
|
+
This creates an **infinite fractal structure** where you can zoom into any action and work on it as a complete chart.
|
|
13
|
+
|
|
14
|
+
### Visual Indicators
|
|
15
|
+
|
|
16
|
+
When viewing a master chart's actions, you'll see two types:
|
|
17
|
+
|
|
18
|
+
**Regular Actions** (simple todo items):
|
|
19
|
+
\`\`\`
|
|
20
|
+
┌──────────────────────────┐
|
|
21
|
+
│ ○ Action 1 │
|
|
22
|
+
│ Do something simple │
|
|
23
|
+
└──────────────────────────┘
|
|
24
|
+
\`\`\`
|
|
25
|
+
|
|
26
|
+
**Telescoped Charts** (full structural tension charts):
|
|
27
|
+
\`\`\`
|
|
28
|
+
┌─────────────────────────────────────┐
|
|
29
|
+
│ ○ Action 1 📊 Chart [👁 Open ›] │ ← Gradient background
|
|
30
|
+
│ Complex multi-step task ▓ │ ← Colored border
|
|
31
|
+
└─────────────────────────────────────┘ ← Hover for shadow
|
|
32
|
+
\`\`\`
|
|
33
|
+
|
|
34
|
+
Key visual differences:
|
|
35
|
+
- 🎨 **Gradient background** (subtle primary color)
|
|
36
|
+
- 🔲 **Colored border** (primary color, brightens on hover)
|
|
37
|
+
- 📊 **"Chart" badge** (bold, with icon)
|
|
38
|
+
- 👁 **"Open" button** (prominent, with icons)
|
|
39
|
+
|
|
40
|
+
## How to Use
|
|
41
|
+
|
|
42
|
+
### 1. Navigate Into a Telescoped Chart
|
|
43
|
+
|
|
44
|
+
1. Find an action with the **"📊 Chart"** badge
|
|
45
|
+
2. Click the **"👁 Open ›"** button on the right
|
|
46
|
+
3. You'll navigate into that action as a full chart
|
|
47
|
+
|
|
48
|
+
### 2. Work Within the Sub-Chart
|
|
49
|
+
|
|
50
|
+
Once inside, you can:
|
|
51
|
+
- ✏️ **Edit the desired outcome** (click the pencil icon)
|
|
52
|
+
- 📝 **Edit current reality** (add observations)
|
|
53
|
+
- ➕ **Add action steps** (these become Level 2 charts)
|
|
54
|
+
- ✅ **Mark complete** (advances parent's current reality)
|
|
55
|
+
- 📅 **Set due dates**
|
|
56
|
+
- 🗑️ **Delete the chart**
|
|
57
|
+
|
|
58
|
+
### 3. Navigate Deeper
|
|
59
|
+
|
|
60
|
+
Any action steps you add to the sub-chart can themselves be opened as charts:
|
|
61
|
+
- Add an action to a Level 1 chart → creates Level 2 chart
|
|
62
|
+
- Add an action to a Level 2 chart → creates Level 3 chart
|
|
63
|
+
- Continue infinitely...
|
|
64
|
+
|
|
65
|
+
### 4. Navigate Back
|
|
66
|
+
|
|
67
|
+
Click **"← Back to Parent Chart"** at the top to return to the previous level.
|
|
68
|
+
|
|
69
|
+
The app maintains a navigation stack, so you can:
|
|
70
|
+
\`\`\`
|
|
71
|
+
Level 0 (Master)
|
|
72
|
+
→ Level 1 (First action)
|
|
73
|
+
→ Level 2 (Sub-action)
|
|
74
|
+
→ Level 3 (Sub-sub-action)
|
|
75
|
+
\`\`\`
|
|
76
|
+
|
|
77
|
+
Press back repeatedly to climb back up the hierarchy.
|
|
78
|
+
|
|
79
|
+
## Example Workflow
|
|
80
|
+
|
|
81
|
+
### Creating a Multi-Level Chart
|
|
82
|
+
|
|
83
|
+
**Step 1: Create Master Chart**
|
|
84
|
+
\`\`\`
|
|
85
|
+
Chart: "Build COAIA Feature"
|
|
86
|
+
Desired Outcome: Complete feature implementation
|
|
87
|
+
Current Reality: Have basic structure, need details
|
|
88
|
+
\`\`\`
|
|
89
|
+
|
|
90
|
+
**Step 2: Add Action Steps**
|
|
91
|
+
\`\`\`
|
|
92
|
+
Action 1: "Implement core logic"
|
|
93
|
+
Current Reality: "Have file structure, need methods"
|
|
94
|
+
→ Creates chart_2 as Level 1
|
|
95
|
+
|
|
96
|
+
Action 2: "Add UI components"
|
|
97
|
+
Current Reality: "UI design done, need implementation"
|
|
98
|
+
→ Creates chart_3 as Level 1
|
|
99
|
+
\`\`\`
|
|
100
|
+
|
|
101
|
+
**Step 3: Navigate Into "Implement core logic"**
|
|
102
|
+
|
|
103
|
+
Click **"👁 Open ›"** on Action 1
|
|
104
|
+
|
|
105
|
+
Now viewing chart_2 as a full chart:
|
|
106
|
+
\`\`\`
|
|
107
|
+
Chart 2 (Level 1)
|
|
108
|
+
Desired Outcome: Implement core logic
|
|
109
|
+
Current Reality: Have file structure, need methods
|
|
110
|
+
|
|
111
|
+
You can now add sub-actions:
|
|
112
|
+
Action 1: "Write parser methods"
|
|
113
|
+
Action 2: "Add validation logic"
|
|
114
|
+
\`\`\`
|
|
115
|
+
|
|
116
|
+
**Step 4: Navigate Deeper**
|
|
117
|
+
|
|
118
|
+
Click **"👁 Open ›"** on "Write parser methods"
|
|
119
|
+
|
|
120
|
+
Now viewing chart_3 (Level 2):
|
|
121
|
+
\`\`\`
|
|
122
|
+
Chart 3 (Level 2)
|
|
123
|
+
Desired Outcome: Write parser methods
|
|
124
|
+
Current Reality: Have empty functions, need implementation
|
|
125
|
+
\`\`\`
|
|
126
|
+
|
|
127
|
+
**Step 5: Navigate Back**
|
|
128
|
+
|
|
129
|
+
- Click **"← Back"** once → returns to chart_2 (Level 1)
|
|
130
|
+
- Click **"← Back"** again → returns to chart_1 (Level 0)
|
|
131
|
+
|
|
132
|
+
## Design Features
|
|
133
|
+
|
|
134
|
+
### Color Coding
|
|
135
|
+
|
|
136
|
+
**Light Mode**:
|
|
137
|
+
- Telescoped charts: Light blue/primary gradient
|
|
138
|
+
- Border: Blue, brightens on hover
|
|
139
|
+
- Badge: Solid blue with white text
|
|
140
|
+
- Button: Blue with white icons
|
|
141
|
+
|
|
142
|
+
**Dark Mode**:
|
|
143
|
+
- Telescoped charts: Subtle colored gradient
|
|
144
|
+
- Border: Colored, brightens on hover
|
|
145
|
+
- Badge: Solid color with dark text
|
|
146
|
+
- Button: Colored with appropriate contrast
|
|
147
|
+
|
|
148
|
+
### Interactive States
|
|
149
|
+
|
|
150
|
+
**Hover**:
|
|
151
|
+
- Border color intensifies
|
|
152
|
+
- Shadow appears underneath card
|
|
153
|
+
- Button shadow deepens
|
|
154
|
+
|
|
155
|
+
**Focus** (keyboard navigation):
|
|
156
|
+
- Visible focus ring around buttons
|
|
157
|
+
- High contrast for accessibility
|
|
158
|
+
|
|
159
|
+
**Completed**:
|
|
160
|
+
- Muted background
|
|
161
|
+
- Text has line-through
|
|
162
|
+
- Can still be opened to view details
|
|
163
|
+
|
|
164
|
+
## Keyboard Shortcuts
|
|
165
|
+
|
|
166
|
+
- **Tab**: Navigate between actions
|
|
167
|
+
- **Enter/Space**: Click focused button
|
|
168
|
+
- **Shift+Tab**: Navigate backwards
|
|
169
|
+
|
|
170
|
+
## Mobile Experience
|
|
171
|
+
|
|
172
|
+
On mobile devices:
|
|
173
|
+
- **Touch targets** are large enough for easy tapping
|
|
174
|
+
- **Badge wraps** to next line if needed
|
|
175
|
+
- **"Open" button** maintains size for easy access
|
|
176
|
+
- **Scrolling** works smoothly through action lists
|
|
177
|
+
|
|
178
|
+
## Tips & Tricks
|
|
179
|
+
|
|
180
|
+
### When to Create Telescoped Charts
|
|
181
|
+
|
|
182
|
+
Create a telescoped chart (action step) when:
|
|
183
|
+
- ✅ The task has multiple sub-steps
|
|
184
|
+
- ✅ You need to track progress on sub-components
|
|
185
|
+
- ✅ The task has its own structural tension
|
|
186
|
+
- ✅ You want to maintain the advancing pattern at multiple levels
|
|
187
|
+
|
|
188
|
+
Use simple actions when:
|
|
189
|
+
- ✅ The task is genuinely atomic
|
|
190
|
+
- ✅ No sub-planning needed
|
|
191
|
+
- ✅ Quick checkbox completion is sufficient
|
|
192
|
+
|
|
193
|
+
### Organizing Deep Hierarchies
|
|
194
|
+
|
|
195
|
+
For complex projects:
|
|
196
|
+
\`\`\`
|
|
197
|
+
Level 0: Project goal
|
|
198
|
+
Level 1: Major features/phases
|
|
199
|
+
Level 2: Specific implementation tasks
|
|
200
|
+
Level 3: Detailed sub-tasks
|
|
201
|
+
Level 4: Implementation details
|
|
202
|
+
\`\`\`
|
|
203
|
+
|
|
204
|
+
### Completing Charts at Different Levels
|
|
205
|
+
|
|
206
|
+
When you mark a Level 2 action complete:
|
|
207
|
+
- ✅ The Level 2 chart's desired outcome is marked complete
|
|
208
|
+
- ✅ The Level 1 chart's current reality gets "Completed: {action}" added
|
|
209
|
+
- ✅ This creates momentum up the hierarchy
|
|
210
|
+
|
|
211
|
+
## Troubleshooting
|
|
212
|
+
|
|
213
|
+
**Q: I don't see the "Open" button**
|
|
214
|
+
|
|
215
|
+
A: The action might not be a telescoped chart. Only actions with the "📊 Chart" badge can be opened. Regular actions don't have this button.
|
|
216
|
+
|
|
217
|
+
**Q: The "Open" button doesn't work**
|
|
218
|
+
|
|
219
|
+
A: Make sure you've loaded a file with properly structured telescoped charts. The test file `feat-4-mcp-api/test-telescoped-charts.jsonl` has examples.
|
|
220
|
+
|
|
221
|
+
**Q: I can't find the back button**
|
|
222
|
+
|
|
223
|
+
A: The "← Back to Parent Chart" button only appears when you're viewing a sub-chart (Level 1+). It won't show on Level 0 (master) charts.
|
|
224
|
+
|
|
225
|
+
**Q: How deep can I nest charts?**
|
|
226
|
+
|
|
227
|
+
A: Infinitely! The system supports unlimited nesting levels (0 → 1 → 2 → 3 → ...).
|
|
228
|
+
|
|
229
|
+
## Screenshots
|
|
230
|
+
|
|
231
|
+
Check the `screenshots/` directory for visual examples:
|
|
232
|
+
- `improved-01-actions.png`: Action list with telescoped charts
|
|
233
|
+
- `improved-02-action-detail.png`: Close-up of telescoped action
|
|
234
|
+
- `improved-03-after-open.png`: Sub-chart view after navigation
|
|
235
|
+
|
|
236
|
+
## Related Documentation
|
|
237
|
+
|
|
238
|
+
- **UI_GUIDE.md**: Detailed design specifications
|
|
239
|
+
- **TELESCOPED_CHART_NAVIGATION.md**: Technical implementation
|
|
240
|
+
- **IMPLEMENTATION_COMPLETE.md**: Development summary
|
|
241
|
+
- **FEATURE_4_COMPLETE.md**: Full Feature 4 documentation
|
|
242
|
+
|
|
243
|
+
## Support
|
|
244
|
+
|
|
245
|
+
The telescoped chart navigation has been fully tested and verified with automated Playwright tests. All functionality is production-ready.
|
|
246
|
+
|
|
247
|
+
**Version: 1.4.0**
|