Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
feat: clarify ntfy token auth, require matrix credential, and tidy test menu labels (#3951)
Kyle Mendelle68ab5ab4b8e
diff --git a/frontend/messages/en.json b/frontend/messages/en.jsonindex a7237bd4d..1ef0b732b 100644--- a/frontend/messages/en.json+++ b/frontend/messages/en.json@@ -2440,12 +2440,12 @@"notifications_email_auth_mode_description": "Auto-detect (default) picks the strongest method the server advertises. Pick LOGIN for Microsoft Exchange or Office 365 if auto-detect fails. None disables SMTP authentication and clears any saved password when you save.","notifications_email_auth_mode_option_auto": "Auto-detect (recommended)","notifications_email_auth_mode_option_none": "None (no authentication)",- "notifications_email_test_simple": "Simple Test Notification",- "notifications_email_test_image_update": "Image Update Notification",- "notifications_email_test_batch_image_update": "Batch Image Updates Notification",- "notifications_test_vulnerability_notification": "Test Vulnerability Notification",- "notifications_test_prune_report_notification": "Test Prune Report Notification",- "notifications_test_auto_heal_notification": "Test Auto-Heal Notification",+ "notifications_email_test_simple": "Simple",+ "notifications_email_test_image_update": "Image Update",+ "notifications_email_test_batch_image_update": "Batch Image Updates",+ "notifications_test_vulnerability_notification": "Vulnerability",+ "notifications_test_prune_report_notification": "Prune Report",+ "notifications_test_auto_heal_notification": "Auto-Heal","notifications_signal_title": "Signal Notifications","notifications_signal_description": "Send notifications via Signal Messenger through a Signal API server","notifications_signal_host_label": "Signal API Host",@@ -2510,10 +2510,10 @@"notifications_ntfy_topic_help": "Topic name to publish notifications to (required, treat as a password)","notifications_ntfy_username_label": "Username (Optional)","username_placeholder": "username",- "notifications_ntfy_username_help": "Username for authentication (if required by server)",- "notifications_ntfy_password_label": "Password (Optional)",+ "notifications_ntfy_username_help": "Username for authentication (leave empty when using an access token)",+ "notifications_ntfy_password_label": "Password or token (Optional)","notifications_ntfy_password_placeholder": "••••••••",- "notifications_ntfy_password_help": "Password for authentication (if required by server)",+ "notifications_ntfy_password_help": "Password, or an ntfy access token with Username left empty","priority": "Priority","notifications_ntfy_priority_help": "Notification priority level (Min=1, Low=2, Default=3, High=4, Max/Urgent=5)","notifications_priority_min": "Min",@@ -2577,7 +2577,7 @@"notifications_matrix_rooms_label": "Matrix Room (Optional)","notifications_matrix_rooms_placeholder": "!roomId or roomAlias","notifications_matrix_rooms_help": "Your Matrix room ID (prefixed with '!') or alias",- "notifications_matrix_username_help": "Username for authentication (emtpy when token is used)",+ "notifications_matrix_username_help": "Username for authentication (empty when token is used)","notifications_matrix_password_label": "Password or token","notifications_matrix_password_placeholder": "••••••••","notifications_matrix_password_help": "Password or token for authentication",diff --git a/frontend/src/routes/(app)/settings/notifications/+page.svelte b/frontend/src/routes/(app)/settings/notifications/+page.svelteindex e41bc8290..1a092d39f 100644--- a/frontend/src/routes/(app)/settings/notifications/+page.svelte+++ b/frontend/src/routes/(app)/settings/notifications/+page.svelte@@ -270,7 +270,9 @@bind:values={providerValues[provider]}disabled={isReadOnly}{isTesting}- hasExistingCredentials={savedSettings[provider] !== null}+ hasExistingCredentials={provider === 'matrix'+ ? hasSavedCredential(savedSettings.matrix, 'password')+ : savedSettings[provider] !== null}hasExistingPassword={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'password')}hasExistingToken={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'token')}onTest={(testType) => testNotification(provider, testType)}diff --git a/frontend/src/routes/(app)/settings/notifications/providers/BuiltInProviderForm.svelte b/frontend/src/routes/(app)/settings/notifications/providers/BuiltInProviderForm.svelteindex d3b6e98b8..9d9068d65 100644--- a/frontend/src/routes/(app)/settings/notifications/providers/BuiltInProviderForm.svelte+++ b/frontend/src/routes/(app)/settings/notifications/providers/BuiltInProviderForm.svelte@@ -319,6 +319,7 @@.superRefine((d, ctx) => {if (!d.enabled) return;addRequiredTrimmedFieldIssue(ctx, d.host, 'host', m.common_required());+ addRequiredCredentialIssue(ctx, d.password, 'password', m.common_required());}),googlechat: z.object({diff --git a/tests/spec/settings-notifications.spec.ts b/tests/spec/settings-notifications.spec.tsindex a45295287..a803a4a3d 100644--- a/tests/spec/settings-notifications.spec.ts+++ b/tests/spec/settings-notifications.spec.ts@@ -186,7 +186,7 @@ test.describe('Notification settings', () => {// Trigger testawait openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();// Handle Save & Test if neededconst saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });@@ -209,7 +209,7 @@ test.describe('Notification settings', () => {await page.getByPlaceholder('Enter webhook token').fill('abc-def-ghi');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -232,7 +232,7 @@ test.describe('Notification settings', () => {.fill('xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -256,7 +256,7 @@ test.describe('Notification settings', () => {await page.getByPlaceholder('@channel, 123456789, @another_channel').fill('123456789');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -276,7 +276,7 @@ test.describe('Notification settings', () => {await page.getByPlaceholder('https://example.com/webhook').fill('https://example.com/webhook');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -299,7 +299,7 @@ test.describe('Notification settings', () => {await page.locator('#generic-payload-template').fill(template);await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -328,7 +328,7 @@ test.describe('Notification settings', () => {await page.locator('#signal-recipients').fill('+1987654321');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {@@ -349,7 +349,7 @@ test.describe('Notification settings', () => {await page.getByPlaceholder('my-updates').fill('arcane-updates');await openTestMenu(page);- await page.getByRole('menuitem', { name: 'Simple Test Notification', exact: true }).click();+ await page.getByRole('menuitem', { name: 'Simple', exact: true }).click();const saveAndTestButton = page.getByRole('button', { name: 'Save & Test', exact: true });if (await saveAndTestButton.isVisible().catch(() => false)) {