Repository navigation
Migrate the AI indicator and added to channel events to the generated event models - #6794
Conversation
SDK Size Comparison 📏
|
dacddad to
1a5dd8b
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (10)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. WalkthroughThe event parser now represents notification-added-to-channel and AI indicator update, clear, and stop events with generated WebSocket models. Adapters enforce required fields, and event mapping derives channel identifiers from ChangesGenerated event parsing
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant EventAdapter
participant GeneratedEventDto
participant EventMapping
participant ChatEvent
EventAdapter->>GeneratedEventDto: Parse generated WebSocket event
GeneratedEventDto->>EventMapping: Dispatch event model
EventMapping->>ChatEvent: Map to domain event
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable issue is established for the event-parsing migration; it is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the event stream’s glow, Comment |
1a5dd8b to
088386f
Compare
|




Goal
Parse the
ai_indicator.update,ai_indicator.clear,ai_indicator.stopandnotification.added_to_channelevents with the generated event models.Part of AND-1291
Implementation
AIIndicatorUpdateEvent,AIIndicatorClearEvent,AIIndicatorStopEventandNotificationAddedToChannelEventas they are, and delete the hand-written DTOs.notification.added_to_channelmaps to 0, as before.Testing
GeneratedAIIndicatorEventParsingTestparses each AI indicator event and rejects one missing a required field.GeneratedNotificationEventParsingTestcoversnotification.added_to_channel, including zero unread counts. The mapping tests cover every field.On a device: received the three AI indicator events and
notification.added_to_channelover the socket, and parsednotification.added_to_channelreplayed by/sync.🤖 Generated with Claude Code
Summary by CodeRabbit