feat: navegação anterior/próximo no detalhe + fix de peso nominal nos relatórios (v1.35.0)#42
Merged
Merged
Conversation
… relatórios Navegação: - Botões anterior/próximo nas telas de detalhe de rolo e filamento, na ordem da listagem (sem wrap-around; desabilita nas pontas). Rolos navegam só entre itens do mesmo estado (ativos/finalizados). - Helpers spool_neighbors/filament_neighbors em database.py. - Strings novas em EN/ES. Relatórios (fix): - Rolo sem pesagem agora conta como cheio (= peso nominal) em report_by_material, report_by_location e report_low_stock, consistente com o resto do app. Antes contava 0g e caía falsamente em "Estoque Baixo". Testes: tests/test_reports.py e tests/test_navigation.py (119 passando). Remove CORRECAO.md (runbook de migração já utilizado). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Resumo
Duas mudanças solicitadas, mais limpeza.
Navegação anterior/próximo (feature)
Nas telas de detalhe de rolo (
/spools/<id>) e filamento (/filaments/<id>), ao lado do botão voltar, dois botões novos: anterior e próximo, seguindo a mesma ordem da listagem.spool_neighbors/filament_neighborsemdatabase.py.Peso nominal nos relatórios (fix)
Um rolo recém-cadastrado (ainda não pesado) é tratado como cheio (= peso nominal) no resto do app, mas três relatórios o contavam como 0g:
report_by_material,report_by_locationereport_low_stockagora usam o fallback para o peso nominal, consistente com as demais telas.Limpeza
CORRECAO.md(runbook de migração de preços já utilizado).Testes
tests/test_reports.py(novo) — fallback nominal nos relatórios.tests/test_navigation.py(novo) — vizinhança/ordem/pontas.🤖 Generated with Claude Code