Release: Play after edit, WhatsApp, stream labels S1/S2/S3, sortable streams#8
Release: Play after edit, WhatsApp, stream labels S1/S2/S3, sortable streams#8jerryagenyi merged 2 commits intomainfrom
Conversation
…ls S1/S2/S3, sortable streams
- Add 10s timeout to play proxy to prevent hanging on Icecast issues - Wrap upstream.resume() in try/catch for error resilience - Add res.headersSent guard to prevent double responses - Deduplicate streamIds in setStreamOrder() to prevent duplicates Follow-up to deep review feedback.
📝 WalkthroughWalkthroughAdds stream reordering capability via new API endpoint and UI controls, improves stream playback error messages to show "Stream not running" instead of authentication errors, refines WhatsApp validation to enforce country codes without leading zeros, and updates TODO items with implementation details. Changes
Sequence DiagramsequenceDiagram
participant Client as Client (UI)
participant API as POST /api/streams/reorder
participant Service as StreamingService
participant Storage as streams.json
Client->>API: POST with streamIds array
activate API
API->>API: Validate streamIds is array
alt Valid
API->>Service: setStreamOrder(streamIds)
activate Service
Service->>Service: Update streamOrder array
Service->>Storage: Save _order field to config
activate Storage
Storage-->>Service: Persisted
deactivate Storage
Service-->>API: Success
deactivate Service
API-->>Client: 200 response with updated order
else Invalid
API-->>Client: 400 Bad Request
end
deactivate API
Client->>Client: Re-render with new order & labels
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 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. Comment |
Summary
Follow-up to deep review: play proxy timeout and double-response guard; stream order deduplication.
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes