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

@@ -22,7 +22,7 @@
## System Overview
The Wizamart platform uses a **context-based authentication system** with three isolated security domains:
The Orion platform uses a **context-based authentication system** with three isolated security domains:
- **Admin Portal** - Platform administration and management
- **Store Portal** - Multi-tenant shop management

View File

@@ -73,7 +73,7 @@ from app.exceptions import (
## Error Response Format
All custom exceptions (inheriting from `WizamartException`) return a structured JSON format:
All custom exceptions (inheriting from `OrionException`) return a structured JSON format:
```json
{

View File

@@ -1,6 +1,6 @@
# API Overview
The Wizamart API provides comprehensive endpoints for managing products, shops, users, and marketplace imports. This section provides high-level guidance and concepts for working with our API.
The Orion API provides comprehensive endpoints for managing products, shops, users, and marketplace imports. This section provides high-level guidance and concepts for working with our API.
## Interactive Documentation
@@ -15,7 +15,7 @@ For hands-on API exploration and testing, use our interactive documentation:
### Base URL
```
Production: https://wizamart.com/api/v1
Production: https://orion.lu/api/v1
Development: http://localhost:8000/api/v1
```
@@ -182,4 +182,4 @@ X-RateLimit-Reset: 1640995200
- **[Authentication Guide](authentication.md)** - Learn about API authentication
- **[Error Handling](error-handling.md)** - Understanding API errors
- **[Rate Limiting](rate-limiting.md)** - Rate limiting details
- **[Interactive Docs](http://localhost:8000/docs)** - Try the API live
- **[Interactive Docs](http://localhost:8000/docs)** - Try the API live

View File

@@ -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):**