Skip to content

DashboardShell has no test file, so its role-based nav-item selection and active-link highlighting (including a known exact-match bug) have zero regression coverage #275

Closed

Description

@chonilius

src/components/dashboard/DashboardShell.tsx contains two pieces of non-trivial logic
with real, user-visible consequences and no test coverage at all — there is no
DashboardShell.test.tsx anywhere in the repo:

  • navByRole[role] — the lookup that decides which four nav items render for
    contributor/maintainer/sponsor. Nothing asserts that each role gets the correct
    set of items, or that changing role actually swaps the rendered nav.
  • const active = pathname === item.href — the exact-match active-state check (see the
    related "active-nav-item highlighting uses exact pathname equality" bug, which a test
    suite for this component would have been well-positioned to catch or, once fixed, guard
    against regressing).

DashboardShell wraps every single dashboard route in the app (/dashboard/contributor,
/dashboard/maintainer, /dashboard/sponsor), so this untested logic runs on every
dashboard page load for every role.

Suggested fix: add DashboardShell.test.tsx covering each role's nav-item set and the
active/inactive styling for a few representative pathname values, including a nested
route to pin down the exact-match behavior either way.

Activity

  1. added
    testing
    good first issue
    help wanted
    enhancement
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. doctorlight0 commented on Aug 25, 2026

    @doctorlight0

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

    The requirements are clear, and I’m confident in my ability to implement the requested changes without disrupting the existing functionality.

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

  4. Akeem0604 commented on Aug 25, 2026

    @Akeem0604

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

    Hello Team I'd love to be assigned this issue. As a backend developer, I have experience across many frameworks, and I'm confident I'll be able to resolve this. Looking forward to it.
    ‎Thanks

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

  5. benfoster-dev commented on Aug 25, 2026

    @benfoster-dev
    Contributor

    @benfoster-dev has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would love to work on this issue. Please assign this to me.

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

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @benfoster-dev! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @benfoster-dev: 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 🌊

  7. added a commit that references this issue on Aug 25, 2026
  8. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @benfoster-dev as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @benfoster-dev: You earned 200 Points for completing this issue! After the current Wave ends, 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.

  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. added
    Stellar Wave
    on Oct 15, 2026
  13. removed
    Stellar Wave
    on Oct 15, 2026
  14. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Waveenhancementgood first issuehelp wantedtesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions