Feat: Render DynamicCategorize with shadcn-ui. #3221 (#5610)

### What problem does this PR solve?

Feat: Render DynamicCategorize with shadcn-ui. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-03-04 19:31:32 +08:00
committed by GitHub
parent fb4b5b0a06
commit 850e218051
8 changed files with 239 additions and 405 deletions

View File

@ -99,8 +99,15 @@ export function useFormConfigMap() {
},
[Operator.Categorize]: {
component: CategorizeForm,
defaultValues: {},
schema: z.object({}),
defaultValues: { message_history_window_size: 1 },
schema: z.object({
message_history_window_size: z.number(),
items: z.array(
z.object({
name: z.string().min(1, t('flow.nameMessage')).trim(),
}),
),
}),
},
[Operator.Message]: {
component: MessageForm,