Skip to content

[BUG][UI]: Incorrect tag rendering in admin views #2267

@rakdutta

Description

@rakdutta

🐛 Bug: Admin UI Displays Tags as Objects Instead of Values

Description
When clicking the View button in the Admin UI, tags are rendered as JavaScript objects instead of their actual values for certain entities. This makes the tag display incorrect and hard to read.

Affected Admin Views

  • MCP Servers
  • Tools
  • Resources
  • A2A Agents

In these views, tags appear as [object Object] or object representations rather than the expected tag values (e.g., label or ID).

Working as Expected

  • Server view
  • Prompt view

Tags in these views are rendered correctly, indicating inconsistent tag handling across the Admin UI.

Steps to Reproduce

  1. Open the Admin UI

  2. Navigate to any of the following:

    • MCP Servers
    • Tools
    • Resources
    • A2A Agents
  3. Click the View button for an item that has tags

  4. Observe the tag display

Image

Expected Behavior
Tags should display their actual values (e.g., label or id) instead of object representations.

Actual Behavior
Tags are rendered as objects rather than readable tag values.

Impact

  • Poor readability in admin views
  • Inconsistent behavior across different admin sections
  • Potential confusion for admins managing tagged entities

Possible Cause
Some admin views assume tags are strings, but in certain cases tags are objects. The rendering logic does not account for object-based tags consistently across all views.

Suggested Fix
Update tag rendering logic in affected admin views to:

  • Detect when a tag is an object
  • Display tag.label or tag.id when available
  • Fallback to rendering the tag value directly if neither exists

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions