Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

803 B
Raw Blame
import type { TranslationKey } from '../../../../../shared/i18n';
import type { MonitoringText } from './MonitoringText';
import type { MonitoringTone } from './MonitoringTone';
import type { ReasonTexts } from './ReasonTexts';
import type { VerdictIcon } from './VerdictIcon';

export interface VerdictBanner {
  tone: MonitoringTone;
  icon: VerdictIcon;
  headlineKey: TranslationKey;
  description?: MonitoringText;

  // The most severe reason names the headline; its sentences sit right under it, and the other
  // reasons follow as compact lines.
  headlineReason?: ReasonTexts;
  otherReasons: ReasonTexts[];

  restoreSentence: MonitoringText;
  isConfigLinkShown: boolean;

  // False once refreshes have failed for too long to vouch for the verdict on screen.
  isStateConfirmed: boolean;
}