diff --git a/.env.development b/.env.development index f65f92c..665556b 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ CLIENT_BASE_PATH=/ CLIENT_API_URL=https://localhost:7205 -CLIENT_APP_NAME=Merchant Operator App +CLIENT_APP_NAME=App CLIENT_DEBUG=true CLIENT_MAP_TILE_ENDPOINT=https://tiles.locationiq.com/v3/streets/vector.json CLIENT_MAP_TILE_API_KEY=pk.19d62daa998822ac22861d96a0424b58 \ No newline at end of file diff --git a/.env.template b/.env.template index d800135..fda8cbe 100644 --- a/.env.template +++ b/.env.template @@ -1,6 +1,6 @@ CLIENT_BASE_PATH=/ CLIENT_API_URL=https:// -CLIENT_APP_NAME=Merchant Operator App +CLIENT_APP_NAME=App CLIENT_DEBUG=true CLIENT_MAP_TILE_ENDPOINT=https:// CLIENT_MAP_TILE_API_KEY= diff --git a/README.md b/README.md index c73aa97..0388efe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Merchant Operator Web +# Web -Merchant Operator App is a browser-only React SPA that lets local businesses create, edit, and audit their own merchant records on Local—a community-commerce network running on the peer-to-peer FogBox stack. Its mission is to decentralize ownership of commercial data and return technological control to merchants and their customers. Data is written locally first, then synchronised through FogBox nodes—no central server—ensuring autonomy and resilience. Open, well-documented APIs let any citizen-developer extend, fork, or integrate the codebase without gatekeepers. +App is a browser-only React SPA that lets local businesses create, edit, and audit their own merchant records on Local—a community-commerce network running on the peer-to-peer FogBox stack. Its mission is to decentralize ownership of commercial data and return technological control to merchants and their customers. Data is written locally first, then synchronised through FogBox nodes—no central server—ensuring autonomy and resilience. Open, well-documented APIs let any citizen-developer extend, fork, or integrate the codebase without gatekeepers. ## Architecture diff --git a/docker-compose.yml b/docker-compose.yml index 1df166a..de399a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: environment: - CLIENT_BASE_PATH=${CLIENT_BASE_PATH:-/} - CLIENT_API_URL=${CLIENT_API_URL:-} - - CLIENT_APP_NAME=${CLIENT_APP_NAME:-Merchant Operator App} + - CLIENT_APP_NAME=${CLIENT_APP_NAME:-App} - CLIENT_DEBUG=${CLIENT_DEBUG:-false} labels: - "traefik.enable=true" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7122e8e..4bd45b2 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -65,7 +65,7 @@ if [ -d "$TARGET_DIR" ]; then # [ -f "$TEMP_DIR/apiUrl" ] || echo "https://localhost:7205" >"$TEMP_DIR/apiUrl" [ -f "$TEMP_DIR/basePath" ] || echo "/" >"$TEMP_DIR/basePath" - [ -f "$TEMP_DIR/appName" ] || echo "Merchant Operator App" >"$TEMP_DIR/appName" + [ -f "$TEMP_DIR/appName" ] || echo "App" >"$TEMP_DIR/appName" [ -f "$TEMP_DIR/debug" ] || echo "false" >"$TEMP_DIR/debug" echo "Generating app-config.js..." diff --git a/docs/README.md b/docs/README.md index 0fca78b..30239e0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,8 +1,8 @@ -# Merchant Operator App Documentation +# App Documentation ## Project Overview -Merchant Operator App is a browser-only React SPA for local businesses to manage their merchant records on a decentralized commerce network. It uses a peer-to-peer architecture with local-first data storage and synchronization through FogBox nodes. +App is a browser-only React SPA for local businesses to manage their merchant records on a decentralized commerce network. It uses a peer-to-peer architecture with local-first data storage and synchronization through FogBox nodes. ## Agent Guidelines diff --git a/docs/authentication.md b/docs/authentication.md index 313e148..f0a7c92 100644 --- a/docs/authentication.md +++ b/docs/authentication.md @@ -1,6 +1,6 @@ # Authentication Documentation -This document explains the authentication setup for the Merchant Operator App. +This document explains the authentication setup for the App. ## OIDC Authentication diff --git a/docs/client-env-vars.md b/docs/client-env-vars.md index dcf57bb..938032c 100644 --- a/docs/client-env-vars.md +++ b/docs/client-env-vars.md @@ -10,7 +10,7 @@ The application uses the following client-side environment variables, all prefix |---------------------|--------------------------------------------|-------------------------| | `CLIENT_API_URL` | Base URL for backend API requests | `https://localhost:7205`| | `CLIENT_BASE_PATH` | Base path for client-side routing | `/` | -| `CLIENT_APP_NAME` | Application name displayed in UI | `Merchant Operator App` | +| `CLIENT_APP_NAME` | Application name displayed in UI | `App` | | `CLIENT_DEBUG` | Enable debug mode | `false` | ## How to Set Variables @@ -26,7 +26,7 @@ Example `.env.development`: ``` CLIENT_BASE_PATH=/ CLIENT_API_URL=https://localhost:7205 -CLIENT_APP_NAME=Merchant Operator App +CLIENT_APP_NAME=App CLIENT_DEBUG=true ``` @@ -44,7 +44,7 @@ services: environment: - CLIENT_API_URL=https://api.example.com - CLIENT_BASE_PATH=/merchant-app - - CLIENT_APP_NAME=Merchant Operator App + - CLIENT_APP_NAME=App - CLIENT_DEBUG=false ``` @@ -58,7 +58,7 @@ services: environment: - CLIENT_API_URL=https://api.example.com - CLIENT_BASE_PATH=/merchant-app - - CLIENT_APP_NAME=Merchant Operator App + - CLIENT_APP_NAME=App - CLIENT_DEBUG=false ``` @@ -70,7 +70,7 @@ Create a `.env` file in the same directory as your `docker-compose.yml`: # .env CLIENT_API_URL=https://api.example.com CLIENT_BASE_PATH=/merchant-app -CLIENT_APP_NAME=Merchant Operator App +CLIENT_APP_NAME=App CLIENT_DEBUG=false # ... other variables ``` @@ -78,7 +78,7 @@ CLIENT_DEBUG=false #### Using Docker run command ```bash -docker run -e CLIENT_BASE_PATH=/merchant-app -e CLIENT_API_URL=https://api.example.com -e CLIENT_APP_NAME="Merchant Operator App" -e CLIENT_DEBUG=false your-image-name +docker run -e CLIENT_BASE_PATH=/merchant-app -e CLIENT_API_URL=https://api.example.com -e CLIENT_APP_NAME="App" -e CLIENT_DEBUG=false your-image-name ``` ## How Runtime Environment Variables Work diff --git a/docs/configuration.md b/docs/configuration.md index 162a760..f4d1f99 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1,6 +1,6 @@ -# Merchant Operator App Configuration +# App Configuration -This document describes the configuration options and mechanisms used in the Merchant Operator App. +This document describes the configuration options and mechanisms used in the App. ## Environment Variables @@ -30,7 +30,7 @@ In production (Docker), environment variables are loaded from the container envi |----------------------|-------------|---------------| | `CLIENT_API_URL` | URL of the API server | Required, or can be set to "DETECT" for auto-detection | | `CLIENT_BASE_PATH` | Base path of the application | "/" | -| `CLIENT_APP_NAME` | Name of the application | "Merchant Operator App" | +| `CLIENT_APP_NAME` | Name of the application | "App" | | `CLIENT_DEBUG` | Enable debug mode | "false" | | `CLIENT_MAP_TILE_ENDPOINT` | Endpoint for map tiles | "" | | `CLIENT_MAP_TILE_API_KEY` | API key for map tiles | "" | diff --git a/docs/deployment.md b/docs/deployment.md index 73e516b..b3d23ed 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -25,7 +25,7 @@ cp .env.template .env |---------------------|--------------------------------------------|-------------------------| | CLIENT_BASE_PATH | Base path where the app will be served | `/` | | CLIENT_API_URL | Base URL for backend API | `https://localhost:7205`| -| CLIENT_APP_NAME | Application name displayed in UI | `Merchant Operator App` | +| CLIENT_APP_NAME | Application name displayed in UI | `App` | | CLIENT_DEBUG | Enable debug mode | `false` | | ENABLE_TLS | Whether to enable TLS | `false` | | TRAEFIK_ENTRYPOINT | Traefik entrypoint to use | `web` | @@ -60,7 +60,7 @@ services: environment: - CLIENT_BASE_PATH=/app - CLIENT_API_URL=https://api.example.com - - CLIENT_APP_NAME=Merchant Operator App + - CLIENT_APP_NAME=App - CLIENT_DEBUG=false - CLIENT_OIDC_AUTHORITY=https://auth.example.com - CLIENT_OIDC_CLIENT_ID=your-client-id diff --git a/index.html b/index.html index 5faf606..1e8f413 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ -
Sign in with your identity provider
diff --git a/src/domains/dashboard/ui/Dashboard.tsx b/src/domains/dashboard/ui/Dashboard.tsx index 485a818..7b230ee 100644 --- a/src/domains/dashboard/ui/Dashboard.tsx +++ b/src/domains/dashboard/ui/Dashboard.tsx @@ -17,7 +17,7 @@ export const Dashboard: React.FC = () => {Hello, {user?.name || "Merchant"}!
- Welcome to the Merchant Operator App. Use the sidebar to navigate + Welcome to the App. Use the sidebar to navigate to different sections.
Please log in to access the application
diff --git a/src/shared/ui/Layout/Header.tsx b/src/shared/ui/Layout/Header.tsx index 5ce0d2e..1fef3c3 100644 --- a/src/shared/ui/Layout/Header.tsx +++ b/src/shared/ui/Layout/Header.tsx @@ -14,7 +14,7 @@ export const Header: React.FC = () => { return (© 2023 Merchant Operator
+© 2023 App