Commit Graph

4 Commits

Author SHA1 Message Date
e97bbbb601 Add welcome surface and user default surface preference
- Create welcome surface: topbar + getting-started card shown when
  no extension surfaces are installed. Admins see a link to Packages,
  non-admins see a message to contact their administrator.
- Update resolveDefaultSurface priority chain:
  user preference → global config → first extension → /welcome
- Register welcome as a core surface with authenticated auth
- Final fallback is now /welcome instead of /admin, breaking the
  infinite back-button loop

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 13:45:11 +00:00
5a1ca8cc39 fix nginx static assets under BASE_PATH sub-path
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Has been skipped
CI/CD / test-sqlite (push) Has been skipped
CI/CD / test-go-pg (push) Has been skipped
CI/CD / build-and-deploy (push) Successful in 34s
Regex cache-header locations (~* \.(css|js)$) used root directive,
which caused 404s when BASE_PATH is set (e.g., /test/css/app.css
looked for /usr/share/nginx/html/test/css/app.css). Moved regex
locations inside the alias block so they inherit the path stripping.
Also added healthz/ prefix match for liveness/readiness probes.

Tested with BASE_PATH=/test: health, login, CSS, JS all return 200.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:26:38 +00:00
2090842370 fix post-login blank page + rebrand login hero
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m18s
CI/CD / test-sqlite (push) Successful in 2m31s
CI/CD / build-and-deploy (push) Successful in 32s
- nginx: use alias for BASE_PATH fallback so static assets resolve
  correctly when deployed under a sub-path (fixes white page on K8s)
- base.html: remove dead template refs (chat, notes, projects) that
  caused html/template to fail silently with Content-Length: 0
- login hero: rebrand from "Chat Switchboard" to "Switchboard Core",
  update tagline and feature pills to reflect platform pivot

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:04:04 +00:00
10cfd147fe fix BASE_PATH routing: nginx template + runtime HTML injection
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m16s
CI/CD / test-sqlite (push) Successful in 2m31s
CI/CD / build-and-deploy (push) Successful in 33s
- nginx.conf → nginx.conf.template with ${BASE_PATH} in all locations
- NGINX_ENVSUBST_FILTER=BASE_PATH so nginx vars ($host, $uri) are preserved
- Entrypoint injects BASE_PATH into frontend HTML/JS (%%BASE_PATH%% → actual)
- Fixes: /test routes falling through to static SPA, %%BASE_PATH%% visible in URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:23:41 +00:00