import 'package:flutter/widgets.dart'; import '../domain/run_decisions.dart'; /// The browser client's decision wording, kept verbatim. const decisionWaitingTitle = 'Waiting for your decision'; const decisionActionLabel = 'Decide'; const decisionFeedbackLabel = 'Feedback (optional)'; const decisionCancelLabel = 'Cancel'; const decisionConfirmLabel = 'Confirm decision'; const decisionSendingLabel = 'Sending…'; /// Stable test/semantics keys shared by the action and its prompt. const decisionActionKey = ValueKey('human-decision-action'); const decisionFeedbackKey = ValueKey('human-decision-feedback'); const decisionErrorKey = ValueKey('human-decision-error'); /// `{stage} · run {id} · {label}`, as the web decision card shows it. String decisionMeta(PendingDecision decision) => '${decision.stageKey} · run ${decision.runId} · ${decision.runLabel}'; /// The option's target line, `→ {target}`, or "" when no target was declared. String decisionTargetText(String target) => target.trim().isEmpty ? '' : '→ $target';