Fix Proxmox tag color parsing (#1348)

This commit is contained in:
rcourtman 2026-03-25 10:40:31 +00:00
parent 40249947ed
commit 1885bd02c0
3 changed files with 83 additions and 3 deletions

View file

@ -48,6 +48,18 @@ describe('tagColors', () => {
expect(colorA.bg).not.toBe(colorB.bg);
});
it('prefers proxmox-supplied colors over fallback palettes', () => {
const color = getTagColorWithSpecial('Production', false, {
production: '#112233',
});
expect(color).toEqual({
bg: '#112233',
text: '#ffffff',
border: '#112233',
});
});
it('generates dark mode hash-based colors', () => {
const color = getTagColorWithSpecial('custom', true);