Skip to content

bugfix: add option to disable extension on dashboard#156

Merged
igorovh merged 1 commit intomasterfrom
bugfix/add-option-to-disable-extension-on-dashboard
Mar 14, 2026
Merged

bugfix: add option to disable extension on dashboard#156
igorovh merged 1 commit intomasterfrom
bugfix/add-option-to-disable-extension-on-dashboard

Conversation

@igorovh
Copy link
Member

@igorovh igorovh commented Mar 14, 2026

temp fix

@igorovh igorovh requested review from a team and Copilot March 14, 2026 12:45
@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 provides users with greater control over the extension's behavior by allowing them to selectively disable it on the Kick dashboard. This enhancement addresses potential conflicts or performance concerns users might experience on that specific page, improving the overall user experience by offering a configurable opt-out.

Highlights

  • New Setting: Disable Extension on Dashboard: Introduced a new user setting that allows disabling the extension specifically for the dashboard.kick.com page.
  • Cookie-Based Control: Implemented logic to store the 'disable on dashboard' preference in a cookie, ensuring the setting persists across sessions and is respected by the extension's startup mechanism.
  • Conditional Extension Loading: Modified the extension's shouldStart method to check for the presence of the disable cookie, preventing the extension from loading on the dashboard if the setting is enabled.

🧠 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/kick/kick.constants.ts
    • Added _disableExtensionOnDashboard with a default value of false to the KICK_DEFAULT_SETTINGS.
  • src/platforms/kick/kick.platform.ts
    • Updated the shouldStart method to include dashboard.kick.com in the blocklist if a specific cookie (_enhancer_disable_dashboard=true) is present.
  • src/platforms/kick/modules/settings/settings.module.tsx
    • Added an event listener for the _disableExtensionOnDashboard setting to manage the _enhancer_disable_dashboard cookie.
    • Introduced a new toggle UI element in the settings module for 'Disable Enhancer on Dashboard'.
  • src/types/platforms/kick/kick.settings.types.ts
    • Added the _disableExtensionOnDashboard property to the KickSettings type definition.
Activity
  • No human activity has been recorded on this pull request yet.
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 introduces a feature to disable the extension on the Kick dashboard, using a cookie to control its activation. The overall approach is sound. My review includes suggestions to make the cookie-checking logic more robust and to improve maintainability by centralizing the cookie name into a constant, preventing potential future bugs and making the code easier to manage.

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 a Kick setting that lets users prevent the extension from starting on dashboard.kick.com, implemented via a cookie checked during KickPlatform.shouldStart() (so the decision can be made before async settings load).

Changes:

  • Add new Kick setting _disableExtensionOnDashboard and default it to false.
  • Add settings UI toggle and an event handler that sets/clears a _enhancer_disable_dashboard cookie.
  • Update Kick startup gating to block additional subdomains and (optionally) the dashboard based on the cookie.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/types/platforms/kick/kick.settings.types.ts Adds a new Kick settings key for the dashboard-disable toggle.
src/platforms/kick/modules/settings/settings.module.tsx Adds a new settings toggle plus an event handler that writes the dashboard-disable cookie.
src/platforms/kick/kick.platform.ts Uses a hostname blocklist and conditionally blocks dashboard.kick.com based on the cookie.
src/platforms/kick/kick.constants.ts Adds the new setting to Kick default settings.

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

@igorovh igorovh merged commit eeb4655 into master Mar 14, 2026
15 checks passed
@igorovh igorovh deleted the bugfix/add-option-to-disable-extension-on-dashboard branch March 14, 2026 12:53
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