Repository navigation
Conversation
|
@1-DARK is attempting to deploy a commit to the osama's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for the pull request! ✅ A maintainer will review this soon. Please be patient while we take a look. 🙌 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Get README Badge button to the developer profile page (
/user/[username]). It opens a modal where developers can preview their DevImpact score badge and copy a ready-to-use snippet for their GitHub profile README. Every embedded badge links back to the user's DevImpact profile, which creates a backlink to the project.Closes #219
What changed
UserProfileClient, next to Compare and Copy link.flat,flat-squareand score color (red, orange, yellow, green or bright green, depending on the score).role="dialog"andaria-modal.[](profile-url)<a href="profile-url"><img src="badge-url" alt="DevImpact Score" /></a>lginstead ofsm, so the action buttons no longer get squeezed.profile.*keys added toen.jsonandar.json. Snippet inputs usedir="ltr"so URLs display correctly in RTL.Files changed
src/features/developer/components/user-profile-client.tsxsrc/locales/en.jsonsrc/locales/ar.jsonNotes for reviewers
window.location.origin, so no new environment variable is needed. If you prefer a fixed production URL, I can switch it to a constant or env var./api/badge/[username]endpoint with the Shields endpoint format.img-srcmust allowhttps://img.shields.io.Screenshots
Testing
npm run lintpassesnpm run buildpassesChecklist