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

@ -609,6 +609,11 @@ class _Translations$market$pt extends Translations$market$en {
@override String get notSetUp => 'Ainda não configuraste a partilha';
@override String get notSetUpBody => 'Ativa a partilha para ver e dar sementes a pessoas por perto. Mantém-se aproximado — a tua zona, nunca a tua morada exata.';
@override String get setUp => 'Configurar a partilha';
@override String get cantReach => 'Não é possível ligar aos servidores neste momento';
@override String get cantReachBody => 'Tenta de novo, ou verifica os servidores na configuração avançada.';
@override String get retry => 'Tentar de novo';
@override String get setArea => 'Indica a tua zona';
@override String get setAreaBody => 'Diz ao mercado a tua zona aproximada para ver sementes por perto.';
@override String get searching => 'A procurar pela tua zona…';
@override String get empty => 'Ainda não há sementes partilhadas perto de ti';
@override String get near => 'Perto de ti';
@ -1338,6 +1343,11 @@ extension on TranslationsPt {
'market.notSetUp' => 'Ainda não configuraste a partilha',
'market.notSetUpBody' => 'Ativa a partilha para ver e dar sementes a pessoas por perto. Mantém-se aproximado — a tua zona, nunca a tua morada exata.',
'market.setUp' => 'Configurar a partilha',
'market.cantReach' => 'Não é possível ligar aos servidores neste momento',
'market.cantReachBody' => 'Tenta de novo, ou verifica os servidores na configuração avançada.',
'market.retry' => 'Tentar de novo',
'market.setArea' => 'Indica a tua zona',
'market.setAreaBody' => 'Diz ao mercado a tua zona aproximada para ver sementes por perto.',
'market.searching' => 'A procurar pela tua zona…',
'market.empty' => 'Ainda não há sementes partilhadas perto de ti',
'market.near' => 'Perto de ti',