fix(block2): clearer market states — 'can't reach servers' (retry) vs 'set your area'

Feedback: the market sometimes looked 'disabled'. Now the offline/empty states
are distinct and honest:
- No working relay (defaults exist, so it's a reachability issue) → 'Can't reach
  the community servers right now' + a Retry.
- Online but no area set → 'Set your area' prompt (you'd otherwise see a bare
  'nothing nearby').
- Area set + nothing found → the existing empty state.

i18n en/es/pt; offline tests updated; analyzer clean.
This commit is contained in:
vjrj 2026-07-10 13:36:01 +02:00
parent 5f87ad2d56
commit cfba85b9d9
9 changed files with 86 additions and 8 deletions

View file

@ -613,6 +613,11 @@ class _Translations$market$es extends Translations$market$en {
@override String get notSetUp => 'Aún no has configurado el compartir';
@override String get notSetUpBody => 'Activa el compartir para ver y dar semillas a gente cercana. Se mantiene aproximado — tu zona, nunca tu dirección exacta.';
@override String get setUp => 'Configurar el compartir';
@override String get cantReach => 'No se puede conectar con los servidores ahora mismo';
@override String get cantReachBody => 'Inténtalo de nuevo, o revisa los servidores en la configuración avanzada.';
@override String get retry => 'Reintentar';
@override String get setArea => 'Indica tu zona';
@override String get setAreaBody => 'Dile al mercado tu zona aproximada para ver semillas cerca.';
@override String get searching => 'Buscando por tu zona…';
@override String get empty => 'Aún no hay semillas compartidas cerca de ti';
@override String get near => 'Cerca de ti';
@ -1346,6 +1351,11 @@ extension on TranslationsEs {
'market.notSetUp' => 'Aún no has configurado el compartir',
'market.notSetUpBody' => 'Activa el compartir para ver y dar semillas a gente cercana. Se mantiene aproximado — tu zona, nunca tu dirección exacta.',
'market.setUp' => 'Configurar el compartir',
'market.cantReach' => 'No se puede conectar con los servidores ahora mismo',
'market.cantReachBody' => 'Inténtalo de nuevo, o revisa los servidores en la configuración avanzada.',
'market.retry' => 'Reintentar',
'market.setArea' => 'Indica tu zona',
'market.setAreaBody' => 'Dile al mercado tu zona aproximada para ver semillas cerca.',
'market.searching' => 'Buscando por tu zona…',
'market.empty' => 'Aún no hay semillas compartidas cerca de ti',
'market.near' => 'Cerca de ti',