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:
parent
a24831530d
commit
7e7340d643
18 changed files with 873 additions and 12 deletions
|
|
@ -77,6 +77,7 @@ class TranslationsEs extends Translations with BaseTranslations<AppLocale, Trans
|
|||
@override late final _Translations$chat$es chat = _Translations$chat$es._(_root);
|
||||
@override late final _Translations$trust$es trust = _Translations$trust$es._(_root);
|
||||
@override late final _Translations$yourPeople$es yourPeople = _Translations$yourPeople$es._(_root);
|
||||
@override late final _Translations$ratings$es ratings = _Translations$ratings$es._(_root);
|
||||
@override late final _Translations$notifications$es notifications = _Translations$notifications$es._(_root);
|
||||
@override late final _Translations$plantare$es plantare = _Translations$plantare$es._(_root);
|
||||
@override late final _Translations$sale$es sale = _Translations$sale$es._(_root);
|
||||
|
|
@ -808,6 +809,21 @@ class _Translations$yourPeople$es extends Translations$yourPeople$en {
|
|||
@override String get offline => 'Sin conexión — inténtalo cuando estés en línea';
|
||||
}
|
||||
|
||||
// Path: ratings
|
||||
class _Translations$ratings$es extends Translations$ratings$en {
|
||||
_Translations$ratings$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsEs _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get rate => 'Valorar a esta persona';
|
||||
@override String get edit => 'Editar tu valoración';
|
||||
@override String get commentHint => '¿Qué tal fue? (opcional)';
|
||||
@override String fromYourCircle({required Object n}) => '${n} de gente que conoces';
|
||||
@override String get retract => 'Quitar tu valoración';
|
||||
@override String get saved => 'Valoración guardada';
|
||||
}
|
||||
|
||||
// Path: notifications
|
||||
class _Translations$notifications$es extends Translations$notifications$en {
|
||||
_Translations$notifications$es._(TranslationsEs root) : this._root = root, super.internal(root);
|
||||
|
|
@ -1631,6 +1647,12 @@ extension on TranslationsEs {
|
|||
'yourPeople.revoke' => 'Dejar de avalar',
|
||||
'yourPeople.revokeConfirm' => '¿Dejar de avalar a esta persona?',
|
||||
'yourPeople.offline' => 'Sin conexión — inténtalo cuando estés en línea',
|
||||
'ratings.rate' => 'Valorar a esta persona',
|
||||
'ratings.edit' => 'Editar tu valoración',
|
||||
'ratings.commentHint' => '¿Qué tal fue? (opcional)',
|
||||
'ratings.fromYourCircle' => ({required Object n}) => '${n} de gente que conoces',
|
||||
'ratings.retract' => 'Quitar tu valoración',
|
||||
'ratings.saved' => 'Valoración guardada',
|
||||
'notifications.newMessageFrom' => ({required Object name}) => 'Nuevo mensaje de ${name}',
|
||||
'plantare.title' => 'Plantares',
|
||||
'plantare.help' => 'Un Plantare es el compromiso de reproducir una semilla y devolver una parte — así una variedad sigue viajando de mano en mano. No es una venta.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue