Cannot create tags with uppercase letters
If you try to create a tag with an upper case letter the result is a 400 {"errors":"Invalid tag","type":"body"}. In the UI the only indication of error is "Failed to create".
example taco is a valid tag while tAco is not.
Service: I believe the service should be changed to sanitize new tag names to be valid names, or to return a more specific error. tAco would save the tag taco.
UI: The best user experience would be that typing tAco into the create dialog would display taco as you type. The minimum user experience would be to change the error from "Failed to create" to "Failed to create: Upper case letters cannot be used".
May I take care of this?
@BlessingEmejulu absolutely!
I think the best would be to format the tags on the fly in UI. So that they pass the tag validation. This basically means to apply trim, lowercase and replace whitespace with - (if I remember the validation correctly, on phone so cannot check) whenever a new tag is inputted
Basically the change should be made here: https://github.com/drodil/backstage-plugin-qeta/blob/main/plugins%2Fqeta-react%2Fsrc%2Fcomponents%2FPostForm%2FTagInput.tsx#L143
Noted, pls assign the issue to me @drodil