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
MaintainerDashboardPage's try/catch around fetchBounties is dead code — fetchBounties never throws, so statStatus can never actually become "error" #240
with a comment explaining the intent: "We wrap fetchBounties in a try/catch so that if
the fetch fails, the cards explicitly show 'Error loading data' rather than rendering
stale zeros or crashing the page render."
But src/lib/api.ts#fetchBounties already catches every failure internally and resolves
to the fallback argument instead of rejecting:
fetchBounties cannot throw under any circumstance this function's own implementation
allows — every branch either returns adapted live data or the fallback. This means the catch block in MaintainerDashboardPage is unreachable dead code: statStatus is "loaded" in literally every case, including when the live fetch silently failed and
fell back to mockBounties. The comment's stated intent — showing "Error loading data"
on a genuine backend failure — is never actually achieved; the maintainer dashboard has
no way to distinguish "live data" from "backend down, showing 5 hardcoded mock bounties"
at all, contrary to what the surrounding code visibly tries to do.
Suggested fix: either have fetchBounties (or a variant of it) surface failure
information the caller can act on instead of swallowing it entirely, or remove the
misleading try/catch and comment here since it currently does nothing.
@Muyideen-js has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
I'd like to fix this dead code by having fetchBounties surface failure information, likely by returning a discriminated union like { status: "loaded" | "error"; data: Bounty[] } so MaintainerDashboardPage can properly set statStatus. I'd update the mockBounties fallback path in api.ts to return the error status and adjust the dashboard's rendering accordingly.
Congratulations, @boluwacodes! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
🧑💻 @boluwacodes: 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.
😎 @boluwacodes: 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
boluwacodes commentedon Aug 24, 2026
@boluwacodes has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @boluwacodes to this issue.
Muyideen-js commentedon Aug 24, 2026
@Muyideen-js has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Muyideen-js to this issue.
drips-wave commentedon Aug 24, 2026
Congratulations, @boluwacodes! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
🧑💻 @boluwacodes: 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 🌊
fix(maintainer-dashboard): fix dead error-status detection, wire up C…
drips-wave commentedon Aug 25, 2026
This issue has been completed by @boluwacodes as part of the Stellar Wave Program's 8th Wave 🥳
😎 @boluwacodes: 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.