Skip to content

feat: support prefilled username via URL query param#175

Open
islamhafez0 wants to merge 1 commit intosallar:masterfrom
islamhafez0:fix/prefilled-username-from-url
Open

feat: support prefilled username via URL query param#175
islamhafez0 wants to merge 1 commit intosallar:masterfrom
islamhafez0:fix/prefilled-username-from-url

Conversation

@islamhafez0
Copy link
Copy Markdown

Summary

Allow users to open the page with a prefilled username via URL query parameter (e.g. ?username=sallar), which auto-fills the input and generates the chart automatically on page load.

Changes

  • Imported useRouter from next/router
  • Added a useEffect that watches router.query.username — when present, it cleans the username and triggers the fetch automatically

Closes #55

Closes sallar#55

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

@islamhafez0 is attempting to deploy a commit to the Github Contributions Chart Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

Open web page with prefilled username

1 participant