Docs: admin languages and texts, wording rule for agents, new screen names

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-27 15:46:25 +01:00
co-authored by Claude Opus 5.5
parent 6b46bc0c14
commit 0a2374db18
45 changed files with 443 additions and 360 deletions
+5 -5
View File
@@ -7,7 +7,7 @@ reads the secret server-side.
## Config
No options — the `turnstileSiteKey` / `turnstileSecretKey` fields are in
SiteIntegrations (Turnstile tab). The editor enters the keys in the panel (env fallback:
SiteIntegrations (Spam protection tab). The editor enters the keys in the panel (env fallback:
`NEXT_PUBLIC_TURNSTILE_SITE_KEY` / `TURNSTILE_SECRET_KEY`).
**On = both keys set.** Then the widget shows, and `submitForm`
@@ -95,9 +95,9 @@ and for `degraded` (a problem on our side, see below) — depending on
> always → `reason: 'turnstile'`.
On `degraded` the panel shows the problem:
- **Dashboard** — a red "Integration problem…" alert with a link to Site Integrations
- **Dashboard** — a red "Integration problem…" alert with a link to Site integrations
(`admin.components.beforeDashboard`, wired by the plugin automatically),
- **Site Integrations → Turnstile** — a banner with the cause, code and time.
- **Site integrations → Turnstile** — a banner with the cause, code and time.
The server saves the status when it verifies a form (no cron), at most once per 10 min
while the error lasts, and at once when the state changes. Saving new keys in the panel
@@ -222,11 +222,11 @@ full control or have an unusual case. The provider is a convenience layer over i
## Turn off, override, extend
- **Turn off:** leave both keys empty (panel and env) → no widget, `submitForm` skips the check.
The Turnstile fields in Site Integrations are currently always added.
The Turnstile fields in Site integrations are currently always added.
- **Fail closed:** `turnstileOnConfigError: 'reject'` in `submitForm` / `createSubmitAction`
(or `onConfigError: 'reject'` in `verifyTurnstile`).
- **Keys:** the panel wins; empty field → env `NEXT_PUBLIC_TURNSTILE_SITE_KEY` / `TURNSTILE_SECRET_KEY`.
- **Access to the keys:** Site Integrations is admin-only (read and update); change it with
- **Access to the keys:** Site integrations is admin-only (read and update); change it with
`ipalKit({ globalOverrides: { 'site-integrations': { access: … } } })` — keep `read` restricted, the secret lives there.
- **Look:** `theme` on `<Turnstile>` / `<TurnstileWidget theme>`, `turnstileTheme` in `RenderForm` / `BuilderForm`.
- **Your own integration:** `checkTurnstile` (full `pass` / `reject` / `degraded` classification),