Skip to content

Sanitize suggested name when opening "Create Component" from context menuĀ #3150

@datho7561

Description

@datho7561

Speaking of component name, could we try to sanitize the initial component name for git repo imports :

initialComponentName={gitURL.url.substring(gitURL.url.lastIndexOf('/') + 1)}

so that they respect

validationMessage = OpenShiftItem.validateMatches(
`Not a valid component name.
Please use lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character`,
name,
);
. Can be included in a separate PR.

(eg. https://github.com/openshift-evangelists/Wild-West-Frontend fails validation )

Originally posted by @rgrunber in #3127 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    āœ… Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ⚔