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:
2026-02-14 16:46:56 +01:00
parent 34ee7bb7ad
commit e9253fbd84
184 changed files with 1227 additions and 1228 deletions

View File

@@ -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