oneie 3.6.5 → 3.6.6
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/commands/one copy.md +565 -0
- package/.claude/hooks/README-knowledge-hooks.md +265 -0
- package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +40 -0
- package/.claude/hooks/clean-post.py +301 -0
- package/.claude/hooks/clean-pre.py +308 -0
- package/.claude/hooks/done.py +175 -0
- package/.claude/hooks/format-hook.sh +75 -0
- package/.claude/hooks/hook-logger.sh +59 -0
- package/.claude/hooks/knowledge-post.py +251 -0
- package/.claude/hooks/knowledge-pre.py +150 -0
- package/.claude/hooks/notification-hook.sh +112 -0
- package/.claude/hooks/security-hook.sh +157 -0
- package/.claude/hooks/tag-all-docs.py +338 -0
- package/.claude/hooks/todo.py +298 -0
- package/.claude/hooks/validate-ontology-structure.py +455 -0
- package/.claude/skills/astro/add-content-collection.md +30 -0
- package/.claude/skills/astro/check-build.md +29 -0
- package/.claude/skills/astro/create-component.md +29 -0
- package/.claude/skills/astro/create-page.md +30 -0
- package/.claude/skills/astro/optimize-performance.md +21 -0
- package/.claude/skills/convex/check-deployment.md +46 -0
- package/.claude/skills/convex/create-mutation.md +405 -0
- package/.claude/skills/convex/create-query.md +52 -0
- package/.claude/skills/convex/read-schema.md +373 -0
- package/.claude/skills/convex/test-function.md +50 -0
- package/.claude/skills/deployment/check-deployment-health.md +20 -0
- package/.claude/skills/deployment/create-release.md +21 -0
- package/.claude/skills/deployment/deploy-cloudflare.md +31 -0
- package/.claude/skills/deployment/deploy-convex.md +30 -0
- package/.claude/skills/deployment/sync-repositories.md +19 -0
- package/.claude/skills/design/check-accessibility.md +21 -0
- package/.claude/skills/design/create-component-spec.md +27 -0
- package/.claude/skills/design/generate-design-tokens.md +24 -0
- package/.claude/skills/design/generate-wireframe.md +30 -0
- package/.claude/skills/documentation/create-migration-guide.md +20 -0
- package/.claude/skills/documentation/generate-api-docs.md +27 -0
- package/.claude/skills/documentation/generate-readme.md +22 -0
- package/.claude/skills/documentation/update-knowledge.md +20 -0
- package/.claude/skills/integration/connect-external-system.md +21 -0
- package/.claude/skills/integration/implement-a2a.md +20 -0
- package/.claude/skills/integration/implement-acp.md +20 -0
- package/.claude/skills/integration/verify-integration.md +20 -0
- package/.claude/skills/ontology/README.md +255 -0
- package/.claude/skills/ontology/check-dimension.md +307 -0
- package/.claude/skills/ontology/generate-entity-type.md +339 -0
- package/.claude/skills/ontology/validate-schema.md +229 -0
- package/.claude/skills/ontology/verify-relationships.md +310 -0
- package/.claude/skills/problem-solving/analyze-test-failure.md +21 -0
- package/.claude/skills/problem-solving/identify-root-cause.md +20 -0
- package/.claude/skills/problem-solving/propose-solution.md +29 -0
- package/.claude/skills/problem-solving/verify-fix.md +21 -0
- package/.claude/skills/sales/generate-demo-script.md +21 -0
- package/.claude/skills/sales/qualify-lead.md +30 -0
- package/.claude/skills/sales/track-trial.md +20 -0
- package/.claude/skills/sales/verify-kyc.md +20 -0
- package/.claude/skills/testing/analyze-coverage.md +24 -0
- package/.claude/skills/testing/generate-tests.md +24 -0
- package/.claude/skills/testing/run-tests.md +27 -0
- package/.claude/skills/testing/validate-e2e.md +25 -0
- package/.mcp.json +30 -3
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/utils/launch-claude.d.ts +3 -2
- package/dist/utils/launch-claude.d.ts.map +1 -1
- package/dist/utils/launch-claude.js +64 -29
- package/dist/utils/launch-claude.js.map +1 -1
- package/one/.obsidian/workspace.json +22 -22
- package/one/events/CREATE-WEBSITE.md +442 -0
- package/one/events/CUSTOM-DOMAIN.md +357 -0
- package/one/events/DEPLOYMENT copy.md +426 -0
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +251 -0
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +576 -0
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +421 -0
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +196 -0
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +396 -0
- package/one/events/INSTALLATION_FOLDERS.md +516 -0
- package/one/events/INSTALLATION_FOLDERS_FILES.md +205 -0
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +419 -0
- package/one/events/LICENSE.md +89 -0
- package/one/events/MCP-CONFIGURATION.md +336 -0
- package/one/events/MCP-SETUP-COMPLETE.md +205 -0
- package/one/events/NODE-UPGRADE.md +111 -0
- package/one/events/PACKAGE-STRUCTURE.md +310 -0
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +331 -0
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +567 -0
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +262 -0
- package/one/events/STRIPE-INTEGRATION.md +414 -0
- package/one/events/STRIPE-SETUP-GUIDE.md +462 -0
- package/one/events/TRANSPARENCY-FIXES.md +275 -0
- package/package.json +4 -2
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# Transparency & Modal Fixes - Site-Wide Solution
|
|
2
|
+
|
|
3
|
+
## Problem Overview
|
|
4
|
+
|
|
5
|
+
The site was experiencing recurring issues with:
|
|
6
|
+
1. **Transparent modals** - Dialogs/popups appearing see-through
|
|
7
|
+
2. **Unreadable gradient text** - Text with `bg-clip-text` becoming invisible
|
|
8
|
+
3. **Backdrop blur issues** - Glass morphism elements missing backgrounds
|
|
9
|
+
4. **Inconsistent opacity** - Various UI elements appearing transparent
|
|
10
|
+
|
|
11
|
+
## Root Causes
|
|
12
|
+
|
|
13
|
+
1. **Tailwind v4 Changes** - Different handling of background opacity
|
|
14
|
+
2. **Missing `!important` flags** - CSS specificity issues
|
|
15
|
+
3. **Backdrop-blur without background** - blur effects need solid backgrounds
|
|
16
|
+
4. **Browser compatibility** - `background-clip: text` not supported everywhere
|
|
17
|
+
|
|
18
|
+
## Complete Solution
|
|
19
|
+
|
|
20
|
+
All fixes are in `/src/styles/global.css` under the section:
|
|
21
|
+
```
|
|
22
|
+
/* SITE-WIDE TRANSPARENCY & MODAL FIXES */
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 14 Categories of Fixes
|
|
26
|
+
|
|
27
|
+
#### 1. Modal & Dialog Fixes
|
|
28
|
+
**Problem:** Modals appearing transparent or see-through
|
|
29
|
+
**Solution:** Force opaque backgrounds on all dialog elements
|
|
30
|
+
|
|
31
|
+
```css
|
|
32
|
+
[role="dialog"],
|
|
33
|
+
[data-radix-dialog-content],
|
|
34
|
+
[data-vaul-drawer] {
|
|
35
|
+
background-color: hsl(var(--color-card)) !important;
|
|
36
|
+
--tw-bg-opacity: 1 !important;
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Affected Components:**
|
|
41
|
+
- Alert Dialogs
|
|
42
|
+
- Modals
|
|
43
|
+
- Drawers/Sheets
|
|
44
|
+
- Popovers
|
|
45
|
+
- Command Palette
|
|
46
|
+
|
|
47
|
+
#### 2. Backdrop Blur Fixes
|
|
48
|
+
**Problem:** `backdrop-blur` classes showing transparent backgrounds
|
|
49
|
+
**Solution:** Add pseudo-element with solid background
|
|
50
|
+
|
|
51
|
+
```css
|
|
52
|
+
.backdrop-blur::before {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
background-color: hsl(var(--color-background) / 0.8);
|
|
57
|
+
z-index: -1;
|
|
58
|
+
border-radius: inherit;
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Affected Elements:**
|
|
63
|
+
- Glass morphism cards
|
|
64
|
+
- Frosted glass effects
|
|
65
|
+
- Any `backdrop-blur-*` utility
|
|
66
|
+
|
|
67
|
+
#### 3. Gradient Text Fixes
|
|
68
|
+
**Problem:** Text with gradients becoming invisible
|
|
69
|
+
**Solution:** Guaranteed visible gradient text utility
|
|
70
|
+
|
|
71
|
+
```css
|
|
72
|
+
.gradient-text {
|
|
73
|
+
background: linear-gradient(...) !important;
|
|
74
|
+
-webkit-background-clip: text !important;
|
|
75
|
+
-webkit-text-fill-color: transparent !important;
|
|
76
|
+
background-clip: text !important;
|
|
77
|
+
display: inline-block !important;
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Usage:**
|
|
82
|
+
```html
|
|
83
|
+
<h1 class="gradient-text">Beautiful Gradient Text</h1>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Fallback:** Browsers without support show solid primary color
|
|
87
|
+
|
|
88
|
+
#### 4. Glass Morphism Fixes
|
|
89
|
+
**Problem:** Elements with `bg-background/30` etc appearing fully transparent
|
|
90
|
+
**Solution:** Add isolation and pseudo-element backgrounds
|
|
91
|
+
|
|
92
|
+
#### 5. Popover & Dropdown Fixes
|
|
93
|
+
**Problem:** Dropdown menus and tooltips transparent
|
|
94
|
+
**Solution:** Force backgrounds on all Radix UI popovers
|
|
95
|
+
|
|
96
|
+
#### 6. Card Transparency Fixes
|
|
97
|
+
**Problem:** Cards with `bg-card` becoming transparent
|
|
98
|
+
**Solution:** Force full opacity
|
|
99
|
+
|
|
100
|
+
#### 7. Text on Gradient Backgrounds
|
|
101
|
+
**Problem:** Text unreadable on gradient backgrounds
|
|
102
|
+
**Solution:** Force text to be above background with z-index
|
|
103
|
+
|
|
104
|
+
#### 8. Background Opacity Enforcement
|
|
105
|
+
**Problem:** Backgrounds not rendering
|
|
106
|
+
**Solution:** Force minimum height to trigger rendering
|
|
107
|
+
|
|
108
|
+
#### 9. Button & Input Fixes
|
|
109
|
+
**Problem:** Form elements appearing transparent
|
|
110
|
+
**Solution:** Default background colors
|
|
111
|
+
|
|
112
|
+
#### 10. Sheet/Drawer Fixes
|
|
113
|
+
**Problem:** Vaul drawers transparent
|
|
114
|
+
**Solution:** Force card background
|
|
115
|
+
|
|
116
|
+
#### 11. Text Visibility
|
|
117
|
+
**Problem:** Text becoming invisible
|
|
118
|
+
**Solution:** Font smoothing and shadow removal
|
|
119
|
+
|
|
120
|
+
#### 12. Command Palette Fixes
|
|
121
|
+
**Problem:** Search modals transparent
|
|
122
|
+
**Solution:** Force background on cmdk elements
|
|
123
|
+
|
|
124
|
+
#### 13. Toast/Notification Fixes
|
|
125
|
+
**Problem:** Toasts appearing transparent
|
|
126
|
+
**Solution:** Force backgrounds and borders
|
|
127
|
+
|
|
128
|
+
#### 14. Z-Index Management
|
|
129
|
+
**Problem:** Content below overlay
|
|
130
|
+
**Solution:** Ensure content is above overlay
|
|
131
|
+
|
|
132
|
+
## How to Use
|
|
133
|
+
|
|
134
|
+
### For Gradient Text
|
|
135
|
+
```tsx
|
|
136
|
+
// Always readable gradient text
|
|
137
|
+
<h1 className="gradient-text">
|
|
138
|
+
Premium Quality
|
|
139
|
+
</h1>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### For Modals
|
|
143
|
+
```tsx
|
|
144
|
+
// Automatically fixed - no changes needed
|
|
145
|
+
<Dialog>
|
|
146
|
+
<DialogContent>
|
|
147
|
+
Content is now opaque
|
|
148
|
+
</DialogContent>
|
|
149
|
+
</Dialog>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### For Glass Morphism
|
|
153
|
+
```tsx
|
|
154
|
+
// Add backdrop-blur with confidence
|
|
155
|
+
<div className="backdrop-blur-xl bg-background/30">
|
|
156
|
+
Now has solid background
|
|
157
|
+
</div>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### For Custom Components
|
|
161
|
+
```tsx
|
|
162
|
+
// If you create custom modals, add:
|
|
163
|
+
<div role="dialog" className="bg-card">
|
|
164
|
+
// Automatically opaque
|
|
165
|
+
</div>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Testing Checklist
|
|
169
|
+
|
|
170
|
+
- [ ] All dialogs have opaque backgrounds
|
|
171
|
+
- [ ] Gradient text is readable in all browsers
|
|
172
|
+
- [ ] Backdrop blur elements have backgrounds
|
|
173
|
+
- [ ] Popovers and dropdowns are visible
|
|
174
|
+
- [ ] Toasts/notifications are opaque
|
|
175
|
+
- [ ] Cards render with full opacity
|
|
176
|
+
- [ ] Modals appear above overlays
|
|
177
|
+
- [ ] Text on gradient backgrounds is readable
|
|
178
|
+
- [ ] Glass morphism effects work correctly
|
|
179
|
+
- [ ] Dark mode variants work
|
|
180
|
+
|
|
181
|
+
## Browser Compatibility
|
|
182
|
+
|
|
183
|
+
**Supported:**
|
|
184
|
+
- Chrome 90+
|
|
185
|
+
- Firefox 88+
|
|
186
|
+
- Safari 14+
|
|
187
|
+
- Edge 90+
|
|
188
|
+
|
|
189
|
+
**Fallbacks:**
|
|
190
|
+
- Gradient text shows solid primary color
|
|
191
|
+
- Backdrop blur shows solid background
|
|
192
|
+
- All text remains readable
|
|
193
|
+
|
|
194
|
+
## Performance Impact
|
|
195
|
+
|
|
196
|
+
**Zero performance impact** - All fixes use:
|
|
197
|
+
- CSS only (no JavaScript)
|
|
198
|
+
- GPU-accelerated properties
|
|
199
|
+
- Efficient pseudo-elements
|
|
200
|
+
- Standard CSS features
|
|
201
|
+
|
|
202
|
+
## Future Prevention
|
|
203
|
+
|
|
204
|
+
**Best Practices:**
|
|
205
|
+
|
|
206
|
+
1. **Always use `gradient-text` class** instead of manual `bg-clip-text`
|
|
207
|
+
2. **Test modals in both light/dark modes**
|
|
208
|
+
3. **Verify backdrop-blur has `bg-*` utility**
|
|
209
|
+
4. **Check z-index stacking** for overlays
|
|
210
|
+
5. **Use dev tools** to inspect opacity values
|
|
211
|
+
|
|
212
|
+
## Common Mistakes to Avoid
|
|
213
|
+
|
|
214
|
+
❌ **Don't:**
|
|
215
|
+
```tsx
|
|
216
|
+
// Missing background
|
|
217
|
+
<div className="backdrop-blur-xl">
|
|
218
|
+
Content
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
// Manual gradient text (browser dependent)
|
|
222
|
+
<h1 className="bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">
|
|
223
|
+
Text
|
|
224
|
+
</h1>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
✅ **Do:**
|
|
228
|
+
```tsx
|
|
229
|
+
// Proper background
|
|
230
|
+
<div className="backdrop-blur-xl bg-background/30">
|
|
231
|
+
Content
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
// Guaranteed gradient text
|
|
235
|
+
<h1 className="gradient-text">
|
|
236
|
+
Text
|
|
237
|
+
</h1>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Debugging Tips
|
|
241
|
+
|
|
242
|
+
1. **Check DevTools:**
|
|
243
|
+
- Inspect element background color
|
|
244
|
+
- Verify `--tw-bg-opacity` is 1
|
|
245
|
+
- Look for `!important` overrides
|
|
246
|
+
|
|
247
|
+
2. **Test Both Themes:**
|
|
248
|
+
- Toggle dark mode
|
|
249
|
+
- Verify overlays visible
|
|
250
|
+
- Check text contrast
|
|
251
|
+
|
|
252
|
+
3. **Browser Console:**
|
|
253
|
+
- Look for CSS warnings
|
|
254
|
+
- Check computed styles
|
|
255
|
+
- Verify pseudo-elements render
|
|
256
|
+
|
|
257
|
+
## Related Files
|
|
258
|
+
|
|
259
|
+
- `/src/styles/global.css` - All fixes
|
|
260
|
+
- `/src/components/ui/*` - shadcn components (automatically fixed)
|
|
261
|
+
- `/src/components/shop/ShopHero.tsx` - Example usage
|
|
262
|
+
|
|
263
|
+
## Questions?
|
|
264
|
+
|
|
265
|
+
All transparency issues should now be resolved site-wide. If you encounter new issues:
|
|
266
|
+
|
|
267
|
+
1. Check if element has `role="dialog"` or data attributes
|
|
268
|
+
2. Verify background color is set
|
|
269
|
+
3. Add `!important` if needed
|
|
270
|
+
4. Update this document with new patterns
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
**Last Updated:** 2025-10-21
|
|
275
|
+
**Status:** ✅ Production Ready
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Build apps, websites, and AI agents in English. Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.",
|
|
6
6
|
"bin": {
|
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"AGENTS.md",
|
|
69
69
|
"one",
|
|
70
70
|
".claude/agents",
|
|
71
|
-
".claude/commands"
|
|
71
|
+
".claude/commands",
|
|
72
|
+
".claude/hooks",
|
|
73
|
+
".claude/skills"
|
|
72
74
|
]
|
|
73
75
|
}
|