feat: fase 2 - detecção de crianças, tags, filtros e histórico

- GPT retorna JSON estruturado: criancas, turma, tags, relatorio
- Frontmatter agora inclui criancas[], turma, tags[] no .md
- Índice JSON estruturado com metadados completos
- Prévia do relatório mostra crianças detectadas + tags + turma
- Modal 'Minhas Observações' na sidebar
- Filtros por mês, tag e busca por criança
- Lista de observações com preview e chips
- Modal de detalhe com copiar texto
- CSS para btn-observacoes, obs-modal, obs-items, tags/chips
This commit is contained in:
2026-05-27 15:57:04 +00:00
parent ea8e33c891
commit 0b35055e23
4 changed files with 434 additions and 25 deletions
+171 -1
View File
@@ -2804,7 +2804,177 @@ code {
opacity: 0.9;
}
/* Animação fadeIn global */
/* Meta info do relatório na prévia */
.report-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 8px;
}
.report-meta-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
}
.meta-label {
color: var(--text-muted, #666);
font-weight: 500;
}
.tag-chip {
display: inline-block;
background: var(--brand-green, #10a37f);
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
}
/* Botão Minhas Observações na sidebar */
.btn-observacoes {
display: flex;
align-items: center;
gap: 10px;
width: calc(100% - 40px);
margin: 0 auto 8px;
padding: 12px 16px;
background: var(--bg-secondary, #1a1a1a);
border: 1px solid var(--border-light, #262626);
border-radius: 12px;
color: var(--text-secondary, #a3a3a3);
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.btn-observacoes:hover {
background: var(--brand-green, #10a37f);
color: white;
border-color: var(--brand-green, #10a37f);
}
.btn-observacoes svg {
width: 20px;
height: 20px;
flex-shrink: 0;
}
/* Modal de Observações */
.obs-modal-content {
max-width: 640px !important;
max-height: 85vh;
}
.obs-modal-body {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.obs-filters {
display: flex;
gap: 8px;
padding: 12px 16px;
border-bottom: 1px solid var(--border-light, #262626);
flex-wrap: wrap;
}
.obs-select, .obs-input {
flex: 1;
min-width: 120px;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid var(--border-light, #262626);
background: var(--bg-input, #121212);
color: var(--text-primary, #ffffff);
font-size: 0.85rem;
}
.obs-input {
flex: 1;
min-width: 160px;
}
.obs-list {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.obs-empty {
text-align: center;
color: var(--text-muted, #666);
padding: 40px 20px;
font-size: 0.9rem;
}
.obs-item {
background: var(--bg-secondary, #1a1a1a);
border: 1px solid var(--border-light, #262626);
border-radius: 12px;
padding: 14px;
margin-bottom: 8px;
cursor: pointer;
transition: all 0.2s;
}
.obs-item:hover {
border-color: var(--brand-green, #10a37f);
background: var(--bg-input, #121212);
}
.obs-item-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 8px;
}
.obs-item-date {
font-size: 0.75rem;
color: var(--text-muted, #666);
}
.obs-item-preview {
font-size: 0.82rem;
color: var(--text-secondary, #a3a3a3);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.obs-item-footer {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.obs-tag {
font-size: 0.7rem;
padding: 2px 8px;
border-radius: 10px;
background: rgba(16, 163, 127, 0.2);
color: var(--brand-green, #10a37f);
}
.obs-crianca {
font-size: 0.7rem;
padding: 2px 8px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
color: var(--text-secondary, #a3a3a3);
}
/* FAB: Floating Action Button para gravação */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }