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

[Code app] Need to implement correct validation for file names in the code editor #2910

Open
1 task done
VolhaBazhkova opened this issue Jan 8, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@VolhaBazhkova
Copy link

VolhaBazhkova commented Jan 8, 2025

EPAM AI DIAL chat version

0.23.0

What happened?

Preconditions:

  1. Add code app form is open
  2. Folder with source files is selected, code editor is displayed

Steps:

  1. Click on Create file icon at the bottom of the code editor
  2. Type new file name including restricted chars, e.g. File=,:;{}/%& and confirm renaming
    -> the file name is updated (bug), the name is red and file icon is changed to red sign
    image

-> if to click on reload button, DIAL behaves like delete button is clicked (toast error, error in console, confirmation message for the deleting)
-> if to click on delete button, toast error appears + errors in console
image

Note issue2: the same issue if the file name contains a dot at the end
Note issue3: there is missed validation of 160 max symbols in file name

Expected: we need to implement the same behavior as for renaming chats:

  1. restricted symbols are not allowed to be entered and pasted
  2. dot at the end should be removed automatically
  3. max file name is 160 symbols

Confidential information

  • I confirm that do not share any confidential information
@VolhaBazhkova VolhaBazhkova added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant