backstage/community-plugins

๐Ÿš€ badges: support style selections

jeongukjae opened this issue ยท 3 comments

Plugin Name

badges

๐Ÿ”– Feature description

Currently, only flat-square style is possible in badges plugin. It should be much better to generate other badge styles.

๐ŸŽค Context

I want to match all badge styles into 'flat' in my repo!

โœŒ๏ธ Possible Implementation

For the simplest implementation, I think two changes required.

  • In the frontend plugin, added dropdown or similar component to select styles.
  • In the backend plugin, retrieve styles param and pass it to badge-maker plugin.

For pre-defined styles list, check this link: https://github.com/badges/shields/blob/8df3f70da91854f5607a8a240ea5e363abd02949/badge-maker/lib/badge-renderers.js#L985-L991

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Go for it @jeongukjae, contributions welcome to add this. ๐Ÿ‘

Okay! will raise a PR soon!

@awanlin I created a PR :) if you want, check it #866