Skip to content

ContributorDashboardClient trusts ?tab= without validation — ?tab=foo selects no tab and renders nothing #692

Closed

Description

@chonilius

Problem

useState((searchParams.get("tab") as "active" | "completed") || "active") casts any string. /dashboard/contributor?tab=foo (or a stale or mistyped bookmark) sets tab = "foo", so no tab is aria-selected, no Tab has tabIndex=0 (the tablist can't be reached by keyboard), and neither panel renders.

Suggested fix

Accept only active/completed and fall back to active.

Related: #260

Activity

  1. added
    bug
    good first issue
    Stellar Wave
    and removed
    Stellar Wave
    on Oct 13, 2026
  2. added
    Stellar Wave
    on Oct 17, 2026
  3. Michael997glitch commented on Oct 17, 2026

    @Michael997glitch

    @Michael997glitch has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi there, I'd like to contribute to this.

    I'm a software engineer with strong experience in JavaScript and building scalable web applications. I'm comfortable working across the stack, writing clean, maintainable code, and collaborating in open source environments.

    I understand what's being asked here and I'm confident I can implement this correctly and efficiently.

    Looking forward to contributing — please assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Michael997glitch to this issue.

  4. hardcordev commented on Oct 17, 2026

    @hardcordev
    Contributor

    @hardcordev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I would love to work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @hardcordev to this issue.

  5. drips-wave commented on Oct 17, 2026

    @drips-wave

    Congratulations, @hardcordev! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @hardcordev: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  6. drips-wave commented on Oct 17, 2026

    @drips-wave

    This issue has been completed by @hardcordev as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @hardcordev: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavebuggood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions