feat(dashboard): track matches played per session instead of rounds in history
Some checks failed
CI/CD - Francia Ocupada (La Resistencia) / build-and-deploy (push) Failing after 6s

This commit is contained in:
Resistencia Dev
2025-12-22 23:35:58 +01:00
parent 904bd80bd5
commit 1a68ed2a5c
5 changed files with 46 additions and 25 deletions

View File

@@ -388,24 +388,26 @@ export default function Dashboard() {
<span>AGENTES:</span>
<span className="text-gray-300">{entry.players.split(',').length}</span>
</div>
{entry.rounds_played > 0 && (
{entry.matches_played > 0 && (
<>
<div className="flex justify-between">
<span>RONDAS:</span>
<span className="text-gray-300">{entry.rounds_played}</span>
<span>PARTIDAS:</span>
<span className="text-gray-300">{entry.matches_played}</span>
</div>
<div className="flex justify-between items-center pt-2">
<span>RESULTADOS:</span>
<div className="flex gap-1">
{entry.round_results && entry.round_results.split(',').map((res: string, idx: number) => (
<div
key={idx}
className={`w-3 h-3 rounded-full ${res === 'true' ? 'bg-blue-500' : 'bg-red-500'}`}
title={res === 'true' ? 'Victoria Resistencia' : 'Victoria Espías'}
/>
))}
{entry.match_results && entry.match_results.length > 0 && (
<div className="flex justify-between items-center pt-2">
<span>RESULTADOS:</span>
<div className="flex gap-1">
{entry.match_results.split(',').map((res: string, idx: number) => (
<div
key={idx}
className={`w-3 h-3 rounded-full ${res === 'aliados' ? 'bg-blue-500' : 'bg-red-500'}`}
title={res === 'aliados' ? 'Victoria Aliados' : 'Victoria Nazis'}
/>
))}
</div>
</div>
</div>
)}
</>
)}
{entry.players && (