V2Wizard: add Details step to wizrd2

this commit add Details step to v2Wizard
This commit is contained in:
dependabot[bot] 2024-01-16 04:16:12 +00:00 committed by Lucas Garfield
parent e2591bf001
commit f081ca78b0
6 changed files with 232 additions and 50 deletions

View file

@ -13,3 +13,17 @@ export const isGcpEmailValid = (gcpShareWithAccount: string | undefined) => {
gcpShareWithAccount.length <= 253
);
};
export const isBlueprintNameValid = (blueprintName: string) => {
if (blueprintName === '') {
return true;
}
return (
/^[a-z][a-z0-9-]+[a-z0-9]$/.test(blueprintName) &&
blueprintName.length <= 63
);
};
export const isBlueprintDescriptionValid = (blueprintDescription: string) => {
return blueprintDescription.length <= 250;
};