Commit 532f82b
authored
refactor: enhance MCP configuration handling in connection settings (#1985)
* refactor: enhance MCP configuration handling in connection settings
- Introduced `useMcpConfiguration` hook to fetch MCP configuration directly, simplifying data management.
- Updated `McpConfigurationForm` to accept `stateSchema`, `isLoading`, and `error` props for improved state handling.
- Removed local state management for MCP scopes in `SettingsTab`, streamlining the component structure.
- Enhanced the `ConnectionInspectorViewContent` to utilize the new hook for better integration of MCP settings.
* refactor: streamline MCP configuration handling in connection settings
- Updated `useMcpConfiguration` to improve data fetching for MCP scopes, enhancing loading state management.
- Simplified the `SettingsTab` component by directly utilizing fetched scopes, improving clarity and reducing local state management.
- Cleaned up comments and formatting for better code organization.1 parent afc3fc7 commit 532f82b
File tree
2 files changed
+48
-25
lines changed- apps/mesh/src/web/components/details
2 files changed
+48
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
441 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
442 | 455 | | |
443 | 456 | | |
444 | 457 | | |
| |||
541 | 554 | | |
542 | 555 | | |
543 | 556 | | |
544 | | - | |
545 | 557 | | |
546 | 558 | | |
547 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
548 | 562 | | |
549 | 563 | | |
550 | 564 | | |
| |||
Lines changed: 30 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
17 | 40 | | |
18 | | - | |
19 | 41 | | |
20 | 42 | | |
21 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
22 | 46 | | |
23 | 47 | | |
24 | 48 | | |
| |||
197 | 221 | | |
198 | 222 | | |
199 | 223 | | |
200 | | - | |
201 | 224 | | |
202 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
203 | 229 | | |
204 | 230 | | |
205 | 231 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
| |||
0 commit comments