Module: components/PropertiesPanel/PropertiesPanel

Right-hand properties panel for the AutoRA Workflow Editor. Displays the editable parameters, filter settings, inputs, and outputs of the currently selected node, or a read-only preview of a component hovered/clicked in the palette when no node is selected.
Source:

Methods

(inner) ExpressionEditorModal(props) → {JSX.Element}

Modal editor for long text/expression parameters (e.g. IV/DV declarations), which don't fit comfortably in the inline single-line field. Edits a local draft seeded from the current value; the change is only pushed to the node when the user clicks "Update". Cancel, the close button, the Escape key, and clicking the backdrop all discard the draft.
Parameters:
Name Type Description
props Object
Properties
Name Type Description
param Object Parameter descriptor (name, description, default)
initialValue string The parameter's current value
onUpdate function Commit the edited value
onClose function Dismiss without committing
Source:
Returns:
Type
JSX.Element
External-link icon that opens the component's github_io documentation page in a new browser tab. Rendered in the upper-right corner of the component name; renders nothing when no url is provided.
Parameters:
Name Type Description
props Object
Properties
Name Type Description
url string The github_io documentation URL; renders nothing when falsy
Source:
Returns:
Type
JSX.Element | null

(inner) ParameterHint(props) → {JSX.Element|null}

Clickable "?" hint that toggles a description popover on click.
Parameters:
Name Type Description
props Object
Properties
Name Type Description
description string Parameter description shown in the popover; renders nothing when falsy
Source:
Returns:
Type
JSX.Element | null

(inner) PropertiesPanel() → {JSX.Element}

Properties panel component. Reads the workflow state from context and renders one of three views: the selected node's editable properties, a read-only preview of a palette component, or an empty-state prompt. Defines local helpers for parameter editing, value parsing, and input rendering.
Source:
Returns:
Type
JSX.Element

(inner) getDataType(varType) → {string}

Determine a human-readable datatype string from a variable type structure, recursing through list wrappers and summarizing dict variants.
Parameters:
Name Type Description
varType Object Variable type descriptor (primitive, dict, or list shaped)
Source:
Returns:
The resolved datatype (e.g. 'integer', 'dict[real]', 'list[real]', or 'unknown')
Type
string

(inner) getVariableEntries(dataType) → {Array.<{name: string, type: string}>}

Normalize a data type spec (null, single variable, dict {variables}, list {variable}, or legacy array) into a list of {name, type} entries.
Parameters:
Name Type Description
dataType Object | Array Data type descriptor to normalize
Source:
Returns:
List of display entries for rendering
Type
Array.<{name: string, type: string}>

(inner) getVariableName(varType) → {string}

Find the display name of a variable, descending through list wrappers.
Parameters:
Name Type Description
varType Object Variable type descriptor
Source:
Returns:
The variable's name, or 'unknown' if none is found
Type
string