Commit 87ebeb4
committed
Deduplicate SignalR connection bar per hub in plugin
Ensure the SignalR connection bar is rendered only once per hub, even when multiple tags map to the same hub path. Track the primary tag for each hub and render the connection bar only for that tag. Add integration test to verify deduplication logic in the plugin JavaScript.1 parent acebc3d commit 87ebeb4
2 files changed
Lines changed: 40 additions & 0 deletions
File tree
- src/SignalR.OpenApi.SwaggerUi/Resources
- test/SignalR.OpenApi.Tests
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
444 | 446 | | |
| 447 | + | |
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
| |||
451 | 454 | | |
452 | 455 | | |
453 | 456 | | |
| 457 | + | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
| |||
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
| |||
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
| 498 | + | |
491 | 499 | | |
492 | 500 | | |
493 | 501 | | |
| |||
499 | 507 | | |
500 | 508 | | |
501 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
502 | 518 | | |
503 | 519 | | |
504 | 520 | | |
| |||
991 | 1007 | | |
992 | 1008 | | |
993 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
994 | 1016 | | |
995 | 1017 | | |
996 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
551 | 569 | | |
552 | 570 | | |
553 | 571 | | |
| |||
0 commit comments