Feat: Filter the query variable drop-down box options by type #3221 (#8485)

### What problem does this PR solve?

Feat: Filter the query variable drop-down box options by type #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-06-25 16:23:20 +08:00
committed by GitHub
parent b705ff08fe
commit c4b58ed195
13 changed files with 124 additions and 23 deletions

View File

@ -0,0 +1,22 @@
import { Output, OutputType } from '@/pages/agent/form/components/output';
import { initialIterationStartValues } from '../../constant';
const outputs = initialIterationStartValues.outputs;
const outputList = Object.entries(outputs).reduce<OutputType[]>(
(pre, [key, value]) => {
pre.push({ title: key, type: value.type });
return pre;
},
[],
);
const IterationStartForm = () => {
return (
<section className="space-y-6 p-4">
<Output list={outputList}></Output>
</section>
);
};
export default IterationStartForm;