Skip to content

fix: added a rule to the artifact form field#776

Merged
timbastin merged 1 commit into
mainfrom
fix/artifactcreation
Jun 3, 2026
Merged

fix: added a rule to the artifact form field#776
timbastin merged 1 commit into
mainfrom
fix/artifactcreation

Conversation

@juliankepka

Copy link
Copy Markdown
Collaborator

l3montree-dev/devguard#1979

Added rules={{ required: "Artifact name is required" }} to the artifactName field so that react-hook-form blocks form submission and displays an inline validation error when the artifact name is left empty. This solves the broken ui issue.

Bildschirmfoto 2026-06-03 um 13 56 26

Copilot AI review requested due to automatic review settings June 3, 2026 11:58
@juliankepka juliankepka linked an issue Jun 3, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a broken UI flow in the artifact form by adding a required-field validation rule to the artifactName input, leveraging react-hook-form’s Controller rules so submission is blocked and an inline error is shown when the field is empty.

Changes:

  • Added a required validation rule to the artifactName FormField to prevent empty submissions.
  • Ensures the existing <FormMessage /> displays the required-field error message for this input.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timbastin timbastin merged commit 89db818 into main Jun 3, 2026
19 checks passed
@timbastin timbastin deleted the fix/artifactcreation branch June 3, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Artifact without Name

3 participants