Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep tag input labels stable
pulse-triage[bot]e6f335e24406
diff --git a/frontend-modern/DESIGN_SYSTEM.md b/frontend-modern/DESIGN_SYSTEM.mdindex 05efef1a36..9b5628f256 100644--- a/frontend-modern/DESIGN_SYSTEM.md+++ b/frontend-modern/DESIGN_SYSTEM.md@@ -14,6 +14,7 @@ This document outlines the standard UI primitives, tokens, and components that c- `npm run lint:headers` audits header composition and page-level header usage policy.- Routed surfaces must use shared header primitives (`PageHeader`, `SectionHeader`, `SettingsPanel`, `OperationsPanel`) instead of raw `<h1>` markup.- Visible form labels must either use `for` with a matching control ID or wrap a native labelable control; use a heading, paragraph, or span for non-control captions.+- Shared form controls must keep a stable accessible name as their value changes; a placeholder is input guidance, not a label.- Only explicit non-visual route wrappers are exempt from header primitive requirements.- Theme ownership policy:- Only `src/utils/theme.ts` and `index.html` may read/write theme keys (`pulseThemePreference`, `darkMode`, `pulse_dark_mode`) or toggle the root `dark` class.diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsxindex df004a6881..4e1f7adb86 100644--- a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx+++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx@@ -259,6 +259,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {</div><TagInputtags={props.config.tagFilter ?? []}+ label="Resource tag routing"onChange={(tagFilter) => props.onChange({ ...props.config, tagFilter })}placeholder="Add a resource tag"/>diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsxindex a271da7954..e5461c875f 100644--- a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsx+++ b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxBackupsSection.tsx@@ -149,6 +149,7 @@ export function ThresholdsTableProxmoxBackupsSection(props: ThresholdsTableSecti</p><TagInputtags={tableProps.backupDefaults().ignoreVMIDs ?? []}+ label={state.backupOrphanedPresentation.ignoreVmidsLabel}onChange={(tags) => {state.updateBackupDefaults((prev) => ({ ...prev, ignoreVMIDs: tags }));tableProps.setHasUnsavedChanges(true);diff --git a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsx b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsxindex c98edc5ae7..2a23ba67ac 100644--- a/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsx+++ b/frontend-modern/src/components/Alerts/ThresholdsTableProxmoxGuestFilteringSection.tsx@@ -29,6 +29,7 @@ export function ThresholdsTableProxmoxGuestFilteringSection(props: ThresholdsTab</div><TagInputtags={tableProps.ignoredGuestPrefixes()}+ label={state.guestFilterPresentation.ignoredPrefixes.title}onChange={(tags) => {tableProps.setIgnoredGuestPrefixes(tags);tableProps.setHasUnsavedChanges(true);@@ -48,6 +49,7 @@ export function ThresholdsTableProxmoxGuestFilteringSection(props: ThresholdsTab</div><TagInputtags={tableProps.guestTagWhitelist()}+ label={state.guestFilterPresentation.tagWhitelist.title}onChange={(tags) => {tableProps.setGuestTagWhitelist(tags);tableProps.setHasUnsavedChanges(true);@@ -67,6 +69,7 @@ export function ThresholdsTableProxmoxGuestFilteringSection(props: ThresholdsTab</div><TagInputtags={tableProps.guestTagBlacklist()}+ label={state.guestFilterPresentation.tagBlacklist.title}onChange={(tags) => {tableProps.setGuestTagBlacklist(tags);tableProps.setHasUnsavedChanges(true);diff --git a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsxindex 9caeb096d7..57b6d63d0d 100644--- a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx@@ -196,6 +196,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {</div><TagInputtags={props.formData().tagFilter ?? []}+ label="Resource tag routing"onChange={(tagFilter) => props.setFormData((prev) => ({ ...prev, tagFilter }))}placeholder="Add a resource tag"/>diff --git a/frontend-modern/src/components/shared/TagInput.test.tsx b/frontend-modern/src/components/shared/TagInput.test.tsxindex 62c22468e7..9ba0d9ae74 100644--- a/frontend-modern/src/components/shared/TagInput.test.tsx+++ b/frontend-modern/src/components/shared/TagInput.test.tsx@@ -1,4 +1,5 @@import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { createSignal } from 'solid-js';import { afterEach, describe, expect, it, vi } from 'vitest';import { TagInput } from './TagInput';import tagInputSource from './TagInput.tsx?raw';@@ -35,9 +36,11 @@ describe('TagInput', () => {it('adds tags on enter and removes the last one on backspace when empty', () => {const onChange = vi.fn();- render(() => <TagInput tags={['alpha']} onChange={onChange} placeholder="Add tag" />);+ render(() => (+ <TagInput tags={['alpha']} label="Resource tags" onChange={onChange} placeholder="Add tag" />+ ));- const input = screen.getByRole('textbox');+ const input = screen.getByRole('textbox', { name: 'Resource tags' });fireEvent.input(input, { target: { value: 'beta' } });fireEvent.keyDown(input, { key: 'Enter' });@@ -48,10 +51,17 @@ describe('TagInput', () => {expect(onChange).toHaveBeenCalledWith([]);});- it('focuses the input when the container is clicked and hides placeholder when tags exist', () => {- render(() => <TagInput tags={['alpha']} onChange={vi.fn()} placeholder="Add tag" />);+ it('keeps its accessible name when tags hide the placeholder and focuses on container click', () => {+ const [tags, setTags] = createSignal<string[]>([]);+ render(() => (+ <TagInput tags={tags()} label="Resource tags" onChange={vi.fn()} placeholder="Add tag" />+ ));- const input = screen.getByRole('textbox') as HTMLInputElement;+ const input = screen.getByRole('textbox', { name: 'Resource tags' }) as HTMLInputElement;+ expect(input).toHaveAttribute('placeholder', 'Add tag');+ setTags(['alpha']);++ expect(screen.getByRole('textbox', { name: 'Resource tags' })).toBe(input);expect(input.placeholder).toBe('');fireEvent.click(input.parentElement as HTMLElement);diff --git a/frontend-modern/src/components/shared/TagInput.tsx b/frontend-modern/src/components/shared/TagInput.tsxindex bc6ce21fed..86c02b1b6b 100644--- a/frontend-modern/src/components/shared/TagInput.tsx+++ b/frontend-modern/src/components/shared/TagInput.tsx@@ -38,7 +38,7 @@ export function TagInput(props: TagInputProps) {onKeyDown={state.handleKeyDown}onBlur={state.handleBlur}placeholder={getTagInputPlaceholder(props.tags.length, props.placeholder)}- aria-label={getTagInputPlaceholder(props.tags.length, props.placeholder)}+ aria-label={props.label}class={TAG_INPUT_FIELD_CLASS}/></div>diff --git a/frontend-modern/src/components/shared/useTagInputState.ts b/frontend-modern/src/components/shared/useTagInputState.tsindex 696646216d..47e1cabd30 100644--- a/frontend-modern/src/components/shared/useTagInputState.ts+++ b/frontend-modern/src/components/shared/useTagInputState.ts@@ -12,6 +12,7 @@ import {export interface TagInputProps {tags: string[];onChange: (tags: string[]) => void;+ label: string;placeholder?: string;class?: string;}