You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,26 @@ This repository contains the source code for the TechTorque 2025 customer and em
48
48
npm run setup-hooks
49
49
```
50
50
This configures automatic linting on commit and build checking on push. See [GIT_HOOKS.md](GIT_HOOKS.md) for details.
51
+
52
+
### 🔌 Environment
53
+
54
+
- The frontend expects an API base to be available at runtime. You can configure this via the
55
+
`NEXT_PUBLIC_API_BASE_URL` environment variable. When not set, the runtime defaults to
56
+
`http://localhost:8080` (useful in development).
57
+
58
+
- The AI chat widget reaches the AI chat proxy at `/api/v1/ai/chat` (or `{{NEXT_PUBLIC_API_BASE_URL}}/api/v1/ai/chat` when the public API base is set). This ensures the frontend talks to the configured API gateway or the local Next.js proxy.
59
+
60
+
### 🎨 Theme & Styling (Centralized)
61
+
62
+
- A single global stylesheet lives at `src/app/globals.css` and contains all theme variables for light & dark mode, plus utility classes like:
- Theme switching is implemented using `src/app/contexts/ThemeContext.tsx` plus a small pre-hydration script in `src/app/layout.tsx` (so the app applies the saved system preference or previously saved theme before React mounts to avoid flashes).
68
+
69
+
- Quick checks added:
70
+
-`npm run check:theme` — verifies `globals.css` and `ThemeContext` contain expected hooks and variables.
71
+
-`npm run check:colors` — scans `src/` for hardcoded hex/rgb color usage (ignores `globals.css`).
72
+
73
+
If you're adding new UI colors, add variables to `src/app/globals.css` and use the semantic utility classes (or create new ones) — this keeps light/dark behavior centralized and consistent across the app.
0 commit comments