-
-
Notifications
You must be signed in to change notification settings - Fork 95
fix(dashboard): hide MCP when disabled #577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -292,6 +292,20 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| async fetchMcpServersPage() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // dashboardDataFetches starts feature-backed requests in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // parallel, so wait for the shared runtime-config request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // before deciding whether the MCP admin API is available. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (typeof this.ensureWorkflowRuntimeConfig === 'function') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| await this.ensureWorkflowRuntimeConfig(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (typeof this.mcpServersPageVisible === 'function' && !this.mcpServersPageVisible()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServersAvailable = false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServers = []; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServerError = ''; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServersLoading = false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
294
to
+308
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Set the MCP loading state before awaiting runtime configuration.
Proposed fix async fetchMcpServersPage() {
+ this.mcpServersLoading = true;
if (typeof this.ensureWorkflowRuntimeConfig === 'function') {
await this.ensureWorkflowRuntimeConfig();
}
...
- this.mcpServersLoading = true;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServersLoading = true; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.mcpServerError = ''; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.