Skip to content

fix: CreateWorkspaceForm name validation #1453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2022

Conversation

greyscaled
Copy link
Contributor

@greyscaled greyscaled commented May 14, 2022

Resolves: #1421

  • adjust getFormHelpers to allow helperText
  • refactor CreateWorkspaceForm to have Language, remove FormTextField and meet conventions
  • add missing validations to Workspace name
  • make Workspace name auto-focused

validation

By passing in helperText, we will not accidentally overwrite it.
@greyscaled greyscaled self-assigned this May 14, 2022
@greyscaled greyscaled requested a review from a team as a code owner May 14, 2022 15:42
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
Copy link
Contributor

@presleyp presleyp left a comment

Choose a reason for hiding this comment

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

Nice! I don't know how (if?) we're going to extend the validation from the name field to the arbitrary fields but it's nice to get things in order in advance of that at least.

@greyscaled greyscaled merged commit 9d4182b into main May 16, 2022
@greyscaled greyscaled deleted the vapurrmaid/gh-1421/username-validation branch May 16, 2022 19:30
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* refactor: allow helperText in getFormHelpers

By passing in helperText, we will not accidentally overwrite it.

* fix: CreateWorkspaceForm name validation

Resolves: #1421
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.

UI: Entering an invalid a Workspace Name in Create returns no error
4 participants