From b60cd48c668763c096f2264e66b6439151af0461 Mon Sep 17 00:00:00 2001 From: biast12 Date: Sat, 2 Aug 2025 21:08:03 +0200 Subject: [PATCH] Improve validation warning messages in SettingsCard Enhanced the clarity and specificity of warning notifications for required fields in the SettingsCard component. Messages now provide more context about each field's purpose and requirements, improving user guidance during settings configuration. --- frontend/src/components/manage/SettingsCard.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/manage/SettingsCard.svelte b/frontend/src/components/manage/SettingsCard.svelte index 2b78ff5..76399d7 100644 --- a/frontend/src/components/manage/SettingsCard.svelte +++ b/frontend/src/components/manage/SettingsCard.svelte @@ -325,27 +325,27 @@ if (!data.welcome_message) { success = false; - notify("Warning", "Your welcome message has not been saved.\nWelcome messages must be between 1 - 1000 characters in length.") + notify("Warning", "Welcome message is required for the /open command\nThe welcome message must be between 1 - 1000 characters in length."); } if (!data.ticket_limit) { success = false; - notify("Warning", "Your ticket limit has not been saved.\nTicket limits must be in the range 1 - 10.") + notify("Warning", "Ticket limit is required and must be between 1-10.\nThis controls how many tickets each user can have open simultaneously."); } if (!data.archive_channel) { success = false; - notify("Warning", "Your archive channel has not been saved.") + notify("Warning", "Transcript channel is required.\nPlease select a text channel where ticket transcripts will be posted when tickets are closed."); } if (!data.category) { success = false; - notify("Warning", "Your channel category has not been saved.") + notify("Warning", "Channel category is required for the /open command.\nPlease select a category where new tickets will be created."); } if (!data.naming_scheme) { success = false; - notify("Warning", "Your archive channel has not been saved.") + notify("Warning", "Naming scheme is required for the /open command.\nPlease select how ticket channels should be named."); } return success;