tane/apps/app_seeds/lib/ui
vjrj bb4ee2fd89 refactor(social): one shared relay connection per identity
Every feature (offers, messaging, trust, profile, the inbox listener) used
to open its OWN RelayPool via social.openSession — several sockets to the
same relays, more battery, and reconnection logic living only in the inbox
listener.

Add SocialConnection: ONE shared session per identity, lazily connected and
reused by all. It watches connectivity — dropping the session when the
network goes and reconnecting when it returns, announcing each change on a
sessions stream so the inbox listener re-subscribes automatically. Callers
get the session via connection.session() and never close it (the connection
owns its lifecycle); recreated/disposed on an identity switch.

- InboxService now consumes the shared connection (subscribes on its
  sessions stream) instead of owning its own socket + connectivity code.
- createOffersCubit + the chat/market/profile screens use the shared
  connection; dead createMessagesCubit/createTrustCubit factories removed.
- DI registers SocialConnection per identity; Bootstrap starts it (after
  the inbox subscribes); switchSocialAccount disposes + recreates it.

Tests: SocialConnection lifecycle (reuse, concurrent connect, offline drop +
reconnect, unreachable retry) with a fake opener + online stream; inbox test
updated. nostr added as a dev_dependency for the channel fake.
2026-07-10 21:50:34 +02:00
..
about_screen.dart feat(about): add Comunes Association copyleft notice à la Ğ1nkgo 2026-07-10 02:36:17 +02:00
app_drawer.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00
auto_backup_gate.dart feat(backup): add automatic weekly encrypted backups 2026-07-10 10:17:36 +02:00
backup_section.dart feat(i18n): add Asturian (asturianu) as a language 2026-07-10 15:43:33 +02:00
chat_list_screen.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
chat_screen.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
draft_triage.dart style: dart format reflow (no behavior change) 2026-07-09 22:19:43 +02:00
harvest_date_picker.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
home_screen.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00
intro_screen.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
inventory_list_screen.dart Merge branch 'worktree-print-labels': print seed labels with QR 2026-07-10 19:20:33 +02:00
label_print_sheet.dart feat(labels): choose copies per label, prefilled from container count 2026-07-10 20:12:36 +02:00
market_offer_detail_screen.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
market_screen.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
market_widgets.dart feat(market): embed offer photos inline instead of a media server 2026-07-10 21:27:59 +02:00
offline_banner.dart feat(block2): global 'you're offline' banner (network state) 2026-07-10 15:18:16 +02:00
photo_pick.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
profile_screen.dart refactor(social): one shared relay connection per identity 2026-07-10 21:50:34 +02:00
qr_view.dart feat(block2): QR of your npub in the profile (scan to share at a fair) 2026-07-10 13:00:47 +02:00
quantity_kind_l10n.dart feat(ui): Material 3 redesign, cover-photo viewer, About screen 2026-07-09 11:51:59 +02:00
quantity_picker.dart feat(ui): Material 3 redesign, cover-photo viewer, About screen 2026-07-09 11:51:59 +02:00
quick_add_sheet.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
restart_widget.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
seed_glyph.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
settings_screen.dart feat(i18n): add Asturian (asturianu) as a language 2026-07-10 15:43:33 +02:00
theme.dart fix(ui): darken seedMuted and app-bar green to meet WCAG AA contrast 2026-07-09 12:50:26 +02:00
trust_network_screen.dart feat(trust): full Duniter web-of-trust membership (params + referents) 2026-07-10 21:02:08 +02:00
unread_badge.dart feat(messages): unread badges + OS notification for private messages 2026-07-10 21:12:00 +02:00
variety_detail_screen.dart perf(ui): debounce species/name lookups in the edit sheet 2026-07-10 02:32:02 +02:00