Skip to content

refactor extensions flow - #10

Merged
van-sprundel merged 1 commit into
masterfrom
refactor-extensions-for-multi-provider-support
Jan 2, 2026
Merged

van-sprundel merged 1 commit into
masterfrom
refactor-extensions-for-multi-provider-support

Conversation

@van-sprundel

@van-sprundel van-sprundel commented Jan 2, 2026 •

Copy link
Copy Markdown
Owner

We now have a ContentProvider+Scrobbler trait and seperated these two more

@van-sprundel van-sprundel changed the title refactor extensions flow. refactor extensions flow Jan 2, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @van-sprundel, 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 significantly refactors the application's external service integration by introducing a more structured and extensible architecture. It separates content discovery concerns from watch history tracking into distinct traits and managers, moving away from a monolithic 'extensions' concept. This change improves modularity, clarifies responsibilities, and lays a robust foundation for future additions of various content providers and scrobblers, while updating all relevant parts of the application to use this new design.

Highlights

  • Refactored Extension System: The core extension system has been refactored to introduce distinct traits for ContentProvider (for discovery services like Trakt) and Scrobbler (for watch history syncing). This modularizes functionality and prepares for easier integration of new services.
  • Trakt.tv Integration Split: The existing Trakt.tv functionality has been split. Its content discovery and authentication aspects now adhere to the ContentProvider trait, residing in src/providers/trakt.rs, while its watch history syncing (scrobbling) now uses the Scrobbler trait, located in src/scrobblers/trakt.rs.
  • New Configuration Structures: New configuration structs, ProvidersConfig and ScrobblersConfig, have been added to src/config.rs. These separate the configuration for content providers and scrobblers, allowing for more granular control and clearer separation of concerns.
  • Dependency Update: The async-trait crate has been added as a new dependency to enable asynchronous methods in traits, which is crucial for the new ContentProvider and Scrobbler traits.
  • TUI and Doctor Updates: The Terminal User Interface (TUI) and the doctor module have been updated to interact with the new provider and scrobbler managers and their respective configurations, ensuring seamless integration with the refactored backend.

🧠 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.

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. ↩

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

Copy link
Copy Markdown
Contributor

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 does an excellent job of refactoring the extensions system into more clearly defined ContentProvider and Scrobbler traits. The separation of concerns is a significant architectural improvement, making the system more modular and easier to extend in the future. The implementation is consistent across the configuration, application logic, and UI. I have one suggestion to reduce some code duplication that was introduced, but overall, this is a very strong and well-executed refactoring.

We now have a ContentProvider+Scrobbler trait and seperated these two
more
@van-sprundel
van-sprundel force-pushed the refactor-extensions-for-multi-provider-support branch from 75e25b0 to 82d2b19 Compare January 2, 2026 12:18
@van-sprundel
van-sprundel merged commit ae87c2b into master Jan 2, 2026
2 checks passed
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.

1 participant