Skip to content

Commit 0e38e8c

Browse files
authored
Merge pull request #122 from sandialabs/powered-by-snl-atlas
Add "Powered By Sandia ATLAS" logo to lower right of Welcome Screen.
2 parents 194a23b + 5e071b8 commit 0e38e8c

File tree

9 files changed

+4127
-4058
lines changed

9 files changed

+4127
-4058
lines changed

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ ENVIRONMENT=development
5151
#############################################
5252

5353
# Frontend build-time app name (Vite will inject this into index.html)
54-
VITE_APP_NAME=Chat UI 13
54+
VITE_APP_NAME=ATLAS
55+
56+
# Frontend build-time flag to show the "Powered By Sandia ATLAS" badge
57+
# on the welcome screen. Other deployments can set this to false
58+
# to hide the badge while still customizing the main logo.
59+
VITE_FEATURE_POWERED_BY_ATLAS=false
5560

5661
# OpenTelemetry configuration (optional - for future use)
5762
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317

agent_start.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ setup_environment() {
6868
cd "$PROJECT_ROOT"
6969
. .venv/bin/activate
7070

71+
# Load environment variables from .env if present
72+
if [ -f "$PROJECT_ROOT/.env" ]; then
73+
set -a
74+
. "$PROJECT_ROOT/.env"
75+
set +a
76+
fi
77+
7178
echo "Setting MCP_EXTERNAL_API_TOKEN for testing purposes."
7279
if [ -z "$MCP_EXTERNAL_API_TOKEN" ]; then
7380
export MCP_EXTERNAL_API_TOKEN="test-api-key-123"
@@ -100,7 +107,11 @@ build_frontend() {
100107
echo "Building frontend..."
101108
cd "$PROJECT_ROOT/frontend"
102109
npm install
103-
export VITE_APP_NAME="Chat UI"
110+
# Use VITE_* values from the environment / .env instead of hardcoding.
111+
# If VITE_APP_NAME is not already set, fall back to the example default.
112+
if [ -z "$VITE_APP_NAME" ]; then
113+
export VITE_APP_NAME="Chat UI 13"
114+
fi
104115
npm run build
105116
cd "$PROJECT_ROOT"
106117
}

backend/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ async def logo_png():
198198
path = static_dir / "logo.png"
199199
return FileResponse(str(path))
200200

201+
@app.get("/sandia-powered-by-atlas.png")
202+
async def logo2_png():
203+
path = static_dir / "sandia-powered-by-atlas.png"
204+
return FileResponse(str(path))
205+
206+
201207
# WebSocket endpoint for chat
202208
@app.websocket("/ws")
203209
async def websocket_endpoint(websocket: WebSocket):

docs/admin/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Key settings in the `.env` file include:
3232
* **API Keys**: `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc.
3333
* **Authentication Header**: `AUTH_USER_HEADER` configures the HTTP header name used to extract the authenticated username from your reverse proxy (default: `X-User-Email`).
3434
* **Feature Flags**: Enable or disable major features like `FEATURE_AGENT_MODE_AVAILABLE`.
35+
* **Branding Flags**: Control frontend branding such as `VITE_APP_NAME` and the optional `VITE_FEATURE_POWERED_BY_ATLAS` badge on the welcome screen.
3536
* **S3 Connection**: Configure the connection to your S3-compatible storage. For local testing, you can set `USE_MOCK_S3=true` to use an in-memory mock instead of a real S3 bucket. **This mock must never be used in production.**
3637
* **Log Directory**: The `APP_LOG_DIR` variable points to the folder where the application log file (`app.jsonl`) will be stored. This path must be updated to a valid directory in your deployment environment.
3738
* **Security Headers**: Configure Content Security Policy (CSP) and other security headers. See the Security Configuration section below for details.

docs/archive/app_name.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This document explains how to configure the application name that appears in the
77
The app name can be configured in two places:
88
- **Frontend (Browser Title)**: Set at build time using `VITE_APP_NAME`
99
- **Backend (API Response)**: Set at runtime using `APP_NAME`
10+
- **Optional Powered-By Badge**: Controlled via `VITE_FEATURE_POWERED_BY_ATLAS`
1011

1112
## Frontend Configuration (Browser Title)
1213

@@ -25,6 +26,14 @@ cd frontend
2526
npm run build
2627
```
2728

29+
You can also control whether the "Powered By Sandia ATLAS" badge appears on the welcome screen:
30+
31+
```bash
32+
VITE_FEATURE_POWERED_BY_ATLAS=true # show powered-by badge
33+
```
34+
35+
Other deployments can set this flag to `false` (or omit it) to hide the badge while still customizing the primary logo and app name.
36+
2837
### Docker Builds
2938

3039
Use the `VITE_APP_NAME` build argument:

0 commit comments

Comments
 (0)