generator-teams icon indicating copy to clipboard operation
generator-teams copied to clipboard

Adjust the default tab name from the App project name to be less than 16 characters or provide an error message

Open RickVanRousselt opened this issue 3 years ago • 0 comments

💡 Idea

When creating a new project you are not limited in the length the project name has. When you then want to create a tab, this is limited to 16 characters.

If you do not specify a name and just press enter the generator suggests the name of the project + " tab". It should perform a check if the name is longer than 16 characters and already cut that off at that limit. Or at least give you an error message if you enter too many characters. Now nothing happens.

newTabName

Is your feature related to a bug

no

Alternatives

In the tabgenerator the default name is set with

this.options.title + ' Tab',

the default should max be the first 11 characters of the title.

The validation method should also return a meaningful message if there are more than 16 characters.

Additional Info

The yeoman generator uses Inquirer.js for the promts. These can have validation scenarios.

RickVanRousselt avatar Nov 06 '21 14:11 RickVanRousselt