refactor: rename Wizamart to Orion across entire codebase
Replace all ~1,086 occurrences of Wizamart/wizamart/WIZAMART/WizaMart with Orion/orion/ORION across 184 files. This includes database identifiers, email addresses, domain references, R2 bucket names, DNS prefixes, encryption salt, Celery app name, config defaults, Docker configs, CI configs, documentation, seed data, and templates. Renames homepage-wizamart.html template to homepage-orion.html. Fixes duplicate file_pattern key in api.yaml architecture rule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,17 +24,17 @@ The Storefront API provides customer-facing endpoints for browsing products, man
|
||||
|
||||
All Storefront API endpoints automatically receive store context from the `StoreContextMiddleware`:
|
||||
|
||||
1. **Browser makes API call** from storefront page (e.g., `/stores/wizamart/storefront/products`)
|
||||
2. **Browser automatically sends Referer header**: `http://localhost:8000/stores/wizamart/storefront/products`
|
||||
1. **Browser makes API call** from storefront page (e.g., `/stores/orion/storefront/products`)
|
||||
2. **Browser automatically sends Referer header**: `http://localhost:8000/stores/orion/storefront/products`
|
||||
3. **Middleware extracts store** from Referer path/subdomain/domain
|
||||
4. **Middleware sets** `request.state.store = <Store: wizamart>`
|
||||
4. **Middleware sets** `request.state.store = <Store: orion>`
|
||||
5. **API endpoint accesses store**: `store = request.state.store`
|
||||
6. **No store_id needed in URL!**
|
||||
|
||||
### Supported Store Detection Methods
|
||||
|
||||
- **Path-based**: `/stores/wizamart/storefront/products` → extracts `wizamart`
|
||||
- **Subdomain**: `wizamart.platform.com` → extracts `wizamart`
|
||||
- **Path-based**: `/stores/orion/storefront/products` → extracts `orion`
|
||||
- **Subdomain**: `orion.platform.com` → extracts `orion`
|
||||
- **Custom domain**: `customshop.com` → looks up store by domain
|
||||
|
||||
---
|
||||
@@ -92,7 +92,7 @@ Get paginated list of products for current store.
|
||||
|
||||
```http
|
||||
GET /api/v1/storefront/products?skip=0&limit=20&is_featured=true
|
||||
Referer: http://localhost:8000/stores/wizamart/shop/products
|
||||
Referer: http://localhost:8000/stores/orion/shop/products
|
||||
```
|
||||
|
||||
**Response (200 OK):**
|
||||
@@ -142,7 +142,7 @@ Get detailed information for a specific product.
|
||||
|
||||
```http
|
||||
GET /api/v1/storefront/products/1
|
||||
Referer: http://localhost:8000/stores/wizamart/shop/products
|
||||
Referer: http://localhost:8000/stores/orion/shop/products
|
||||
```
|
||||
|
||||
**Response (200 OK):**
|
||||
@@ -200,7 +200,7 @@ Retrieve cart contents for a session.
|
||||
|
||||
```http
|
||||
GET /api/v1/storefront/cart/session-abc-123
|
||||
Referer: http://localhost:8000/stores/wizamart/shop/cart
|
||||
Referer: http://localhost:8000/stores/orion/shop/cart
|
||||
```
|
||||
|
||||
**Response (200 OK):**
|
||||
|
||||
Reference in New Issue
Block a user