Mutli-file snippets - Improve file validation messages
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=247524) </details> <!--IssueSummary end--> ## Description Currently in multi-file snippets we do not have any helpful live-feedback for validation issues on the files: - Content is required. - Two files can't have the same name. Even when the for is submitted there is not very helpful information in the error message (i.e. which file is causing validation issue). ## Proposal Per our [design guide](https://design.gitlab.com/components/forms#validation) it would be nice to show some nice client-side inline validation while editing snippets so that we can help guide the user to creating successful submissions. ## Design Proposal If a user enters a name that has already been used by another file, display an inline error message `There is another file with this name. File names must be unique.` ![image](/uploads/332d8c67e0ebfbb853870049809d322f/image.png) ### Availability and Testing Please run a regression job `package-and-qa` to ensure happy path scenarios still pass. We might need to introduce low level test verification for the error logic.
issue