{{ message }}
feat(Store): Add Git Branch Selection for Plugins in Store UI#540
Open
designgears wants to merge 2 commits into
Open
feat(Store): Add Git Branch Selection for Plugins in Store UI#540designgears wants to merge 2 commits into
designgears wants to merge 2 commits into
Conversation
- Implement methods to get, set, and remove Git branch overrides for plugins in StoreBackend. - Enhance InfoPage and SourceGroup to allow users to select between store version and specific Git branches. - Update localization files to support new UI elements related to Git branch selection. - Ensure proper handling of plugin data and UI updates when switching between sources.
Contributor
Contributor
Author
It currently clashes with the store and makes it a huge pain when developing existing plugins, this gives you simple "beta" access, and retains the ability to add custom plugins not on the store. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Adds the ability to select a git branch for any plugin directly in the store UI, instead of being limited to the store's pinned version. Users can switch between the store version and any available git branch, with the selection persisting across app restarts.
Changes
Backend (
src/backend/Store/StoreBackend.py)get_plugin_git_override()- Retrieves stored git override settings for a pluginset_plugin_git_override()- Saves/removes git override settingsremove_plugin_git_override()- Removes override to revert to store versionget_repo_branches()- Fetches available branches from GitHub APIprepare_plugin()- Checks for git overrides and uses specified branch instead of store version when setData Model (
src/windows/Store/StoreData.py)using_git_overridefield toStoreDatato track when a plugin is using a custom branchUI Components (
src/windows/Store/InfoPage.py)SourceGroupclass - New UI component with:set_plugin_data()method to configure source group for a pluginclear_plugin_data()method to hide source group for non-plugin contentIntegration
PluginPage.py- Passes plugin data to info page when viewing plugin detailsIconPage.py,WallpaperPage.py,SDPlusBarWallpaperPage.py- Hide source selection for non-plugin contentLocalization (
locales/locales.csv)Features
Technical Details
settings.jsonunderstore.plugin-git-overrides{plugin_id: {"branch": "branch_name"}}prepare_plugin()uses the specified branch instead of the store's pinned commitUser Flow
Testing