Feat: Highlighting by username and badges #1054
Merged
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.
Proposed changes
At the moment users were only able to highlight certain phrases in chat messages. They should be able to highlight also dependant on user and badges.
Feature Request: #1027
Types of changes
What types of changes does your code introduce to 7TV?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
Basically 2 new features were added.
Highlighting by username: The users can provide a username. If a chatmessage has an author with that name it is highlighted. Since regex and case sensitivity don't really make sense for usernames I removes the options for those.
Additionally a button was added to user cards to quickly toggle highlighting for the user.
Highlighting by badge: The user can select a badge from a list and all users with this badge have their messages highlighted.
The list of badges is grabbed directly from twitch, so no manual changes have to be made when badges are added or removed.
For a future update it could make sense to also add a way to change priority of highlights (for cases where messages fit multiple highlighting settings). At the moment the highlight which was created last has the highest priority, regardless of which kind of highlight it is.
Another idea for teh future could be adding 3rd party badges to the list for highlighting.