Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add validation in chatbot name #561

Merged
merged 1 commit into from
Mar 4, 2025
Merged

fix: add validation in chatbot name #561

merged 1 commit into from
Mar 4, 2025

Conversation

IcyKallen
Copy link
Contributor

@IcyKallen IcyKallen commented Mar 4, 2025

Fixes #

🤖 AI-Generated PR Description (Powered by Amazon Bedrock)

Description

This pull request updates the localization files (en.json and zh.json) for the chatbot management page in the portal application. The changes made to ChatbotManagement.tsx incorporate the updated translations and improve the overall user experience of the chatbot management interface.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

File Stats Summary

File number involved in this PR: 3, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/portal/src/pages/chatbotManagement/ChatbotManagement.tsx 41 added, 11 removed The code changes introduce a new function isValidChatbotName that performs comprehensive validation for chatbot names, including checking for invalid starting characters, uppercase letters, special characters, and non-standard English characters.
source/portal/src/locale/zh.json 10 added, 6 removed This code change adds several new error messages related to input validation for names, specifically disallowing names starting with underscores or hyphens, containing uppercase letters, invalid characters, or non-standard English characters.
source/portal/src/locale/en.json 10 added, 6 removed The code changes include adding error messages for invalid input names, such as not allowing names to start with underscores or dashes, prohibiting uppercase letters, and restricting characters to English lowercase letters, numbers, underscores, dashes, and periods.

@IcyKallen IcyKallen merged commit efa9da2 into dev Mar 4, 2025
6 checks passed
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.

1 participant