Skip to content

fix(ui): keep add-on names out of the picker sample - #13415

Merged
mudler merged 1 commit into
mudler:masterfrom
mudler-agent:fix/providerguard-web-tool-id
Nov 23, 2026
Merged

mudler merged 1 commit into
mudler:masterfrom
mudler-agent:fix/providerguard-web-tool-id

Conversation

@mudler-agent

Copy link
Copy Markdown
Collaborator

What

Fix the failing providerguard test on master, which makes the "Distributed E2E Tests" workflow fail.

Why

The guard in core/services/studio/providerguard fails when core code names a shipped add-on. The component catalog page (UiCatalog.jsx, added with the picker redesign) used web as a sample tool id and Web search as its label. The guard reads both as the name of an add-on.

Change

  • UiCatalog.jsx: the sample id web becomes search, and the label Web search becomes Search. The picker demo is unchanged.
  • e2e/list-picker.spec.js: the spec finds the option by its label, so it uses the new label.

I renamed the sample rather than adding it to the guard's allowed list, so the guard stays as strict as before.

Tests

  • ginkgo -r ./core/services/studio/providerguard with -tags nosqlite,purego_utp: failed with the three findings before the change, and 4 of 4 specs pass after it.
  • npm run lint -- --quiet and npm run test:unit in core/http/react-ui: no errors, 0 failures.

Not run: the Playwright spec list-picker.spec.js (it needs a browser and the test server) and the whole make test-distributed-fakebus target.

Assisted-by: Claude:claude-sonnet-5-5

The guard in core/services/studio/providerguard fails on master: the
component catalog page used 'web' as a sample tool id and 'Web search'
as its label, and the guard reads both as the name of a shipped add-on.

Rename the sample to a neutral 'search' id with a 'Search' label. The
picker demo is unchanged. Update the list-picker e2e spec, which finds
the option by its label.

Assisted-by: Claude:claude-sonnet-5-5
@mudler
mudler merged commit 3f59d85 into mudler:master Nov 23, 2026
67 of 79 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.

2 participants