Repository navigation
feat: adiciona o inventário do admin - #30
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 21, 2026
* feat(estabelecimento): adiciona a página meu estabelecimento do parceiro * feat(estabelecimento): permite ao parceiro informar nova capacidade * feat(estabelecimento): permite ao parceiro preencher o inventário * feat(layout): adiciona meu estabelecimento ao menu do parceiro * test(e2e): cobre a atualização do estabelecimento pelo parceiro * docs(readme): documenta meu estabelecimento
|
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.



Adiciona o inventário do lado do ADMIN: o catálogo de grupos e itens por categoria e o inventário de cada estabelecimento, com um editor reutilizável que o PARCEIRO usa no #31.
O que muda
/cadastros/inventario(ADMIN)/cadastros/estabelecimentos/:id/inventario(ADMIN)/cadastros/estabelecimentosPor baixo:
src/api/inventario.tscom as chamadas do catálogo e do inventário, e oEditorDeInventario, que também serve ao PARCEIRO.Depende de e ordem de merge
Não depende de outro PR. Entra depois do #29 (painel), que é independente, e antes do #31 (meu estabelecimento), que está empilhado sobre esta branch.
Plano de Testes
endpoints.test.ts: catálogo, grupos, itens e inventário do estabelecimentoInventarioPage.test.tsx: abas, criação, edição, inativação e exclusãoInventarioDoEstabelecimentoPage.test.tsxeEditorDeInventario.test.tsx: marcar, complemento, salvar, filtro dos exclusivos da Secretaria e propembutidorotas.test.tsx,layout.test.tsx,perfis.test.tseEstabelecimentosPage.test.tsx(link "Inventário")e2e/inventario.spec.ts: o ADMIN cria grupo e item no catálogo e marca no inventário de um estabelecimento, conferindo o PUT enviadoPontos de atenção
GET /api/inventario/catalogo(o plano dizia o contrário). OEditorDeInventariofiltra no front comocultarExclusivosDaSecretaria.embutido, para uso dentro de outro card (é como o feat: adiciona meu estabelecimento do parceiro #31 o usa).Como testar
Localmente: 794 testes unitários passando e o e2e do inventário com a API simulada.
Prints
Capturadas pelo Playwright com a API simulada, a partir do mock do e2e.
Catálogo do inventário
Diálogo de novo grupo
Catálogo depois de criar grupo e item
Link "Inventário" na lista de estabelecimentos
Inventário de um estabelecimento
Inventário salvo