Skip to content

fix(frontend): clarify creator wallet mock vs Horizon data + persist quest edit via drafts API - #279

Merged
Kaylahray merged 1 commit into
Quid-proquo:mainfrom
limxiy:fix/fe-creator-wallet-honesty
Jul 29, 2026
Merged

fix(frontend): clarify creator wallet mock vs Horizon data + persist quest edit via drafts API#279
Kaylahray merged 1 commit into
Quid-proquo:mainfrom
limxiy:fix/fe-creator-wallet-honesty

Conversation

@limxiy

@limxiy limxiy commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Description

This PR addresses two issues assigned to the creator dashboard:

1. Creator wallet — clarify mock earnings vs Horizon (#266)

  • Removed the fake ,150.02 mock earnings figure from the balance card
  • Renamed the balance section to Horizon Balances showing only real on-chain XLM/USDC
  • Disabled the Withdraw Funds button with a Coming soon badge and tooltip
  • Removed the View Earnings button (no earnings API exists yet)
  • Updated labels to make clear that all displayed data reflects real on-chain balances
  • Disabled Withdraw in the side-panel Withdrawal Method section

2. Persist quest edit via draft API (#264)

  • Replaced the \console.log\ stub with an actual \POST /missions/drafts\ API call
  • Added success/error notification toasts using inline banner components
  • On success, the user is redirected back to the quest detail page after a brief delay
  • Errors are surfaced inline with clear messages
  • Utilizes the existing SEP-10 auth flow via \creatorApiFetch\ with Bearer token

Changes

  • frontend/src/app/creator/wallet/page.tsx — Removed mock earnings, restructured balance card, disabled withdraw
  • frontend/src/app/creator/quests/[questId]/edit/page.tsx — Implemented draft save via API, added notifications

Closes #266
Closes #264

- Removed fake EARNINGS_USD () placeholder
- Removed unlabeled mock earnings figure from balance card
- Disabled Withdraw Funds button with Coming Soon badge
- Removed View Earnings button
- Renamed heading to Horizon Balances showing real XLM/USDC
- Labeled all balances as on-chain data
- Disabled Withdraw in sidebar section

Closes Quid-proquo#266

feat(frontend): persist quest edit via drafts API

- Replaced console.log stub with POST /missions/drafts via creatorApiFetch
- Added success/error notification toasts
- Redirects to quest detail on success
- Removed TODO comments

Closes Quid-proquo#264
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@limxiy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kaylahray
Kaylahray merged commit 9f8a62c into Quid-proquo:main Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] Creator wallet — clarify mock earnings vs Horizon [FE] Persist quest edit via draft API

2 participants