mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
feat: execution filter by agentflow name (#5117)
* feat: Add agentflow name filter to executions page - Add agentflow name text field to executions filter UI - Implement backend filtering with case-insensitive partial matching - Add database index on chat_flow.name for improved query performance - Support filtering executions by agentflow name across all database types * chore: Fix linting issues and remove screenshot - Apply prettier formatting to migration files - Fix formatting in executions service - Remove accidentally committed screenshot file
This commit is contained in:
@@ -68,6 +68,7 @@ const AgentExecutions = () => {
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
agentflowId: '',
|
||||
agentflowName: '',
|
||||
sessionId: ''
|
||||
})
|
||||
|
||||
@@ -132,6 +133,7 @@ const AgentExecutions = () => {
|
||||
}
|
||||
|
||||
if (filters.agentflowId) params.agentflowId = filters.agentflowId
|
||||
if (filters.agentflowName) params.agentflowName = filters.agentflowName
|
||||
if (filters.sessionId) params.sessionId = filters.sessionId
|
||||
|
||||
getAllExecutions.request(params)
|
||||
@@ -143,6 +145,7 @@ const AgentExecutions = () => {
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
agentflowId: '',
|
||||
agentflowName: '',
|
||||
sessionId: ''
|
||||
})
|
||||
setCurrentPage(1)
|
||||
@@ -312,6 +315,20 @@ const AgentExecutions = () => {
|
||||
}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid sx={{ ml: -1 }} item xs={12} md={2}>
|
||||
<TextField
|
||||
fullWidth
|
||||
label='Agentflow'
|
||||
value={filters.agentflowName}
|
||||
onChange={(e) => handleFilterChange('agentflowName', e.target.value)}
|
||||
size='small'
|
||||
sx={{
|
||||
'& .MuiOutlinedInput-notchedOutline': {
|
||||
borderColor: borderColor
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid sx={{ ml: -1 }} item xs={12} md={2}>
|
||||
<TextField
|
||||
fullWidth
|
||||
@@ -326,7 +343,7 @@ const AgentExecutions = () => {
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={12} md={4}>
|
||||
<Grid item xs={12} md={2}>
|
||||
<Stack direction='row' spacing={1}>
|
||||
<Button
|
||||
variant='contained'
|
||||
|
||||
Reference in New Issue
Block a user