[go: up one dir, main page]

Skip to content

Mutli-file snippets - Improve file validation messages

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

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 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

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.

Edited by 🤖 GitLab Bot 🤖