formatHintSkipped function

String formatHintSkipped(
  1. String tourId,
  2. int stepIndex,
  3. String targetId,
  4. HintSkipReason reason,
  5. String detail,
)

A single diagnostics line fit for logging.

Format: [hintful] statsIntro step 2 not shown: target-not-rendered (target 'statsPeriodSelector') — detail

Implementation

String formatHintSkipped(
  String tourId,
  int stepIndex,
  String targetId,
  HintSkipReason reason,
  String detail,
) {
  return "[hintful] $tourId step ${stepIndex + 1} not shown: ${reason.label}"
      " (target '$targetId') — $detail";
}