tane/apps/app_seeds/lib/services
vjrj fed0e8200e feat(sharing): make going online opt-in, and show what it unlocks
Tane dialled its four default relays at launch, before anyone had asked
for anything — an F-Droid reviewer spotted it, and they were right. The
seed book needs no network at all, so the app should not have one until
the person joins the sharing side.

- SocialSettings gains a three-state `sharingEnabled`. `null` means
  "never asked", which is what lets `migrateSharingEnabled` keep an
  existing install exactly as it was: anyone past the intro was on a
  build that connected at launch, so they keep messaging, device sync
  and offer alerts. A fresh install starts fully offline.
- bootstrap only starts the shared connection when sharing is on. The
  inbox/sync/plantaré/alert listeners are untouched: they react to a
  session, and none arrives.
- SharingSwitch is the single place that moves the stored choice, the
  live connection and the flag the UI listens to, so they cannot drift.
- Agreeing to the community rules is the opt-in — one consent surface,
  reached from the market or from the drawer's invitation.
- SocialConnection.start is now idempotent and gains stop(), so turning
  sharing off goes offline immediately instead of at the next launch.
- The social drawer entries stay visible but padlocked while sharing is
  off; tapping one explains what wakes up and offers to join. Hiding
  them would have kept the tool a secret. "Coming soon" is gone for
  good — everything it labelled is built.

Covered by tests for the migration in both directions, start/stop
lifecycle, the gate turning sharing on, the invitation, and the drawer
in all three states (no social layer / off / on).
2026-07-25 16:47:56 +02:00
..
ocr style: dart format reflow (no behavior change) 2026-07-09 22:19:43 +02:00
auto_backup_service.dart feat: cover seedlings (plantón) in copy + legal, backup cadence, server picker 2026-07-15 15:57:23 +02:00
auto_backup_store.dart feat(backup): add automatic weekly encrypted backups 2026-07-10 10:17:36 +02:00
camera_availability.dart perf(android): R8, bitmap downscaling, edge-to-edge; recover device compat; publish to production 2026-07-20 22:53:48 +02:00
coarse_location.dart fix(android): drop geolocator for a native LocationManager channel 2026-07-17 09:19:05 +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 refactor(branding): rename app Tanemaki → Tane 2026-07-12 13:04:16 +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 feat(social): local blocklist — hide blocked authors' offers, chats and incoming messages, with unblock management 2026-07-13 08:25:49 +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(i18n): full RTL/CJK support — fonts, Japanese locale, directional fixes 2026-07-14 11:11:19 +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(chat): usable 1:1 chat — bottom-anchored, Drift-backed, dated 2026-07-11 06:40:50 +02:00
notification_service.dart feat(social): add SavedSearchAlertService + notification alerts channel 2026-07-17 13:18:29 +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 perf(inventory): lazy list, photo thumbnails, indexes, debounced reload 2026-07-20 22:53:48 +02:00
onboarding_store.dart feat(market): one-time community-rules gate before joining the market, publishing or messaging 2026-07-13 08:24:59 +02:00
pdf_fonts.dart feat(i18n): full RTL/CJK support — fonts, Japanese locale, directional fixes 2026-07-14 11:11:19 +02:00
plantare_service.dart feat(plantare): PlantareService — orchestrate the signed handshake 2026-07-14 11:21:46 +02:00
profile_cache.dart feat(profile): profile photo or seed-illustration avatar 2026-07-11 22:21:52 +02:00
profile_store.dart feat(profile): profile photo or seed-illustration avatar 2026-07-11 22:21:52 +02:00
recovery_sheet_service.dart feat(i18n): full RTL/CJK support — fonts, Japanese locale, directional fixes 2026-07-14 11:11:19 +02:00
saved_offers_store.dart feat(market): save others' offers as favorites (Wallapop-style) 2026-07-13 08:21:43 +02:00
saved_search_alert_service.dart feat(social): add SavedSearchAlertService + notification alerts channel 2026-07-17 13:18:29 +02:00
saved_searches_store.dart feat(social): add SavedSearchesStore with alert bookkeeping 2026-07-17 13:18:29 +02:00
seed_label_scan.dart feat(app): scan a printed seed label back into its record 2026-07-18 12:26:27 +02:00
share_catalog_service.dart feat(i18n): full RTL/CJK support — fonts, Japanese locale, directional fixes 2026-07-14 11:11:19 +02:00
sharing_switch.dart feat(sharing): make going online opt-in, and show what it unlocks 2026-07-25 16:47:56 +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 feat(sharing): make going online opt-in, and show what it unlocks 2026-07-25 16:47:56 +02:00
social_service.dart feat(plantare): PlantareService — orchestrate the signed handshake 2026-07-14 11:21:46 +02:00
social_settings.dart feat(sharing): make going online opt-in, and show what it unlocks 2026-07-25 16:47:56 +02:00
sync_service.dart feat(sync): device-to-device inventory sync, end to end 2026-07-10 23:45:40 +02:00
unread_service.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00