Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ce8cd70
feat: add agent page tabs
ferruhcihan Oct 21, 2025
2d97883
chore: remove AgentPlayground form components folder
ferruhcihan Oct 22, 2025
c793c9a
feat: improve error handling
ferruhcihan Oct 22, 2025
a342c7b
feat: improve knowledge base fields with description
ferruhcihan Oct 22, 2025
d535c76
feat: improve agent routes fields with dropdown
ferruhcihan Oct 22, 2025
cfd1c89
fix: agent resources alignment
ferruhcihan Oct 23, 2025
0a6a3da
feat: improve agent resources tab
ferruhcihan Oct 23, 2025
43dbd1e
fix: remove description field from mcp servers
ferruhcihan Oct 23, 2025
b22c29e
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Oct 24, 2025
6f9f545
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Oct 24, 2025
e1904d6
feat: add agent settings additional fields
ferruhcihan Oct 24, 2025
037c6f4
feat: show kb and agent statuses with colors
ferruhcihan Oct 24, 2025
037bfa4
fix: agent page descriptions
ferruhcihan Oct 24, 2025
5bc3ae9
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Oct 24, 2025
716d450
feat: align statuses across the platform
ferruhcihan Oct 24, 2025
e7fc96e
fix: add status Indexed
CasLubbers Oct 28, 2025
597da2e
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Oct 31, 2025
7b03ed0
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 4, 2025
83b5d60
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 10, 2025
5201c19
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 10, 2025
956e608
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 12, 2025
4d3a91a
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 13, 2025
23b7e3e
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 13, 2025
f9e5b2d
Merge remote-tracking branch 'origin/main' into APL-1199
svcAPLBot Nov 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ interface Props {
children?: React.ReactNode
noPaddingTop?: boolean
noMarginTop?: boolean
sx?: object
}

export default function Section(props: Props) {
const { title, description, collapsable, children, noPaddingTop, noMarginTop } = props
const { title, description, collapsable, children, noPaddingTop, noMarginTop, sx } = props
const [expanded, setExpanded] = useState(true)

const handleAccordionChange = () => {
Expand All @@ -67,7 +68,7 @@ export default function Section(props: Props) {

if (collapsable) {
return (
<Paper noPaddingTop={noPaddingTop} sx={{ p: '20px' }}>
<Paper noPaddingTop={noPaddingTop} sx={{ p: '20px', ...sx }}>
<StyledAccordion disableGutters expanded={expanded} onChange={handleAccordionChange}>
<StyledAccordionSummary>
<Box sx={{ display: 'flex', flexDirection: 'column' }}>
Expand All @@ -89,7 +90,7 @@ export default function Section(props: Props) {
}

return (
<Paper noPaddingTop={noPaddingTop}>
<Paper noPaddingTop={noPaddingTop} sx={{ ...sx }}>
{title && <StyledTitle variant='h6'>{title}</StyledTitle>}
{description && <StyledDescription>{description}</StyledDescription>}
{children}
Expand Down
17 changes: 15 additions & 2 deletions src/components/forms/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export interface EnhancedAutocompleteProps<
/** Removes the "select all" option for multiselect */
disableSelectAll?: boolean
textFieldProps?: Partial<TextFieldProps>
width?: 'small' | 'medium' | 'large'
width?: 'small' | 'medium' | 'large' | 'fullwidth'
/** Hide placeholder and minimize input width when values are selected (for cleaner multi-select UX) */
compactMultiSelect?: boolean
}

export function Autocomplete<
Expand All @@ -58,6 +60,7 @@ export function Autocomplete<
loadingText,
multiple,
disableSelectAll = false,
noMarginTop = false,
noOptionsText,
onBlur,
options,
Expand All @@ -68,11 +71,15 @@ export function Autocomplete<
value,
onChange,
width = 'medium',
compactMultiSelect = false,
...rest
} = props

const [inPlaceholder, setInPlaceholder] = useState('')

// Check if there are selected values (for hiding placeholder when values exist)
const hasValues = multiple ? Array.isArray(value) && value.length > 0 : !!value

// --- select-all logic ---
const isSelectAllActive = multiple && Array.isArray(value) && value.length === options.length

Expand Down Expand Up @@ -121,8 +128,10 @@ export function Autocomplete<
label={label}
width={width}
loading={loading}
placeholder={inPlaceholder || placeholder || 'Select an option'}
noMarginTop={noMarginTop}
placeholder={compactMultiSelect && hasValues ? '' : inPlaceholder || placeholder || 'Select an option'}
{...params}
{...textFieldProps}
error={!!errorText}
helperText={helperText}
InputProps={{
Expand All @@ -133,6 +142,10 @@ export function Autocomplete<
flexWrap: 'wrap',
gap: 1,
paddingRight: '44px',
'& input': {
minWidth: compactMultiSelect && hasValues && multiple ? '30px !important' : undefined,
width: compactMultiSelect && hasValues && multiple ? '30px !important' : undefined,
},
},
}}
InputLabelProps={{
Expand Down
26 changes: 15 additions & 11 deletions src/components/forms/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,27 @@ export function AutoResizableTextarea({

return (
<Box>
<InputLabel
className={classes.inputLabel}
sx={{
fontWeight: 'bold',
fontSize: '14px',
visibility: label ? 'visible' : 'hidden',
marginTop: label ? '16px' : '0px',
}}
>
{label}
</InputLabel>
{label && (
<InputLabel
className={classes.inputLabel}
sx={{
fontWeight: 'bold',
fontSize: '14px',
visibility: label ? 'visible' : 'hidden',
marginTop: label ? '16px' : '0px',
height: label ? 'auto' : '0px',
}}
>
{label}
</InputLabel>
)}
<Box
sx={{
position: 'relative',
display: 'flex',
alignItems: 'flex-start',
gap: '8px',
marginTop: label ? '0px' : '16px',
}}
>
<textarea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Alert, Box, IconButton, TextField, Typography, keyframes } from '@mui/m
import SendIcon from '@mui/icons-material/Send'
import DeleteIcon from '@mui/icons-material/Delete'
import StopIcon from '@mui/icons-material/StopCircle'
import Markdown from './Markdown'
import { Paper } from './Paper'
import Iconify from './Iconify'
import Markdown from 'components/Markdown'
import { Paper } from 'components/Paper'
import Iconify from 'components/Iconify'

const thinkingAnimation = keyframes`
0%, 60%, 100% {
Expand All @@ -27,7 +27,7 @@ interface AgentPlaygroundProps {
agentName: string
}

export function AgentPlayground({ teamId, agentName }: AgentPlaygroundProps): React.ReactElement {
export default function AgentPlayground({ teamId, agentName }: AgentPlaygroundProps): React.ReactElement {
const [messages, setMessages] = useState<Message[]>([])
const [input, setInput] = useState('')
const [loading, setLoading] = useState(false)
Expand Down Expand Up @@ -201,7 +201,6 @@ export function AgentPlayground({ teamId, agentName }: AgentPlaygroundProps): Re
mb: 2,
border: '1px solid',
borderColor: 'divider',
borderRadius: 1,
p: 2,
backgroundColor: 'background.default',
}}
Expand Down
Loading