Skip to content

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Jul 25, 2025

Describe Your Changes

This pull request introduces validation for assistant names in the AddEditAssistant dialog, improves user feedback for invalid inputs, and adjusts the layout of the dropdown menu for better usability. Additionally, it updates locale files to support the new validation message in multiple languages.

Validation and user feedback improvements:

  • web-app/src/containers/dialogs/AddEditAssistant.tsx: Added a nameError state to track validation errors for the assistant name, implemented validation logic in the handleSave function to ensure the name is not empty, and displayed an error message below the name input field when validation fails. [1] [2] [3] [4]

Localization updates:

  • Locale files (web-app/src/locales/de-DE/assistants.json, web-app/src/locales/en/assistants.json, web-app/src/locales/id/assistants.json, web-app/src/locales/vn/assistants.json, web-app/src/locales/zh-CN/assistants.json, web-app/src/locales/zh-TW/assistants.json): Added translations for the new validation message "Name is required" in German, English, Indonesian, Vietnamese, Simplified Chinese, and Traditional Chinese. [1] [2] [3] [4] [5] [6]

Dropdown menu layout adjustment:

Fixes Issues

Screenshot 2025-07-25 at 13 37 23 Screenshot 2025-07-25 at 14 01 33

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Important

Adds validation for assistant names, updates localization for error messages, and improves dropdown menu layout.

  • Validation and Feedback:
    • AddEditAssistant.tsx: Adds nameError state for assistant name validation, ensuring the name is not empty. Displays error message below input field.
  • Localization:
    • Updates locale files for German, English, Indonesian, Vietnamese, Simplified Chinese, and Traditional Chinese to include "Name is required" message.
  • UI Enhancements:
    • DropdownAssistant.tsx: Adds w-full class to dropdown menu items for consistent full-width styling.

This description was created by Ellipsis for 41d469e. You can customize this summary. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 41d469e in 2 minutes and 13 seconds. Click for details.
  • Reviewed 176 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 11 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/containers/DropdownAssistant.tsx:84
  • Draft comment:
    Adding 'w-full' to the dropdown menu item ensures the entire area is clickable; this improves usability.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. web-app/src/containers/dialogs/AddEditAssistant.tsx:64
  • Draft comment:
    Introducing the 'nameError' state is a clean approach to managing validation feedback for the assistant name.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. web-app/src/containers/dialogs/AddEditAssistant.tsx:197
  • Draft comment:
    The validation logic in handleSave properly checks for an empty name and prevents saving when the field is blank.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. web-app/src/containers/dialogs/AddEditAssistant.tsx:285
  • Draft comment:
    Clearing 'nameError' within the onChange handler for the name input gives immediate feedback as soon as the user types a non‑empty value.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. web-app/src/containers/dialogs/AddEditAssistant.tsx:295
  • Draft comment:
    Displaying the error message below the name input provides clear user feedback when the input is invalid.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
6. web-app/src/locales/de-DE/assistants.json:13
  • Draft comment:
    Added the 'nameRequired' translation in German, ensuring consistency for validation messages.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
7. web-app/src/locales/en/assistants.json:13
  • Draft comment:
    The English locale now includes the 'nameRequired' key, which aligns with the validation update.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
8. web-app/src/locales/id/assistants.json:13
  • Draft comment:
    The Indonesian translation now properly includes 'nameRequired', enhancing multilingual support.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
9. web-app/src/locales/vn/assistants.json:13
  • Draft comment:
    Added 'nameRequired' for Vietnamese, ensuring consistent validation messaging across locales.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
10. web-app/src/locales/zh-CN/assistants.json:13
  • Draft comment:
    The Simplified Chinese locale now has the 'nameRequired' key, which is important for proper validation feedback.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
11. web-app/src/locales/zh-TW/assistants.json:13
  • Draft comment:
    The Traditional Chinese translations include 'nameRequired', maintaining consistency with other locales.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_jTLuGUS3CN8gtv5g

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

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

LGTM

@urmauur urmauur merged commit 6c15129 into release/v0.6.6 Jul 25, 2025
21 checks passed
@urmauur urmauur deleted the fix/assistants branch July 25, 2025 13:27
@github-project-automation github-project-automation bot moved this from Needs Review to QA in Jan Jul 25, 2025
@urmauur urmauur moved this from QA to Done in Jan Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

bug: App Should Not Allow Creating an Empty Assistant bug: Assistant switch can only activate when click directly on the text

3 participants