Sign-in look: the logo is handled as the white label handled it in 1.17.0 (owner, 2026-11-26)

A logo that showed on a site's login screen shows on the new screens: any picture Site settings holds,
an SVG included, as <img>; svgLogo: false refuses SVG (off by default); the list of allowed types is
gone. The look at the file only avoids a broken picture: a file that is gone (404 / 410) or is no picture
gives the name; anything else (no answer, a redirect, another status, over 512 KB) believes the upload.
Redirects are still never followed by the server, and the body is read with the 512 KB cap. A test
checks twelve kinds of logo that 1.17.0 shows. No plate stays the default. Docs, skills, changelog draft.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 22:14:50 +01:00
co-authored by Claude Fable 5.2
parent aef1efac73
commit 24ccc5dc8b
56 changed files with 177 additions and 114 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ site; `after-*` from a production build with `signIn: { allScreens: true }`, `be
| `before-*.png` | IAPL 1.17.0: login (light, dark, phone, Polish, wrong password), forgot password, 2FA code, 2FA setup; `-logo` = with a logo set |
| `after-*-name.png` | the new look with no logo set: the site's name |
| `after-*-logo.png` | the new look with a logo made for dark grounds (`placeholder-logo-for-dark.png`), no plate — the default |
| `after-{login,2fa-code}-*-logo-svg.png` | an SVG logo from Site settings (`placeholder-logo-for-dark.svg`) on a built site: shown on login and, inlined, on the 2FA code screen — as 1.17.0 showed it |
| `after-login-*-logo-dark-letters-no-plate.png` | a logo with dark letters (`placeholder-logo.png`) on the default: hard to read; such a site sets `logoPlate: true` |
| `after-first-user-*.png` | create first user on an empty database (no site name yet: the host is shown) |
| `legacy-unedited-*.png` | the reference site as it was at v1.16.7, **unedited**, built against this plugin: login has the look (through `AdminLogo`), forgot password and create first user are Payload's own until the project sets `allScreens` |
@@ -50,7 +51,7 @@ without users: `--only=first-user`). The files are 8-bit PNGs (re-encoded to kee
|---|---|---|
| Split, panel inset and corners, grid, glows, colours | the same numbers (`css.ts`) | yes |
| Label, logo box (240 × 72, 2× source), name as text, link to the site, alternative text | the same | yes |
| Logo types (JPEG, PNG, WebP, AVIF, GIF; no SVG) and the look at the file before printing | the same; Payload accepts SVG uploads, so `svgLogo: true` exists; the file is checked by a fetch (IAWL reads the disk), and an unreachable address counts as "believe the upload" | yes, two notes |
| Logo types and the look at the file before printing | **as IAPL's white label did in 1.17.0** (owner, 2026-11-26): any picture Site settings holds, an SVG too, as `<img>`; `svgLogo: false` refuses SVG. The file is asked once only to avoid a broken picture (gone / no picture → the name) | IAWL: JPEG, PNG, WebP, AVIF, GIF, no SVG (WordPress refuses the upload); file read from disk |
| Plate | **no plate by default** (the owner's choice for new surfaces), `logoPlate: true` adds it | IAWL: plate by default, `logoMadeFor => 'dark'` removes it |
| Button, link, focus and border colours; field and button heights; 28 rem column | the same | yes |
| Phone band at 52 rem | the same | yes |