Skip to content

Commit 0a63867

Browse files
Enhance A2A Multi-Tenancy and Visibility: Table Redesign, Owner Column, and Logic Cleanup (#1385)
* add Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * added owner Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * a2a agent tabular Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * list a2a Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * test Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * filter tag Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * description Signed-off-by: rakdutta <rakhibiswas@yahoo.com> * fix: update A2A agents empty state colspan to match table columns The A2A agents table now has 12 columns (ID, Name, Description, Endpoint, Tags, Type, Status, Reachability, Owner, Team, Visibility, Actions), but the empty state message was still using colspan=7. This updates it to colspan=12 for proper table formatting. Also removes trailing whitespace from button element. Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> --------- Signed-off-by: rakdutta <rakhibiswas@yahoo.com> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
1 parent d8067f0 commit 0a63867

File tree

2 files changed

+206
-167
lines changed

2 files changed

+206
-167
lines changed

mcpgateway/static/admin.js

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11451,15 +11451,8 @@ function filterEntitiesByTags(entityType, tagsInput) {
1145111451
.map((tag) => tag.trim().toLowerCase())
1145211452
.filter((tag) => tag);
1145311453

11454-
let rows;
11455-
if (entityType === "a2a-agents") {
11456-
const panel = document.querySelector(`#${entityType}-panel`);
11457-
rows = panel.querySelectorAll(".border.rounded-lg.p-4");
11458-
// 👆 adjust selector if your agent cards have different class names
11459-
} else {
11460-
const tableSelector = `#${entityType}-panel tbody tr`;
11461-
rows = document.querySelectorAll(tableSelector);
11462-
}
11454+
const tableSelector = `#${entityType}-panel tbody tr`;
11455+
const rows = document.querySelectorAll(tableSelector);
1146311456

1146411457
let visibleCount = 0;
1146511458

@@ -11474,20 +11467,6 @@ function filterEntitiesByTags(entityType, tagsInput) {
1147411467
// Extract tags from this row using specific tag selectors (not status badges)
1147511468
const rowTags = new Set();
1147611469

11477-
/*
11478-
const tagElements_ver1 = row.querySelectorAll(`
11479-
span.inline-flex.items-center.px-2.py-0\\.5.rounded.text-xs.font-medium.bg-blue-100.text-blue-800,
11480-
span.inline-block.bg-blue-100.text-blue-800.text-xs.px-2.py-1.rounded-full
11481-
`);
11482-
11483-
const tagElements_ver2 = row.querySelectorAll(`
11484-
span.inline-flex.items-center.px-2\\.5.py-0\\.5.rounded-full.text-xs.font-medium.bg-blue-100.text-blue-800,
11485-
span.inline-flex.items-center.px-2\\.5.py-0\\.5.rounded-full.text-xs.font-medium.bg-gray-100.text-gray-700,
11486-
span.inline-flex.items-center.px-2.py-1.rounded.text-xs.bg-gray-100.text-gray-700,
11487-
span.inline-block.bg-blue-100.text-blue-800.text-xs.px-2.py-1.rounded-full
11488-
`);
11489-
*/
11490-
1149111470
const tagElements = row.querySelectorAll(`
1149211471
/* Gateways */
1149311472
span.inline-block.bg-blue-100.text-blue-800.text-xs.px-2.py-1.rounded-full,

0 commit comments

Comments
 (0)