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

refactor: file name validation #119

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Caixetadev
Copy link
Collaborator

In this pull request, I introduced a file name validation function. Additionally, I removed the automatic page reload from the frontend. The reload was hindering error visibility, especially in cases where there was an issue with the file name being invalid.

@kevinanielsen kevinanielsen added api Improvements or additions to the api go Language: Go labels Jan 27, 2024
Copy link
Owner

@kevinanielsen kevinanielsen left a comment

Choose a reason for hiding this comment

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

While I agree that the reload is not optimal, the file input needs to be cleared when successful, maybe move the reload to the successful if-statement so it only reloads on success.

@Caixetadev
Copy link
Collaborator Author

One question, is this reload just there to clear the fields? If so, we can force an update on the component by updating its state

@kevinanielsen
Copy link
Owner

Yes, that is why they are there - If you could add that, that would be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Improvements or additions to the api go Language: Go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants