feat(block2): offline outbox — share now, publish when connected
Sender-side offline delivery hardening.
- OfferOutbox: a keystore-backed (no plaintext) queue of lot ids to publish
later. Stores ids, not offers, so on flush each offer is rebuilt from the
lot's CURRENT state — an offline edit is respected, a deleted lot drops out.
- flushOutbox(): on reconnect, republishes queued lots and clears them (no-op
offline; drops ids whose lot is gone).
- Market screen: sharing offline parks the lots ('we'll share these when you're
connected'); opening the market online auto-flushes the queue first.
- Wired via DI + TaneApp(outbox); i18n en/es/pt.
Tests: 4 outbox + 3 flush + market UI, 20 green. Analyzer clean for new code.
This commit is contained in:
parent
2a6b4b0947
commit
cf5d0243ee
15 changed files with 222 additions and 8 deletions
|
|
@ -353,6 +353,7 @@
|
|||
"sharedCount": "Shared {n} seeds nearby",
|
||||
"nothingToShare": "Mark some seeds to give, swap or sell first",
|
||||
"useLocation": "Use my approximate location",
|
||||
"locationFailed": "Couldn't get your location"
|
||||
"locationFailed": "Couldn't get your location",
|
||||
"queued": "Saved — we'll share these when you're connected"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,6 +353,7 @@
|
|||
"sharedCount": "Compartidas {n} semillas",
|
||||
"nothingToShare": "Marca antes algunas semillas para regalar, cambiar o vender",
|
||||
"useLocation": "Usar mi ubicación aproximada",
|
||||
"locationFailed": "No se pudo obtener tu ubicación"
|
||||
"locationFailed": "No se pudo obtener tu ubicación",
|
||||
"queued": "Guardado — las compartiremos cuando tengas conexión"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -349,6 +349,7 @@
|
|||
"sharedCount": "Partilhadas {n} sementes",
|
||||
"nothingToShare": "Marca primeiro algumas sementes para dar, trocar ou vender",
|
||||
"useLocation": "Usar a minha localização aproximada",
|
||||
"locationFailed": "Não foi possível obter a tua localização"
|
||||
"locationFailed": "Não foi possível obter a tua localização",
|
||||
"queued": "Guardado — vamos partilhá-las quando tiveres ligação"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
/// To regenerate, run: `dart run slang`
|
||||
///
|
||||
/// Locales: 3
|
||||
/// Strings: 944 (314 per locale)
|
||||
/// Strings: 947 (315 per locale)
|
||||
///
|
||||
/// Built on 2026-07-10 at 08:25 UTC
|
||||
/// Built on 2026-07-10 at 08:44 UTC
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
|
|
|||
|
|
@ -1120,6 +1120,9 @@ class Translations$market$en {
|
|||
|
||||
/// en: 'Couldn't get your location'
|
||||
String get locationFailed => 'Couldn\'t get your location';
|
||||
|
||||
/// en: 'Saved — we'll share these when you're connected'
|
||||
String get queued => 'Saved — we\'ll share these when you\'re connected';
|
||||
}
|
||||
|
||||
// Path: intro.slides
|
||||
|
|
@ -1895,6 +1898,7 @@ extension on Translations {
|
|||
'market.nothingToShare' => 'Mark some seeds to give, swap or sell first',
|
||||
'market.useLocation' => 'Use my approximate location',
|
||||
'market.locationFailed' => 'Couldn\'t get your location',
|
||||
'market.queued' => 'Saved — we\'ll share these when you\'re connected',
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -624,6 +624,7 @@ class _Translations$market$es extends Translations$market$en {
|
|||
@override String get nothingToShare => 'Marca antes algunas semillas para regalar, cambiar o vender';
|
||||
@override String get useLocation => 'Usar mi ubicación aproximada';
|
||||
@override String get locationFailed => 'No se pudo obtener tu ubicación';
|
||||
@override String get queued => 'Guardado — las compartiremos cuando tengas conexión';
|
||||
}
|
||||
|
||||
// Path: intro.slides
|
||||
|
|
@ -1283,6 +1284,7 @@ extension on TranslationsEs {
|
|||
'market.nothingToShare' => 'Marca antes algunas semillas para regalar, cambiar o vender',
|
||||
'market.useLocation' => 'Usar mi ubicación aproximada',
|
||||
'market.locationFailed' => 'No se pudo obtener tu ubicación',
|
||||
'market.queued' => 'Guardado — las compartiremos cuando tengas conexión',
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -620,6 +620,7 @@ class _Translations$market$pt extends Translations$market$en {
|
|||
@override String get nothingToShare => 'Marca primeiro algumas sementes para dar, trocar ou vender';
|
||||
@override String get useLocation => 'Usar a minha localização aproximada';
|
||||
@override String get locationFailed => 'Não foi possível obter a tua localização';
|
||||
@override String get queued => 'Guardado — vamos partilhá-las quando tiveres ligação';
|
||||
}
|
||||
|
||||
// Path: intro.slides
|
||||
|
|
@ -1275,6 +1276,7 @@ extension on TranslationsPt {
|
|||
'market.nothingToShare' => 'Marca primeiro algumas sementes para dar, trocar ou vender',
|
||||
'market.useLocation' => 'Usar a minha localização aproximada',
|
||||
'market.locationFailed' => 'Não foi possível obter a tua localização',
|
||||
'market.queued' => 'Guardado — vamos partilhá-las quando tiveres ligação',
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue