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
5dd0f243ce
commit
1af0282e00
16 changed files with 268 additions and 10 deletions
|
|
@ -1184,6 +1184,21 @@ class Translations$market$en {
|
|||
|
||||
/// en: 'Saved — we'll share these when you're connected'
|
||||
String get queued => 'Saved — we\'ll share these when you\'re connected';
|
||||
|
||||
/// en: 'Couldn't reach the community servers — your seeds weren't shared. Try again in a moment.'
|
||||
String get shareFailed => 'Couldn\'t reach the community servers — your seeds weren\'t shared. Try again in a moment.';
|
||||
|
||||
/// en: 'How far to look'
|
||||
String get rangeLabel => 'How far to look';
|
||||
|
||||
/// en: 'Very close'
|
||||
String get rangeNear => 'Very close';
|
||||
|
||||
/// en: 'Around here'
|
||||
String get rangeArea => 'Around here';
|
||||
|
||||
/// en: 'My region'
|
||||
String get rangeRegion => 'My region';
|
||||
}
|
||||
|
||||
// Path: profile
|
||||
|
|
@ -2096,6 +2111,11 @@ extension on Translations {
|
|||
'market.useLocation' => 'Use my approximate location',
|
||||
'market.locationFailed' => 'Couldn\'t get your location — check that location is on and the permission is granted',
|
||||
'market.queued' => 'Saved — we\'ll share these when you\'re connected',
|
||||
'market.shareFailed' => 'Couldn\'t reach the community servers — your seeds weren\'t shared. Try again in a moment.',
|
||||
'market.rangeLabel' => 'How far to look',
|
||||
'market.rangeNear' => 'Very close',
|
||||
'market.rangeArea' => 'Around here',
|
||||
'market.rangeRegion' => 'My region',
|
||||
'profile.title' => 'Your profile',
|
||||
'profile.name' => 'Display name',
|
||||
'profile.nameHint' => 'How others see you',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue