LeetCode-Stats-Card icon indicating copy to clipboard operation
LeetCode-Stats-Card copied to clipboard

Add profile badge

Open srijit2002 opened this issue 3 years ago • 2 comments

Based on a number of problems solved or contest rating Leetcode provides various badges like Knight, Guardian, 100 Days etc. Offer the option to show the current badge in the profile. This badge can be added right after the username like this issue

srijit2002 avatar Jan 25 '23 05:01 srijit2002

@srijit2002

It appears that your proposed idea has potential, but it may require additional requests to retrieve the badge image on the server-side, as SVG images on GitHub readme can only include embedded images, as external images are blocked by the Content Security Policy.

As an alternative solution, it may be beneficial to consider implementing a new extension to keep the focus of the "main part" on contest-unrelated information. Would you like to proceed with implementing this extension?

Additionally, it is worth noting that there is already an existing "contest" extension that displays the competition badge on an extended card. It would be helpful to understand why it is not being utilized by users.

Thanks!

JacobLinCool avatar Jan 25 '23 14:01 JacobLinCool

One thing is that I am not talking about only the contest badge. There are some badges(like 100 days, 50 days batch, monthly badge) which are given based on user activity and if a user has multiple badges then he can choose anyone as currently active.

I don't know if there is any way to get that currently active badge status from the Leetcode API.

Also, I am not so familiar with how these things work. So if anyone is interested in working on this issue then it will be great.

thanks

srijit2002 avatar Jan 25 '23 17:01 srijit2002