chore: Routing fragment only when connected #638
+193
−3
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.
#resources
Note:
I had quite a few test failures in CI, but not locally, due test order execution differences. By formally randomizing test order (instead of a difference due to shell globbing or other CI-specific differences), Jest will output a seed value which can be used locally.
Future work can refactor the tests, there is now duplication
Motivation and Context
The tabs for MCP components only display when connected to a server, so there is no
Resources
tab available on initial open of the Inspector. The Inspector has numerous configuration options and also remembers state (vialocalStorage
), so displaying a routing fragment when it is not relevant can be confusing and suggest a state or configuration bug.How Has This Been Tested?
React and Playwright tests added. Tested locally as well.
Breaking Changes
Seems unlikely.
Types of changes
Not sure how to categorize; I consider this a "UX bug".
Checklist