Skip to content

Conversation

@pope-h
Copy link
Contributor

@pope-h pope-h commented Feb 6, 2026

Summary

Adds protocol ratings and reviews to the Protocol detail page, including summary metrics, star distribution, recent reviews with author info, and a dialog to create/update a user’s rating.

What changed

•⁠ ⁠Backend

  • Added ratings endpoints for:
    • Weighted summary
    • Current user’s rating (“mine”)
    • Reviews with author info
  • Implemented optional weighted average using reviewer ⁠ ReputationScore ⁠
  • Added supporting view models and caching invalidation for weighted summaries
    •⁠ ⁠UI
  • Added ratings API client types/calls
  • Extended protocol details hook to load ratings data and support refreshing after updates
  • Added ratings UI: average + total, bar chart distribution, recent reviews, and rate/update dialog with prefill

Acceptance Criteria coverage

•⁠ ⁠Rating section on Protocol detail page
•⁠ ⁠Average + total ratings
•⁠ ⁠Star distribution chart
•⁠ ⁠Rating dialog with star selector + optional review
•⁠ ⁠Show existing user rating and allow updating
•⁠ ⁠Recent reviews with author info
•⁠ ⁠Optional weighted average based on reviewer reputation

Testing notes

•⁠ ⁠Please run locally:

  • ⁠ dotnet test Backend/SorobanSecurityPortal.sln ⁠
  • ⁠ npm -C UI run build ⁠ (or your normal UI pipeline)

closes #78

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.

Implement Protocol Rating System (1-5 Stars with Review)

1 participant