fix(market): search your zone by a coarse prefix, not the exact cell
Discovery searched the full 5-char geohash (~2.4 km) with an exact Nostr tag match, so two devices in adjacent cells never found each other even though publish emits the full NIP-52 prefix ladder. Search now coarsens the area to a configurable precision (SocialSettings.searchPrecision, default 4 ~20 km) via searchPrefix(), with a human-worded 'how far' selector (Very close / Around here / My region -> 5/4/3) in the market setup sheet. Also: surface a clear 'couldn't reach the servers' message when no relay accepts a share (instead of 'shared 0'), and add wss://relay.comunes.org as the first default relay (reliable community home; public relays are backup). Tests: settings precision (default/clamp/roundtrip), searchPrefix helper, neighbour-cell discovery regression (offers_cubit + commons_core nostr transports), and the range-selector widget test.
This commit is contained in:
parent
1fb8e37536
commit
97b9223cb2
16 changed files with 268 additions and 10 deletions
|
|
@ -644,6 +644,11 @@ class _Translations$market$pt extends Translations$market$en {
|
|||
@override String get useLocation => 'Usar a minha localização aproximada';
|
||||
@override String get locationFailed => 'Não foi possível obter a tua localização — verifica se a localização está ativa e a permissão concedida';
|
||||
@override String get queued => 'Guardado — vamos partilhá-las quando tiveres ligação';
|
||||
@override String get shareFailed => 'Não foi possível contactar os servidores — as tuas sementes não foram partilhadas. Tenta de novo daqui a pouco.';
|
||||
@override String get rangeLabel => 'Até onde procurar';
|
||||
@override String get rangeNear => 'Muito perto';
|
||||
@override String get rangeArea => 'Pela minha zona';
|
||||
@override String get rangeRegion => 'A minha região';
|
||||
}
|
||||
|
||||
// Path: profile
|
||||
|
|
@ -1382,6 +1387,11 @@ extension on TranslationsPt {
|
|||
'market.useLocation' => 'Usar a minha localização aproximada',
|
||||
'market.locationFailed' => 'Não foi possível obter a tua localização — verifica se a localização está ativa e a permissão concedida',
|
||||
'market.queued' => 'Guardado — vamos partilhá-las quando tiveres ligação',
|
||||
'market.shareFailed' => 'Não foi possível contactar os servidores — as tuas sementes não foram partilhadas. Tenta de novo daqui a pouco.',
|
||||
'market.rangeLabel' => 'Até onde procurar',
|
||||
'market.rangeNear' => 'Muito perto',
|
||||
'market.rangeArea' => 'Pela minha zona',
|
||||
'market.rangeRegion' => 'A minha região',
|
||||
'profile.title' => 'O teu perfil',
|
||||
'profile.name' => 'Nome',
|
||||
'profile.nameHint' => 'Como os outros te veem',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue