Repository navigation
Install reviewed community plugins from a plugin hub - #34
Merged
Merged
Conversation
…ddresses at the source
…y panels with a bar
…s and half-finished swaps
…ery user can unpack
…he link that was checked
…nd keep the plugin list calm and in order
…tranger's value in the summary as text
… and keep the keyboard's place
…lose the small gaps the final review found
6 of 15 tasks
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
Part 3 of the plugin system: the plugin hub. It merges into part 2 (#33), not
main.Authors keep a plugin in a public GitHub repository and submit it by pull request to the hub repository, FourFoldAccountManager-plugin-hub. A maintainer reviews it. Users then search and install it inside FourFold. FourFold never installs a plugin from a file.
plugin.jsonmatches the catalog entry (id, version, sites).openExternalnow opens a link only on a site the plugin declared (any public site for a plugin cleared for any website).src/FourFoldAccountManager.HubTool, a small console program the hub repository's workflows run.checkvalidates one submission with the app's own rules, builds its package and writes the summary a maintainer reads.publishbuilds the catalog and the packages.PLUGIN_AUTHORS.mdgains "Getting on the hub", with every rule a submission meets.Trust
plugin.jsonto ask for it and the hub entry to clear it, at the exact commit that is installed. A clearance that is revoked takes effect at the next check, without a restart.xn--form. This also closes a hole in part 2, where a crafted site name could add text to a plugin page's content security policy.Behavior to know about
%LOCALAPPDATA%\FourFoldAccountManager:plugins\<id>\(installed plugins),hub\installed.json(what is installed, at which commit) andhub\catalog.json(the last catalog, used offline).Test plan
dotnet build FourFoldAccountManager.sln -c Debug: 0 warnings, 0 errors.Review notes: every task was reviewed on its own and the branch was reviewed as a whole, with one fix wave afterwards. The reviews used probes on scratch copies (fuzzed zips, 1.5 million crafted site names, the real sidebar rendered at 250 px, a stalling download server). The hub flow has not been run in the app against a real hub: the manual checks above are that first run, and they need the hub repository to be live.