Skip to content

feat(settings): add an opt-in integrations catalog with install, remove and update - #1748

Merged
l0gicgate merged 15 commits into
mainfrom
feat/1741-integrations-catalog
Oct 18, 2026
Merged

l0gicgate merged 15 commits into
mainfrom
feat/1741-integrations-catalog

Conversation

@l0gicgate

@l0gicgate l0gicgate commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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 a catalog.toml (id, name, description, category, maintainer, runtime, entry, icons, requirements) beside the program. build.rs embeds the directory, so releases carry the catalog without packaging changes. integrations/README.md documents the layout, the manifest, the maintainer rule and the review policy. STRATA_INTEGRATION_CATALOG=<dir> replaces the bundled catalog while developing an entry.
  • Settings → Integrations. Lists entries by category (Cloud, Devices, Version control, Other) with maintainer, description and a requirement check per entry: the runtime and each declared command are looked up in trusted system directories, Python modules are asked of the interpreter without importing them, and missing ones show the install command for the detected distribution.
  • Install / Remove / Update. Install copies the files into ~/.config/strata/providers/<id>/, writes provider.json with the interpreter and script paths resolved on this machine, and records a content hash per file in catalog-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.
  • Enable switch. Every installed registration has 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.
  • No restart. The provider hub can stop its running providers and discover the registrations again. The page does that after every install, update, removal or switch change, and a Refresh button does it after edits made by hand, so providers take effect at once.
  • Open folder. A button in the page intro closes Settings and shows the providers directory in the browser.
  • Agent guidance. AGENTS.md no longer asks agents for PR screenshots or recordings, which they cannot upload.
  • CI. A path-filtered Integrations workflow compiles each bundled entry with its runtime and runs its tests/ 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 fmt and clippy; typos. The full Rust and E2E suites were not run locally.

Visual evidence

image

How to test

  1. Create a catalog directory with one entry, for example catalog/example/catalog.toml and catalog/example/provider.py, following integrations/README.md (any Python program that reads stdin is enough).
  2. Run STRATA_INTEGRATION_CATALOG=$PWD/catalog cargo run and open Settings → Integrations.
  3. Select Install, then check ~/.config/strata/providers/example/ for provider.json, the copied files and catalog-install.json.
  4. Change provider.py in the catalog directory, close and reopen Settings, and select Update.
  5. Edit the installed provider.py, change the catalog copy again, reopen Settings and select Update; confirm with Replace.
  6. Turn the switch off and check that ~/.config/strata/providers/example/disabled exists; turn it back on.
  7. Select Remove. Then create ~/.config/strata/providers/handmade/provider.json by hand, reopen Settings and remove it from Installed manually.
  8. Select Open folder: Settings closes and the browser shows ~/.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

…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.
@l0gicgate
l0gicgate merged commit 9284929 into main Oct 18, 2026
11 checks passed
@l0gicgate

Copy link
Copy Markdown
Contributor Author

Review

main (cce02f7f) was already merged into the branch, so no merge was needed. There were no review comments or threads to reconcile.

Fixed

  • Refresh never re-checked requirements (322d45c). The page is built once per window and kept the results for the window's life. A package installed after the first check stayed listed as missing until Strata restarted. Refresh now clears the results; revisiting the page still reuses them. The page test covers both cases and fails without the fix. The catalog and manual rows now share one row frame instead of two copies.
  • Reserved disabled and top-level modules (a924d89). A bundled file named disabled would install as the marker that stops the provider loading. Dotted module requirements such as gi.repository imported their parent package during the check, contrary to the documented promise that modules are never imported. Both are now rejected, with tests.
  • Transport heading (50669e0). The new "Bundled integrations" section in docs/file-providers.md had replaced the ## Transport heading.

Renamed

The bundled catalog is now named after what users see in Settings (8f134d6):

  • providers/ → integrations/
  • STRATA_PROVIDER_CATALOG → STRATA_INTEGRATION_CATALOG
  • the Providers workflow → Integrations, with its job now "Bundled integration tests" (not a required check)
  • scripts/provider_tests.py → scripts/integration_tests.py
  • services::provider_catalog → services::integration_catalog

The page description now says "Optional integrations…" in all twelve languages. Integrations still install as file providers under ~/.config/strata/providers/, which also holds hand-made registrations, so that directory and the protocol keep their names. Nothing outside this PR used the old names.

Manual check

  1. Open Settings → Integrations with a catalog entry whose requirement is missing.
  2. Install the missing command or module, then select Refresh.

The requirement now shows as available without restarting Strata.

Not changed

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

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.
@l0gicgate
l0gicgate deleted the feat/1741-integrations-catalog branch October 25, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(providers): bundle an opt-in integrations catalog with install, remove and update

1 participant