Update "Tag name" field to be required on the "New Release" page
What does this MR do?
Updates the Tag name field on the New Release page to be required.
Current behavior
Currently, the page allows the user to submit the form without entering a tag name. This causes the API endpoint to return a validation error and an error message is shown to the user in a flash message.
New behavior
The validation message is shown if the field is empty or if it only contains whitespace.
Additionally, the message isn't shown until the user interacts with the field. This is to avoid showing the error message immediately when the page is loaded (since the field defaults to blank).
See the GIF below for a demo.
Feature flag
Currently the New release page is hidden behind the new_release_page
feature flag which is disabled by default.
Screenshots
Before | After |
---|---|
GIF
Related to #214244 (closed)
Edited by Nathan Friend