feat: extrair docencias PPG e simplificar blocos de pontuacao
Backend: - Adicionar entidade DocenciaPPG para dados de docencia - Extrair docencias do Elasticsearch (tipo "Docência") - Serializar docencias no JSON de detalhes do consultor - Aumentar batch size de 500 para 2000 para melhor performance Frontend: - Remover Bloco B (Coord. PPG) - reservado para V2 - Simplificar formula para: Bloco A + Bloco C + Bloco D - Filtrar orientacoes/bancas da listagem (sao apenas selos) - Atualizar Header com nota que PPG_COORD e apenas indicador - Exibir pontuacao base nos modais de orientacao/banca
This commit is contained in:
@@ -107,15 +107,13 @@ const CompararModal = ({ consultor1, consultor2, onClose }) => {
|
||||
|
||||
const blocoA1 = p1.bloco_a || { total: consultor1.bloco_a || 0 };
|
||||
const blocoA2 = p2.bloco_a || { total: consultor2.bloco_a || 0 };
|
||||
const blocoB1 = p1.bloco_b || { total: consultor1.bloco_b || 0 };
|
||||
const blocoB2 = p2.bloco_b || { total: consultor2.bloco_b || 0 };
|
||||
const blocoC1 = p1.bloco_c || { total: consultor1.bloco_c || 0 };
|
||||
const blocoC2 = p2.bloco_c || { total: consultor2.bloco_c || 0 };
|
||||
const blocoD1 = p1.bloco_d || { total: consultor1.bloco_d || 0 };
|
||||
const blocoD2 = p2.bloco_d || { total: consultor2.bloco_d || 0 };
|
||||
|
||||
const total1 = (blocoA1.total || 0) + (blocoB1.total || 0) + (blocoC1.total || 0) + (blocoD1.total || 0);
|
||||
const total2 = (blocoA2.total || 0) + (blocoB2.total || 0) + (blocoC2.total || 0) + (blocoD2.total || 0);
|
||||
const total1 = Number(consultor1.pontuacao_total ?? 0);
|
||||
const total2 = Number(consultor2.pontuacao_total ?? 0);
|
||||
|
||||
const c1 = consultor1.consultoria;
|
||||
const c2 = consultor2.consultoria;
|
||||
@@ -193,11 +191,6 @@ const CompararModal = ({ consultor1, consultor2, onClose }) => {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="comparacao-secao">
|
||||
<h3 style={{ color: 'var(--accent)' }}>B - Coordenacao PPG</h3>
|
||||
{renderLinhaComparacao('Total', blocoB1.total, blocoB2.total, 'var(--accent)')}
|
||||
</div>
|
||||
|
||||
<div className="comparacao-secao">
|
||||
<h3 style={{ color: 'var(--gold)' }}>C - Consultoria</h3>
|
||||
{renderLinhaComparacao('Total', blocoC1.total, blocoC2.total, 'var(--gold)')}
|
||||
|
||||
Reference in New Issue
Block a user