Skip to content

Navbar has no test file, despite an existing open issue describing its loading-state and multi-role rendering logic as buggy #276

Closed

Description

@chonilius

src/components/layout/Navbar.tsx has no corresponding Navbar.test.tsx anywhere in the
repo. This is notable specifically because this exact file's loading-state and
multi-role rendering logic is already the subject of an existing open issue in this
tracker describing it as buggy — meaning whoever eventually fixes that behavior currently
has no test scaffold to verify the fix against, or to prevent the same class of bug from
reappearing later.

Navbar also contains other logic with no coverage of its own regardless of that
specific issue: which of the sign-in vs. signed-in-avatar branches renders based on
user/loading, whether the "Dashboards" dropdown and its three links render correctly,
and whether the conditional "Reputation" link only appears when user is truthy.

Suggested fix: add Navbar.test.tsx covering the loading/signed-out/signed-in render
branches (mocking useAuth() across all three), giving the eventual fix for the existing
loading-state/multi-role issue a test to build on rather than starting from zero.

Activity

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

    @adeboladee

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

    Hello Maintainer, Please I would like to work on this issue

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

  4. 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.

  5. 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 🌊

  6. added a commit that references this issue on Aug 25, 2026
  7. 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.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. 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