refactor: centralize hotel name fallback via FALLBACK_HOTEL_NAME

Route all user-facing Atom hotel defaults through resolveHotelName (settings then HOTEL_NAME env then brand constant). Exclude Playwright e2e from tsconfig until deps are installed.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
2026-07-22 18:45:59 +02:00
co-authored by Cursor
parent 6b2819aa20
commit e00e9ca2dc
31 changed files with 113 additions and 56 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* Single hardcoded fallback hotel brand.
* Override order at runtime:
* 1. website_settings.hotel_name
* 2. HOTEL_NAME env
* 3. this constant
*
* Safe for client components (no env / DB imports).
*/
export const FALLBACK_HOTEL_NAME = "Atom";