fix(criterios): atualizar tela de criterios com selos disponiveis

- Remover selos sem dados: POS_DOC, CO_ORIENT_*, MB_BANCA_*, BOL_BPQ, PPG_COORD
- Atualizar seção Orientações para ORIENT_TESE e ORIENT_DISS apenas
- Remover seção Bancas (sem dados no ATUACAPES)
- Criar seções Participações (EVENTO, PROJ) e Características (IDIOMA_MULTILINGUE)
- Alinhar layout das tabelas de selos (65% código, 35% selo centralizado)
- Adicionar classe CSS selo-idioma
This commit is contained in:
Frederico Castro
2025-12-27 21:39:50 -03:00
parent 13ccfb02d3
commit 6b07cecf4e
3 changed files with 69 additions and 55 deletions

View File

@@ -69,30 +69,21 @@ const DADOS_BLOCOS = {
}, },
], ],
selos: [ selos: [
{ grupo: 'Orientações', itens: ['POS_DOC', 'TESE', 'DISS'] }, { grupo: 'Orientações', itens: ['ORIENT_TESE', 'ORIENT_DISS'] },
{ grupo: 'Co-Orientações', itens: ['POS_DOC', 'TESE', 'DISS'] },
{ grupo: 'Bancas', itens: ['MB_POS_DOC', 'MB_TESE', 'MB_DISS'] },
], ],
observacoes: 'Orientações, co-orientações e bancas geram apenas selos (sem pontuação base no V1).', observacoes: 'Orientações geram apenas selos (sem pontuação base no V1). POS_DOC, Co-orientações e Bancas não disponíveis.',
}, },
D: { D: {
titulo: 'Indicadores', titulo: 'Participações e Características',
cor: 'bloco-d', cor: 'bloco-d',
descricao: 'Indicadores de perfil e participações', descricao: 'Participações em eventos/projetos e características de perfil',
formula: 'Score = Base + Bônus Recorrência (respeitando teto)', formula: 'Apenas selos (sem pontuação direta no V1)',
atuacoes: [
{ cod: 'BOL_BPQ', nome: 'Bolsa PQ CNPq', base: 30, teto: 60, obs: 'Reconhecimento externo' },
{ cod: 'PROJ', nome: 'Participação Projeto', base: 10, teto: 30, recorrencia: '+2 pts/part.', maxRec: 10 },
{ cod: 'EVENTO', nome: 'Participação Evento', base: 1, teto: 5, recorrencia: '+1 pt/part.', maxRec: 10 },
],
selos: [ selos: [
{ cod: 'PPG_COORD', nome: 'Coordenador PPG', obs: 'Indicador (sem pontuação V1)' }, { cod: 'EVENTO', nome: 'Participação Evento', obs: '🎪' },
{ cod: 'IDIOMA_MULTILINGUE', nome: 'Multilíngue', obs: '3+ idiomas' }, { cod: 'PROJ', nome: 'Participação Projeto', obs: '🔧' },
{ cod: 'TITULACAO_MESTRE', nome: 'Mestre', obs: 'Maior titulação' }, { cod: 'IDIOMA_MULTILINGUE', nome: 'Multilíngue', obs: '🌐 3+ idiomas' },
{ cod: 'TITULACAO_DOUTOR', nome: 'Doutor', obs: 'Maior titulação' },
{ cod: 'TITULACAO_POS_DOC', nome: 'Pós-Doutor', obs: 'Maior titulação' },
], ],
observacoes: 'Idiomas e titulações geram apenas selos de perfil, sem pontuação.', observacoes: 'BOL_BPQ e PPG_COORD não disponíveis no V1 (dados incompletos no ATUACAPES).',
}, },
E: { E: {
titulo: 'Coordenação PPG', titulo: 'Coordenação PPG',

View File

@@ -130,6 +130,7 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
flex: 1; flex: 1;
min-width: 0;
} }
.criteria-section.wide { .criteria-section.wide {
@@ -154,6 +155,18 @@
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.criteria-section.selos-section .section-header {
display: grid;
grid-template-columns: 65% 35%;
gap: 0.4rem;
align-items: center;
}
.criteria-section.selos-section .max-pts {
justify-self: center;
margin-left: 0;
}
.criteria-section.clickable { .criteria-section.clickable {
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
@@ -412,8 +425,28 @@
padding: 0.15rem 0.35rem; padding: 0.15rem 0.35rem;
} }
.selos-table.compact th:first-child { .selos-table.compact th:first-child,
width: auto; .selos-table.compact td:first-child {
text-align: left;
}
.selos-table.compact th:last-child,
.selos-table.compact td:last-child {
text-align: center;
}
.criteria-section.selos-section .selos-table.compact {
table-layout: fixed;
}
.criteria-section.selos-section .selos-table.compact th:first-child,
.criteria-section.selos-section .selos-table.compact td:first-child {
width: 65%;
}
.criteria-section.selos-section .selos-table.compact th:last-child,
.criteria-section.selos-section .selos-table.compact td:last-child {
width: 35%;
} }
.selo-legenda { .selo-legenda {
@@ -499,6 +532,11 @@
border: 1px solid rgba(107, 114, 128, 0.4); border: 1px solid rgba(107, 114, 128, 0.4);
} }
.selo-legenda.selo-idioma {
background: rgba(56, 189, 248, 0.2);
border: 1px solid rgba(56, 189, 248, 0.4);
}
@media (max-width: 900px) { @media (max-width: 900px) {
.criteria-row { .criteria-row {
flex-wrap: wrap; flex-wrap: wrap;

View File

@@ -133,53 +133,38 @@ const Header = ({ total }) => {
<h4>C - Orientacoes</h4> <h4>C - Orientacoes</h4>
<span className="max-pts">selos</span> <span className="max-pts">selos</span>
</div> </div>
<div className="table-columns">
<table className="criteria-table compact selos-table"> <table className="criteria-table compact selos-table">
<thead><tr><th>Orientacao</th><th>Selo</th></tr></thead> <thead><tr><th>Codigo</th><th>Selo</th></tr></thead>
<tbody> <tbody>
<tr><td>POS_DOC</td><td><span className="selo-legenda selo-orient">🔬</span></td></tr> <tr><td>ORIENT_TESE</td><td><span className="selo-legenda selo-orient">📚</span></td></tr>
<tr><td>TESE</td><td><span className="selo-legenda selo-orient">📚</span></td></tr> <tr><td>ORIENT_DISS</td><td><span className="selo-legenda selo-orient">📄</span></td></tr>
<tr><td>DISS</td><td><span className="selo-legenda selo-orient">📄</span></td></tr>
</tbody>
</table>
<table className="criteria-table compact selos-table">
<thead><tr><th>Co-Orient</th><th>Selo</th></tr></thead>
<tbody>
<tr><td>POS_DOC</td><td><span className="selo-legenda selo-coorient">🔬</span></td></tr>
<tr><td>TESE</td><td><span className="selo-legenda selo-coorient">📚</span></td></tr>
<tr><td>DISS</td><td><span className="selo-legenda selo-coorient">📄</span></td></tr>
</tbody>
</table>
</div>
</div>
<div className="criteria-section bloco-c selos-section clickable" onClick={() => setModalBloco('C')}>
<div className="section-header">
<h4>C - Bancas</h4>
<span className="max-pts">selos</span>
</div>
<table className="criteria-table compact selos-table">
<thead><tr><th>Membro Banca</th><th>Selo</th></tr></thead>
<tbody>
<tr><td>MB_POS_DOC</td><td><span className="selo-legenda selo-banca">🔬</span></td></tr>
<tr><td>MB_TESE</td><td><span className="selo-legenda selo-banca">📚</span></td></tr>
<tr><td>MB_DISS</td><td><span className="selo-legenda selo-banca">📄</span></td></tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div className="criteria-section bloco-d selos-section clickable" onClick={() => setModalBloco('D')}> <div className="criteria-section bloco-d selos-section clickable" onClick={() => setModalBloco('D')}>
<div className="section-header"> <div className="section-header">
<h4>D - Indicadores</h4> <h4>D - Participacoes</h4>
<span className="max-pts">selos</span> <span className="max-pts">selos</span>
</div> </div>
<table className="criteria-table compact selos-table"> <table className="criteria-table compact selos-table">
<thead><tr><th>Codigo</th><th>B</th><th>T</th><th>Selo</th></tr></thead> <thead><tr><th>Codigo</th><th>Selo</th></tr></thead>
<tbody> <tbody>
<tr><td>BOL_BPQ</td><td>30</td><td>60</td><td><span className="selo-legenda selo-bpq">🏅</span></td></tr> <tr><td>EVENTO</td><td><span className="selo-legenda selo-evento">🎪</span></td></tr>
<tr><td>PROJ</td><td>10</td><td>30</td><td><span className="selo-legenda selo-proj">📁</span></td></tr> <tr><td>PROJ</td><td><span className="selo-legenda selo-proj">🔧</span></td></tr>
<tr><td>EVENTO</td><td>1</td><td>5</td><td><span className="selo-legenda selo-evento">📅</span></td></tr> </tbody>
<tr><td>PPG_COORD</td><td>-</td><td>-</td><td><span className="selo-legenda selo-coord">🎓</span></td></tr> </table>
</div>
<div className="criteria-section bloco-d selos-section clickable" onClick={() => setModalBloco('D')}>
<div className="section-header">
<h4>D - Caracteristicas</h4>
<span className="max-pts">selos</span>
</div>
<table className="criteria-table compact selos-table">
<thead><tr><th>Codigo</th><th>Selo</th></tr></thead>
<tbody>
<tr><td>IDIOMA_MULTI</td><td><span className="selo-legenda selo-idioma">🌐</span></td></tr>
</tbody> </tbody>
</table> </table>
</div> </div>