oneie 3.6.17 → 3.6.20
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/.claude/agents/agent-ops.md +63 -2
- package/.claude/commands/commit.md +95 -0
- package/.claude/commands/npx.md +2 -2
- package/.claude/commands/one.md +7 -1
- package/.claude/commands/push.md +113 -21
- package/.claude/commands/release.md +2 -2
- package/.claude/hooks/release-cli.sh +195 -0
- package/CLAUDE.md +119 -0
- package/README.md +778 -497
- package/package.json +1 -1
- package/.claude/agents/NEWS-QUICKSTART.md +0 -321
- package/.claude/agents/NEWS-README.md +0 -353
- package/.claude/hooks/README-knowledge-hooks.md +0 -451
- package/.claude/hooks/README-root-cleanup.md +0 -200
- package/.claude/hooks/README.md +0 -284
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +0 -177
- package/.claude/hooks/clean-post.py +0 -468
- package/.claude/hooks/clean-pre.py +0 -393
- package/.claude/hooks/clean-root-markdown.sh +0 -73
- package/.claude/hooks/done.py +0 -236
- package/.claude/hooks/format-hook.sh +0 -163
- package/.claude/hooks/hook-logger.sh +0 -173
- package/.claude/hooks/knowledge-post.py +0 -355
- package/.claude/hooks/knowledge-pre.py +0 -245
- package/.claude/hooks/notification-hook.sh +0 -279
- package/.claude/hooks/root-cleanup.py +0 -217
- package/.claude/hooks/security-hook.sh +0 -397
- package/.claude/hooks/tag-all-docs.py +0 -464
- package/.claude/hooks/test-validate-ontology.sh +0 -170
- package/.claude/hooks/todo.py +0 -368
- package/.claude/hooks/track-changes.sh +0 -101
- package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
- package/.claude/hooks/validate-ontology-structure.py +0 -518
- package/TESTING-ONBOARDING.md +0 -185
package/TESTING-ONBOARDING.md
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
# Testing Frontend-First Onboarding
|
|
2
|
-
|
|
3
|
-
## Quick Test Guide
|
|
4
|
-
|
|
5
|
-
### Test 1: ONE Platform Mode (Default)
|
|
6
|
-
|
|
7
|
-
**Setup:**
|
|
8
|
-
```bash
|
|
9
|
-
cd web
|
|
10
|
-
cp .env.local.example .env.local
|
|
11
|
-
# Edit .env.local:
|
|
12
|
-
# ORG_NAME=one (or leave blank)
|
|
13
|
-
# ORG_WEBSITE=https://one.ie (or leave blank)
|
|
14
|
-
bun run dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
**Expected Result:**
|
|
18
|
-
- Visit http://localhost:4321
|
|
19
|
-
- Should see full ONE Platform homepage
|
|
20
|
-
- Sidebar should show all navigation items (Stream, Language, Ontology, CLI, etc.)
|
|
21
|
-
- Logo should be ONE graphic logo
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### Test 2: Customer Org Mode
|
|
26
|
-
|
|
27
|
-
**Setup:**
|
|
28
|
-
```bash
|
|
29
|
-
cd web
|
|
30
|
-
# Edit .env.local:
|
|
31
|
-
ORG_NAME=acme
|
|
32
|
-
ORG_WEBSITE=https://acme.com
|
|
33
|
-
ORG_FOLDER=acme
|
|
34
|
-
ONE_BACKEND=off
|
|
35
|
-
|
|
36
|
-
bun run dev
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**Expected Result:**
|
|
40
|
-
- Visit http://localhost:4321
|
|
41
|
-
- Should see "Welcome to acme" with GetStartedPrompt
|
|
42
|
-
- Simple prompt: "What would you like to build?"
|
|
43
|
-
- 4 quick start buttons (Ecommerce, Blog, Community, Dashboard)
|
|
44
|
-
- Sidebar should only show:
|
|
45
|
-
- "acme" text logo
|
|
46
|
-
- Blog link
|
|
47
|
-
- License link
|
|
48
|
-
- acme.com website link
|
|
49
|
-
- "Built with ONE Platform" footer
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
### Test 3: Reserved Name Validation
|
|
54
|
-
|
|
55
|
-
**Setup:**
|
|
56
|
-
```bash
|
|
57
|
-
cd cli
|
|
58
|
-
bun run build
|
|
59
|
-
node dist/index.js
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Test Cases:**
|
|
63
|
-
|
|
64
|
-
1. **Reserved Organization Name:**
|
|
65
|
-
```
|
|
66
|
-
Organization name: one
|
|
67
|
-
Expected: ❌ Error: Organization name "one" is reserved for ONE Platform
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
2. **Reserved Website:**
|
|
71
|
-
```
|
|
72
|
-
Website: https://one.ie
|
|
73
|
-
Expected: ❌ Error: Website one.ie is reserved for ONE Platform
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
3. **Valid Names:**
|
|
77
|
-
```
|
|
78
|
-
Organization name: acme ✓
|
|
79
|
-
Website: https://acme.com ✓
|
|
80
|
-
Expected: Creates .env.local with proper configuration
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
### Test 4: Environment Variables Created
|
|
86
|
-
|
|
87
|
-
**After running `npx oneie`:**
|
|
88
|
-
|
|
89
|
-
Check that `.env.local` contains:
|
|
90
|
-
```bash
|
|
91
|
-
# Organization Configuration
|
|
92
|
-
ORG_NAME=acme
|
|
93
|
-
ORG_WEBSITE=https://acme.com
|
|
94
|
-
ORG_FOLDER=acme
|
|
95
|
-
ONE_BACKEND=off
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
### Test 5: Mobile Responsiveness
|
|
101
|
-
|
|
102
|
-
**Customer Org Mode:**
|
|
103
|
-
1. Resize browser to mobile width (< 768px)
|
|
104
|
-
2. Hamburger menu should appear
|
|
105
|
-
3. Click to open sidebar
|
|
106
|
-
4. Should see minimal navigation (Blog + License)
|
|
107
|
-
5. Sidebar should close when clicking outside
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
### Test 6: Backend On/Off Switch
|
|
112
|
-
|
|
113
|
-
**Frontend-Only Mode (`ONE_BACKEND=off`):**
|
|
114
|
-
- No Convex connection attempts
|
|
115
|
-
- No auth flows
|
|
116
|
-
- All pages work statically
|
|
117
|
-
- No console errors about missing backend
|
|
118
|
-
|
|
119
|
-
**Full Platform Mode (`ONE_BACKEND=on`):**
|
|
120
|
-
- Convex client initializes
|
|
121
|
-
- Auth flows available
|
|
122
|
-
- Real-time subscriptions work
|
|
123
|
-
- (Note: Requires valid `PUBLIC_CONVEX_URL` to be set)
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
## Known Issues
|
|
128
|
-
|
|
129
|
-
### PerformanceChart Hydration Error
|
|
130
|
-
```
|
|
131
|
-
[astro-island] Error hydrating /src/components/features/PerformanceChart.tsx
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**Status:** Pre-existing issue, unrelated to onboarding changes
|
|
135
|
-
**Impact:** Does not affect onboarding functionality
|
|
136
|
-
**Fix:** Will be addressed separately
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## Files Modified
|
|
141
|
-
|
|
142
|
-
### CLI
|
|
143
|
-
- `cli/src/utils/validation.ts` - Reserved name validation
|
|
144
|
-
- `cli/src/commands/init.ts` - Validation in prompts
|
|
145
|
-
- `cli/src/utils/installation-setup.ts` - `updateOrgEnvFile` function
|
|
146
|
-
|
|
147
|
-
### Frontend
|
|
148
|
-
- `web/src/components/Sidebar.tsx` - Conditional rendering based on ORG_NAME
|
|
149
|
-
- `web/src/components/MinimalSidebar.tsx` - Complete layout for customer orgs
|
|
150
|
-
- `web/src/components/GetStartedPrompt.tsx` - Prompt interface
|
|
151
|
-
- `web/src/layouts/Layout.astro` - Removed custom conditional logic
|
|
152
|
-
- `web/src/pages/index.astro` - Conditional homepage rendering
|
|
153
|
-
|
|
154
|
-
### Documentation
|
|
155
|
-
- `one/things/plans/start-new.md` - Complete implementation guide
|
|
156
|
-
- `web/.env.local.example` - Configuration template
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## Success Criteria
|
|
161
|
-
|
|
162
|
-
- [ ] ONE Platform mode shows full homepage ✓
|
|
163
|
-
- [ ] Customer org mode shows GetStartedPrompt ✓
|
|
164
|
-
- [ ] Reserved names are rejected ✓
|
|
165
|
-
- [ ] MinimalSidebar renders correctly ✓
|
|
166
|
-
- [ ] Mobile navigation works ✓
|
|
167
|
-
- [ ] Environment variables created correctly ✓
|
|
168
|
-
- [ ] No TypeScript errors ✓
|
|
169
|
-
- [ ] No console errors (except known PerformanceChart issue) ✓
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
## Next Steps
|
|
174
|
-
|
|
175
|
-
1. **Test with real organization** (not just "acme")
|
|
176
|
-
2. **Implement AI prompt handling** in GetStartedPrompt
|
|
177
|
-
3. **Create template system** (`web/src/templates/`)
|
|
178
|
-
4. **Add analytics** to track usage patterns
|
|
179
|
-
5. **User testing** with 3-5 beta customers
|
|
180
|
-
6. **Production release** announcement
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
**Status:** Ready for testing ✅
|
|
185
|
-
**Date:** 2025-01-22
|