1.17.1 notes: the sign-in logo as 1.17.0 shows it (an SVG too, no plate)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1f65e1c97f
commit
726f028e9f
+9
-7
@@ -33,8 +33,8 @@ once there are more than 20.
|
||||
> - **Sites with `whiteLabel`: the panel's sign-in page has a new look** — a dark panel with the client's logo
|
||||
> (Site settings → Logo) or the site's name beside the form, on login and the 2FA screens. **Editors can no longer
|
||||
> change the site's name, logo and icon** in Site settings (admins can; `whiteLabel: { brandAccess: 'editor' }`
|
||||
> gives it back). **An SVG logo is not shown on the sign-in screens** (the site's name is; `signIn: { svgLogo: true }`
|
||||
> allows it). A dark logo: `signIn: { logoPlate: true }`. The old screens: `whiteLabel: { signIn: false }`.
|
||||
> gives it back). **Every logo that showed on the login screen before shows on the new screens**, an SVG too (as a
|
||||
> picture). No plate under the logo: a logo with dark letters needs `signIn: { logoPlate: true }`. The old screens: `whiteLabel: { signIn: false }`.
|
||||
> Forgot / reset password, first user and logout get the look with **one config line**,
|
||||
> `whiteLabel: { signIn: { allScreens: true } }`, and `pnpm payload generate:importmap`.
|
||||
> - **2FA:** correct codes are never refused any more (only wrong ones count towards the limit); several attempts at
|
||||
@@ -101,11 +101,13 @@ once there are more than 20.
|
||||
"unauthorized". Adds the provider `SignInLook` (one import-map entry: `pnpm payload generate:importmap`). The
|
||||
project starter writes it for new sites. A production start that does not find the entry in `importMap.js`
|
||||
leaves the provider out and logs what to run; the panel keeps working.
|
||||
- **The logo follows IAWL's rules:** JPEG, PNG, WebP, AVIF or GIF; fetched and checked by its bytes before it is
|
||||
printed (at most 512 KB; a deleted or broken file gives the name); fits 240 × 72, served from a generated size
|
||||
at least twice as wide when the media collection has one; alternative text = the site's name.
|
||||
- **The logo:** whatever Site settings → Logo holds, an SVG too, as an `<img>`; fits 240 × 72 (it was up to
|
||||
420 × 120), served from a generated size at least twice as wide when the media collection has one; alternative
|
||||
text = the site's name. Its file is asked once before it is printed (no redirect followed, 4 s, 512 KB): a file
|
||||
that is gone, or is no picture, gives the site's name instead of a broken picture; in any doubt the upload is
|
||||
believed.
|
||||
- **Options:** `signIn.accent` (hex colour of the button, links and focus ring), `signIn.logoPlate` (a white plate),
|
||||
`signIn.svgLogo` (allow an SVG logo), `signIn.checkLogo: false`, `signIn.languages: false`,
|
||||
`signIn.svgLogo: false` (refuse an SVG logo), `signIn.checkLogo: false`, `signIn.languages: false`,
|
||||
`whiteLabel.brandAccess` (`'admin'` with the look, `'editor'` as before; field-level access, no schema change).
|
||||
CSS variables `--iapl-signin-*` for a project's `custom.scss`.
|
||||
- **Language links before sign-in:** `GET /api/ipal/admin-language?lng=<code>` writes Payload's language cookie for
|
||||
@@ -114,7 +116,7 @@ once there are more than 20.
|
||||
- **The 2FA code boxes have names** for screen readers ("Digit 2 of 6") and ask a phone for the numeric keyboard
|
||||
(with the sign-in look).
|
||||
- Exports: `SignInPanel`, `SignInLook` (`/admin`); `resolveSignInLook`, `loadSignInBrand`, `signInLogo`,
|
||||
`signInName`, `checkLogoFile`, `fitLogo`, `isSvgUpload`, `SIGN_IN_LOGO_TYPES`, `languageLinks`, `LANGUAGE_NAMES`, `signInCss`, `isHexColour`,
|
||||
`signInName`, `checkLogoFile`, `fitLogo`, `isSvgUpload`, `languageLinks`, `LANGUAGE_NAMES`, `signInCss`, `isHexColour`,
|
||||
`signInProviderActive`, `buildAdminLanguageEndpoint`, `adminPathFromReferer`, `SIGN_IN_LOOK`, `SIGN_IN_STYLE_ID`,
|
||||
`SIGN_IN_LOGO_BOX`, `SIGN_IN_NAME_MAX`, `ADMIN_LANGUAGE_PATH` and their types.
|
||||
- **`routes:check`** — every public route (REST, GraphQL, Next route files) against a committed snapshot with one
|
||||
|
||||
@@ -687,7 +687,7 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 77 | **1.17.0 — cookie banner at first paint** — the banner appeared seconds after the page (after hydration) and was the LCP element on text pages; or after the update an e2e test finds a hidden `[data-ipal="banner"]` for a returning visitor; or with a nonce CSP the console reports a refused inline script | Nothing to run: the banner is now in the server HTML and an inline script shows or hides it before the first paint; pages stay static; consent, tags and the log are unchanged. Remove a project "mounted" wrapper around the banner. Nonce CSP: `<SiteProviders nonce>`. Tailwind 3 with a `classNames.root` that sets `display`: `[data-ipal="banner"][hidden] { display: none !important }`. Old behaviour: `<CookieBanner firstPaint={false} />`; exact HTML on a dynamic site: `consentCookie` | `iapl-upgrade` "→ 1.17.0, cookie banner at first paint", consent.md "First paint" |
|
||||
| 78 | **1.17.0 — consent compliance** — after the update "Reject" looks like "Accept all"; a browser with Global Privacy Control sees no banner; *Privacy → Consent records* fills with every choice; or on Postgres / SQLite the log says "the consent-records table does not exist" and doctor reports `consent-log-migration` | MongoDB: nothing to run. Postgres / SQLite without the log before: `pnpm payload migrate:create consent-log` + apply in the same deploy, or `iapl({ consentLog: false })`. `generate:types`. Opt-outs: `equalChoice={false}`, `gpc="ask"` / `gpc={false}`, `consentLog: false`, `logEndpoint={false}` | `iapl-upgrade` "→ 1.17.0, consent compliance", consent.md "Compliance defaults" |
|
||||
| 79 | **1.17.1 — security** — the start stops with "`[iapl] … must be …`" naming an option; or `requireRole('…')` throws; or an admin's `where` on `smtpPassword` / `turnstileSecretKey` answers `400 QueryError` | Fix the named value (security.md "Switches are read strictly"); role names are `user`, `editor`, `admin`. The query refusal is the fix (write-only secrets cannot be named in a query). With versions on for Site integrations and a doubt about an admin account: change the SMTP password and the Turnstile key | CHANGELOG 1.17.1 "Read before upgrading" 1–2, `iapl-upgrade` "→ 1.17.1, security" |
|
||||
| 80 | **1.17.1 — the sign-in look** — after the update the login and 2FA screens show a dark panel with the logo or the site's name; an editor cannot change the logo or name; an SVG logo shows the name; forgot / reset password look as before | Nothing required. `whiteLabel: { signIn: false }` (old screens), `{ brandAccess: 'editor' }`, `{ signIn: { svgLogo: true, logoPlate: true } }`; the other screens: `signIn: { allScreens: true }` + `pnpm payload generate:importmap`. No `serverURL` → no logo in the link preview: set it | `iapl-upgrade` "→ 1.17.1, the sign-in look", white-label.md "The sign-in screens" |
|
||||
| 80 | **1.17.1 — the sign-in look** — after the update the login and 2FA screens show a dark panel with the logo or the site's name; an editor cannot change the logo or name; forgot / reset password look as before | Nothing required. `whiteLabel: { signIn: false }` (old screens), `{ brandAccess: 'editor' }`, `{ signIn: { logoPlate: true } }` (a dark logo), `{ signIn: { svgLogo: false } }`; the other screens: `signIn: { allScreens: true }` + `pnpm payload generate:importmap`. No `serverURL` → no logo in the link preview: set it | `iapl-upgrade` "→ 1.17.1, the sign-in look", white-label.md "The sign-in screens" |
|
||||
| 81 | **1.17.1 — proxy matcher** — `iapl-doctor` warns `proxy-matcher`; pages such as `/administracja` or `/apis` get no locale redirect or proxy CSP | `src/proxy.ts`: `matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)']` (i18n.md "Next matcher") | `iapl-upgrade` "→ 1.17.1" |
|
||||
|
||||
After updating the package: `pnpm exec iapl-skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
|
||||
|
||||
Reference in New Issue
Block a user