Commit 9cec547
authored
feat(ai-agents): add agent card tab and improve inspector UI (#2166)
* feat(ai-agents): add agent card tab and improve inspector UI
- Add dedicated Agent Card tab to view and edit A2A discovery metadata
- Add context ID display with copy button in chat header
- Fix CopyButton hover animation causing visual shift
- Add StringArrayInput component for editing tag arrays
- Remove agent card config from create page (requires stepper UI)
Agent card configuration on create will be added later with a proper
multi-step form wizard to handle the complexity.
* fix(frontend): address Biome linting violations in agent UI components
Fix multiple linting issues in agent chat and inspector components:
- Remove unnecessary fragment wrapper in context ID header
- Fix className ordering violations (Biome enforces alphabetical order)
- Move useState hooks to component top level before early returns (React rules)
- Replace nested ternary with explicit if-else for dialog content states
- Fix potential leaked render by using Boolean() instead of &&
The hook placement fix prevents potential bugs where React would lose
state tracking across renders. The nested ternary refactor improves
readability without changing behavior.
* fix(ai-agents): point A2A SDK examples to main branch
Replace hardcoded commit SHA with refs/heads/main now that the SDK
examples PR is merged. The code snippets are fetched from the
how-to-connect-code-snippets repository for display in the Agent Card tab.
* fix(frontend): address PR review feedback
- Use Redpanda UI Button component in StringArrayInput instead of raw
button element for consistent styling and behavior
- Import Fingerprint icon from components/icons barrel file instead of
directly from lucide-react to follow project conventions
- Add sanitizeSkill() helper function to centralize skill data
transformation instead of inline trimming in handleSave1 parent 408c24f commit 9cec547
File tree
9 files changed
+1021
-16
lines changed- frontend/src
- components
- icons
- pages/agents/details
- a2a/chat
- ui/common
- react-query/api
9 files changed
+1021
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
93 | 113 | | |
94 | 114 | | |
95 | 115 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
0 commit comments