feat: enhance duplicate prototype name error handling with UX improvements#333
Merged
NhanLuongBGSV merged 5 commits intoeclipse-autowrx:mainfrom Mar 6, 2026
Merged
feat: enhance duplicate prototype name error handling with UX improvements#333NhanLuongBGSV merged 5 commits intoeclipse-autowrx:mainfrom
NhanLuongBGSV merged 5 commits intoeclipse-autowrx:mainfrom
Conversation
added 4 commits
February 26, 2026 14:31
- Show model name instead of ID in error messages - Generate and suggest 3 available alternative names when duplicate detected - Strip trailing number suffix to create clean name suggestions (e.g., "test_2" → "test") - Extract duplicate error handling into throwDuplicateNameError helper function - Apply consistent behavior across createPrototype, bulkCreatePrototypes, and updatePrototypeById
- Display error message directly below name input - Highlight input border with secondary color on validation error - Align with design system colors for consistency
- Highlight input border on validation error - Stay in edit mode on error for easy correction
Contributor
@SangNT12 please help me check this |
Contributor
Author
A @NhanLuongBGSV I've just fixed this issue. Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
Improves the user experience when duplicate prototype names are encountered by providing helpful suggestions and better visual feedback during error correction.
Changes
Backend (fac9edc)
throwDuplicateNameErrorhelper functioncreatePrototype,bulkCreatePrototypes, andupdatePrototypeByIdFrontend
User Benefit
Users now receive actionable error messages with name suggestions when duplicates occur, making it easier to resolve naming conflicts without confusion.
#332