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
acdacf1821
commit
1926e3bd98
18 changed files with 873 additions and 12 deletions
|
|
@ -77,6 +77,7 @@ class TranslationsAst extends Translations with BaseTranslations<AppLocale, Tran
|
|||
@override late final _Translations$chat$ast chat = _Translations$chat$ast._(_root);
|
||||
@override late final _Translations$trust$ast trust = _Translations$trust$ast._(_root);
|
||||
@override late final _Translations$yourPeople$ast yourPeople = _Translations$yourPeople$ast._(_root);
|
||||
@override late final _Translations$ratings$ast ratings = _Translations$ratings$ast._(_root);
|
||||
@override late final _Translations$notifications$ast notifications = _Translations$notifications$ast._(_root);
|
||||
@override late final _Translations$plantare$ast plantare = _Translations$plantare$ast._(_root);
|
||||
@override late final _Translations$sale$ast sale = _Translations$sale$ast._(_root);
|
||||
|
|
@ -806,6 +807,21 @@ class _Translations$yourPeople$ast extends Translations$yourPeople$en {
|
|||
@override String get offline => 'Ensin conexón — vuelvi tentalo cuando teas en llinia';
|
||||
}
|
||||
|
||||
// Path: ratings
|
||||
class _Translations$ratings$ast extends Translations$ratings$en {
|
||||
_Translations$ratings$ast._(TranslationsAst root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsAst _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get rate => 'Valorar a esta persona';
|
||||
@override String get edit => 'Editar la to valoración';
|
||||
@override String get commentHint => '¿Qué tal foi? (opcional)';
|
||||
@override String fromYourCircle({required Object n}) => '${n} de xente que conoces';
|
||||
@override String get retract => 'Quitar la to valoración';
|
||||
@override String get saved => 'Valoración guardada';
|
||||
}
|
||||
|
||||
// Path: notifications
|
||||
class _Translations$notifications$ast extends Translations$notifications$en {
|
||||
_Translations$notifications$ast._(TranslationsAst root) : this._root = root, super.internal(root);
|
||||
|
|
@ -1627,6 +1643,12 @@ extension on TranslationsAst {
|
|||
'yourPeople.revoke' => 'Dexar d\'avalar',
|
||||
'yourPeople.revokeConfirm' => '¿Dexar d\'avalar a esta persona?',
|
||||
'yourPeople.offline' => 'Ensin conexón — vuelvi tentalo cuando teas en llinia',
|
||||
'ratings.rate' => 'Valorar a esta persona',
|
||||
'ratings.edit' => 'Editar la to valoración',
|
||||
'ratings.commentHint' => '¿Qué tal foi? (opcional)',
|
||||
'ratings.fromYourCircle' => ({required Object n}) => '${n} de xente que conoces',
|
||||
'ratings.retract' => 'Quitar la to valoración',
|
||||
'ratings.saved' => 'Valoración guardada',
|
||||
'notifications.newMessageFrom' => ({required Object name}) => 'Mensaxe nuevu de ${name}',
|
||||
'plantare.title' => 'Plantares',
|
||||
'plantare.help' => 'Un Plantare ye\'l compromisu de reproducir una semilla y devolver una parte — asina una variedá sigue viaxando de mano en mano. Nun ye una venta.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue