feat(market): save others' offers as favorites (Wallapop-style)

Adds a Favorites feature: a heart on the offer detail saves another
person's listing to an encrypted, per-identity SavedOffersStore
(keystore JSON snapshot, no plaintext at rest). A new /favorites screen
(wired from the drawer) lists saved offers offline-first and, when a
relay is reachable, flags ones that are gone as "no longer available".
i18n en/es/pt/ast; store + screen + detail-heart tests.
This commit is contained in:
vjrj 2026-07-13 08:21:43 +02:00
parent c4421f768a
commit 184c15bcec
19 changed files with 806 additions and 3 deletions

View file

@ -40,6 +40,7 @@ class TranslationsAst extends Translations with BaseTranslations<AppLocale, Tran
// Translations
@override late final _Translations$avatar$ast avatar = _Translations$avatar$ast._(_root);
@override late final _Translations$favorites$ast favorites = _Translations$favorites$ast._(_root);
@override late final _Translations$seedSaving$ast seedSaving = _Translations$seedSaving$ast._(_root);
@override late final _Translations$calendar$ast calendar = _Translations$calendar$ast._(_root);
@override late final _Translations$app$ast app = _Translations$app$ast._(_root);
@ -99,6 +100,20 @@ class _Translations$avatar$ast extends Translations$avatar$en {
@override String get remove => 'Quitar';
}
// Path: favorites
class _Translations$favorites$ast extends Translations$favorites$en {
_Translations$favorites$ast._(TranslationsAst root) : this._root = root, super.internal(root);
final TranslationsAst _root; // ignore: unused_field
// Translations
@override String get title => 'Favoritos';
@override String get empty => 'Entá nun tienes favoritos. Guarda ofertes que te presten del mercáu.';
@override String get save => 'Guardar en favoritos';
@override String get remove => 'Quitar de favoritos';
@override String get unavailable => 'Yá nun ta disponible';
}
// Path: seedSaving
class _Translations$seedSaving$ast extends Translations$seedSaving$en {
_Translations$seedSaving$ast._(TranslationsAst root) : this._root = root, super.internal(root);
@ -1312,6 +1327,11 @@ extension on TranslationsAst {
'avatar.fromPhoto' => 'Facer o escoyer una semeya',
'avatar.illustration' => 'O escueyi un dibuxu',
'avatar.remove' => 'Quitar',
'favorites.title' => 'Favoritos',
'favorites.empty' => 'Entá nun tienes favoritos. Guarda ofertes que te presten del mercáu.',
'favorites.save' => 'Guardar en favoritos',
'favorites.remove' => 'Quitar de favoritos',
'favorites.unavailable' => 'Yá nun ta disponible',
'seedSaving.title' => 'Guardar la so semiente',
'seedSaving.subtitle' => 'Lo que fai falta pa caltener la variedá fiel',
'seedSaving.lifeCycle' => 'Ciclu',