Show our own save-email error, and open review cards as the deck row view.

A bad address was stopped by the browser bubble before the designed line could appear. Final review opened every part of a method card at once instead of the three-row policy the decks use.
This commit is contained in:
adilallo committed 2026-11-11 10:47:40 -07:00
1 parent 0efc907633
commit 7336cba6f5
13 files changed
+274 -685

No files matched your search

@@ -36,6 +36,11 @@ export type MethodCardPolicyDialogProps = {
ariaLabel?: string;
/** Customized field-blocks body. Replaces the routing steps. */
children?: ReactNode;
/**
* Disables the routing-view primary action (Add to Rule / Save).
* A step's own Save stays enabled so the reader can return to the rows.
*/
confirmDisabled?: boolean;
};
function MethodCardPolicyDialogComponent({
@@ -52,6 +57,7 @@ function MethodCardPolicyDialogComponent({
kebabMenuItems,
ariaLabel,
children,
confirmDisabled = false,
}: MethodCardPolicyDialogProps) {
const m = useMessages();
const t = m.create.customRule.cardDialog;
@@ -104,6 +110,7 @@ function MethodCardPolicyDialogComponent({
onRemove={onDeselect}
cancelButtonText={t.cancel}
nextButtonText={primaryLabel}
nextButtonDisabled={activeStepId == null && confirmDisabled}
removeButtonText={t.deselect}
stepper={false}
backdropVariant="blurredYellow"