Skip to content
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

feat(onboarding-ui): add function to prefill Workspace URL based on W… #694

Merged

Conversation

PedroRorato
Copy link
Contributor

Proposed changes (including videos or screenshots)

  • Added a function to prefill the Workspace URL field based on the Workspace Name informed

@@ -6,6 +6,21 @@ import WorkspaceUrlInput from './WorkspaceUrlInput';

type Args = ComponentProps<typeof CreateCloudWorkspaceForm>;

const isValidDomainName = async (domainName: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that makes sense to turn this validation into a list of validations, and iterate on that validating the clauses and returning true or false, maybe creating a helper or component for todo the validations in this way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice, how about this next commit?

@PedroRorato PedroRorato merged commit ab3391d into develop Apr 8, 2022
@PedroRorato PedroRorato deleted the feat-add-url-suggestion-to-create-cloud-workspace-form branch April 8, 2022 21:02
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.

2 participants