Skip to content

Discovery: follows wiring, who-to-follow, search, trending, per-user feed sharding #13

Description

@iduartgomez

Workstream split out from tracking #8.

Scope

  • Wire follows contract to UI. Remove // TODO: wire to follows contract at web/src/components/post-card.ts:130.
  • Real "who to follow" backed by follows graph (2nd-degree connections, popularity). Replaces mock data in web/src/components/right-panel.ts.
  • Search: handles + post content. See design issue for client-side scan vs. dedicated index contract.
  • Trending topics: hashtag extraction + counting contract. Replaces mock trending data.
  • Per-user posts contract sharding so feeds scale (instead of one global posts contract keyed by __MODEL_CONTRACT__). Subscribe to followed users' contracts.

Dependencies

  • Per-user posts sharding depends on the per-user contract model from the Users / identity workstream.
  • Search and trending may depend on design decisions (index contracts).
  • Wire-follows-to-UI is the smallest unit and can ship independently.

References

  • web/src/components/post-card.ts:130 — follow-button TODO.
  • web/src/components/right-panel.ts — mock who-to-follow + trending.
  • web/src/freenet-api.ts:95__MODEL_CONTRACT__ single-contract subscription point.
  • contracts/follows/src/lib.rs — existing follow graph contract.

Parent: #8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions