Skip to content

RM-158: Validate unique option values for string selects#47

Merged
BenHall-1 merged 6 commits intoTicketsBot-cloud:masterfrom
biast12:unique-option-values
Oct 18, 2025
Merged

RM-158: Validate unique option values for string selects#47
BenHall-1 merged 6 commits intoTicketsBot-cloud:masterfrom
biast12:unique-option-values

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Oct 16, 2025

RM-158
Adds backend and frontend validation to ensure all string select input options have unique values. The backend now rejects duplicate values with an error, and the frontend highlights duplicates and displays a warning to users.

image image

biast12 and others added 6 commits October 16, 2025 17:24
Adds backend and frontend validation to ensure all string select input options have unique values. The backend now rejects duplicate values with an error, and the frontend highlights duplicates and displays a warning to users.
Introduces validation to ensure the label is required and no longer than 45 characters, and the description is no longer than 100 characters. Displays appropriate error messages for these validations. Also adjusts some layout and input props for consistency.
Form creation and update endpoints now validate that the title is not empty or whitespace-only and does not exceed 45 characters. The Forms.svelte view disables actions and displays error messages when the title is invalid, improving user feedback and preventing invalid submissions.
Copy link
Copy Markdown
Member

@BenHall-1 BenHall-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@BenHall-1 BenHall-1 merged commit 267005d into TicketsBot-cloud:master Oct 18, 2025
@biast12 biast12 deleted the unique-option-values branch October 18, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants