Skip to content

Add extended follows feed with network discovery#22

Merged
barrydeen merged 1 commit intomainfrom
feature/extended-follows-feed
Feb 20, 2026
Merged

Add extended follows feed with network discovery#22
barrydeen merged 1 commit intomainfrom
feature/extended-follows-feed

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Adds a new "Extended" feed type that expands the timeline to include 2nd-degree connections (friends-of-friends) filtered to those followed by at least 10 people in the user's network
  • Full discovery flow with progress screen showing follow list fetching, network computation, relay list resolution, and greedy set-cover relay mapping
  • Per-account caching with 24h staleness + follow list drift detection, so subsequent loads are instant
  • Refresh button in the top bar when Extended feed is active to rebuild the network on demand

New files

  • ExtendedNetworkRepository.kt — discovery algorithm, caching, outbox-model relay routing
  • NetworkDiscoveryScreen.kt — progress UI during discovery

Modified files

  • FeedViewModel.kt — EXTENDED_FOLLOWS feed type, event routing for extnet-* subs, resubscribe/loadMore branches
  • FeedScreen.kt — "Extended" dropdown item, refresh button, empty state
  • Navigation.kt — NETWORK_DISCOVERY route with auto-navigate on completion
  • SubscriptionTracker.kt — extnet- priority prefix to bypass soft cap

Test plan

  • Log in with an account following 50+ people
  • Tap feed picker → "Extended" → verify discovery screen with progress
  • After completion, verify feed loads posts from 2nd-degree follows
  • Kill and restart → tap "Extended" → loads from cache instantly
  • Tap refresh button → re-runs discovery and updates cache
  • Switch accounts → verify extended network is per-account

Introduce a new "Extended" feed type that shows posts from friends-of-friends
who are followed by at least 10 people in the user's network. Includes a
discovery screen with progress UI, per-account caching, outbox-model relay
routing via greedy set-cover, and a refresh button to rebuild the network.
@barrydeen barrydeen merged commit aa3d523 into main Feb 20, 2026
@barrydeen barrydeen deleted the feature/extended-follows-feed 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