Action Previews
Understand how TransEdge AI previews actions before applying changes.
Action previews are how TransEdge AI handles meaningful changes safely. Instead of silently mutating TransEdge data, an action capability returns a preview card for the user to review.
Preview-confirm-apply
The action flow is:
Dedicated preview components
Modules can register custom preview components for specific action keys. These components can show compact forms, maps, validation messages, and action controls inside the AI prompt.
Terminal states
Completed, cancelled, and failed previews should be terminal. Once a preview is terminal, the UI should stop showing editable controls for that action.
Current example
Fleet-Ops registers a create-order preview component for fleet-ops.create_order.
Action preview copy should never say an action was completed until TransEdge has a confirmed apply result.