Admin follow-ups: localised stats tab title, scanner names, close label, favicon hint
- Statistics view: the browser-tab title follows the admin language.
Payload's custom-view meta.title is one plain string and its custom-view
metadata ignores i18n, so the view renders <DocumentTitle> (/admin) with the
translated title; it re-applies the title while the view is open because
Next streams the English metadata in after hydration. adminDocumentTitle()
adds admin.meta.titleSuffix the way Payload does.
- Cookie scanner: CookieIntegration.label may be { en, pl, ... }. The built-in
names without a product name come from the shared admin texts
(cookieIntegration*, cookieSourceProject); the scan endpoint answers in the
request's admin language and stored source names use the scanning editor's.
- Maintenance notice: getConstructionMode(locale) returns `locale`; the "x"
close button gets a screen-reader name "Close" / "Zamknij" (locale and
closeLabel props; constructionCloseLabel exported).
- Favicon: FaviconCheck (/admin, afterInput on Site settings -> Site icon)
warns in the admin language when the image is under 48x48 or not square,
without blocking the save; validateFaviconField shares faviconProblems().
- Docs, AGENT.md and skills: the above, plus Next.js 16.4.1 or later as the
minimum safe version (AGENT.md 4.11, ipal-setup, ipal-upgrade).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6f32ea4cdb
commit
546806fe39
@@ -11,7 +11,7 @@ subpages (e.g. a brief), and everything else is blocked — no code changes, one
|
||||
|---|---|
|
||||
| Site under construction | turns the mode on |
|
||||
| Pages still available | pages that still open; **the home page is always available** |
|
||||
| Notice title / text / Close button label | popup content (per language); empty button → `×` |
|
||||
| Notice title / text / Close button label | popup content (per language); empty button → `×` with a screen-reader name in the page language ("Close" / "Zamknij") |
|
||||
|
||||
Fields in the SiteSettings global: group `construction` → `enabled`, `allowedPages` (relationship to the pages
|
||||
collection, hasMany), `title`, `message`, `buttonLabel` (localized).
|
||||
@@ -77,7 +77,9 @@ New fields in Site settings = a migration in the project (`payload migrate:creat
|
||||
Markdown / MCP without the filter even with the mode on:
|
||||
`createContentHelpers({ markdown: { isPathVisible: () => true }, mcp: { isPathVisible: () => true } })`;
|
||||
sitemap / llms.txt without the filter: `createContentHelpers({ underConstructionSeo: false })`.
|
||||
- **Override:** popup look through `classNames` (`overlay`, `dialog`, `title`, `message`, `button`);
|
||||
- **Override:** the `×` button's screen-reader name through `closeLabel` (default by `locale`, which defaults to
|
||||
`mode.locale` from `getConstructionMode(locale)`; `constructionCloseLabel(locale)` is the default);
|
||||
popup look through `classNames` (`overlay`, `dialog`, `title`, `message`, `button`);
|
||||
texts in the admin panel. Your own rule = your own `isPathVisible` function in the options above or in `createSearchRoute`.
|
||||
Access/hooks of the Site settings global: `ipalKit({ globalOverrides: { 'site-settings': … } })`.
|
||||
- **Extend:** `getConstructionMode(locale)` + `isPathVisibleIn` / `isPathAllowed` / `pathOf` /
|
||||
|
||||
Reference in New Issue
Block a user