Repository navigation
feat(settings): add an opt-in integrations catalog with install, remove and update - #1748
Merged
Merged
Conversation
…ve and update Providers maintained in the repository live under providers/, one directory per integration with a catalog.toml beside the program. build.rs embeds the directory, so releases carry the catalog without packaging changes, and STRATA_PROVIDER_CATALOG points at a checkout while developing an entry. Settings → Integrations lists the catalog by category with each entry's maintainer and requirement checks, including the install command for the detected distribution. Install copies the files into the provider registry with the interpreter and script paths resolved on this machine and records a content hash; Remove deletes the directory. Installed copies whose bundled files changed show Update available, local edits are confirmed before they are replaced, and registrations without a record are listed as installed manually with Remove only. Every change offers a restart. A path-filtered Providers workflow compiles each bundled entry and runs its tests; the Rust suite checks that every bundled entry parses and is translated. Closes #1741
…Chinese strings Group headings on the Integrations page sat flush against the intro because the list was nested one level too deep for the page heading spacing; the list is now a direct child of the page. Manually installed registrations show their declared icon, or the category placeholder, beside the name with Remove on the same row, and no longer print their path; the intro names the providers folder once instead. The strings added for the page gain zh-TW entries after the locale landed on main.
Install, Update and Remove are now icon buttons in the row heading, styled like the custom action rows with a red trash can for Remove, so compact layouts no longer stretch a text button across the row. The busy state replaces the "Installing…" and "Updating…" labels.
…grations Every installed registration, from the catalog or by hand, gets a switch that writes or removes an empty `disabled` marker beside provider.json; discovery skips marked directories, so an integration can be turned off without removing it and an update keeps the choice. The intro card gains Open folder, which closes Settings and shows the providers directory in the browser through a hook the window passes into the Settings layer. Short rows are centered within the shared row height.
A vertical box only honours a child's center alignment when the child is allocated more than its natural height, so one-line rows kept their copy at the top whenever the responsive layout left the row vertical. The copy now expands within the row, and the row stops that expansion from reaching the page.
…f restarting The provider hub can now drop its running providers and discover the registrations again. The Integrations page does that after every install, update, removal or switch change, and a Refresh button beside Open folder does it after edits made by hand, so the restart notice and its wording are gone. Reloading restarts the hub timer when discovery had stopped it and clears badges until the new providers answer.
The enable switch carries an Enabled or Disabled label and a separator keeps it apart from the row's buttons; Remove is a borderless trash can. Refresh and Open folder show a leading icon.
Requirement results were cached for the life of the page, so a package installed after the first check stayed listed as missing until Strata restarted. Refresh now clears them; revisiting the page still reuses them. The catalog and manual rows share one row frame.
…modules A bundled file named disabled would install as the marker that stops the provider loading. Dotted module requirements imported their parent package during the check, contrary to the documented promise.
The catalog directory, its override variable, workflow, test runner and service module now say integrations, matching Settings → Integrations, and the page description calls them integrations in every language. Integrations still install as file providers under ~/.config/strata/providers/, which also holds registrations made by hand, so that directory and the protocol keep their names.
Contributor
Author
Review
Fixed
RenamedThe bundled catalog is now named after what users see in Settings (8f134d6):
The page description now says "Optional integrations…" in all twelve languages. Integrations still install as file providers under Manual check
The requirement now shows as available without restarting Strata. Not changedIf turning an integration's switch on or off fails, the error shows but the switch stays in its new position until the page is refreshed. This is minor and doesn't block merge. |
This was referenced Oct 18, 2026
l0gicgate
added a commit
that referenced
this pull request
Oct 20, 2026
…ompat-followups Resolves the catalog, services, preview test, context menu, theme and typed-navigation conflicts, and adapts what main added since the fork to this branch's rules: - The user stylesheet (#1758) is watched through the monitors worker and re-read off the UI thread. - The Diagnostics page (#1735) and the Integrations page (#1748) detect the package manager and resolve the terminal off the UI thread; the Run-in-terminal button spawns through the reaper closure. - Connect to server (#1726) waits for a native path's asynchronous validation instead of pinning and closing at once. - The pinned-places tests read the GTK bookmarks file through adapters::bookmarks after the settings writer settles. - Traditional Chinese (#1745) gets the strings this branch adds.
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.
Description
Adds the home for opt-in integrations that #1741 describes, so providers such as KDE Connect (#1704) and Nextcloud (#1670) can live in this repository and users can find them in the app.
integrations/catalog. One directory per integration with acatalog.toml(id, name, description, category, maintainer, runtime, entry, icons, requirements) beside the program.build.rsembeds the directory, so releases carry the catalog without packaging changes.integrations/README.mddocuments the layout, the manifest, the maintainer rule and the review policy.STRATA_INTEGRATION_CATALOG=<dir>replaces the bundled catalog while developing an entry.~/.config/strata/providers/<id>/, writesprovider.jsonwith the interpreter and script paths resolved on this machine, and records a content hash per file incatalog-install.json. When the bundled files change, installed copies show Update available; nothing updates on its own. Local edits are detected from the recorded hashes and confirmed before they are replaced. Registrations without a record are listed under Installed manually with their registered icon and Remove only, which also confirms first. Install, Update and Remove are icon buttons in the row heading, like the custom action rows.disabledmarker besideprovider.json; discovery skips marked directories, so an integration can be turned off without removing it and an update keeps the choice.AGENTS.mdno longer asks agents for PR screenshots or recordings, which they cannot upload.Integrationsworkflow compiles each bundled entry with its runtime and runs itstests/with unittest, installing the apt packages a provider's tests declare. The Rust suite checks that every bundled entry parses, respects the manifest bounds and has its name and description in all twelve catalogs.The catalog ships empty in this PR; the page shows its empty state. Moving #1704 into
integrations/kdeconnect/and inviting the Nextcloud author back are the next step from #1741.Validation was scoped to the new service and page, the provider registry helpers they share, Settings search registration and the i18n catalogs:
test-headless.py integration_catalog(7),settings::integrations(4),file_providers(42, including the hub reload),package_manager(2),search::tests(104),i18n::(12);e2e.sh tests/e2e/scenarios/test_integrations.py tests/e2e/scenarios/test_settings_search.py(3 passed);python3 -m unittest discover -s scripts -p 'test_*.py'(246);quality.sh fmtandclippy;typos. The full Rust and E2E suites were not run locally.Visual evidence
How to test
catalog/example/catalog.tomlandcatalog/example/provider.py, followingintegrations/README.md(any Python program that reads stdin is enough).STRATA_INTEGRATION_CATALOG=$PWD/catalog cargo runand open Settings → Integrations.~/.config/strata/providers/example/forprovider.json, the copied files andcatalog-install.json.provider.pyin the catalog directory, close and reopen Settings, and select Update.provider.py, change the catalog copy again, reopen Settings and select Update; confirm with Replace.~/.config/strata/providers/example/disabledexists; turn it back on.~/.config/strata/providers/handmade/provider.jsonby hand, reopen Settings and remove it from Installed manually.~/.config/strata/providers.Expected result: the row moves through Not installed, Installed, Update available and Update available · Modified locally; the installed files match the catalog after each install or update; the local edit is only replaced after confirmation; the switch shows Disabled and the marker file; removal deletes the directory; the provider's context-menu action appears right after Install and disappears when disabled or removed, with no restart. Searching Settings for "add-ons" or "plugins" opens the page.
Related issue
Closes #1741