Mail-logo als vooraf samengestelde witte badge (geen grijze plaat); succes-toast bij rolwijziging

- themes/asf/logo-mail.png (+ make-mail-logo.py), geleverd als /admin/brand-logo-mail.png; ASF Email:LogoUrl wijst ernaar
- Renderer: plaat weggehaald, licht logo 56px, dark-swap naar LogoDarkUrl blijft
- UsersPage: toast na geslaagde rolwijziging (nl+en, ook Owner-bevestiging)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 16:11:33 +01:00
co-authored by Claude Sonnet 5.5
parent 07bad14453
commit a9b9ad2931
13 changed files with 107 additions and 22 deletions
+8
View File
@@ -29,6 +29,14 @@ describe('resolveTheme', () => {
expect(fs.existsSync(logo!.onLight) && fs.existsSync(logo!.onDark)).toBe(true);
});
it('ships the asf e-mail logo (white badge) next to the others', () => {
const { logo } = resolveTheme('asf');
expect(logo?.mail).not.toBeNull();
expect(fs.existsSync(logo!.mail!)).toBe(true);
expect(fs.readFileSync(logo!.mail!).subarray(1, 4).toString()).toBe('PNG');
});
it('treats a theme with only one logo variant as having no logo', () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'themes-'));
try {