Skip to content

fix: add validation for project name length in ProjectList component#3064

Open
weiawesome wants to merge 1 commit intodevtron-labs:developfrom
weiawesome:bugfix/project-name-min-length
Open

fix: add validation for project name length in ProjectList component#3064
weiawesome wants to merge 1 commit intodevtron-labs:developfrom
weiawesome:bugfix/project-name-min-length

Conversation

@weiawesome
Copy link

Description

When creating a project, an error occurs if the project name has fewer than 3 characters.
This PR adds a validation check and alert to prevent submission of too-short project names.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Tried creating projects with 1–2 character names → alert is shown, creation prevented.
  • Tried creating projects with between 3 and 25 character names → correct.

Checklist:

  • The title of the PR states
    what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Snapshot explanation

  1. Create a project with 2 character
Create project with 2 character 2. Redirect to error page Create invalidate project result 3. Similar alert message in creating app Similar question in app

@sonarqubecloud
Copy link

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.

1 participant