Skip to content

feat: add chatters to stream manager#155

Merged
igorovh merged 3 commits intomasterfrom
feat/add-chatters-to-stream-manager
Mar 13, 2026
Merged

feat: add chatters to stream manager#155
igorovh merged 3 commits intomasterfrom
feat/add-chatters-to-stream-manager

Conversation

@igorovh
Copy link
Member

@igorovh igorovh commented Mar 13, 2026

image

@igorovh igorovh requested review from a team and Copilot March 13, 2026 21:00
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the Twitch chatters module by integrating the chatters count display directly into the stream manager interface. It provides a dedicated visual representation for the chatters metric on the stream manager page, ensuring that streamers can easily monitor their audience size in a prominent location.

Highlights

  • Stream Manager Integration: Added a new selector configuration to display the chatters count directly within the Twitch stream manager page, targeting the .sunlight-live-indicator element.
  • Component Logic Update: Modified the createTotalChattersComponent method to accept a key parameter, allowing for conditional rendering logic based on the context (e.g., stream manager vs. other pages). The requestUpdate call was also updated to be awaited.
  • Conditional Styling and Display: Introduced a new StreamManagerWrapper styled component with a distinct visual style (red background, bold text) for the chatters count. The ChattersComponent now accepts an isStreamManager prop to apply this new styling and adjust the displayed text format accordingly.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/platforms/twitch/modules/chatters/chatters.module.tsx
    • Added a new module configuration to enable chatters count display on the Twitch stream manager page.
    • Updated createTotalChattersComponent to accept a key parameter and await the requestUpdate call.
    • Modified ChattersComponent to conditionally render different styles and text based on an isStreamManager prop.
    • Introduced StreamManagerWrapper styled component for stream manager specific chatters display.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a chatters count display to the Twitch stream manager UI. This is achieved by adding a new applier to the ChattersModule to inject a component into the stream manager page, and the ChattersComponent is updated to support a different style for this new location. The changes are logical and well-structured. I've provided a few suggestions to improve code maintainability, mainly around styling definitions and avoiding magic strings.

`;

const StreamManagerWrapper = styled.span`
background-color: #ff8280;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This color #ff8280 is also used in the Wrapper component. To avoid magic values and improve maintainability, it would be best to extract this into a shared constant that can be used in both styled components.


const StreamManagerWrapper = styled.span`
background-color: #ff8280;
font-weight: 600 !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The use of !important is generally discouraged as it can make CSS rules harder to override and debug. While this might be necessary to override conflicting styles from Twitch's own CSS, it's worth investigating if a more specific selector could be used to avoid it. If it's unavoidable, a comment explaining why it's needed would be helpful for future maintenance.

Copy link
Contributor

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

Adds the chatters counter UI to Twitch’s Stream Manager view, reusing the existing chatters aggregation logic while adjusting rendering/styling for that page.

Changes:

  • Adds a new selector applier targeting Stream Manager (.sunlight-live-indicator) with a dedicated key.
  • Extends createTotalChattersComponent / ChattersComponent to receive the applier key and render a Stream Manager-specific variant.
  • Introduces StreamManagerWrapper styling and updates the counter display format for Stream Manager.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

igorovh and others added 2 commits March 13, 2026 22:06
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: igor <37638480+igorovh@users.noreply.github.com>
@igorovh igorovh merged commit 61e4b13 into master Mar 13, 2026
4 checks passed
@igorovh igorovh deleted the feat/add-chatters-to-stream-manager branch March 13, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants