Skip to content

Commit 562a03e

Browse files
ui ws wip
1 parent db901bd commit 562a03e

File tree

7 files changed

+374
-97
lines changed

7 files changed

+374
-97
lines changed

data/agent_teams/hr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"input_key": "",
4444
"type": "",
4545
"name": "ProxyAgent",
46-
"deployment_name": "",
46+
"deployment_name": "gpt-4.1",
4747
"icon": "",
4848
"system_message": "",
4949
"description": "",

src/frontend/src/components/common/SettingsButton.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ import {
4141
import { TeamConfig } from '../../models/Team';
4242
import { TeamService } from '../../services/TeamService';
4343

44+
import '../../index.css'
45+
4446
// Icon mapping function to convert string icons to FluentUI icons
4547
const getIconFromString = (iconString: string): React.ReactNode => {
4648
const iconMap: Record<string, React.ReactNode> = {
@@ -514,7 +516,7 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
514516
appearance="subtle"
515517
size="small"
516518
onClick={(e) => handleDeleteTeam(team, e)}
517-
style={{ color: '#d13438' }}
519+
className="delete-team-button"
518520
/>
519521
</Tooltip>
520522
</div>
@@ -751,16 +753,8 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
751753
{/* Delete Confirmation Dialog */}
752754
<Dialog open={deleteConfirmOpen} onOpenChange={(event, data) => setDeleteConfirmOpen(data.open)}>
753755
<DialogSurface>
754-
<DialogContent style={{
755-
display: 'flex',
756-
flexDirection: 'column',
757-
width: '100%'
758-
}}>
759-
<DialogBody style={{
760-
display: 'flex',
761-
flexDirection: 'column',
762-
width: '100%'
763-
}}>
756+
<DialogContent data-testid="delete-dialog">
757+
<DialogBody>
764758
<DialogTitle>⚠️ Delete Team Configuration</DialogTitle>
765759
<div style={{ marginTop: '16px', marginBottom: '20px' }}>
766760
<Text style={{ display: 'block', marginBottom: '16px' }}>
@@ -802,6 +796,7 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
802796
disabled={deleteLoading}
803797
style={{ backgroundColor: '#d13438', color: 'white' }}
804798
onClick={confirmDeleteTeam}
799+
data-testid="delete-team-confirm"
805800
>
806801
{deleteLoading ? 'Deleting...' : 'Delete for Everyone'}
807802
</Button>

0 commit comments

Comments
 (0)