From e427cd2eb3f6de27d2bedd4dec38515d628416d0 Mon Sep 17 00:00:00 2001 From: hitchhiker Date: Sat, 19 Apr 2025 19:26:03 +0200 Subject: [PATCH] Cleanup --- .env.development | 2 +- .env.template | 2 +- README.md | 4 ++-- docker-compose.yml | 2 +- docker-entrypoint.sh | 2 +- docs/README.md | 4 ++-- docs/authentication.md | 2 +- docs/client-env-vars.md | 12 ++++++------ docs/configuration.md | 6 +++--- docs/deployment.md | 4 ++-- index.html | 2 +- memory-bank/README.md | 2 +- memory-bank/projectbrief.md | 4 ++-- memory-bank/systemPatterns.md | 2 +- memory-bank/techContext.md | 2 +- public/app-config.js | 2 +- scripts/generate-app-config.js | 2 +- src/domains/auth/ui/AuthCallback.tsx | 2 +- src/domains/auth/ui/AuthProvider.tsx | 2 +- src/domains/auth/ui/LoginPage.tsx | 2 +- src/domains/dashboard/ui/Dashboard.tsx | 2 +- src/routes/index.jsx | 2 +- src/shared/ui/Layout/Header.tsx | 2 +- src/shared/ui/Layout/Sidebar.tsx | 2 +- 24 files changed, 35 insertions(+), 35 deletions(-) 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 @@ - Merchant Operator App + App
diff --git a/memory-bank/README.md b/memory-bank/README.md index a13ff85..3fe6112 100644 --- a/memory-bank/README.md +++ b/memory-bank/README.md @@ -16,7 +16,7 @@ I am an expert software engineer with a unique characteristic: my memory resets - **Exports**: Use named exports only, avoid default exports ### Project Summary -- **Name**: Merchant Operator Web Application +- **Name**: Web Application - **Type**: Client-side only React application for Merchant management - **Core Features**: Menu management, order tracking, Merchant operations - **Tech Stack**: React, TypeScript, Tailwind CSS, Effector, Vite diff --git a/memory-bank/projectbrief.md b/memory-bank/projectbrief.md index b8d8831..0603522 100644 --- a/memory-bank/projectbrief.md +++ b/memory-bank/projectbrief.md @@ -1,9 +1,9 @@ -# Project Brief: Merchant Operator Web Application +# Project Brief: Web Application ## Project Overview A client-side React application for Merchant owners to manage menus, track orders, and handle operations. -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. ## Core Features diff --git a/memory-bank/systemPatterns.md b/memory-bank/systemPatterns.md index bd8a34f..4cf4536 100644 --- a/memory-bank/systemPatterns.md +++ b/memory-bank/systemPatterns.md @@ -1,4 +1,4 @@ -# System Patterns: Merchant Operator Web Application +# System Patterns: Web Application ## Architecture Overview The application follows a domain-driven, Effector-based Flux architecture. diff --git a/memory-bank/techContext.md b/memory-bank/techContext.md index 0f53b76..406a78e 100644 --- a/memory-bank/techContext.md +++ b/memory-bank/techContext.md @@ -1,4 +1,4 @@ -# Technical Context: Merchant Operator Web Application +# Technical Context: Web Application ## Technology Stack diff --git a/public/app-config.js b/public/app-config.js index 3f042c7..742de6d 100644 --- a/public/app-config.js +++ b/public/app-config.js @@ -1,7 +1,7 @@ // Runtime environment variables - Generated by generate-app-config.js window.appConfig = { apiUrl: "https://localhost:7205", - appName: "Merchant Operator App", + appName: "App", basePath: "/", debug: true, mapTileApiKey: "pk.19d62daa998822ac22861d96a0424b58", diff --git a/scripts/generate-app-config.js b/scripts/generate-app-config.js index 022543c..25fd875 100644 --- a/scripts/generate-app-config.js +++ b/scripts/generate-app-config.js @@ -94,7 +94,7 @@ if (!process.env.CLIENT_BASE_PATH) { configContent += ' basePath: "/",\n'; } if (!process.env.CLIENT_APP_NAME) { - configContent += ' appName: "Merchant Operator App",\n'; + configContent += ' appName: "App",\n'; } if (!process.env.CLIENT_DEBUG) { configContent += " debug: " + (isProduction ? "false" : "true") + ",\n"; diff --git a/src/domains/auth/ui/AuthCallback.tsx b/src/domains/auth/ui/AuthCallback.tsx index 7b538f1..07289f1 100644 --- a/src/domains/auth/ui/AuthCallback.tsx +++ b/src/domains/auth/ui/AuthCallback.tsx @@ -99,7 +99,7 @@ export const AuthCallback: React.FC = () => {
-

Merchant Operator

+

App

{status === "processing" && (
diff --git a/src/domains/auth/ui/AuthProvider.tsx b/src/domains/auth/ui/AuthProvider.tsx index 21a15f2..eaaf410 100644 --- a/src/domains/auth/ui/AuthProvider.tsx +++ b/src/domains/auth/ui/AuthProvider.tsx @@ -92,7 +92,7 @@ export const AuthProvider: React.FC = ({ children }) => {
-

Merchant Operator

+

App

diff --git a/src/domains/auth/ui/LoginPage.tsx b/src/domains/auth/ui/LoginPage.tsx index b0ebb4a..0ac732f 100644 --- a/src/domains/auth/ui/LoginPage.tsx +++ b/src/domains/auth/ui/LoginPage.tsx @@ -76,7 +76,7 @@ export const LoginPage: React.FC = () => {
-

Merchant Operator

+

App

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.

diff --git a/src/routes/index.jsx b/src/routes/index.jsx index ef7936a..a03576c 100644 --- a/src/routes/index.jsx +++ b/src/routes/index.jsx @@ -16,7 +16,7 @@ const LoginPage = () => { return (
-

Merchant Operator App

+

App

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 (
-
Merchant Operator
+
App
{user && ( diff --git a/src/shared/ui/Layout/Sidebar.tsx b/src/shared/ui/Layout/Sidebar.tsx index c191bd4..f9ee0b0 100644 --- a/src/shared/ui/Layout/Sidebar.tsx +++ b/src/shared/ui/Layout/Sidebar.tsx @@ -55,7 +55,7 @@ export const Sidebar: React.FC = () => {
-

© 2023 Merchant Operator

+

© 2023 App

);