From 6eeb1921f51e8d13ee9f3faf4da00ec3c0be6de5 Mon Sep 17 00:00:00 2001 From: xcapri Date: Wed, 8 Apr 2026 12:30:22 +0700 Subject: [PATCH] Improve SimulationPlayerPage UI and add retry functionality --- frontend/src/pages/SimulationPlayerPage.js | 44 ++++++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/SimulationPlayerPage.js b/frontend/src/pages/SimulationPlayerPage.js index 199e4e6..975cd01 100644 --- a/frontend/src/pages/SimulationPlayerPage.js +++ b/frontend/src/pages/SimulationPlayerPage.js @@ -213,9 +213,17 @@ Format your response as JSON: const getChannelIcon = (channel) => { switch (channel) { case 'email_inbox': return ; - case 'chat_ui': return ; - case 'phone_sim': return ; - case 'web_sim': return ; + case 'chat_ui': + case 'sms': + case 'social_media': + case 'linkedin': + return ; + case 'phone_sim': + case 'phone_call': + return ; + case 'web_sim': + case 'browser': + return ; default: return ; } }; @@ -311,8 +319,36 @@ Format your response as JSON: )} + {getContent(currentNode, 'caller') && ( +
+
Caller ID
+
{getContent(currentNode, 'caller')}
+
+ )} + + {getContent(currentNode, 'sender') && ( +
+
Sender
+
{getContent(currentNode, 'sender')}
+
+ )} + + {getContent(currentNode, 'url') && ( +
+
URL
+
{getContent(currentNode, 'url')}
+
+ )} + + {getContent(currentNode, 'attachment') && ( +
+ Attachment: + {getContent(currentNode, 'attachment')} +
+ )} +
-

{getContent(currentNode, 'body') || getContent(currentNode, 'text')}

+

{getContent(currentNode, 'body') || getContent(currentNode, 'text') || getContent(currentNode, 'transcript') || getContent(currentNode, 'message') || getContent(currentNode, 'info')}

{currentNode.tactics_used && (