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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user