Repository navigation
fix(ui): keep add-on names out of the picker sample - #13415
Merged
Merged
Conversation
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
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.
What
Fix the failing
providerguardtest on master, which makes the "Distributed E2E Tests" workflow fail.Why
The guard in
core/services/studio/providerguardfails when core code names a shipped add-on. The component catalog page (UiCatalog.jsx, added with the picker redesign) usedwebas a sample tool id andWeb searchas its label. The guard reads both as the name of an add-on.Change
UiCatalog.jsx: the sample idwebbecomessearch, and the labelWeb searchbecomesSearch. 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
allowedlist, so the guard stays as strict as before.Tests
ginkgo -r ./core/services/studio/providerguardwith-tags nosqlite,purego_utp: failed with the three findings before the change, and 4 of 4 specs pass after it.npm run lint -- --quietandnpm run test:unitincore/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 wholemake test-distributed-fakebustarget.Assisted-by: Claude:claude-sonnet-5-5