-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathimport-theater-issues.sh
More file actions
160 lines (131 loc) Β· 5.6 KB
/
import-theater-issues.sh
File metadata and controls
160 lines (131 loc) Β· 5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/bin/bash
# Import The Anatomy Theater issues to GitHub
# Requires: gh (GitHub CLI) - https://cli.github.com/
set -e
REPO="kluth/synapse" # Change to your repo
JSON_FILE="anatomy-theater-github-import.json"
echo "π Importing The Anatomy Theater issues to GitHub..."
echo "Repository: $REPO"
echo ""
# Check if gh is installed
if ! command -v gh &> /dev/null; then
echo "β GitHub CLI (gh) is not installed."
echo "Install it from: https://cli.github.com/"
exit 1
fi
# Check if authenticated
if ! gh auth status &> /dev/null; then
echo "β Not authenticated with GitHub."
echo "Run: gh auth login"
exit 1
fi
# Create milestones
echo "π Creating milestones..."
gh api repos/$REPO/milestones -f title="Phase 6.1: Theater Core" -f description="Core presentation engine, stage, and observation gallery" -f due_on="2025-12-15T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.2: Specimen System" -f description="Component showcase and observation management" -f due_on="2025-12-22T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.3: Microscope Tools" -f description="Deep inspection, debugging, and monitoring tools" -f due_on="2026-01-05T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.4: Laboratory" -f description="Testing environment and experimentation framework" -f due_on="2026-01-12T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.5: Atlas" -f description="Auto-documentation and architecture visualization" -f due_on="2026-01-19T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.6: Server & Hot Reload" -f description="Development server with real-time updates" -f due_on="2026-01-26T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.7: CLI & Configuration" -f description="Command-line interface and project configuration" -f due_on="2026-02-02T00:00:00Z" || true
gh api repos/$REPO/milestones -f title="Phase 6.8: Integration & Polish" -f description="Framework integration, testing, and documentation" -f due_on="2026-02-09T00:00:00Z" || true
echo "β
Milestones created!"
echo ""
# Get milestone numbers
echo "π Fetching milestone numbers..."
MILESTONES=$(gh api repos/$REPO/milestones --jq '.[] | "\(.title)|\(.number)"')
# Function to get milestone number by title
get_milestone_number() {
local title="$1"
echo "$MILESTONES" | grep "^$title|" | cut -d'|' -f2
}
# Create issues
echo "π Creating issues..."
echo ""
# Phase 6.1 issues
MILESTONE_61=$(get_milestone_number "Phase 6.1: Theater Core")
gh issue create --repo $REPO --title "Implement Theater base class" --body-file <(cat <<'EOF'
## Description
Create the main Theater class that orchestrates the entire Anatomy Theater system.
## Acceptance Criteria
- [ ] Theater class with stage, amphitheater, and instruments
- [ ] Configuration loading and validation
- [ ] Lifecycle management (start, stop, reload)
- [ ] Event emitter for theater events
- [ ] TypeScript strict mode compliant
- [ ] Unit tests (>90% coverage)
## Technical Notes
```typescript
class Theater {
stage: Stage;
amphitheater: Amphitheater;
instruments: Map<string, Instrument>;
config: TheaterConfig;
}
```
## Files
- `src/theater/core/Theater.ts`
- `src/theater/core/Theater.test.ts`
EOF
) --label "Phase 6.1,core,enhancement" --milestone "$MILESTONE_61"
gh issue create --repo $REPO --title "Implement Stage component" --body-file <(cat <<'EOF'
## Description
Create the Stage where components are rendered and observed.
## Acceptance Criteria
- [ ] Stage class with viewport management
- [ ] Component mounting and unmounting
- [ ] Isolated rendering environment (shadow DOM/iframe)
- [ ] Resize and responsive testing
- [ ] Device emulation (mobile, tablet, desktop)
- [ ] Unit tests (>90% coverage)
## Technical Notes
- Integration with VisualNeuron rendering
- Support for different viewport sizes
- Screenshot capture capability
## Files
- `src/theater/core/Stage.ts`
- `src/theater/core/Stage.test.ts`
EOF
) --label "Phase 6.1,core,enhancement" --milestone "$MILESTONE_61"
gh issue create --repo $REPO --title "Implement Amphitheater (observation gallery)" --body-file <(cat <<'EOF'
## Description
Create the Amphitheater UI where developers observe and interact with components.
## Acceptance Criteria
- [ ] Gallery layout with component grid
- [ ] Search and filter functionality
- [ ] Category organization
- [ ] Dark/light theme support
- [ ] Responsive layout
- [ ] Keyboard navigation
- [ ] Unit tests (>90% coverage)
## Technical Notes
- Built using our own UI system (VisualNeurons)
- Accessibility compliant (WCAG 2.1 AA)
## Files
- `src/theater/core/Amphitheater.ts`
- `src/theater/core/Amphitheater.test.ts`
EOF
) --label "Phase 6.1,core,ui,enhancement" --milestone "$MILESTONE_61"
gh issue create --repo $REPO --title "Implement Instrument base interface" --body-file <(cat <<'EOF'
## Description
Create the base interface for all development tools (instruments).
## Acceptance Criteria
- [ ] Instrument interface definition
- [ ] Panel management (open, close, toggle)
- [ ] Tool registration system
- [ ] Inter-tool communication
- [ ] State persistence
- [ ] Unit tests (>90% coverage)
## Files
- `src/theater/core/Instrument.ts`
- `src/theater/core/Instrument.test.ts`
EOF
) --label "Phase 6.1,core,enhancement" --milestone "$MILESTONE_61"
echo "β
Created Phase 6.1 issues (4 issues)"
echo ""
# Note: Add more issue creation commands here for other phases
# This is abbreviated for brevity - you would continue with all issues
echo "β¨ Import complete!"
echo ""
echo "View issues at: https://github.com/$REPO/issues"
echo "View milestones at: https://github.com/$REPO/milestones"