Show website logos and the logo.dev credit in the appearance preview

The preview of unsaved changes now draws button icons like the public
page: website logos when logos are enabled, the first letter when
not, plus the "Logos provided by Logo.dev" credit. /me exposes the
publishable logo.dev key for this (it's already part of every public
logo URL).

Also fixes the sticky phone preview on the content and appearance
tabs, which scrolled away because its column was only as tall as the
phone itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 17:00:28 +02:00
co-authored by Claude Opus 5.5
parent 3eea5c23ef
commit ab2150330a
5 changed files with 63 additions and 9 deletions
+2 -1
View File
@@ -46,7 +46,7 @@ describe("authentication", () => {
expect(callback.status).toBe(302);
const session = callback.headers.getSetCookie().find((c) => c.startsWith("short_session="))!.split(";")[0]!;
const me = await (await app.request("/~/api/me", { headers: { cookie: session } })).json();
expect(me).toEqual({ username: "alice", isAdmin: true, logoDev: false });
expect(me).toEqual({ username: "alice", isAdmin: true, logoDev: false, logoDevToken: null });
// A renamed account keeps its original namespace; losing the group removes admin.
const login2 = await app.request("/~/auth/login");
@@ -59,6 +59,7 @@ describe("authentication", () => {
username: "alice",
isAdmin: false,
logoDev: false,
logoDevToken: null,
});
});