ashishMenon05 commited on
Commit
ae4346b
·
1 Parent(s): 2142915

feat: remove multi-agent verdict panel, keep unified summary only

Browse files
frontend/src/components/EpisodeEndOverlay.jsx CHANGED
@@ -373,44 +373,6 @@ const EpisodeEndOverlay = ({ isOpen, onClose, metrics, gameState }) => {
373
  );
374
  })()}
375
 
376
- {/* Multi-Agent Final Verdict Panel */}
377
- {(() => {
378
- const allAgents = gameState?.agents || {};
379
- const agentEntries = Object.entries(allAgents);
380
- const conclusions = agentEntries.map(([agentId, agentData]) => {
381
- const msgs = agentData?.messages || [];
382
- const textMsgs = msgs.filter(m => m.type === 'message');
383
- return { agentId, lastMsg: textMsgs[textMsgs.length - 1] };
384
- }).filter(c => c.lastMsg);
385
-
386
- if (conclusions.length === 0) return null;
387
-
388
- return (
389
- <div className="px-8 pb-4">
390
- <div className="p-6 bg-surface-container-low/40 border border-white/10 rounded-lg">
391
- <h3 className="font-headline font-bold text-on-surface tracking-widest uppercase mb-4 flex items-center gap-2">
392
- <span className="material-symbols-outlined">gavel</span>
393
- Multi-Agent Final Verdict
394
- </h3>
395
- <div className="space-y-4">
396
- {conclusions.map(({ agentId, lastMsg }, idx) => {
397
- const agentNames = ['ALPHA', 'BRAVO', 'CHARLIE', 'DELTA', 'ECHO'];
398
- const colorClass = idx === 0 ? 'bg-primary' : idx === 1 ? 'bg-secondary' : idx === 2 ? 'bg-tertiary' : 'bg-error';
399
- const borderClass = idx === 0 ? 'border-primary' : idx === 1 ? 'border-secondary' : idx === 2 ? 'border-tertiary' : 'border-error';
400
- const textClass = idx === 0 ? 'text-primary' : idx === 1 ? 'text-secondary' : idx === 2 ? 'text-tertiary' : 'text-error';
401
- return (
402
- <div key={agentId} className={`p-4 ${colorClass}/10 border-l-2 ${borderClass} rounded-r`}>
403
- <span className={`font-mono text-[10px] ${textClass} uppercase block mb-1 tracking-widest`}>Agent {agentNames[idx % agentNames.length]} ({agentId}) Conclusion</span>
404
- <p className="text-sm text-on-surface/90 leading-relaxed">{lastMsg.content || lastMsg.text || lastMsg.message}</p>
405
- </div>
406
- );
407
- })}
408
- </div>
409
- </div>
410
- </div>
411
- );
412
- })()}
413
-
414
  {/* Unified Investigation Summary */}
415
  {unifiedSummary && (
416
  <div className="px-8 pb-8">
 
373
  );
374
  })()}
375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  {/* Unified Investigation Summary */}
377
  {unifiedSummary && (
378
  <div className="px-8 pb-8">