Show the user's own reputation on the Account screen
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #784 by @grunch — merged
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
Research direction
Read the four-step Plan in the issue as the checklist: start with specs/004 (add the requirement) and the .specify/DESIGN_SYSTEM.md §6.3 reputation-read rule, since both define the format the code must follow. Then locate where identity state and forget_identity_state (#533) live to add get_my_reputation() with its identity-and-node cache seeded from the pending Kind 38383 order rating tag, and finally wire the "Your reputation" card above the privacy card on the Account screen with its three states (reviews, empty, full privacy). Done means the card renders all three cases without a public key, and the cache is wiped by forget_identity_state; the daemon user-info action (MostroP2P/mostro#1054) is not yet available, so seed-only behavior must work.
Written by the indexing model from the issue text.
Description
Problem
The app never shows users their own reputation. It shows a counterpart's (order book card, take order, chat panel) but not yours, and nothing in the app computes or stores it. v1 does not show it either.
Source
Today: the only source is the rating tag of the user's own pending Kind 38383 orders (is_mine), which exists only in reputation mode and only while such an order is in the book.
Proposed: a new daemon action, user-info:
- protocol: MostroP2P/protocol#81
- core: MostroP2P/mostro-core#186
- daemon: MostroP2P/mostro#1054
Plan
- Spec first: add a requirement to
specs/004(none asks for it today). - Guide first: a rule in
.specify/DESIGN_SYSTEM.md§6.3 for how any reputation reads, the same for a counterpart and for the user (★ 4,8 · 23 trades · since Nov 2023), withsinceformatted for the locale. - Rust:
get_my_reputation()sendsuser-infowith the identity proof and caches the answer per identity and node.- The cache is identity-scoped, wiped by
forget_identity_state(#533). - Until the daemon ships the action, it is seeded from the user's own pending-order
ratingtag, with the date it was read.
- The cache is identity-scoped, wiped by
- Account screen: a "Your reputation" card above the privacy card.
- Reputation mode, with reviews: stars, rating, trades, since, and which node.
- No reviews yet: an empty state saying it starts with the first rated trade.
- Full privacy: "No reputation is kept in full privacy mode", pointing at the mode selector on the same screen.
user-infois not sent in this mode. - No public key on screen: FR-009 forbids it.
🤖 Generated with Claude Code
- Dominant language
- Dart
- Stars
- 11
- Forks
- 9
- Avg merge
- 22h 28m
- Merged PRs (30d)
- 217
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MostroP2P/app
-
area: rust-core bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good-first-issue P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
flutter/dart-intellij-third-party#758 ·
Maintainers usually reply within 1 day
-
Bug: Incorrect location coordinates on logged Sound Meter dataPossibly taken @Jashan32 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area/archive bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
DarkFlippers/qUnleashed#374 ·
Maintainers usually reply within 1 day