Skip to content

Remove the wallet, and send people to Rotur for their credits - #114

Merged
Mistium merged 5 commits into
developfrom
remove-wallet
Oct 2, 2026
Merged

Mistium merged 5 commits into
developfrom
remove-wallet

Conversation

@Mistium

@Mistium Mistium commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Sophie decided MistWarp shouldn't have its own wallet. Your balance, daily credits and transactions live on Rotur, so MistWarp now links to https://rotur.dev/me for them, and no longer asks for credits:view or credits:daily.

What changes

  • The wallet page becomes Purchases (/purchases). It lists what you've bought, from mistwarp-api's own records (/me/purchases), plus a card that opens rotur.dev/me. /wallet redirects there, and the account menu's Wallet is now Purchases.

  • What's removed:

    • your balance;
    • the Claim daily button;
    • the creator earnings from Rotur's commerce API (/commerce/me/earnings, which needs credits:view);
    • the profile donation history and totals, which were read from your Rotur transactions.

    The rotur.dev link replaces all of these.

  • My Stuff:

    • The Wallet card becomes Earnings. It shows Credits earned from mistwarp-api's own sales records (stats.totalRevenue, which needs no credits:*).
    • The card has buttons for Purchases and Balance on Rotur.
    • The card's buttons now wrap, so they stay inside the card.
  • The buy confirmation no longer looks up or shows your balance, and no longer sends you to the wallet. Running out of credits now says to claim daily credits "on Rotur". The profile donate form links to Rotur too.

  • Scopes:

  • Bounty lists no longer send a token. Rotur's GET /commerce/bounties is public, and with credits:view gone the token branch would have asked for it.

  • Dead code:

    • getBalance, getAccountSummary, donationTransactions, claimDaily and getCommerceEarnings, and their tests;
    • the wallet-only CSS;
    • 34 strings only the wallet used.

Screenshots

Firefox, the community site with mistwarp-api and api.rotur.dev mocked.

Before, /wallet:
Wallet before

After, /wallet now goes to /purchases:
Purchases after

Before, My Stuff:
My Stuff before

After, My Stuff:
My Stuff after

Stacked on #115

This branch is rebased onto #115, so until #115 merges, the diff here also shows its three commits. Once #115 is in, only this PR's two commits remain, and it can merge with no further rebase.

It doesn't depend on #108. /me/purchases and stats.totalRevenue are already on mistwarp-api's main, and the buy flow on develop asks for its own scope when someone pays, so it doesn't need credits:view.

Overlap with #108

#108 changes the same buy confirmation in Project.jsx, and removes the profile donate form and sendCommercePayment in credits.js. Whichever merges second needs a small conflict resolution: keep #108's payment window and this PR's removal of the balance. .confirmBalance in Project.module.css stays, because #108 uses it.

Testing

  • community-purchases.test.jsx is new. It checks that:
    • purchases come from MistWarp's records;
    • the Rotur link opens in a new tab;
    • no balance or Claim daily appears;
    • the page never loads the Rotur client.
  • After the rebase onto Stop projects moving credits through the Rotur bridge #115, the full suite passes (pnpm run test:unit:ci: 1946 tests in 325 suites), and pnpm lint passes.
  • deps:check, i18n:community:check, i18n:editor:check and check:community-css pass.
  • Checked in Firefox, as shown above.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Deploying scratch-gui with  Cloudflare Pages  Cloudflare Pages

Latest commit: e4521f4
Status: ✅  Deploy successful!
Preview URL: https://717887e6.scratch-gui.pages.dev
Branch Preview URL: https://remove-wallet.scratch-gui.pages.dev

View logs

gifts.create, keys.buy, groups.sendTip and groups.purchaseProduct are no
longer methods projects may call, so credits:manage and gifts:create are
no longer project scopes. MistWarp's own payments go through Rotur
payment requests. With me.transfer already gone, nothing sends a payment
confirmation, so the consent modals' payment layout goes too, with its
strings.
Buying from Rotur's item and cosmetic shops spends credits, which
projects no longer do. items.buy and cosmetics.purchase are no longer
project methods, so items:buy and cosmetics:buy are no longer project
scopes.
scratch-vm now hides the blocks that read or spent credits, and they
call nothing. The test that walks every block no longer skips their
methods, and me.claimTime and me.transactions, which only the daily
claim and transaction blocks used, are no longer project methods.
MistWarp no longer shows your Rotur balance, claims daily credits or reads
your transactions, so it no longer asks for credits:view or credits:daily,
and projects can't either. The wallet page becomes Purchases, with what
you've bought from MistWarp's own records and a link to rotur.dev/me for
everything about your credits; /wallet goes there. My Stuff's wallet card
becomes Earnings, with the credits earned that mistwarp-api records. The
buy confirmation no longer shows a balance. Listing bounties no longer
sends a token, since anyone can list them.
Every commerce request names the permission it needs, so the
credits:view default is never used.
@Mistium
Mistium merged commit cdf3abb into develop Oct 2, 2026
2 checks passed
@Mistium
Mistium deleted the remove-wallet branch October 15, 2026 21:45
mc20000-01 pushed a commit to mc20000-01/scratch-gui that referenced this pull request Nov 7, 2026
Remove the wallet, and send people to Rotur for their credits
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.

1 participant