Skip to content

SponsorDashboardPage sets isLive(false) on a genuine fetch error, showing a misleading "Demo data" badge and "sign in with GitHub" prompt to an already-signed-in sponsor #269

Closed

Description

@chonilius

src/app/dashboard/sponsor/page.tsx#SponsorDashboardPage's data-fetch effect handles a
failed live request like this:

.catch(() => {
  setData(null);
  setFetchStatus("error");
  setIsLive(false);
});

Compare this to the equivalent catch block in
src/app/dashboard/contributor/page.tsx#ContributorDashboardPage, handling the identical
class of failure:

.catch(() => {
  setStats(null);
  setFetchStatus("error");
  setIsLive(true);
});

The two dashboards disagree on what isLive should be after a genuine backend error for
a signed-in user: contributor keeps isLive: true (correct — the user is signed in, this
just isn't demo mode, it's a real error), sponsor sets it to false. isLive directly
drives the sponsor dashboard's badge and subtitle text:

badge={<span>{isLive ? "Live data" : "Demo data"}</span>}
subtitle={isLive ? "Track spending..." : "Sign in with GitHub to see your own sponsorships. Showing sample data for now."}

So a signed-in sponsor whose /sponsors/:id/dashboard request genuinely fails (a 500, a
timeout) sees a "Demo data" badge and a subtitle telling them to "sign in with GitHub" —
even though they're already signed in and no demo/sample data is being shown at all (the
StatCards are in their "error" state, showing "—" and "Error loading data", not sample
figures). This is confusing and factually wrong on two counts simultaneously.

Suggested fix: set isLive(true) in the catch block here too, matching
ContributorDashboardPage's (correct) handling of the same scenario, so the badge/subtitle
never claims "demo data"/"sign in" for an authenticated user experiencing a real fetch
error.

Activity

  1. added
    bug
    very hard
    help wanted
    architecture
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. Netty-kun commented on Aug 25, 2026

    @Netty-kun

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

    I'd like to work on this issue.. will be done within minutes or an hour tops.

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

  4. Sammydz456 commented on Aug 25, 2026

    @Sammydz456

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

    hello can i work on this issue please

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

  5. dynamicwearsng-debug commented on Aug 25, 2026

    @dynamicwearsng-debug

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

    PLEASE LET ME WORK ON THUS ISSUES

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

  6. GiftedGiftB commented on Aug 25, 2026

    @GiftedGiftB

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

    I can get this work done in less than 24 hours.

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

  7. p4uld4vid016-code commented on Aug 25, 2026

    @p4uld4vid016-code

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

    Hello maintainer, i would like to work on this issue

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

  8. felladaniel36-hash commented on Aug 25, 2026

    @felladaniel36-hash

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

    I'd like to claim this issue. I have reviewed the details and can begin working on a fix right away. Please assign it to me if it's still available. Thanks!

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

  9. KingDavid9999 commented on Aug 25, 2026

    @KingDavid9999

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

    Hi maintainer, I'd very much appreciate the opportunity to work on this issue.
    Having reviewed the acceptance criteria, I'm confident that I'd be able to have a PR up shortly after being assigned.
    Kindly assign this issue to me.
    Thank you!

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

  10. boys-cyberhub commented on Aug 25, 2026

    @boys-cyberhub
    Contributor

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

    hello can i work on this issue please

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

  11. drips-wave commented on Aug 25, 2026

    @drips-wave

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

    🧑‍💻 @boys-cyberhub: 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 Aug 25, 2026

    @drips-wave

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

    😎 @boys-cyberhub: 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 Wavearchitecturebughelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions