Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Label form controls that only had placeholders

rcourtman1ca7af27e5de
diff --git a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx
index 92e5b77e84..602abdd8d7 100644
--- a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx
+++ b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx
@@ -254,6 +254,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {
props.updateCustomFieldInput(index, { key: e.currentTarget.value })
}
placeholder={ALERT_WEBHOOK_CUSTOM_FIELD_KEY_PLACEHOLDER}
+ aria-label={`Custom field ${index + 1} key`}
class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}
/>
</div>
@@ -266,6 +267,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {
placeholder={
field().placeholder || ALERT_WEBHOOK_CUSTOM_FIELD_VALUE_PLACEHOLDER
}
+ aria-label={`Custom field ${index + 1} value`}
class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}
/>
<Show when={!field().required}>
@@ -306,6 +308,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {
value={header().key}
onInput={(e) => props.updateHeaderInput(index, { key: e.currentTarget.value })}
placeholder={ALERT_WEBHOOK_HEADER_KEY_PLACEHOLDER}
+ aria-label={`Custom header ${index + 1} name`}
class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}
/>
<input
@@ -313,6 +316,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {
value={header().value}
onInput={(e) => props.updateHeaderInput(index, { value: e.currentTarget.value })}
placeholder={ALERT_WEBHOOK_HEADER_VALUE_PLACEHOLDER}
+ aria-label={`Custom header ${index + 1} value`}
class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}
/>
<button
diff --git a/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx b/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx
index f08d6a2b8c..87ab63fc82 100644
--- a/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx
+++ b/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx
@@ -217,6 +217,7 @@ export const AIModelSelectionSection: Component<AIModelSelectionSectionProps> =
value={state.form.model}
onInput={(e) => state.setForm('model', e.currentTarget.value)}
placeholder="Configure a provider below to see available models"
+ aria-label="Default model identifier"
class={controlClass()}
disabled={state.saving()}
/>
@@ -351,6 +352,7 @@ export const AIModelSelectionSection: Component<AIModelSelectionSectionProps> =
value={state.form.chatModel}
onInput={(e) => state.setForm('chatModel', e.currentTarget.value)}
placeholder="Use shared default model"
+ aria-label="Pulse Assistant model identifier"
class={controlClass()}
disabled={state.saving()}
/>
@@ -392,6 +394,7 @@ export const AIModelSelectionSection: Component<AIModelSelectionSectionProps> =
value={state.form.patrolModel}
onInput={(e) => state.setForm('patrolModel', e.currentTarget.value)}
placeholder="Use shared default model"
+ aria-label="Patrol Verification model identifier"
class={controlClass()}
disabled={state.saving()}
/>
diff --git a/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx b/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx
index fd36bf2b25..6bc645c68c 100644
--- a/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx
+++ b/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx
@@ -174,6 +174,7 @@ export const AIProviderConfigurationSection: Component<AIProviderConfigurationSe
props.setForm(extraField().inputField, event.currentTarget.value)
}
placeholder={extraField().placeholder}
+ aria-label={`${getAIProviderDisplayName(config.provider)} ${extraField().label}`}
class={controlClass()}
disabled={props.saving()}
/>
@@ -198,6 +199,9 @@ export const AIProviderConfigurationSection: Component<AIProviderConfigurationSe
? config.configuredPlaceholder
: config.placeholder
}
+ aria-label={`${getAIProviderDisplayName(config.provider)} ${
+ config.inputType === 'url' ? 'server URL' : 'API key'
+ }`}
class={controlClass()}
disabled={props.saving()}
/>
diff --git a/frontend-modern/src/components/Settings/ResourcePicker.tsx b/frontend-modern/src/components/Settings/ResourcePicker.tsx
index 8fb1157122..7efc0a96e1 100644
--- a/frontend-modern/src/components/Settings/ResourcePicker.tsx
+++ b/frontend-modern/src/components/Settings/ResourcePicker.tsx
@@ -159,6 +159,7 @@ export function ResourcePicker(props: ResourcePickerProps) {
type="text"
class={`${formControl} w-40`}
placeholder="Filter by tag..."
+ aria-label="Filter resources by tag"
value={tagFilter()}
onInput={(e) => setTagFilter(e.currentTarget.value)}
/>
diff --git a/frontend-modern/src/components/shared/SearchField.tsx b/frontend-modern/src/components/shared/SearchField.tsx
index 48455bfc48..afad6a1ff9 100644
--- a/frontend-modern/src/components/shared/SearchField.tsx
+++ b/frontend-modern/src/components/shared/SearchField.tsx
@@ -23,6 +23,7 @@ export const SearchField: Component<SearchFieldProps> = (props) => {
onInput={(e) => props.onChange(e.currentTarget.value)}
onKeyDown={search.handleKeyDown}
onBlur={search.handleBlur}
+ aria-label={props.title ?? props.placeholder ?? 'Search'}
class={`w-full pl-8 sm:pl-9 ${search.inputPaddingRight()} py-1.5 sm:py-2 text-sm border border-border rounded-md
bg-surface text-base-content placeholder-muted
focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-400 outline-none transition-all disabled:opacity-60 disabled:cursor-not-allowed ${props.inputClass ?? ''}`}
diff --git a/frontend-modern/src/components/shared/TagInput.tsx b/frontend-modern/src/components/shared/TagInput.tsx
index 2bae10e479..bc6ce21fed 100644
--- a/frontend-modern/src/components/shared/TagInput.tsx
+++ b/frontend-modern/src/components/shared/TagInput.tsx
@@ -22,6 +22,7 @@ export function TagInput(props: TagInputProps) {
type="button"
class={TAG_INPUT_REMOVE_BUTTON_CLASS}
onClick={(event) => state.handleRemoveTag(event, index())}
+ aria-label={getTagInputRemoveTitle(tag)}
title={getTagInputRemoveTitle(tag)}
>
<X class="w-3 h-3" />
@@ -37,6 +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)}
class={TAG_INPUT_FIELD_CLASS}
/>
</div>