From b1117d601acc58f9ef9f11997b41ca82c385d2a9 Mon Sep 17 00:00:00 2001
From: Coracle-Bot
Date: Wed, 9 Sep 2026 21:40:45 +0000
Subject: [PATCH] Use PLATFORM_NAME instead of hard-coding the app name
---
AGENTS.md | 1 +
src/app/components/HomeHosting.svelte | 5 +++--
src/app/title.ts | 6 +-----
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/AGENTS.md b/AGENTS.md
index a157a417..6bb24c6a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -126,6 +126,7 @@ callbacks and hot paths.
**CRITICAL Code Style Guidelines:**
- **No `null`** - only use `undefined`
+- Never hard-code the app's name. The brand is a build-time `VITE_PLATFORM_*` variable, so user-facing copy interpolates `PLATFORM_NAME` from `@app/env`, and `PLATFORM_URL`, `PLATFORM_LOGO`, `PLATFORM_ABOUT` for the rest of it. Each is set by the deployment, so don't write a `"Flotilla"` fallback behind one either.
- Svelte 5 runes (`$state`, `$derived`, `$effect`) only in UI components
- TailwindCSS styling with css components customized by theme. See lib/components for examples.
- Comments, naming, conditionals and single-use indirection are covered by the Cleanup Pass above.
diff --git a/src/app/components/HomeHosting.svelte b/src/app/components/HomeHosting.svelte
index 30d8d40f..f39e4bfb 100644
--- a/src/app/components/HomeHosting.svelte
+++ b/src/app/components/HomeHosting.svelte
@@ -12,6 +12,7 @@
import {user} from "@app/core"
import {pushModal} from "@app/modal"
import {HostingError, listTenantRelays, type HostedRelay} from "@app/hosting"
+ import {PLATFORM_NAME} from "@app/env"
const {class: className = ""}: {class?: string} = $props()
@@ -58,8 +59,8 @@
{#if relays.length > 0}
Spin up another hosted space — rooms, calendar and moderation included.
{:else}
- Don't wait for an invite. Flotilla Hosting sets up a space with rooms, calendar and
- moderation in about a minute.
+ Don't wait for an invite. {PLATFORM_NAME} Hosting sets up a space with rooms, calendar and moderation
+ in about a minute.
{/if}