From 1961287d81aa543f67fbb99d7b01658c02422278 Mon Sep 17 00:00:00 2001 From: urieljareth Date: Thu, 13 Aug 2026 17:07:26 -0600 Subject: [PATCH] feat: ocultar nombres de votantes por proyecto para voto secreto --- src/components/LiveResults.tsx | 48 +++++----------------------------- 1 file changed, 7 insertions(+), 41 deletions(-) diff --git a/src/components/LiveResults.tsx b/src/components/LiveResults.tsx index f3abb3b..df65f57 100644 --- a/src/components/LiveResults.tsx +++ b/src/components/LiveResults.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; -import { RefreshCw, Users, ChevronDown, ChevronUp, Shield, Database, Server } from 'lucide-react'; +import React from 'react'; +import { RefreshCw, Shield, Database, Server } from 'lucide-react'; import { CandidateStats } from '../types'; interface LiveResultsProps { @@ -17,8 +17,6 @@ export const LiveResults: React.FC = ({ isRefreshing, onToggleAdmin, }) => { - const [showVoterDetails, setShowVoterDetails] = useState(false); - // Estimado de participación del equipo (base de 15 a 20 miembros del equipo interno) const estimatedTeamSize = Math.max(totalVotes, 12); const participationRate = totalVotes > 0 ? Math.min(100, Math.round((totalVotes / estimatedTeamSize) * 100)) : 0; @@ -47,28 +45,10 @@ export const LiveResults: React.FC = ({ - {/* Toggle voter details */} -
- -
- {/* Candidate Progress Bars (Immersive UI Design) */} -
+
{stats.map((cand, index) => { const isTop = cand.isLeader && cand.votes > 0; - const percentage = cand.percentage.toFixed(1); const opacityClass = index === 0 ? 'opacity-100' @@ -123,20 +103,6 @@ export const LiveResults: React.FC = ({ )}
- - {/* Optional Voter List Chip row */} - {showVoterDetails && cand.voters.length > 0 && ( -
- {cand.voters.map((v) => ( - - {v} - - ))} -
- )} ); })} @@ -148,16 +114,16 @@ export const LiveResults: React.FC = ({
- ENDPOINT + SISTEMA
-
WORTHY-DUCK-110283
+
VOTO-SECRETO-SSE
- INSTANCIA + BASE DE DATOS
-
UPSTASH-E3-2026
+
POSTGRESQL-PROD