feat: add pinning functionality for streamers in a channel section #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Briefly explain what this PR does. Is it a bug fix, new feature, or a refactor?
Testing
Select all the environments you tested this PR with:
Twitch
Kick
Please describe how you tested this change in the selected environments.
Related Issues
If this PR addresses an issue, link it here (e.g.,
Closes #123).✨
Description by Callstackai
This PR adds pinning functionality for streamers in a channel section, allowing users to pin their favorite streamers for easier access.
Diagrams of code changes
sequenceDiagram participant User participant ChannelSection participant PinStreamerModule participant Settings User->>ChannelSection: Views channel ChannelSection->>Settings: Get pinnedStreamers setting Settings-->>ChannelSection: Returns pinned streamers list User->>ChannelSection: Clicks pin button ChannelSection->>PinStreamerModule: togglePinnedStreamer(channelId) PinStreamerModule->>Settings: Update pinnedStreamers setting PinStreamerModule->>PinStreamerModule: Emit pinnedStreamersUpdated event Note over ChannelSection,PinStreamerModule: Both modules listen for pinnedStreamersUpdated PinStreamerModule-->>ChannelSection: Update pin state PinStreamerModule->>PinStreamerModule: Refresh pins in DOM ChannelSection-->>User: Update UI with new pin stateFiles Changed