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:
@@ -8,7 +8,7 @@
|
||||
|
||||
## What is This Document?
|
||||
|
||||
This document provides a comprehensive overview of the Wizamart frontend architecture, covering all three distinct frontend applications and the shared design patterns that ensure consistency, maintainability, and developer productivity across the entire platform.
|
||||
This document provides a comprehensive overview of the Orion frontend architecture, covering all three distinct frontend applications and the shared design patterns that ensure consistency, maintainability, and developer productivity across the entire platform.
|
||||
|
||||
This serves as the introduction to three detailed architecture documents:
|
||||
1. Admin Frontend Architecture
|
||||
@@ -19,7 +19,7 @@ This serves as the introduction to three detailed architecture documents:
|
||||
|
||||
## Platform Overview
|
||||
|
||||
Wizamart is a multi-tenant e-commerce marketplace platform with three distinct frontend applications, each serving different user groups:
|
||||
Orion is a multi-tenant e-commerce marketplace platform with three distinct frontend applications, each serving different user groups:
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
|
||||
@@ -185,16 +185,16 @@ The shop frontend supports THREE access methods:
|
||||
- Links: /shop/products, /shop/about, /shop/contact
|
||||
|
||||
2. **Subdomain** (Production)
|
||||
URL: https://wizamart.letzshop.com/shop/products
|
||||
URL: https://orion.letzshop.com/shop/products
|
||||
- Store uses platform subdomain
|
||||
- base_url = "/"
|
||||
- Links: /shop/products, /shop/about, /shop/contact
|
||||
|
||||
3. **Path-Based** (Development/Testing)
|
||||
URL: http://localhost:8000/stores/wizamart/shop/products
|
||||
URL: http://localhost:8000/stores/orion/shop/products
|
||||
- Store accessed via path prefix
|
||||
- base_url = "/stores/wizamart/"
|
||||
- Links: /stores/wizamart/shop/products, /stores/wizamart/shop/about
|
||||
- base_url = "/stores/orion/"
|
||||
- Links: /stores/orion/shop/products, /stores/orion/shop/about
|
||||
|
||||
⚠️ CRITICAL: All template links MUST use {{ base_url }}shop/ prefix
|
||||
|
||||
@@ -476,10 +476,10 @@ Example Endpoints:
|
||||
GET /api/v1/shop/content-pages/{slug} ← CMS page content
|
||||
|
||||
How Store Context Works:
|
||||
1. Browser makes API call from shop page (e.g., /stores/wizamart/shop/products)
|
||||
2. Browser automatically sends Referer header: http://localhost:8000/stores/wizamart/shop/products
|
||||
1. Browser makes API call from shop page (e.g., /stores/orion/shop/products)
|
||||
2. Browser automatically sends Referer header: http://localhost:8000/stores/orion/shop/products
|
||||
3. StoreContextMiddleware extracts store from Referer header
|
||||
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!
|
||||
|
||||
@@ -1285,8 +1285,8 @@ How It Works:
|
||||
4. Error template renders with correct base_url
|
||||
5. Links work for all access methods:
|
||||
- Domain: customshop.com → base_url = "/"
|
||||
- Subdomain: wizamart.platform.com → base_url = "/"
|
||||
- Path: localhost/stores/wizamart/ → base_url = "/stores/wizamart/"
|
||||
- Subdomain: orion.platform.com → base_url = "/"
|
||||
- Path: localhost/stores/orion/ → base_url = "/stores/orion/"
|
||||
|
||||
Benefits:
|
||||
✅ Error pages work correctly regardless of access method
|
||||
|
||||
@@ -77,8 +77,8 @@ base_url = "/"
|
||||
# Result: /shop/products, /shop/cart, etc.
|
||||
|
||||
# For path-based access
|
||||
base_url = "/stores/wizamart/"
|
||||
# Result: /stores/wizamart/shop/products, /stores/wizamart/shop/cart, etc.
|
||||
base_url = "/stores/orion/"
|
||||
# Result: /stores/orion/shop/products, /stores/orion/shop/cart, etc.
|
||||
```
|
||||
|
||||
### Template Links
|
||||
@@ -116,7 +116,7 @@ base_url = "/stores/wizamart/"
|
||||
### Path-Based Access (Development)
|
||||
|
||||
```
|
||||
http://localhost:8000/stores/wizamart/
|
||||
http://localhost:8000/stores/orion/
|
||||
├── / (root) → Landing Page OR redirect to shop
|
||||
├── /shop/ → Shop Homepage
|
||||
├── /shop/products → Product Catalog
|
||||
@@ -131,7 +131,7 @@ http://localhost:8000/stores/wizamart/
|
||||
### Subdomain Access (Production)
|
||||
|
||||
```
|
||||
https://wizamart.platform.com/
|
||||
https://orion.platform.com/
|
||||
├── / (root) → Landing Page OR redirect to shop
|
||||
├── /shop/ → Shop Homepage
|
||||
├── /shop/products → Product Catalog
|
||||
|
||||
Reference in New Issue
Block a user