You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reputation/[handle]/page.tsx has no test file despite its duplicated case-insensitive lookup and two independent empty-state branches #412
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().
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.
@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.
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.
😎 @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.
Activity
test(reputation): add unit test coverage for reputation/[handle]/page…
ranjeet150 commentedon Sep 18, 2026
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:MergeFi/frontendreputation/[handle]/page.tsx has no test file despite its duplicated case-insensitive lookup and two independent empty-state branchesto ensure regression-free behavior.Happy to pick this up today—please assign to me!
Eeboade commentedon Sep 24, 2026
@Eeboade has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Eeboade to this issue.
Elemesin commentedon Sep 24, 2026
@Elemesin has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Elemesin to this issue.
Duyicoda commentedon Sep 24, 2026
@Duyicoda has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Duyicoda to this issue.
innocentharuna commentedon Sep 24, 2026
@innocentharuna has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @innocentharuna to this issue.
VeronicDev commentedon Sep 24, 2026
@VeronicDev has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @VeronicDev to this issue.
stpatrickghost commentedon Sep 24, 2026
@stpatrickghost has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @stpatrickghost to this issue.
Noragiftfr commentedon Sep 24, 2026
@Noragiftfr has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Noragiftfr to this issue.
drips-wave commentedon Sep 24, 2026
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 🌊
test: extract ReputationProfileView for testability (MergeFi#412)
drips-wave commentedon Sep 26, 2026
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.