Skip to content

Conversation

gpunto
Copy link
Contributor

@gpunto gpunto commented Oct 16, 2025

Goal

AND-840

We now have backend support for built-in story feeds:

  • stories: kinda equivalent to timeline, i.e. where a user sees all the stories of users they follow
  • story: kinda equivalent to user, i.e. where a user posts their own stories

Docs

Implementation

  • Add ability to mark stories as watched
  • Change feed to display stories to stories:user_id and post user stories to story:user_id
  • Update story screen to display a list of stories, since stories are aggregated by user

Testing

Launch the sample, create/view stories

Checklist

  • Issue linked (if any)
  • Tests/docs updated
  • I have signed the Stream CLA (required for external contributors)

@gpunto gpunto added the pr:demo-app Changes specific to demo app label Oct 16, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

SDK Size Comparison 📏

SDK Before After Difference Status
stream-feeds-android-client 2.43 MB 2.43 MB 0.00 MB 🟢

@gpunto gpunto requested a review from Copilot October 16, 2025 09:08
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements built-in story feeds support by adding new feed types (stories for viewing followed users' stories and story for posting user's own stories) and modifying the story viewing experience to support aggregated story display with watch tracking functionality.

  • Added support for built-in story feed types and story watching functionality
  • Updated story UI to display aggregated stories with navigation controls and watch indicators
  • Modified feed structure to separate timeline and story feeds with proper following relationships

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Feeds.kt Added new feed type functions for stories and story feeds
StoryScreen.kt Enhanced story viewing with multi-story navigation and watch tracking
ProfileViewModel.kt Updated to use new state structure and follow story feeds when following users
ProfileScreen.kt Updated to access feed data through new state structure
FeedsScreen.kt Modified stories display to use aggregated activities and watch indicators
FeedViewModel.kt Refactored to support separate timeline and story feeds with watch functionality
TestData.kt Added isWatched field to test activity data
ActivityOperations.kt Added isWatched field mapping from response
ActivityData.kt Added isWatched property to activity data model

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gpunto gpunto marked this pull request as ready for review October 16, 2025 11:50
* Handle FeedCreatedEvent

* Move Feed filter check to FeedEventHandler

* Rename filter parameter to activityFilter

* Remove FeedAdded handling for Feed
@sonarqubecloud
Copy link

@VelikovPetar VelikovPetar merged commit 5303880 into develop Oct 20, 2025
7 checks passed
@VelikovPetar VelikovPetar deleted the and-840/sample/stories-ad-hoc branch October 20, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:demo-app Changes specific to demo app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants