Repository navigation
feat(pricing,ui): unify median reference, min total, alternatives and direct offer redirect - #11
Merged
Merged
Conversation
Conflitos: Paineis.tsx (ListaOfertas/FaixaPreco da main agora usam linkOferta e o selo de oferta única),
lib.test.ts (testes das duas branches) e rota duplicada POST /builds/{id}/trocar (fica a da main, com de/para).
Collaborator
|
Mesclado. Follow-ups em #23. |
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.
Relacionado à issue #1 (Parte B — contratos de mediana, rotas e interface).
O que muda
Proposta.custo_estimadoeResultado.totalpela mediana, expondocusto_minimo/total_minimo(cenário mais barato "por conta e risco") epreco_ref/subtotal_refemLinhaCompra.Lojase os totais de referência e mínimo na planilha.indicede CPU/GPU) excluindo peças já presentes na build.GET /ofertas/ir: redireciona (307) no clique final comresolver_link_lojae validação contra open redirect.POST /builds/{build_id}/trocar: troca atômica preservando quantidade eja_tenho.1 loja; aponta links de compra para/ofertas/ir; conecta o botão Trocar à rota atômica.Verificação
cd backend && uv run pytest -v: 102 passed, 2 skipped (offline).cd frontend && vitest run && tsc --noEmit && next build: 8 passed, typecheck e build sem erros.