tane/apps/app_seeds/lib/ui
vjrj 73ee98206f feat(chat): app-wide inbox listener so messages arrive without opening the chat
Reception only ran inside an open ChatScreen for a known peer, so a first
message from a new peer was invisible: nothing in local storage -> nothing
in the inbox list -> you never opened the chat -> you never subscribed.

Add InboxService: one long-lived NIP-17 inbox subscription for the whole
app (foreground), persisting every incoming message to MessageStore and
firing a 'changes' signal the inbox list live-reloads on. Reconnects when
the network returns; degrades to nothing offline. Started from main when a
social identity exists.

Make MessageStore.append idempotent (dedup by sender+timestamp+text) and
serialized behind a write lock — the global listener and an open chat's own
subscription now write the same conversation concurrently and relays
re-deliver stored gift wraps on every resubscribe. Tests for both.

Known trade-offs (follow-ups): foreground-only (no push yet); each of
InboxService/ChatScreen/MarketScreen opens its own RelayPool (a shared
connection is a later optimization).
2026-07-10 16:53:03 +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 fix(nav): inventory is a spoke off the home hub — back arrow, no duplicate drawer 2026-07-10 16:24:54 +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 feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
chat_screen.dart feat(block2): Ğ1 — publish a Ğ1 address + 'Pay in Ğ1' in chat (levels 1-2) 2026-07-10 13:06:38 +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 fix(nav): inventory is a spoke off the home hub — back arrow, no duplicate drawer 2026-07-10 16:24:54 +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 fix(nav): inventory is a spoke off the home hub — back arrow, no duplicate drawer 2026-07-10 16:24:54 +02:00
market_screen.dart fix(market): search your zone by a coarse prefix, not the exact cell 2026-07-10 16:12:38 +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 feat(block2): Ğ1 — publish a Ğ1 address + 'Pay in Ğ1' in chat (levels 1-2) 2026-07-10 13:06:38 +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
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
variety_detail_screen.dart perf(ui): debounce species/name lookups in the edit sheet 2026-07-10 02:32:02 +02:00