Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add profile badge #80

Open
srijit2002 opened this issue Jan 25, 2023 · 2 comments
Open

Add profile badge #80

srijit2002 opened this issue Jan 25, 2023 · 2 comments

Comments

@srijit2002
Copy link

srijit2002 commented Jan 25, 2023

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

@JacobLinCool
Copy link
Owner

@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!

@srijit2002
Copy link
Author

srijit2002 commented Jan 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants