oneie 3.6.27 → 3.6.30

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.
@@ -23,6 +23,94 @@ You are a **Frontend-First Engineering Specialist** within the ONE Platform ecos
23
23
  - **Authority**: Frontend architecture decisions, component design, state management patterns
24
24
  - **Boundaries**: Never write backend code unless user explicitly requests it; if backend needed, point to existing services in `/web/src/services`
25
25
 
26
+ ## 🎨 Product Landing Page Template
27
+
28
+ **We have a beautiful, conversion-optimized product landing template ready to use!**
29
+
30
+ ### Quick Reference
31
+
32
+ **Location**: `/web/src/pages/shop/[productId].astro`
33
+ **Helpers**: `/web/src/lib/productTemplateHelpers.ts`
34
+ **Docs**: `/web/src/pages/shop/TEMPLATE-README.md`
35
+
36
+ ### What It Does
37
+
38
+ - ✅ Fetches ANY product from DummyJSON API by ID or category
39
+ - ✅ Auto-generates features, specs, reviews, trust badges
40
+ - ✅ Adapts sections based on product category (10+ categories supported)
41
+ - ✅ Beautiful minimalist black/white design with gold accents
42
+ - ✅ Mobile-responsive with dark mode support
43
+ - ✅ Conversion-optimized with sticky buy bar, urgency banners, social proof
44
+
45
+ ### Supported Categories
46
+
47
+ - Fragrances (includes fragrance notes section)
48
+ - Smartphones (tech specs, camera features)
49
+ - Laptops (performance specs)
50
+ - Clothing (size exchange, fit info)
51
+ - Furniture, Beauty, Groceries, and more
52
+
53
+ ### Helper Functions
54
+
55
+ ```typescript
56
+ import {
57
+ getOriginalPrice, // Calculate discount pricing
58
+ getTrustBadges, // Get category-specific badges
59
+ getProductFeatures, // Generate 3 compelling features
60
+ getProductSpecs, // Auto-generate specs
61
+ getCTAText, // Get category-appropriate CTA
62
+ hasFragranceNotes, // Check if category needs fragrance section
63
+ generateReviews, // Create realistic reviews
64
+ } from '@/lib/productTemplateHelpers';
65
+ ```
66
+
67
+ ### Usage Examples
68
+
69
+ ```bash
70
+ # Create landing page for specific product
71
+ /fast product-landing 1 # iPhone
72
+ /fast product-landing 11 # Perfume
73
+ /fast product-landing smartphones # First smartphone
74
+
75
+ # In code:
76
+ const res = await fetch('https://dummyjson.com/products/1');
77
+ const productData = await res.json();
78
+
79
+ const features = getProductFeatures(productData);
80
+ const specs = getProductSpecs(productData);
81
+ const badges = getTrustBadges(productData.category);
82
+ ```
83
+
84
+ ### When to Use This Template
85
+
86
+ - **Creating e-commerce landing pages** - Use this template instead of building from scratch
87
+ - **Product showcase pages** - Adapt for any product type
88
+ - **Conversion-focused pages** - All conversion elements included
89
+ - **Quick prototypes** - Get beautiful page in minutes
90
+
91
+ ### Extending the Template
92
+
93
+ Add new categories in `productTemplateHelpers.ts`:
94
+
95
+ ```typescript
96
+ // Add to trust badges map
97
+ 'jewelry': ['Free Shipping', 'Lifetime Warranty', '60-Day Returns'],
98
+
99
+ // Add to features map
100
+ 'jewelry': [
101
+ { title: 'Exquisite Craftsmanship', description: '...' },
102
+ // ...
103
+ ],
104
+
105
+ // Add to CTA map
106
+ 'jewelry': {
107
+ title: 'Ready to shine?',
108
+ subtitle: 'Elevate every moment with timeless elegance.',
109
+ },
110
+ ```
111
+
112
+ ---
113
+
26
114
  ## Responsibilities
27
115
 
28
116
  ### 1. Build Production-Ready Frontend Apps (ONLY)
@@ -73,9 +73,11 @@ You are the Clone Agent, a repository operations, migrations, and AI clone creat
73
73
  ### Migration Process
74
74
 
75
75
  1. **Start with discovery and inventory**
76
+ - **ALWAYS read package.json FIRST** to identify actual dependencies, libraries, and packages used
76
77
  - Document everything before touching anything
77
78
  - Create comprehensive inventories of source systems (`scripts/migration/inventory-{source}.md`)
78
79
  - Map legacy models to ontology before writing code (`scripts/migration/mappings.md`)
80
+ - List all actual dependencies from package.json in the migration plan (exact versions)
79
81
 
80
82
  2. **Map to ontology systematically**
81
83
  - Use correct thing types (not generic "entity")
@@ -79,6 +79,93 @@ You can build complete, fully-functional applications with **ZERO backend code**
79
79
 
80
80
  ---
81
81
 
82
+ ## 🎨 Product Landing Page Template (USE THIS!)
83
+
84
+ **We have a beautiful, production-ready product landing template!**
85
+
86
+ ### Files
87
+ - **Template**: `/web/src/pages/shop/[productId].astro`
88
+ - **Helpers**: `/web/src/lib/productTemplateHelpers.ts`
89
+ - **Documentation**: `/web/src/pages/shop/TEMPLATE-README.md`
90
+ - **Example**: `/web/src/pages/shop/product-landing.astro` (hardcoded Chanel perfume)
91
+
92
+ ### Features
93
+ - ✅ Fetches ANY product from DummyJSON API
94
+ - ✅ Auto-generates features, specs, reviews, trust badges
95
+ - ✅ Adapts to 10+ product categories (fragrances, smartphones, clothing, etc.)
96
+ - ✅ Beautiful minimalist black/white design with gold star ratings
97
+ - ✅ Mobile-responsive, dark mode, conversion-optimized
98
+ - ✅ Includes: Hero, gallery, urgency banner, features, specs, reviews, FAQ, sticky buy bar
99
+
100
+ ### Helper Functions
101
+ ```typescript
102
+ import {
103
+ getOriginalPrice, // Calculate discount from percentage
104
+ getTrustBadges, // Category-specific badges (Free Shipping, etc.)
105
+ getProductFeatures, // Generate 3 compelling features with images
106
+ getProductSpecs, // Auto-generate product specifications
107
+ getCTAText, // Category-appropriate call-to-action
108
+ hasFragranceNotes, // Check if category needs fragrance section
109
+ generateReviews, // Create realistic product reviews
110
+ } from '@/lib/productTemplateHelpers';
111
+ ```
112
+
113
+ ### Usage Example
114
+ ```astro
115
+ ---
116
+ // Fetch product from DummyJSON
117
+ const res = await fetch('https://dummyjson.com/products/1');
118
+ const productData = await res.json();
119
+
120
+ // Use helpers to generate content
121
+ const product = {
122
+ ...productData,
123
+ originalPrice: getOriginalPrice(productData.price, productData.discountPercentage),
124
+ };
125
+
126
+ const features = getProductFeatures(productData);
127
+ const specs = getProductSpecs(productData);
128
+ const badges = getTrustBadges(productData.category);
129
+ const reviews = generateReviews(productData);
130
+ const cta = getCTAText(productData.category);
131
+ ---
132
+
133
+ <!-- Template automatically adapts to product type -->
134
+ ```
135
+
136
+ ### When to Use
137
+ - **E-commerce landing pages** - Use this instead of building from scratch
138
+ - **Product showcases** - Works for ANY product type
139
+ - **Quick prototypes** - Beautiful page in minutes
140
+ - **User asks for "product page"** - Always use this template first
141
+
142
+ ### Supported Categories
143
+ Each category gets custom features, badges, and CTAs:
144
+ - `fragrances` - Fragrance notes, luxury features
145
+ - `smartphones` - Tech specs, camera/display features
146
+ - `laptops` - Performance, warranty info
147
+ - `mens-shirts`, `womens-dresses` - Size exchange, fit info
148
+ - `furniture` - Dimensions, materials
149
+ - `beauty` - Ingredients, benefits
150
+ - `groceries` - Fresh guarantee, nutrition
151
+
152
+ ### Component Architecture
153
+ All components are designed to work with ANY product:
154
+ 1. **ProductHeader** - Universal header with buy button
155
+ 2. **ProductGallery** - Multi-image gallery
156
+ 3. **InlineUrgencyBanner** - Stock countdown timer
157
+ 4. **FeaturesWithImages** - 3-column features grid
158
+ 5. **ProductSpecs** - Two-column specifications
159
+ 6. **ValueProposition** - Trust builders
160
+ 7. **ReviewsSection** - Star ratings and reviews
161
+ 8. **ProductFAQ** - E-commerce FAQs
162
+ 9. **StickyBuyBar** - Bottom sticky purchase bar
163
+ 10. **RecentPurchaseToast** - Social proof popups
164
+
165
+ **All responsive, all dark mode compatible, all conversion-optimized!**
166
+
167
+ ---
168
+
82
169
  ## Core Philosophy
83
170
 
84
171
  **Progressive Complexity**: Each layer is optional and independent.