Why this matters
Keeps UI consistent and reduces boilerplate.
Create factories/builders for repeated dialog/modal construction with configurable parameters.
Keeps UI consistent and reduces boilerplate.
Side-by-side examples engineers can pattern-match during review.
Dialog(title, msg, positive, negative) // repeated setup everywherefun confirmDialog(title: String, message: String) =
Dialog(title, message, positive = "OK", negative = "Cancel")Dialog(...); Dialog(...)confirmDialog("Delete?", "Are you sure?")From the same buckets as this rule.