feat(rust): coin balances on the Rust account screen (PLAN_REDESIGNS §11.2) #55

Merged
whitlocktech merged 1 commits from feat/rust-economics into edge 2026-10-12 12:41:14 +00:00
Member

What & why

The app half of the Rust module's Economics (docs/modules/rust/PLAN_REDESIGNS.md §11.2.2): a Coins section on the Rust account screen, read from GET /player/rust/economics (Module-Rust PR alongside).

  • There is one card per server, showing each linked account's balance. A balance the server didn't answer for just now is marked "last known". Where the server has no Economics, the card says "Economics is not installed on this server" (D199).
  • It is a third independent read, beside the links and the entitlements, and a link re-reads it. A 404 from a module older than protocol 14 leaves the section out, rather than showing an error the player can do nothing about.
  • A balance never reported shows a dash, not 0 (coinAmount).

How it was tested

  • gradlew testDebugUnitTest lintDebug assembleDebug passes locally.
  • Four tests are new:
    • the view model's third read, and a link re-reading it;
    • a 404 leaving the rest of the screen alone;
    • the DTO decoding the module's shape, including a server without Economics;
    • the formatter's dash.
  • Note: this repo's CI runs only on PRs into main, so the local run is the check for this PR.

Checklist

  • I have read CONTRIBUTING.md.
  • The change builds and existing tests/checks pass locally.
  • I have added or updated tests/docs where it makes sense.
  • My commits are reasonably scoped with clear messages.

AI-assisted contributions (required)

  • No AI tools were used to produce this contribution.
  • AI tools were used. Tool(s): Claude Code (Claude Opus 5.5). I have reviewed and understand
    every change, and take responsibility for it. AI-authored commits are
    marked with a Co-Authored-By / Assisted-By trailer.

License

  • I agree that my contribution is licensed under this project's license
    (GNU GPL v3.0 or later), and I have the right to contribute it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY

## What & why The app half of the Rust module's Economics (`docs/modules/rust/PLAN_REDESIGNS.md` §11.2.2): a **Coins** section on the Rust account screen, read from `GET /player/rust/economics` (Module-Rust PR alongside). - There is one card per server, showing each linked account's balance. A balance the server didn't answer for just now is marked "last known". Where the server has no Economics, the card says "Economics is not installed on this server" (D199). - It is a third independent read, beside the links and the entitlements, and a link re-reads it. A 404 from a module older than protocol 14 leaves the section out, rather than showing an error the player can do nothing about. - A balance never reported shows a dash, not 0 (`coinAmount`). ## How it was tested - `gradlew testDebugUnitTest lintDebug assembleDebug` passes locally. - Four tests are new: - the view model's third read, and a link re-reading it; - a 404 leaving the rest of the screen alone; - the DTO decoding the module's shape, including a server without Economics; - the formatter's dash. - Note: this repo's CI runs only on PRs into `main`, so the local run is the check for this PR. ## Checklist - [x] I have read [CONTRIBUTING.md](CONTRIBUTING.md). - [x] The change builds and existing tests/checks pass locally. - [x] I have added or updated tests/docs where it makes sense. - [x] My commits are reasonably scoped with clear messages. ## AI-assisted contributions (required) - [ ] No AI tools were used to produce this contribution. - [x] AI tools were used. Tool(s): `Claude Code (Claude Opus 5.5)`. I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with a `Co-Authored-By` / `Assisted-By` trailer. ## License - [x] I agree that my contribution is licensed under this project's license (**GNU GPL v3.0 or later**), and I have the right to contribute it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
wtclaude added 1 commit 2026-10-12 12:16:23 +00:00
feat(rust): coin balances on the Rust account screen (PLAN_REDESIGNS §11.2)
All checks were successful
PR Checks / android-build (pull_request) Successful in 11m28s
531f3b2c4b
The app half of the module's Economics (protocol 14): a Coins section on the
Rust account screen, from GET /player/rust/economics — one card per server,
each linked account's balance, "last known" when the server did not answer,
and "Economics is not installed on this server" where it is absent (D199).

A third independent read beside the links and the entitlements; a link
re-reads it, and a 404 (a module older than protocol 14) leaves the section
out rather than showing an error the player can do nothing about. A balance
never reported shows a dash, not zero.

testDebugUnitTest, lintDebug and assembleDebug pass locally; four new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
whitlocktech merged commit 8c6c6f918d into edge 2026-10-12 12:41:14 +00:00
whitlocktech deleted branch feat/rust-economics 2026-10-12 12:41:16 +00:00
Sign in to join this conversation.
No description provided.