tane/apps/app_seeds/lib/services
vjrj b15f912ad8 fix(sync): replicate deletions and keep photos off the wire
Reusing the backup snapshot for sync had two bugs that would bite real use:

1. Deletions didn't propagate. exportInventory() filters isDeleted=false
   (user backups are tombstone-free by design) and the JSON codec dropped
   isDeleted (omitted on encode, hardcoded false on decode) — so deleting a
   variety on one device never reached the others. Now the codec round-trips
   isDeleted (emitted only when true, so backups stay byte-identical and it's
   backward compatible), and a new exportForSync() includes tombstones. The
   importer already merges them LWW-correctly.

2. Photos bloated events. The snapshot embeds photo bytes as base64, so a
   real inventory would blow past relay event-size limits and sync would
   silently fail. exportForSync() omits attachments entirely (photos stay
   device-local; media sync is a separate, deferred concern).

buildSnapshot() now uses exportForSync(); backups keep using exportInventory
(photos in, tombstones out) unchanged.

Tests: a deletion replicates as a tombstone; the sync snapshot carries no
photo bytes while a sealed backup still does.
2026-07-11 00:17:08 +02:00
..
ocr style: dart format reflow (no behavior change) 2026-07-09 22:19:43 +02:00
auto_backup_service.dart feat(backup): tap automatic-backups to make a copy now 2026-07-10 11:05:36 +02:00
auto_backup_store.dart feat(backup): add automatic weekly encrypted backups 2026-07-10 10:17:36 +02:00
coarse_location.dart fix(block2): sharing config UX + discovery + labels (raw feedback batch) 2026-07-10 13:32:11 +02:00
device_id_store.dart feat(sync): device-to-device inventory sync, end to end 2026-07-10 23:45:40 +02:00
discovery_area.dart fix(market): search your zone by a coarse prefix, not the exact cell 2026-07-10 16:12:38 +02:00
export_import_service.dart fix(sync): replicate deletions and keep photos off the wire 2026-07-11 00:17:08 +02:00
file_picker_file_service.dart feat(inventory): CSV/JSON export and JSON import with LWW reconciliation 2026-07-09 12:46:53 +02:00
file_service.dart feat(inventory): CSV/JSON export and JSON import with LWW reconciliation 2026-07-09 12:46:53 +02:00
inbox_service.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
inventory_snapshot_io.dart feat(sync): device-to-device inventory sync, end to end 2026-07-10 23:45:40 +02:00
label_sheet_service.dart feat(labels): print seed labels with QR from an inventory selection 2026-07-10 19:14:04 +02:00
locale_store.dart feat(i18n): add Asturian (asturianu) as a language 2026-07-10 15:43:33 +02:00
message_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
notification_service.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00
offer_mapper.dart feat(market): fix publish-duplicates, add offer detail page + filters 2026-07-10 19:10:40 +02:00
offer_outbox.dart feat(block2): offline outbox — share now, publish when connected 2026-07-10 10:45:53 +02:00
offer_thumbnail.dart feat(market): embed offer photos inline instead of a media server 2026-07-10 21:27:59 +02:00
onboarding_store.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
profile_cache.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
profile_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
recovery_sheet_service.dart feat(backup): sealed backups + printable recovery sheet 2026-07-09 22:32:13 +02:00
share_catalog_service.dart feat(inventory): local sharing — per-lot share terms, filter and printable catalog 2026-07-09 22:19:55 +02:00
social_account_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
social_connection.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
social_service.dart feat(sync): device-to-device inventory sync, end to end 2026-07-10 23:45:40 +02:00
social_settings.dart feat(market): embed offer photos inline instead of a media server 2026-07-10 21:27:59 +02:00
sync_service.dart feat(sync): device-to-device inventory sync, end to end 2026-07-10 23:45:40 +02:00
trust_referents.dart feat(trust): full Duniter web-of-trust membership (params + referents) 2026-07-10 21:02:08 +02:00
unread_service.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00
wot_settings.dart feat(trust): full Duniter web-of-trust membership (params + referents) 2026-07-10 21:02:08 +02:00