mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-22 21:38:05 -05:00
rename
This commit is contained in:
@@ -10,7 +10,7 @@ import { useSubBlockValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/c
|
||||
import { EmptyState } from './components/empty-state'
|
||||
import { FilterRuleRow } from './components/filter-rule-row'
|
||||
|
||||
interface FilterFormatProps {
|
||||
interface FilterBuilderProps {
|
||||
blockId: string
|
||||
subBlockId: string
|
||||
isPreview?: boolean
|
||||
@@ -21,7 +21,7 @@ interface FilterFormatProps {
|
||||
}
|
||||
|
||||
/** Visual builder for table filter rules in workflow blocks. */
|
||||
export function FilterFormat({
|
||||
export function FilterBuilder({
|
||||
blockId,
|
||||
subBlockId,
|
||||
isPreview = false,
|
||||
@@ -29,7 +29,7 @@ export function FilterFormat({
|
||||
disabled = false,
|
||||
columns: propColumns,
|
||||
tableIdSubBlockId = 'tableId',
|
||||
}: FilterFormatProps) {
|
||||
}: FilterBuilderProps) {
|
||||
const [storeValue, setStoreValue] = useSubBlockValue<FilterRule[]>(blockId, subBlockId)
|
||||
const [tableIdValue] = useSubBlockValue<string>(blockId, tableIdSubBlockId)
|
||||
|
||||
@@ -9,7 +9,7 @@ export { Dropdown } from './dropdown/dropdown'
|
||||
export { EvalInput } from './eval-input/eval-input'
|
||||
export { FileSelectorInput } from './file-selector/file-selector-input'
|
||||
export { FileUpload } from './file-upload/file-upload'
|
||||
export { FilterFormat } from './filter-format/filter-format'
|
||||
export { FilterBuilder } from './filter-builder/filter-builder'
|
||||
export { FolderSelectorInput } from './folder-selector/components/folder-selector-input'
|
||||
export { GroupedCheckboxList } from './grouped-checkbox-list/grouped-checkbox-list'
|
||||
export { InputMapping } from './input-mapping/input-mapping'
|
||||
@@ -26,7 +26,7 @@ export { ScheduleInfo } from './schedule-info/schedule-info'
|
||||
export { ShortInput } from './short-input/short-input'
|
||||
export { SlackSelectorInput } from './slack-selector/slack-selector-input'
|
||||
export { SliderInput } from './slider-input/slider-input'
|
||||
export { SortFormat } from './sort-format/sort-format'
|
||||
export { SortBuilder } from './sort-builder/sort-builder'
|
||||
export { InputFormat } from './starter/input-format'
|
||||
export { SubBlockInputController } from './sub-block-input-controller'
|
||||
export { Switch } from './switch/switch'
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useSubBlockValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/c
|
||||
import { EmptyState } from './components/empty-state'
|
||||
import { SortRuleRow } from './components/sort-rule-row'
|
||||
|
||||
interface SortFormatProps {
|
||||
interface SortBuilderProps {
|
||||
blockId: string
|
||||
subBlockId: string
|
||||
isPreview?: boolean
|
||||
@@ -27,7 +27,7 @@ const createDefaultRule = (columns: ComboboxOption[]): SortRule => ({
|
||||
})
|
||||
|
||||
/** Visual builder for table sort rules in workflow blocks. */
|
||||
export function SortFormat({
|
||||
export function SortBuilder({
|
||||
blockId,
|
||||
subBlockId,
|
||||
isPreview = false,
|
||||
@@ -35,7 +35,7 @@ export function SortFormat({
|
||||
disabled = false,
|
||||
columns: propColumns,
|
||||
tableIdSubBlockId = 'tableId',
|
||||
}: SortFormatProps) {
|
||||
}: SortBuilderProps) {
|
||||
const [storeValue, setStoreValue] = useSubBlockValue<SortRule[]>(blockId, subBlockId)
|
||||
const [tableIdValue] = useSubBlockValue<string>(blockId, tableIdSubBlockId)
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
EvalInput,
|
||||
FileSelectorInput,
|
||||
FileUpload,
|
||||
FilterFormat,
|
||||
FilterBuilder,
|
||||
FolderSelectorInput,
|
||||
GroupedCheckboxList,
|
||||
InputFormat,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
ShortInput,
|
||||
SlackSelectorInput,
|
||||
SliderInput,
|
||||
SortFormat,
|
||||
SortBuilder,
|
||||
Switch,
|
||||
Table,
|
||||
TableSelector,
|
||||
@@ -814,9 +814,9 @@ function SubBlockComponent({
|
||||
/>
|
||||
)
|
||||
|
||||
case 'filter-format':
|
||||
case 'filter-builder':
|
||||
return (
|
||||
<FilterFormat
|
||||
<FilterBuilder
|
||||
blockId={blockId}
|
||||
subBlockId={config.id}
|
||||
isPreview={isPreview}
|
||||
@@ -825,9 +825,9 @@ function SubBlockComponent({
|
||||
/>
|
||||
)
|
||||
|
||||
case 'sort-format':
|
||||
case 'sort-builder':
|
||||
return (
|
||||
<SortFormat
|
||||
<SortBuilder
|
||||
blockId={blockId}
|
||||
subBlockId={config.id}
|
||||
isPreview={isPreview}
|
||||
|
||||
@@ -317,7 +317,7 @@ Return ONLY the rows array:`,
|
||||
{
|
||||
id: 'bulkFilterBuilder',
|
||||
title: 'Filter Conditions',
|
||||
type: 'filter-format',
|
||||
type: 'filter-builder',
|
||||
required: {
|
||||
field: 'operation',
|
||||
value: ['update_rows_by_filter', 'delete_rows_by_filter'],
|
||||
@@ -398,7 +398,7 @@ Return ONLY the filter JSON:`,
|
||||
{
|
||||
id: 'filterBuilder',
|
||||
title: 'Filter Conditions',
|
||||
type: 'filter-format',
|
||||
type: 'filter-builder',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'query_rows',
|
||||
@@ -410,7 +410,7 @@ Return ONLY the filter JSON:`,
|
||||
{
|
||||
id: 'sortBuilder',
|
||||
title: 'Sort Order',
|
||||
type: 'sort-format',
|
||||
type: 'sort-builder',
|
||||
condition: {
|
||||
field: 'operation',
|
||||
value: 'query_rows',
|
||||
|
||||
@@ -72,8 +72,8 @@ export type SubBlockType =
|
||||
| 'mcp-dynamic-args' // MCP dynamic arguments based on tool schema
|
||||
| 'input-format' // Input structure format
|
||||
| 'response-format' // Response structure format
|
||||
| 'filter-format' // Filter conditions builder
|
||||
| 'sort-format' // Sort conditions builder
|
||||
| 'filter-builder' // Filter conditions builder
|
||||
| 'sort-builder' // Sort conditions builder
|
||||
| 'trigger-save' // Trigger save button with validation
|
||||
| 'file-upload' // File uploader
|
||||
| 'input-mapping' // Map parent variables to child workflow input schema
|
||||
|
||||
Reference in New Issue
Block a user