Skip to content

feat: show broadcast progress when publishing notes#100

Merged
barrydeen merged 1 commit intomainfrom
feat/publish-broadcast-feedback
Mar 1, 2026
Merged

feat: show broadcast progress when publishing notes#100
barrydeen merged 1 commit intomainfrom
feat/publish-broadcast-feedback

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Instead of fire-and-forget publishing, shows a floating toast with live relay confirmation count ("Broadcasting 0/5" → "Published to 5 relays")
  • If no relays are connected, shows an error on the compose screen instead of silently navigating back
  • Toast appears globally (all screens) so users can continue browsing while broadcast completes

Test plan

  • Publish a note normally — toast should appear at bottom showing relay confirmations, then fade
  • Reply to a note — same broadcast toast on the thread screen
  • Enable airplane mode, try to publish — should see error "No relays connected" and stay on compose screen
  • Verify toast styling matches bottom nav color and is compact

Surface relay OK responses to the user instead of fire-and-forget publishing.
After posting, a floating status bar shows "Broadcasting (0/N)" incrementing
as relays confirm, then briefly shows "Published to N relays" before fading.
If no relays are connected, shows an error instead of silently failing.

- Track OK messages in RelayPool via PublishResult SharedFlow
- sendToWriteRelays/publishToInbox return sent count
- ComposeViewModel checks sent count, errors if 0
- BroadcastStatusBar composable in Navigation.kt overlay (all screens)
@barrydeen barrydeen merged commit 97348ab into main Mar 1, 2026
@barrydeen barrydeen deleted the feat/publish-broadcast-feedback branch March 4, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant