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

@@ -1,6 +1,6 @@
# Request Flow
Complete journey of a request through the Wizamart platform, from client to response.
Complete journey of a request through the Orion platform, from client to response.
## Overview
@@ -42,8 +42,8 @@ graph TB
```http
# Shop page request (subdomain mode)
GET https://wizamart.platform.com/shop/products
Host: wizamart.platform.com
GET https://orion.platform.com/shop/products
Host: orion.platform.com
# API request
GET https://platform.com/api/v1/products?store_id=1
@@ -86,13 +86,13 @@ logger.info(f"Request: GET /shop/products from 192.168.1.100")
```python
# Input
host = "wizamart.platform.com"
host = "orion.platform.com"
path = "/shop/products"
# Detection logic
if host != settings.platform_domain:
# Subdomain detected
store_code = host.split('.')[0] # "wizamart"
store_code = host.split('.')[0] # "orion"
# Query database
store = db.query(Store).filter(
@@ -107,7 +107,7 @@ if host != settings.platform_domain:
**Request State After**:
```python
request.state.store = <Store: Wizamart>
request.state.store = <Store: Orion>
request.state.store_id = 1
request.state.clean_path = "/shop/products"
```
@@ -127,10 +127,10 @@ request.state.clean_path = "/shop/products"
app.include_router(shop_pages.router, prefix="/shop")
app.include_router(shop_pages.router, prefix="/stores/{store_code}/shop")
# Request: /stores/WIZAMART/shop/products
# Request: /stores/ORION/shop/products
# Matches: Second router (/stores/{store_code}/shop)
# Route: @router.get("/products")
# store_code available as path parameter = "WIZAMART"
# store_code available as path parameter = "ORION"
```
**Note:** Previous implementations used `PathRewriteMiddleware` to rewrite paths. This has been replaced with FastAPI's native routing via double router mounting.
@@ -194,7 +194,7 @@ if hasattr(request.state, 'store_id'):
request.state.theme = {
"primary_color": "#3B82F6",
"secondary_color": "#10B981",
"logo_url": "/static/stores/wizamart/logo.png",
"logo_url": "/static/stores/orion/logo.png",
"custom_css": "..."
}
```
@@ -289,7 +289,7 @@ async def shop_products_page(
<!DOCTYPE html>
<html>
<head>
<title>Wizamart - Products</title>
<title>Orion - Products</title>
<style>
:root {
--primary-color: #3B82F6;
@@ -298,7 +298,7 @@ async def shop_products_page(
</style>
</head>
<body>
<h1>Wizamart Shop</h1>
<h1>Orion Shop</h1>
<div class="products">
<div class="product-card">
<h2>Product 1</h2>
@@ -412,7 +412,7 @@ sequenceDiagram
Logging->>Store: Pass request
Store->>DB: Query store by subdomain
DB-->>Store: Store object
Note over Store: Set store, store_id, clean_path
Note over Store: Set store, store_id, clean_path
Store->>Path: Pass request
Note over Path: Path already clean
Path->>Context: Pass request
@@ -443,14 +443,14 @@ Initial State: {}
store_id: 1,
clean_path: "/shop/products"
}
After FrontendTypeMiddleware:
{
store: <Store: Orion>,
store_id: 1,
clean_path: "/shop/products",
frontend_type: FrontendType.STOREFRONT
}
}
After ThemeContextMiddleware:
{
@@ -458,14 +458,14 @@ After FrontendTypeMiddleware:
store_id: 1,
clean_path: "/shop/products",
frontend_type: FrontendType.STOREFRONT,
theme: {
theme: {
primary_color: "#3B82F6",
secondary_color: "#10B981",
logo_url: "/static/stores/orion/logo.png",
custom_css: "..."
}
}
```
```
## Performance Metrics