Add editable display title (was hardcoded to VITE_HOTEL_NAME)

New `config` table + routes/config.js: GET /api/public/config (no auth,
Display.tsx needs it with no session) and PUT /api/admin/config (authed +
'settings' cap). A blank title clears the override and falls back to the
build-time VITE_HOTEL_NAME, so an unconfigured install still shows
something sensible. Admin.tsx gets a "Display title" field above the
existing status card.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-08-25 12:53:09 +00:00
parent 0a6eec65e7
commit 7f3ff4495c
8 changed files with 151 additions and 10 deletions

View file

@ -186,6 +186,7 @@ html, body, #root { height: 100%; margin: 0; font-size: 14px; }
.wx-admin-actions { display: flex; gap: 10px; margin-top: 16px; }
.wx-admin-link { color: var(--gold); text-decoration: none; font-weight: 500; }
.wx-admin-link:hover { text-decoration: underline; }
.field-hint { font-size: 11.5px; color: var(--text-mid); margin-top: 3px; }
/* buttons — same convention as every other app */
.btn {