From 0b1e32eb08205bf10b227f2f6c3e1823b7cbd63c Mon Sep 17 00:00:00 2001 From: Elena Schramme Date: Fri, 31 May 2024 11:19:46 +0200 Subject: [PATCH] start putting escalation element into stress lpds --- src/prototype/lpd/stress/highLPD.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/prototype/lpd/stress/highLPD.ts b/src/prototype/lpd/stress/highLPD.ts index 1f576ad..2cb12ca 100644 --- a/src/prototype/lpd/stress/highLPD.ts +++ b/src/prototype/lpd/stress/highLPD.ts @@ -8,6 +8,7 @@ import lpdHelper from 'src/utils/lpdHelper'; import DANGER_ICON from 'src/assets/icons/threats/missile-sm-emph.svg'; import type { Element, + EscalationModeElement, IconElement, InformationElement, } from 'src/types/element'; @@ -208,16 +209,14 @@ const missileToOwnshipDetectedMessageHigh = ( { id: uuid(), modality: 'visual', - type: 'information', - h: 70, - w: 150, - message, - size: 'M', // size L when stress is low - collapsed: true, // initially, the information elemnt is not displayed - expirationIntervalMs: 3000, - onExpiration: 'deescalate', + type: 'escalation', + h: 1080, + w: 1360, + collapsed: undefined, + expirationIntervalMs: undefined, + onExpiration: undefined, widgetId: minimapWidgetId1, - } satisfies InformationElement, + } satisfies EscalationModeElement, ]; const minimapWidgets: Widget[] = [