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>
This commit is contained in:
2026-03-26 15:04:04 +00:00
parent 9eb56ca7de
commit 2090842370
3 changed files with 14 additions and 20 deletions

View File

@@ -90,8 +90,10 @@ server {
}
# Fallback: serve frontend shell (SPA)
# alias strips the BASE_PATH prefix so /test/css/app.css → /usr/share/nginx/html/css/app.css
location ${BASE_PATH}/ {
try_files $uri $uri/ ${BASE_PATH}/index.html;
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
}
# Security headers

View File

@@ -26,9 +26,7 @@
<link rel="stylesheet" href="{{.BasePath}}/css/extension-surface.css?v={{.Version}}">
<link rel="stylesheet" href="{{.BasePath}}/css/sw-shell.css?v={{.Version}}">
<link rel="stylesheet" href="{{.BasePath}}/css/sw-debug.css?v={{.Version}}">
{{if eq .Surface "chat"}}{{template "css-chat" .}}{{end}}
{{if eq .Surface "notes"}}{{template "css-notes" .}}{{end}}
{{if eq .Surface "projects"}}{{template "css-projects" .}}{{end}}
{{/* gutted: css-chat, css-notes, css-projects templates removed */}}
{{/* v0.27.0: Extension surface CSS — loaded from /surfaces/{id}/css/main.css */}}
{{if and .Manifest (eq .Manifest.Source "extension")}}
<link rel="stylesheet" href="{{.BasePath}}/surfaces/{{.Surface}}/css/main.css?v={{.Version}}">
@@ -93,12 +91,9 @@
<div class="surface" id="surface">
<div class="surface-inner" id="surfaceInner">
{{if eq .Surface "chat"}}{{template "surface-chat" .}}
{{else if eq .Surface "admin"}}{{template "surface-admin" .}}
{{if eq .Surface "admin"}}{{template "surface-admin" .}}
{{else if eq .Surface "team-admin"}}{{template "surface-team-admin" .}}
{{else if eq .Surface "notes"}}{{template "surface-notes" .}}
{{else if eq .Surface "settings"}}{{template "surface-settings" .}}
{{else if eq .Surface "projects"}}{{template "surface-projects" .}}
{{else if and .Manifest (eq .Manifest.Source "extension")}}{{template "surface-extension" .}}
{{else}}<div style="padding:20px">Unknown surface: {{.Surface}}</div>
{{end}}
@@ -130,12 +125,9 @@
workflow-surfaces.js removed. All surfaces use Preact SDK boot().
Survivors: debug.js, repl.js (standalone, no old-layer deps). */}}
{{if eq .Surface "chat"}}{{template "scripts-chat" .}}{{end}}
{{if eq .Surface "admin"}}{{template "scripts-admin" .}}{{end}}
{{if eq .Surface "team-admin"}}{{template "scripts-team-admin" .}}{{end}}
{{if eq .Surface "notes"}}{{template "scripts-notes" .}}{{end}}
{{if eq .Surface "settings"}}{{template "scripts-settings" .}}{{end}}
{{if eq .Surface "projects"}}{{template "scripts-projects" .}}{{end}}
{{/* v0.27.0: Extension surface JS — loaded from /surfaces/{id}/js/main.js */}}
{{if and .Manifest (eq .Manifest.Source "extension")}}
<script type="module" nonce="{{.CSPNonce}}" src="{{.BasePath}}/surfaces/{{.Surface}}/js/main.js?v={{.Version}}"></script>

View File

@@ -9,12 +9,12 @@
const { html } = window;
const PILLS = [
{ icon: '\u{1F916}', label: 'Multi-Provider AI', cls: 'ac' },
{ icon: '\u{1F511}', label: 'Bring Your Own Key', cls: 'pu' },
{ icon: '\u{1F465}', label: 'Teams & Projects', cls: 'ac' },
{ icon: '\u{1F9E9}', label: 'Extensions', cls: 'pu' },
{ icon: '\u{1F50D}', label: 'Web Search Tools', cls: 'ac' },
{ icon: '\u{1F4DD}', label: 'Notes & Memory', cls: 'pu' },
{ icon: '\u{1F310}', label: 'Surfaces', cls: 'ac' },
{ icon: '\u{1F465}', label: 'Teams & RBAC', cls: 'pu' },
{ icon: '\u{1F517}', label: 'Connections', cls: 'ac' },
{ icon: '\u{2699}\u{FE0F}', label: 'Workflows', cls: 'pu' },
{ icon: '\u{1F4E6}', label: 'Package Registry', cls: 'ac' },
];
export function Hero({ base = '', version = '', env = null }) {
@@ -28,15 +28,15 @@ export function Hero({ base = '', version = '', env = null }) {
src="${base}/favicon.svg?v=${version}"
alt="Switchboard Core" />
<span class="login-hero-brand-text">
Chat <span class="hl">Switchboard</span>
Switchboard <span class="hl">Core</span>
</span>
</div>
<h1 class="login-anim login-anim-2">
Your AI conversations,${html`<br />`}your infrastructure
Your platform,${html`<br />`}your infrastructure
</h1>
<p class="login-hero-sub login-anim login-anim-3">
Self-hosted multi-provider chat with team collaboration,
BYOK privacy, and an extensible plugin system.
Self-hosted extensible platform with surfaces, packages,
team RBAC, and a workflow engine.
</p>
<div class="login-hero-pills login-anim login-anim-4">
${PILLS.map(p => html`