Skip to content

reputation/[handle]/page.tsx has no test file despite its duplicated case-insensitive lookup and two independent empty-state branches #412

Closed

Description

@abayomicornelius

Problem

src/app/reputation/[handle]/page.tsx has no test file. It has real logic worth verifying: generateMetadata and the page component each independently build a case-insensitive mockFallback lookup (Object.values(mockReputationProfiles).find((p) => p.handle.toLowerCase() === handle.toLowerCase()), fixed for #245's case-sensitivity bug) before calling fetchReputationByUsername, and the rendered page has two distinct empty-state branches (profile.organizations.length === 0 → "No contributions recorded yet.", profile.languages.length === 0 → "No data yet.") plus a notFound() call when the profile can't be resolved at all.

Impact

The #245 case-insensitivity fix is duplicated (not shared) between generateMetadata and the default export, which is itself worth testing to make sure both stay in sync — plus the two independent empty-state branches and the notFound() path have zero current coverage, unlike the equivalent empty-state pattern on IssuesPage/MilestonesPage which are exercised via EmptyState (albeit also currently untested at the page level, per other issues in this batch).

Suggested fix

Add src/app/reputation/[handle]/page.test.tsx (or extract the presentational body for testability, per this repo's own PipelineBoard precedent) covering: a handle differing only in case from a mock profile still resolves; organizations/languages each independently render their own empty-state text when empty; and an unresolvable handle triggers notFound().

Activity

  1. added
    testing
    on Sep 17, 2026
  2. ranjeet150 commented on Sep 18, 2026

    @ranjeet150

    Hello @maintainers,

    I can tackle reputation/[handle]/page.tsx has no test file despite its duplicated case-insensitive lookup and two independent empty-state branches. Proposed implementation roadmap:

    • Analysis: Inspect current behavior and edge cases in MergeFi/frontend
    • Core Implementation: Create reproduction and validation suites for reputation/[handle]/page.tsx has no test file despite its duplicated case-insensitive lookup and two independent empty-state branches to ensure regression-free behavior.
    • Quality Assurance: Verify all test cases pass locally and in the GitHub Actions CI workflow.

    Happy to pick this up today—please assign to me!

  3. added
    Stellar Wave
    on Sep 24, 2026
  4. Eeboade commented on Sep 24, 2026

    @Eeboade

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

    Hi, kindly assign, i would love to fix

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

  5. Elemesin commented on Sep 24, 2026

    @Elemesin

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

    Hi, I checked the issue and followed the current behavior of the affected functionality. I understand what needs to be changed and can handle both the implementation and testing.

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

  6. Duyicoda commented on Sep 24, 2026

    @Duyicoda

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

    Hi, I’d like to work on this issue.

    I have strong experience in software development and can understand the requirements, contribute effectively, and deliver a clean, reliable solution.

    I’m ready to get started immediately if selected. Thank you for considering my application.

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

  7. innocentharuna commented on Sep 24, 2026

    @innocentharuna

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

    hey maintainer, please kindly assign this to me, i can surely fix it

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

  8. VeronicDev commented on Sep 24, 2026

    @VeronicDev

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

    Hello Maintainer, I can fix this please assign.

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

  9. stpatrickghost commented on Sep 24, 2026

    @stpatrickghost

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

    Please maintainer... Assign me this issue.

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

  10. Noragiftfr commented on Sep 24, 2026

    @Noragiftfr
    Contributor

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

    Hi Maintainer, I’d like to handle this

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

  11. drips-wave commented on Sep 24, 2026

    @drips-wave

    Congratulations, @Noragiftfr! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

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

  12. drips-wave commented on Sep 26, 2026

    @drips-wave

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

    😎 @Noragiftfr: 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.

  13. removed
    Stellar Wave
    on Oct 15, 2026
  14. added
    Stellar Wave
    on Oct 15, 2026
  15. removed
    Stellar Wave
    on Oct 15, 2026
  16. added
    Stellar Wave
    on Oct 15, 2026
  17. removed
    Stellar Wave
    on Oct 15, 2026
  18. 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 Wavetesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions