diff --git a/docs/api/admin.md b/docs/api/admin.md index b534c0c..445e7ce 100644 --- a/docs/api/admin.md +++ b/docs/api/admin.md @@ -41,7 +41,8 @@ removes the row. `PUT /settings` is validated by `GeneralSettingsSchema` (zod): -* `pageTitle` 1–120 chars +* `pageTitle` is trimmed server-side and must be 1–120 chars after + trimming (whitespace-only values are rejected). * `logo` up to 2048 chars (a public URL — uploaded separately) * `welcomeMarkdown` up to 64 000 chars * `themeKey` is one of `THEME_IDS` diff --git a/docs/guides/admin-general-settings.md b/docs/guides/admin-general-settings.md index b5442dc..b9feecf 100644 --- a/docs/guides/admin-general-settings.md +++ b/docs/guides/admin-general-settings.md @@ -38,7 +38,7 @@ The page is a single reactive form with these controls (every | Label | `data-testid` | Backend field | Notes | |------------------------|---------------------------|-------------------------|-------| -| Page title | `general-pageTitle` | `pageTitle` | Required, max 120 chars. | +| Page title | `general-pageTitle` | `pageTitle` | Required, non-blank, max 120 chars; trimmed server-side. | | Logo (file picker) | `general-logo-file` | `logo` (public URL) | Uploads via `POST /api/v1/uploads/logo`; the returned `publicUrl` is bound to a hidden input `general-logo`. | | Logo upload status | `general-logo-uploading` / `general-logo-error` / `general-logo-current` | — | Inline status text under the file picker. | | Global theme | `general-themeKey` | `themeKey` | `