diff --git a/nginx.conf.template b/nginx.conf.template index ae03f66..ab62a02 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -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 diff --git a/server/pages/templates/base.html b/server/pages/templates/base.html index 09deba1..ea7081b 100644 --- a/server/pages/templates/base.html +++ b/server/pages/templates/base.html @@ -26,9 +26,7 @@ - {{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")}} @@ -93,12 +91,9 @@
- {{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}}
Unknown surface: {{.Surface}}
{{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")}} diff --git a/src/js/sw/surfaces/login/hero.js b/src/js/sw/surfaces/login/hero.js index 3b7ec06..12e3920 100644 --- a/src/js/sw/surfaces/login/hero.js +++ b/src/js/sw/surfaces/login/hero.js @@ -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" />

- Your AI conversations,${html`
`}your infrastructure + Your platform,${html`
`}your infrastructure

- 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.

${PILLS.map(p => html`