Skip to content

Commit 9541d52

Browse files
committed
feat: enhance UI components and improve test coverage for agent functionality
Signed-off-by: Andre Bossard <anbossar@microsoft.com>
1 parent 61769ba commit 9541d52

5 files changed

Lines changed: 531 additions & 120 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ logs/
5353
csv/*.csv
5454
screenshots/
5555
*.png
56+
.mcp.json

frontend/src/features/workbench/AgentEditDialog.jsx

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
import {
2-
Button,
3-
Checkbox,
4-
Dialog,
5-
DialogActions,
6-
DialogBody,
7-
DialogContent,
8-
DialogSurface,
9-
DialogTitle,
10-
Field,
11-
Input,
12-
Spinner,
13-
Text,
14-
Textarea,
15-
makeStyles,
16-
tokens,
2+
Button,
3+
Checkbox,
4+
Dialog,
5+
DialogActions,
6+
DialogBody,
7+
DialogContent,
8+
DialogSurface,
9+
DialogTitle,
10+
Field,
11+
Input,
12+
Spinner,
13+
Text,
14+
Textarea,
15+
makeStyles,
16+
tokens,
1717
} from '@fluentui/react-components'
1818
import { useEffect, useState } from 'react'
1919
import { updateWorkbenchAgent } from '../../services/api'
2020
import SchemaEditor from './SchemaEditor'
2121

2222
const useStyles = makeStyles({
23+
dialogSurface: {
24+
width: 'min(92vw, 860px)',
25+
maxWidth: '860px',
26+
maxHeight: '88vh',
27+
},
28+
dialogContent: {
29+
overflowY: 'auto',
30+
maxHeight: 'calc(88vh - 120px)',
31+
},
2332
form: {
2433
display: 'flex',
2534
flexDirection: 'column',
@@ -118,10 +127,10 @@ export default function AgentEditDialog({ agent, tools, onSave, onClose }) {
118127

119128
return (
120129
<Dialog open={Boolean(agent)} onOpenChange={(_, data) => { if (!data.open) onClose() }}>
121-
<DialogSurface data-testid="agent-edit-dialog">
130+
<DialogSurface className={styles.dialogSurface} data-testid="agent-edit-dialog">
122131
<DialogBody>
123132
<DialogTitle>{`Edit Agent: ${agent?.name || ''}`}</DialogTitle>
124-
<DialogContent>
133+
<DialogContent className={styles.dialogContent}>
125134
<div className={styles.form}>
126135
<Field label="Name" required>
127136
<Input

0 commit comments

Comments
 (0)