Skip to content

Conversation

gpunto
Copy link
Contributor

@gpunto gpunto commented Sep 26, 2025

Goal

Continuing from #83, we migrate the CommentList & BookmarkList

Implementation

Change handler from WSEvent to StateUpdateEvent

Testing

Nothing should change externally, as here we're just consuming WS events using different types from before, but not emitting events from new places (yet).

Checklist

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

@gpunto gpunto requested a review from Copilot September 26, 2025 14:25
Copy link
Contributor

github-actions bot commented Sep 26, 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.

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 migrates the CommentList and BookmarkList components to use the new StateUpdateEvent system instead of the previous WSEvent approach. This change improves type safety and provides a more structured event handling mechanism.

  • Refactors event handlers to consume StateUpdateEvent instead of WSEvent
  • Updates subscription managers to use StateUpdateEventListener instead of FeedsEventListener
  • Adds new event types for bookmark and bookmark folder operations

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
StateUpdateEvent.kt Adds new event types for bookmark operations and conversion methods
CommentListEventHandler.kt Migrates from WSEvent to StateUpdateEvent handling
BookmarkListEventHandler.kt Updates to use StateUpdateEvent with improved type safety
CommentListImpl.kt Changes subscription manager type reference
BookmarkListImpl.kt Updates subscription manager type reference
FeedsClientImpl.kt Switches to using state events subscription manager
Test files Updates test setup to use new event types and removes unused imports

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

@gpunto gpunto added the pr:internal Internal changes / housekeeping label Sep 26, 2025
Copy link
Contributor

SDK Size Comparison 📏

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

@gpunto gpunto marked this pull request as ready for review September 26, 2025 14:42
@aleksandar-apostolov aleksandar-apostolov merged commit 30b6c81 into develop Sep 29, 2025
6 checks passed
@aleksandar-apostolov aleksandar-apostolov deleted the state-events-2 branch September 29, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:internal Internal changes / housekeeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants