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:
parent
5f87ad2d56
commit
cfba85b9d9
9 changed files with 86 additions and 8 deletions
|
|
@ -1080,6 +1080,21 @@ class Translations$market$en {
|
|||
/// en: 'Set up sharing'
|
||||
String get setUp => 'Set up sharing';
|
||||
|
||||
/// en: 'Can't reach the community servers right now'
|
||||
String get cantReach => 'Can\'t reach the community servers right now';
|
||||
|
||||
/// en: 'Try again, or check the servers under Advanced setup.'
|
||||
String get cantReachBody => 'Try again, or check the servers under Advanced setup.';
|
||||
|
||||
/// en: 'Retry'
|
||||
String get retry => 'Retry';
|
||||
|
||||
/// en: 'Set your area'
|
||||
String get setArea => 'Set your area';
|
||||
|
||||
/// en: 'Tell the market roughly where you are to see seeds nearby.'
|
||||
String get setAreaBody => 'Tell the market roughly where you are to see seeds nearby.';
|
||||
|
||||
/// en: 'Looking around your area…'
|
||||
String get searching => 'Looking around your area…';
|
||||
|
||||
|
|
@ -2034,6 +2049,11 @@ extension on Translations {
|
|||
'market.notSetUp' => 'Sharing isn\'t set up yet',
|
||||
'market.notSetUpBody' => 'Turn on sharing to see and give seeds to people near you. It stays rough — your zone, never your exact address.',
|
||||
'market.setUp' => 'Set up sharing',
|
||||
'market.cantReach' => 'Can\'t reach the community servers right now',
|
||||
'market.cantReachBody' => 'Try again, or check the servers under Advanced setup.',
|
||||
'market.retry' => 'Retry',
|
||||
'market.setArea' => 'Set your area',
|
||||
'market.setAreaBody' => 'Tell the market roughly where you are to see seeds nearby.',
|
||||
'market.searching' => 'Looking around your area…',
|
||||
'market.empty' => 'No seeds shared near you yet',
|
||||
'market.near' => 'Near you',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue