feat(ratings): Wallapop-style ratings in chat and offer detail

- SocialSession grows a ratings transport (fifth interface on the one
  shared channel).
- PeerRatingCubit: count, locale-aware average, and circleCount — how
  many ratings come from your own circle (reuses the ego-centric trust
  rule), the signal that makes strangers' review-stuffing irrelevant.
- Chat: slim rating strip under the trust banner; you can rate only
  someone you've talked with (soft anchor until the signed bilateral
  exchange form lands). Sheet with 5 stars + optional comment,
  pre-filled for editing, with a take-back action.
- Offer detail: author's stars under their name, with 'N from people
  you know' when your circle rated them; nothing shown when unrated.
- i18n ratings.* (en/es/pt/ast); tests for cubit and sheet.
This commit is contained in:
vjrj 2026-07-11 13:13:43 +02:00
parent acdacf1821
commit 1926e3bd98
18 changed files with 873 additions and 12 deletions

View file

@ -552,6 +552,14 @@
"revokeConfirm": "¿Dejar de avalar a esta persona?",
"offline": "Sin conexión — inténtalo cuando estés en línea"
},
"ratings": {
"rate": "Valorar a esta persona",
"edit": "Editar tu valoración",
"commentHint": "¿Qué tal fue? (opcional)",
"fromYourCircle": "{n} de gente que conoces",
"retract": "Quitar tu valoración",
"saved": "Valoración guardada"
},
"notifications": {
"newMessageFrom": "Nuevo mensaje de {name}"
},