Sprint 8: Espelho de vendas PDF (QuestPDF) - diferencial #1#30
Merged
Conversation
Sprint 8 (marcada 3 estrelas no plano): o que fecha venda com diretor
comercial. 3 templates de espelho profissional.
Application:
- EspelhoPdfGenerator (QuestPDF Community license):
- Comercial: A4 portrait, lista plana ordenada por pavimento+numero
com Tipologia/Quartos/Area/Preco/Status badge colorida
- PorTorre: A3 landscape, grid visual tipo "espelho de verdade"
com apto por celula colorida pelo status, legenda no final
- Executivo: A4 portrait com 4 KPIs (VGV Total/Vendido/%Vendido/
Preco Medio m²) + tabela de distribuicao por status + breakdown
por torre
- Todos com watermark "CONFIDENCIAL" + data/hora + usuario no footer
- Cores semanticas por StatusApartamento (verde/ambar/laranja/vermelho)
- Enum TipoEspelho
Api:
- GET /api/empreendimentos/{id}/espelho?tipo=Comercial|PorTorre|
Executivo retorna application/pdf stream
- Filename "espelho-{slug}-{tipo}-{timestamp}.pdf"
- Log estruturado (quem gerou, qual empreendimento, quando)
Tests (91 total, +5):
- Gera PDF nao-vazio para os 3 tipos (theory)
- Magic bytes do PDF (%PDF)
- Sem apartamentos ainda gera PDF valido (edge case empreendimento
recem cadastrado)
- TipoEspelho invalido lanca ArgumentOutOfRangeException
Pacotes:
- Application: QuestPDF 2024.10.2
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
gustavograciano
added a commit
that referenced
this pull request
May 3, 2026
Sprint 8: Espelho de vendas PDF (QuestPDF) - diferencial #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sprint 8 (⭐⭐⭐ no PLANO-DESENVOLVIMENTO.md) — diferencial #1 do produto. O que fecha venda com diretor comercial.
Application — EspelhoPdfGenerator
3 templates com QuestPDF Community (grátis <US$1M/ano):
Todos com watermark "CONFIDENCIAL" + data/hora + usuário que gerou.
Api
Testes — 91 total (+5)
Próximo PR (Sprint 9)
Geração de contrato DOCX com DocX + templates com placeholders `{{cliente.nome}}`.
🤖 Generated with Claude Code