Commit 1f9f65d
authored
improvement(mcp): make the OAuth experience visible and verbally consistent (#5829)
* improvement(mcp): make the OAuth experience visible and verbally consistent
From a full UX-consistency audit of the MCP settings surfaces:
- One name for one action: 'Authorize' / 'Reopen authorization' everywhere
(list chip, row, detail) — was three different labels across surfaces.
- The connecting state is now visible: the row subtitle shows a muted
'Waiting for authorization...' instead of continuing to shout the red
'OAuth authorization required' mid-flow.
- The Authorize affordance is a visible chip on the list row (was buried in
the overflow menu), so a blocked popup's 'retry' has an obvious target.
- Removed the redundant aggregate discovery banner — every failing row
already reports its specific error; two red messages for one failure.
- The header Refresh chip no longer renders an error sentence as its label
(short 'Failed'; the Status field carries the explanation).
- Sentence-case sweep (Unnamed server, Not connected, Server name, Add MCP
server / Edit MCP server, Add server, Test connection, Edit form, Delete
MCP server), 'Search servers...' placeholder, row-subtitle/error text on
the canonical tokens, and a Loading empty state instead of a blank flash.
* fix(mcp): show stale-discovery failures, best-effort popup-close label clear, drop redundant branch
- A failing latest discovery now shows its error even when cached tools exist
(the stale tool count silently hid it).
- Best-effort popup.closed poll clears only the 'Waiting for authorization...'
label share; the flow entry stays registered so a completion that still
arrives over the BroadcastChannel is honored (settleFlow skips the
double-decrement). Under COOP misreport the worst case is an early label
reset, never a dropped completion.
- Remove the OAuth refresh-state branch made redundant by the 'Failed' change,
plus its now-unused authType/error inputs.1 parent e3f9deb commit 1f9f65d
8 files changed
Lines changed: 131 additions & 92 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/settings/components/mcp
- components/mcp-server-form-modal
- hooks/mcp
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | | - | |
| 625 | + | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| |||
Lines changed: 34 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | | - | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 196 | + | |
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
| |||
399 | 395 | | |
400 | 396 | | |
401 | 397 | | |
402 | | - | |
403 | | - | |
404 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
405 | 401 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | 402 | | |
412 | 403 | | |
413 | 404 | | |
| |||
418 | 409 | | |
419 | 410 | | |
420 | 411 | | |
421 | | - | |
422 | | - | |
423 | 412 | | |
424 | 413 | | |
425 | 414 | | |
426 | 415 | | |
427 | 416 | | |
428 | 417 | | |
429 | | - | |
| 418 | + | |
430 | 419 | | |
431 | 420 | | |
432 | 421 | | |
| |||
447 | 436 | | |
448 | 437 | | |
449 | 438 | | |
450 | | - | |
451 | | - | |
| 439 | + | |
| 440 | + | |
452 | 441 | | |
453 | 442 | | |
454 | 443 | | |
| |||
487 | 476 | | |
488 | 477 | | |
489 | 478 | | |
490 | | - | |
491 | | - | |
492 | | - | |
| 479 | + | |
493 | 480 | | |
494 | 481 | | |
495 | 482 | | |
| |||
651 | 638 | | |
652 | 639 | | |
653 | 640 | | |
654 | | - | |
| 641 | + | |
655 | 642 | | |
656 | 643 | | |
657 | 644 | | |
| |||
669 | 656 | | |
670 | 657 | | |
671 | 658 | | |
672 | | - | |
| 659 | + | |
673 | 660 | | |
674 | 661 | | |
675 | 662 | | |
676 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
677 | 666 | | |
678 | 667 | | |
679 | 668 | | |
680 | 669 | | |
681 | 670 | | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | 671 | | |
688 | 672 | | |
689 | 673 | | |
| |||
749 | 733 | | |
750 | 734 | | |
751 | 735 | | |
752 | | - | |
753 | | - | |
| 736 | + | |
| 737 | + | |
754 | 738 | | |
755 | 739 | | |
756 | 740 | | |
| |||
Lines changed: 0 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 34 | | |
50 | 35 | | |
51 | 36 | | |
52 | 37 | | |
53 | 38 | | |
54 | | - | |
55 | | - | |
56 | 39 | | |
57 | 40 | | |
58 | 41 | | |
| |||
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 22 | | |
36 | 23 | | |
37 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
246 | 304 | | |
0 commit comments