Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/40 contract list #54

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
60d2514
Update code-analysis.yml
DanielViniciusAlves Jul 12, 2024
f18897b
Update sonar-project.properties
GRVial Jul 12, 2024
88ae96c
Update metrics.yml
GRVial Jul 12, 2024
9ed6b29
Update metrics.yml
GRVial Jul 12, 2024
ec99511
Update metrics.js
GRVial Jul 12, 2024
0d16ff0
Update metrics.yml
DanielViniciusAlves Jul 12, 2024
ed3c9a1
feat: Formulário de cadastro de padões de equipamentos #6
MarcusEscobar Jul 26, 2024
08ee16a
feature[Date]: Adiciona componente de data.
DanielViniciusAlves Jul 26, 2024
faefa2e
feature[Input]: Adiciona componente de input.
DanielViniciusAlves Jul 26, 2024
66646e7
feature[Number]: Adiciona componente de number.
DanielViniciusAlves Jul 26, 2024
aa3efa5
feeature[Select]: Adiciona componente de select.
DanielViniciusAlves Jul 26, 2024
d0a0d4e
feature[Cadastro]: Cria form de cadastro.
DanielViniciusAlves Jul 26, 2024
c949bff
feature[Button]: Adiciona componente de botão.
DanielViniciusAlves Jul 26, 2024
81e2348
feature[CSS]: Atualiza CSS do projeto.
DanielViniciusAlves Jul 26, 2024
3d6dfb3
feat: inicio da página de cadastro de contratos
GustavoHaubert Jul 27, 2024
21f6f26
feature[CSS]: Personaliza página de cadastro de impressora
caiolamego Jul 27, 2024
86c0278
feature[Cadastro]: Atualiza página de cadastro.
DanielViniciusAlves Jul 27, 2024
7976132
Merge branch 'feature/4-cadastro-equipamento' of github.com:fga-eps-m…
DanielViniciusAlves Jul 27, 2024
52489b0
feature[Button]: Atualizando estilo de botão.
DanielViniciusAlves Jul 27, 2024
3eada49
feat: inicio da página de edição de contratos
GustavoHaubert Jul 27, 2024
f5121ac
feat: criação da rota para página de edição de contratos
GustavoHaubert Jul 27, 2024
db31bbd
feat: criação da rota para a página de listagem de contratos
GustavoHaubert Jul 27, 2024
6aa4897
feature[Form]: Atualiza requisição de forms.
DanielViniciusAlves Jul 27, 2024
9301f33
Merge pull request #7 from fga-eps-mds/feature/4-cadastro-equipamento
GRVial Jul 27, 2024
0c38469
fix: Correção da listagem de padões de acordo com o protótipo #6
MarcusEscobar Jul 27, 2024
7fb6e6b
style: página de cadastro
GustavoHaubert Jul 27, 2024
0797acb
fix: ajustando tamanho máximo dos inputs e ajustando os placeholder
GustavoHaubert Jul 27, 2024
1120a45
Merge branch 'dev' of https://github.com/fga-eps-mds/2024.1-PrintGo-F…
GustavoHaubert Jul 27, 2024
3ced226
feature[Item]: Cria item de listar
GRVial Jul 27, 2024
b22c1e9
feature[List]: Adiciona form de lista de itens
GRVial Jul 27, 2024
de9be45
style: página de cadastro
GustavoHaubert Jul 27, 2024
9f353f9
Merge branch 'Feature/4-listar-equipamento' of https://github.com/fga…
CA1RO Jul 27, 2024
aa492bb
feature[View]: Adiciona campos com dados da impressora
caiolamego Jul 27, 2024
731c4b0
style: opacidade do input de data
eliseukadesh67 Jul 28, 2024
9e351e9
feature: adicionando service de contratos
eliseukadesh67 Jul 28, 2024
56526c9
feature: cadastro de contratos (integração com o backend)
eliseukadesh67 Jul 28, 2024
6842bb1
Merge branch 'feature/5-gerenciamento-contratos' of https://github.co…
CA1RO Jul 28, 2024
21979e0
feature{contratos}: cria pagina de listagem de contrato
CA1RO Jul 28, 2024
7f5127b
feature: cria página de edição de contratos
GustavoHaubert Jul 28, 2024
a5b6c0b
fix[Cadastro]: Corrige campos necessários relacionados ao cadastro de
DanielViniciusAlves Jul 28, 2024
e017116
Merge pull request #8 from fga-eps-mds/fix/4-cadastro-equipamento
DanielViniciusAlves Jul 28, 2024
7582c21
feature: adiciona as paginas de cadastro na navbar
CA1RO Jul 28, 2024
1e7442c
feature: adiciona botão de read de contratos na listagem.
CA1RO Jul 28, 2024
dc92484
fix: adiciona navegação entre páginas pelos botões
CA1RO Jul 28, 2024
1a45d96
feature[View]: Adiciona campo de localização na visualização
caiolamego Jul 28, 2024
1e999dc
feature[View]: desativa cursor no modo de visualização
caiolamego Jul 28, 2024
e62edf7
feature[SmallCardInfo]: Cria componente de informações na visualização
caiolamego Jul 28, 2024
2cd7b08
style: contractBox e contractList
eliseukadesh67 Jul 28, 2024
52c569d
feat: logica de toggle do status do contrato
eliseukadesh67 Jul 28, 2024
40c0184
feat: service para editar e mudar status do contrato
eliseukadesh67 Jul 28, 2024
6e72530
chore: removendo import desnecessario
eliseukadesh67 Jul 28, 2024
10df18f
feat: adiciona listagem de contratos da api
eliseukadesh67 Jul 28, 2024
2b4aa43
feature[View]: Adiciona componentes de SmallCardInfo na página de vis…
caiolamego Jul 28, 2024
e2bb80e
feature[BigInfoCard]: Cria componente de dados de contagem
caiolamego Jul 28, 2024
198bc11
feture{contratos}: adiciona a pagina de ver contrato no front-end
CA1RO Jul 28, 2024
4938abf
Merge branch 'feature/5-gerenciamento-contratos' of https://github.co…
CA1RO Jul 28, 2024
6fc25d4
feature[View]: Adiciona cards de informações na página de visualização
caiolamego Jul 28, 2024
1003062
Merge branch 'fix/listagem-padroes' of https://github.com/fga-eps-mds…
MarcusEscobar Jul 28, 2024
dc3e80d
chore: change components path
eliseukadesh67 Jul 28, 2024
5fd9608
Resolve Conflict
eliseukadesh67 Jul 28, 2024
eb5ce9c
feat: rediracionando para lista de contratos
eliseukadesh67 Jul 28, 2024
c07cfae
fix: adiciona preventDefault para nao recarregar a pagina
eliseukadesh67 Jul 28, 2024
140044d
feature[padrao]: Cria conexão com backend para criação de padões #7
MarcusEscobar Jul 28, 2024
b6aa054
style: cria dropdown com status ativo e inativo
GustavoHaubert Jul 28, 2024
1d41e33
feature[padrao]: Lista padrões vindos do backend
MarcusEscobar Jul 28, 2024
044eff4
chore: renomeando link da pagina de visualização de contrato
eliseukadesh67 Jul 28, 2024
161c758
fix: corrigindo nome da variavel de data final
eliseukadesh67 Jul 28, 2024
fa2f45f
feature:: redirecionando para visualização do contrato
eliseukadesh67 Jul 28, 2024
be30ef5
Merge branch 'feature/5-gerenciamento-contratos' of https://github.co…
eliseukadesh67 Jul 28, 2024
16a5b60
resolve conflicts
CA1RO Jul 28, 2024
bcf5154
fix[padroes]: Adiciona indicação de padão desativado
MarcusEscobar Jul 28, 2024
3720c7d
style{cadastro}: altera o esilio da pagina
CA1RO Jul 28, 2024
db6c74a
Fix[Padrao] organiza a ordem das chamadas da api
Edilson-r-jr Jul 28, 2024
a074074
resolve conflicts
CA1RO Jul 28, 2024
c361e58
feat(contrato): dados para visualização de contratos da api
eliseukadesh67 Jul 28, 2024
6088df5
fix[padrao] Separa as funções de "padrao" no arquivo patternService e…
Edilson-r-jr Jul 28, 2024
9043d3f
chore: enviando apenas o numero do contrato como parametro para proxi…
eliseukadesh67 Jul 28, 2024
a21c8f5
feature: adiconando o dropdown para o status
eliseukadesh67 Jul 28, 2024
9499b4d
feature[Filter]: Componente dropdown do filtro de equipamentos
anajbsouza Jul 29, 2024
dbdcfb4
feature[Filter]: Componente filtro de equipamentos
anajbsouza Jul 29, 2024
fa0e488
feature[CSS]: Componente filtro de equipamentos
anajbsouza Jul 29, 2024
2a1cbe7
fix: encode utils import
eliseukadesh67 Jul 29, 2024
14f177a
fix: envio de dados editados para o backend
eliseukadesh67 Jul 29, 2024
53e7fc6
feature: redirecionamentos
eliseukadesh67 Jul 29, 2024
f8ed40d
chore: utilidade para formatar data
eliseukadesh67 Jul 29, 2024
5de3a0a
Merge branch 'dev' of https://github.com/fga-eps-mds/2024.1-PrintGo-F…
eliseukadesh67 Jul 29, 2024
a1d2490
fix[padrao] Adiciona o campo tipo na pagina edição padrão
Edilson-r-jr Jul 29, 2024
eafeec4
fix: ajusta alguns estilos css
GustavoHaubert Jul 29, 2024
2e25338
feature[list]: Adiciona requisição de nomes de impressora
GRVial Jul 29, 2024
d81b884
fix[padroes]: Corrige bug no formulario de edição
MarcusEscobar Jul 29, 2024
a2027d3
Merge branch 'Feature/4-listar-equipamento' of https://github.com/fga…
GRVial Jul 29, 2024
f8bdae0
fix[Padrao]: Corrige pagina de detalhes
MarcusEscobar Jul 29, 2024
035c1d3
feature[Padrao]: Adiciona toggle aos padrões
MarcusEscobar Jul 29, 2024
b5e51f4
Merge branch 'feature/5-gerenciamento-contratos' of https://github.co…
eliseukadesh67 Jul 29, 2024
4189666
fix[Padrao]: Torna campos OID opcionais
MarcusEscobar Jul 29, 2024
963b64a
feature[page]: atualiza requisição ver impressora
GRVial Jul 29, 2024
000547b
fix: adicionando de volta o viewContract
eliseukadesh67 Jul 29, 2024
6c675b7
fix[padrao]: volta rotas do gateway
lbvx Jul 29, 2024
11fb123
feature: trocando para utilizar o id ao inves de numero do contrato
eliseukadesh67 Jul 29, 2024
0764a74
feature[Padrao] - Estiliza a página de detalhes #6
MatheussBrant Jul 29, 2024
0615693
fix: version docker-compose
CA1RO Jul 29, 2024
c3cfab7
Merge pull request #11 from fga-eps-mds/feature/5-gerenciamento-contr…
eliseukadesh67 Jul 29, 2024
697f51e
feature[Edit]: Adiciona design da página de edição de impressora
caiolamego Jul 29, 2024
bdbef2d
Merge branch 'dev' into feature/7-crud-padrao-frontend
eliseukadesh67 Jul 29, 2024
d0c572f
Merge pull request #9 from fga-eps-mds/feature/7-crud-padrao-frontend
eliseukadesh67 Jul 29, 2024
5ec50a8
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
DanielViniciusAlves Jul 29, 2024
ab78d72
Merge pull request #10 from fga-eps-mds/feature/4-visualizar-equipamento
DanielViniciusAlves Jul 29, 2024
7becc10
fix[API]: Corrige requisição de localização.
DanielViniciusAlves Jul 29, 2024
616b993
Merge pull request #13 from fga-eps-mds/hotfix/12-hotfix-corrigir-rot…
DanielViniciusAlves Jul 29, 2024
72bfbf6
chore: ajustando rotas para o gateway
eliseukadesh67 Jul 29, 2024
5d4c939
Merge pull request #14 from fga-eps-mds/feature/5-gerenciamento-contr…
DanielViniciusAlves Jul 29, 2024
6431a26
fix: ajustando a rota para criação e redirecionamento
eliseukadesh67 Jul 29, 2024
6d12899
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
eliseukadesh67 Jul 29, 2024
7c88872
Merge pull request #15 from fga-eps-mds/fix/pagina-cadastro-contrato
eliseukadesh67 Jul 29, 2024
8ac96b8
fix: baseurl do service
eliseukadesh67 Jul 29, 2024
ed95fb4
Merge pull request #16 from fga-eps-mds/fix/service
eliseukadesh67 Jul 29, 2024
71b8103
feature[Workflow]: Adiciona workflow de deploy.
DanielViniciusAlves Jul 29, 2024
d97fad6
fix[Workflow]: Corrige path de arquivo.
DanielViniciusAlves Jul 29, 2024
2e65ac5
fix[Workflow]: Corrige workflow.
DanielViniciusAlves Jul 29, 2024
a12b677
fix: redirect
eliseukadesh67 Jul 30, 2024
213e289
Merge pull request #19 from fga-eps-mds/fix/redirect
eliseukadesh67 Jul 30, 2024
9a4350d
hotfix: corrigindo erro de digitação
GRVial Jul 30, 2024
e69bfbf
Merge pull request #18 from fga-eps-mds/feature/17-feature-adicionar-…
GRVial Jul 30, 2024
f713152
feature[Equipamento]: Adiciona telas de equipamento ao projeto.
DanielViniciusAlves Jul 30, 2024
95c9d33
Merge pull request #21 from fga-eps-mds/feature/4-tela-edicao
GRVial Jul 30, 2024
e877d90
fix[Localizacao]: Corrige campo de localização em form de edição de
DanielViniciusAlves Jul 30, 2024
654f975
fix[exitForm]: Altera rota do exit form
GRVial Jul 31, 2024
498eab5
fix(edição): mesagem de erro ao ativar contrato com data vencida
eliseukadesh67 Jul 31, 2024
5ea99eb
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
eliseukadesh67 Jul 31, 2024
8d27529
Merge pull request #26 from fga-eps-mds/fix/edicao-contratos
eliseukadesh67 Aug 1, 2024
16cb0d5
feature[Auditoria]: Cria header da página de auditoria
caiolamego Aug 5, 2024
c40c734
feature[Auditoria]: cria colunas na página de auditoria
caiolamego Aug 5, 2024
982f30d
feature[auditBox]: cria componente da tabela de auditoria
caiolamego Aug 5, 2024
8380714
feature[Auditoria]: Finaliza página de auditoria de contagem.
DanielViniciusAlves Aug 6, 2024
4c0d341
feature[Auditoria]: Adiciona requisição para o serviço de report.
DanielViniciusAlves Aug 6, 2024
597f352
fix[style]: cria uma novo size para o botão
GustavoHaubert Aug 7, 2024
ed0324d
fix[auditoria]: cria botão para gerar relatório na página de visualiz…
GustavoHaubert Aug 7, 2024
80c377e
feature[Impressorasl] - adiciona navbar a página de listagem de equip…
MatheussBrant Aug 7, 2024
acfda2e
feature[Equipamentos]: Adicona item box na tela de listagem
MarcusEscobar Aug 7, 2024
543ab58
feature[Equipamentos]: Adiciona header e Search input a listagem de e…
MarcusEscobar Aug 7, 2024
6346052
feature[Equipamentos]: Implementa filtragem pela busca de equipamentos
MarcusEscobar Aug 7, 2024
f69e47c
feature[Impressoras]: implementa filtragem de equipamento e de modelo
MatheussBrant Aug 8, 2024
5adf20f
feature[impressoras]: adiciona filtro de numero de serie e de localiz…
MatheussBrant Aug 8, 2024
ffb1c1c
feature[Impressoras]: adiciona botão de Cadastrar novo equipamento
MatheussBrant Aug 8, 2024
2b203ef
fix[impressoras]: altera posição do numero de seria no itembox e repo…
MatheussBrant Aug 8, 2024
843bd7a
feature[impressoes] - adiciona arquivo para pagina de registro de imp…
MatheussBrant Aug 8, 2024
43fc065
feature[impressoes]: Adiciona documento css para a pagina AddContador
MatheussBrant Aug 8, 2024
3e548d1
feature[impressoes]- adiciona Navbar
MatheussBrant Aug 8, 2024
2f265f6
feature[impressoes] - adiciona titulo
MatheussBrant Aug 8, 2024
133ae44
fix[impressoes] - altera título
MatheussBrant Aug 8, 2024
6274eae
feature[impressoes]: adiciona Localização
MatheussBrant Aug 8, 2024
1bc9f5f
fix[style]: corrige tabela de auditoria
GustavoHaubert Aug 8, 2024
e420566
feature[impressoes]: adiciona selection de equipamento associado
MatheussBrant Aug 8, 2024
3d0695d
feature[impressoes]: Adiciona campo para quantidade de impressoes
MatheussBrant Aug 8, 2024
6a344e3
impressoes[impressoes]: Adiciona campo para quantidade de impressoes
MatheussBrant Aug 8, 2024
ab2a772
feature[impressoes]: adiciona campo data
MatheussBrant Aug 8, 2024
756da67
feature[impressoes]: adiciona botoes registrar e cancelar
MatheussBrant Aug 8, 2024
f8dce1e
fix[impressoes]: tira "/" colocada incorretamente
MatheussBrant Aug 8, 2024
ba5e060
test[components]: adiciona testes
GRVial Aug 9, 2024
6a0c78e
feature[impressoras]: tira o mock e habilita o getprinters
MatheussBrant Aug 9, 2024
2f39164
feature[impressoras]: muda rotas dos botoes acessar lista e adiciona …
MatheussBrant Aug 9, 2024
d08c067
test[components]: adiciona testes
GRVial Aug 10, 2024
2ebf22f
fix[select]: altera span para label
GRVial Aug 10, 2024
f032487
feature[Equipamentos]: Implementa filtragem com base nos equipamentos…
MarcusEscobar Aug 10, 2024
d9e02c6
feature[Equipamentos]: Implementa toggle de equipamentos, ativa e des…
MarcusEscobar Aug 10, 2024
db52ddd
fix[Equipamentos]: Retira chamada da função togglePrinter que não exi…
MarcusEscobar Aug 10, 2024
fe6262b
test[padrao]: corrige e adiciona testes da página de listar padroes
lbvx Aug 11, 2024
9dd91b5
test[padrao]: adiciona testes da página de cadastro de padrão
lbvx Aug 11, 2024
928bd4e
test[padrao]: remove constante inutilizada dos testes da pagina de ca…
lbvx Aug 11, 2024
45760b0
test[impressora]: adiciona testes de registerPrinterForm
GRVial Aug 11, 2024
ce59c24
test[padrao]: adiciona testes da pagina de detalhes de padrão
lbvx Aug 11, 2024
5de1cd1
chore: removendo import desnecessario
eliseukadesh67 Aug 11, 2024
0a2fd13
feature: adicionando seleção de campos de localização e numero de serie
eliseukadesh67 Aug 11, 2024
683127f
feature[impressoras]: adiciona click no numSerie e muda rota de desti…
MatheussBrant Aug 13, 2024
cdbba7a
hotfix[viewPattern]: corrige campo Total geral na visualização de padrão
caiolamego Aug 13, 2024
9f98c08
feature[Equipamentos]: Muda a cor do ItemBox do equipamento dependend…
MarcusEscobar Aug 13, 2024
7f946c4
Merge pull request #35 from fga-eps-mds/hotfix/34-corrigir-oid
lbvx Aug 13, 2024
0c59473
fix[pages]: remove pagina velha
GRVial Aug 14, 2024
0b0514d
fix[equipamentos]: arruma funcao de toggle
GRVial Aug 14, 2024
bef1ef5
Merge pull request #36 from fga-eps-mds/feature/30-listagem-de-equipa…
GRVial Aug 14, 2024
34fb058
Merge pull request #23 from fga-eps-mds/fix/22-corrigir-localização-e…
GRVial Aug 14, 2024
a075e95
fix[contadores]: altera o nome do fetch
MatheussBrant Aug 14, 2024
88c6803
test[printerService]: corrige testes de printerService
lbvx Aug 14, 2024
2e4b9d6
test[patternService]: arruma testes de patternService
lbvx Aug 14, 2024
20aa5a8
test[frontend]: deleta arquivos velhos de teste que não sãoo mais usados
lbvx Aug 14, 2024
73b805c
Merge branch 'dev' into test/containers
lbvx Aug 14, 2024
4f1e7af
test[front]: corrige testes apos correção do conflito
lbvx Aug 14, 2024
9317c5d
update readme
GRVial Aug 14, 2024
ba5e237
Merge pull request #39 from fga-eps-mds/docs/readme
GRVial Aug 14, 2024
194e813
feature[contadores]: manda os dados da página para o back
MatheussBrant Aug 15, 2024
b020427
feat: adiciona filtragem dos equipamentos baseado na localização sele…
eliseukadesh67 Aug 15, 2024
3334d15
feature[contadores]: adiciona campo para as Impressões Coloridas e co…
MatheussBrant Aug 15, 2024
79338a0
feature[contadores]: Desabilita o campo de quantide de impressoes col…
MatheussBrant Aug 15, 2024
44c3768
feature[contadores]: adiciona aviso de erro caso a data não seja inse…
MatheussBrant Aug 15, 2024
b08d169
feature[contadores]: muda cor do botão registrar
MatheussBrant Aug 15, 2024
4e42beb
feature[contadores]: muda nome da label de impressões
MatheussBrant Aug 15, 2024
196762c
fix[style]: corrige margem de erro para aparecer na tela
GustavoHaubert Aug 15, 2024
7ac9db1
test[components]: adiciona teste para AuditBox
caiolamego Aug 15, 2024
e592a1f
fix[workflow]: adiciona pr fechado main e dev
GRVial Aug 15, 2024
b0e2b84
Merge pull request #42 from fga-eps-mds/fix/workflow
lbvx Aug 15, 2024
49231f9
Merge pull request #38 from fga-eps-mds/test/containers
lbvx Aug 15, 2024
4874453
feature[contadores]: altera botão e mensagem de erro
MatheussBrant Aug 15, 2024
3255526
Fix[Relatorio]: Adiciona relatório modelo do projeto.
DanielViniciusAlves Aug 15, 2024
cf7109d
feature[Relatorio]: Adiciona upload de relatorio para auditoria.
DanielViniciusAlves Aug 15, 2024
72161b9
Merge branch 'feature/29-auditoria-contagem' of github.com:fga-eps-md…
DanielViniciusAlves Aug 15, 2024
d51a37a
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
DanielViniciusAlves Aug 15, 2024
37c1125
fix[Auditoria]: Corrige borda de impressoras.
DanielViniciusAlves Aug 15, 2024
37ccb92
feature[contadores]: muda o nome variavel dataContagem
MatheussBrant Aug 15, 2024
6a18188
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
eliseukadesh67 Aug 16, 2024
225e1fb
fix: adicionando id aos selects e renomeando labels
eliseukadesh67 Aug 16, 2024
1b34295
tests: renderização da pagina de registro de contadores
eliseukadesh67 Aug 16, 2024
fea2e03
tests: registro de contadores no printer service
eliseukadesh67 Aug 16, 2024
0ee6f28
tests: seleção de equipamentos baseados na localização
eliseukadesh67 Aug 16, 2024
f478174
feature[contadores]: componentiza os campos selection
MatheussBrant Aug 16, 2024
0414685
tests[contadores]:adiciona teste de validação e submit dos campos Re…
MatheussBrant Aug 16, 2024
a109a5f
test[Select]: Corrige testes relacionados ao Select.
DanielViniciusAlves Aug 18, 2024
d8b5ef2
Merge pull request #43 from fga-eps-mds/feature/32-registro-contagem-…
eliseukadesh67 Aug 18, 2024
ae87937
test[Auditoria]: Adiciona testes para tela de auditoria.
DanielViniciusAlves Aug 18, 2024
d105f5d
Merge branch 'dev' into feature/29-auditoria-contagem
DanielViniciusAlves Aug 18, 2024
f83f7bf
fix[Service]: Corrige conflito no printer service.
DanielViniciusAlves Aug 18, 2024
0b4946a
test[Contador]: Corrige método de teste alterado.
DanielViniciusAlves Aug 18, 2024
2042edc
Merge pull request #31 from fga-eps-mds/feature/29-auditoria-contagem
DanielViniciusAlves Aug 19, 2024
140ab70
fix[Select]: Corrige erro gerado quando requisição não completa.
DanielViniciusAlves Aug 19, 2024
eaa5b0a
feature[navbar-auditoria]: adiciona botão para a página de auditoria …
GustavoHaubert Aug 19, 2024
248247f
Merge pull request #45 from fga-eps-mds/feature/44-navbar-auditoria
GustavoHaubert Aug 19, 2024
8365e40
fix: corrigindo e adicionando componentes a pagina e estilização.
eliseukadesh67 Aug 19, 2024
95e0705
fix: corrigindo testes de acordo com os componentes da pagina
eliseukadesh67 Aug 19, 2024
c26121d
Merge branch 'dev' of github.com:fga-eps-mds/2024.1-PrintGo-FrontEnd …
eliseukadesh67 Aug 19, 2024
2b58fe5
fix: ajustando mensagens de erro e modificando valores default dos co…
eliseukadesh67 Aug 20, 2024
094d293
chore: adicionando pagina de registro de contadores a navbar
eliseukadesh67 Aug 20, 2024
f49b5eb
test: adicionando mais casos de teste
eliseukadesh67 Aug 20, 2024
c296d65
Merge pull request #46 from fga-eps-mds/fix/44-componente-select
eliseukadesh67 Aug 20, 2024
f6e11f9
fix[Contract]: Corrige erro de estilo em listagem de contrato.
DanielViniciusAlves Aug 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Deploy no Render
on:
workflow_dispatch:
push:
branches:
- main
- dev

jobs:
render:
name: render
runs-on: ubuntu-latest
steps:
- name: Trigger deploy
run: curl ${{secrets.RENDER_TRIGGER}}
8 changes: 0 additions & 8 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,3 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}

- name: Envia cobertura para o Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: jest
name: 2023.2-PrintGo-FrontEnd
verbose: true
13 changes: 9 additions & 4 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Metrics and Release

on:
pull_request:
branches:
- main
types: [closed]
workflow_dispatch:
pull_request:
branches:
- main
- dev
types: [closed]
push:
branches:
- main

jobs:
release:
Expand Down
74 changes: 24 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,41 @@
# 2023.2-PrintGo-FrontEnd
# 2024.1 - PrintGo-FrontEnd

<div align="center">
<img src="src/assets/logoPrintGo.svg" height="350px" width="350px">
</div>

# 1. Clone o projeto
git clone [email protected]:fga-eps-mds/2023.2-PrintGo-FrontEnd.git

# 2. Entre na pasta do projeto
cd 2023.2-PrintGo-FrontEnd
## Quality Control

# Construa a imagem do docker
```bash
sudo docker build -t frontprintgo .
```
# Execute o container
```bash
sudo docker run -p 3000:3000 frontprintgo
```
# Caso os comando acima falhem, utilize:
```bash
sudo docker-compose up --build
```
```bash
sudo docker-compose up
```
=======
# Caso prefira usar yarn eh n tenha
npm i -g yarn
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fga-eps-mds_2024.1-PrintGo-FrontEnd&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fga-eps-mds_2024.1-PrintGo-FrontEnd)

# Instalar dependencias
yarn
#ou
npm i
## Requisitos

cp .env.dev .env
- Node.js 18.18 (Latest em 10-05-2023)
- Docker
- Docker-compose

# Rode o docker compose do projeto
docker-compose up --build
# --build somente eh necessario na primeira vez que estiver rodando
# depois `docker-compose up` ja resolve
# em linux talvez seja necessario a execucao em modo root `sudo docker-compose up`
# voce pode também caso queria adicionar um -d ao final para liberar o o terminal `docker-compose up -d`
# Para finalizar o servico execute no root do projeto `docker-compose down`
## Instalação

# finalizado execução do docker faca o migrate da base de dados
yarn db:migrate
#ou
npm run db:migrate
```bash
# 1. Clone o projeto
git clone https://github.com/fga-eps-mds/2024.1-PrintGo-FrontEnd.git

# 2. Entre na pasta do projeto
cd 2024.1-PrintGo-FrontEnd
# 3. Rodar o docker
docker-compose up --build
```

## Contribuir

Para contribuir com esse projeto é importante seguir nosso [Guia de Contribuição](https://fga-eps-mds.github.io/2023.2-PrintGo-Doc/guia_de_contribuicao/) do repositório e seguir nosso [Código de Conduta](https://fga-eps-mds.github.io/2023.2-PrintGo-Doc/codigo_conduta/).

## Ambientes

- [Documentação](https://github.com/fga-eps-mds/2023.2-PrintGo-Doc)

- [Front-End](https://github.com/fga-eps-mds/2023.2-PrintGo-FrontEnd)

- [Back-End: UserService](https://github.com/fga-eps-mds/2023.2-PrintGo-UserService)
Para contribuir com esse projeto é importante seguir nosso [Guia de Contribuição](https://fga-eps-mds.github.io/2024.1-PrintGo-Doc/inicio/guia_contribuicao/).

- [Back-End: OcurrenceService](https://github.com/fga-eps-mds/2023.2-PrintGo-OcurrenceService)
## repositórios do projeto

- [Back-End: PrinterService](https://github.com/fga-eps-mds/2023.2-PrintGo-PrinterService)
[Api-Gateway](https://github.com/fga-eps-mds/2024.1-PrintGo-ApiGateway)
[ContractService](https://github.com/fga-eps-mds/2024.1-PrintGo-ContractService)
[Documentação](https://github.com/fga-eps-mds/2024.1-PrintGo-Doc)
[FrontEnd](https://github.com/fga-eps-mds/2024.1-PrintGo-FrontEnd)
[PrinterService](https://github.com/fga-eps-mds/2024.1-PrintGo-PrinterService)
[UserService](https://github.com/fga-eps-mds/2024.1-PrintGo-UserService)
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
app:
container_name: app-front
Expand Down
41 changes: 23 additions & 18 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
const isCoverageEnabled = process.argv.includes('--coverage');

module.exports = {
setupFilesAfterEnv: ['./src/setupTests.js'],
testMatch: ["**/__tests__/**/*.js", "**/?(*.)+(spec|test).js"],
testPathIgnorePatterns: ["/node_modules/"],
transform: {
"^.+\\.(js|jsx)$": "babel-jest",
"^.+\\.svg$": "<rootDir>/fileTransform.js", // Adicione esta linha
"^.+\\.(js|jsx)$": "babel-jest",
"^.+\\.svg$": "<rootDir>/fileTransform.js", // Adicione esta linha
},
moduleFileExtensions: ["js", "json", "jsx", "node", "svg"], // Adicione "svg" aqui
moduleFileExtensions: ["js", "json", "jsx", "node"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
"\\.(css|less|scss)$": "identity-obj-proxy",
"axios": "axios/dist/node/axios.cjs"
"^@/(.*)$": "<rootDir>/src/$1",
"\\.(css|less|scss)$": "identity-obj-proxy",
'^axios$': require.resolve('axios'),
},
testEnvironment: "jsdom",

collectCoverage: isCoverageEnabled,
collectCoverageFrom: isCoverageEnabled ? ['src/**/*.{js,jsx}'] : [],

reporters: [
'default',
[
'jest-sonar',
{
outputDirectory: 'reports',
outputName: 'sonar-report.xml'
}
]
]
};
'default',
[
'jest-sonar',
{
outputDirectory: 'reports',
outputName: 'sonar-report.xml'
}
]
]
};

7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"body-parser": "^1.20.2",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"papaparse": "^5.4.1",
"pg": "^8.11.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down Expand Up @@ -60,6 +61,7 @@
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@testing-library/jest-dom": "^6.4.8",
"babel-jest": "^29.7.0",
"eslint": "^8.52.0",
"eslint-plugin-import": "^2.28.1",
Expand All @@ -71,8 +73,8 @@
"jest-sonar": "^0.2.16",
"jest-sonar-reporter": "^2.0.0",
"jsdom": "^22.1.0",
"nodemon": "^2.0.0",
"react-router-dom": "^6.17.0",
"react-test-renderer": "^18.2.0",
"nodemon": "^2.0.0"
"react-test-renderer": "^18.2.0"
}
}
2 changes: 2 additions & 0 deletions public/Modelo_Relatorio.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Customer description],[Brand],[Model],[SerialNumber],[Last update time],[End total counter],[Actual mono counter],[Actual color counter]
Teste,Teste,Teste,123456,Teste,200,100,100
Binary file added public/seta-direita 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 15 additions & 17 deletions scripts/metrics.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
const REPO = '2023.2-PrintGo-FrontEnd'
const REPO = '2024.1-PrintGo-FrontEnd'
const OWNER = 'fga-eps-mds'
const SONAR_ID = 'fga-eps-mds_2023.2-PrintGo-FrontEnd'
const SONAR_ID = 'fga-eps-mds_2024.1-PrintGo-FrontEnd'

const METRIC_LIST = [
'files',
'functions',
'complexity',
'comment_lines_density',
'duplicated_lines_density',
'coverage',
'ncloc',
'tests',
'test_errors',
'test_failures',
'test_execution_time',
'security_rating'
];
const METRIC_LIST = ['files',
'functions',
'complexity',
'comment_lines_density',
'duplicated_lines_density',
'coverage',
'ncloc',
'tests',
'test_errors',
'test_failures',
'test_execution_time',
'security_rating'];

const SONAR_URL = `https://sonarcloud.io/api/measures/component_tree?component=${SONAR_ID}&metricKeys=${METRIC_LIST.join(',')}&ps=500`;

module.exports = {
SONAR_URL,
REPO,
OWNER
};
};
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sonar.projectKey=fga-eps-mds_2023.2-PrintGo-FrontEnd
sonar.projectKey=fga-eps-mds_2024.1-PrintGo-FrontEnd
sonar.organization=fga-eps-mds-1
sonar.sources=src
sonar.tests=src
Expand All @@ -7,4 +7,4 @@ sonar.exclusions=node_modules/**, test/**, assets/**, .github/**, scripts/**


sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.testExecutionReportPaths=reports/sonar-report.xml
sonar.testExecutionReportPaths=reports/sonar-report.xml
28 changes: 20 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import RegisterPrinter from "./pages/RegisterPrinter";
import EditPrinter from "./pages/EditPrinter";
import PatternPrinter from "./pages/PatternPrinter";
import EditPattern from "./pages/EditPattern";
import PrintersList from "./pages/PrintersList";
import ViewPrinter from "./pages/ViewPrinter";
import { ToastContainer } from "react-toastify";
import 'react-toastify/dist/ReactToastify.css';
Expand All @@ -22,24 +21,37 @@ import ForgottenPasswordPage from "./pages/ForgottenPassword";
import RecoverPasswordPage from "./pages/RecoverPassword";
import PrivateRoutes from "./components/utils/PrivateRoutes";
import AdminRoutes from "./components/utils/AdminRoutes";
import ListEquipment from "./components/forms/ListEquipment";
import ContractForm from "./components/forms/ContractForm";
import EditContractForm from "./components/forms/EditContractForm";
import ContractList from "./pages/ContractList";
import ViewContract from "./pages/ViewContract";
import AuditPrinter from "./pages/AuditPrinter";
import AddContador from "./pages/AddContador";

function App() {
return (
<>
<BrowserRouter>
<Routes>
<Route element={<PrivateRoutes />}>
<Route path="/editarusuario/:id" element={<EditUserPage/>}/>
<Route path="/editarusuario/:id" element={<EditUserPage />} />
<Route path="/editimpressora/:id" element={<EditPrinter />} />
<Route path="/visualizarimpressora/:id" element={<ViewPrinter />} />
<Route path="/mudarsenha" element={<ChangePassword />} />
<Route path="/cadastroimpressora" element={<RegisterPrinter />} />
<Route path="/editarimpressora/:printer" element={<EditPrinter />} />
<Route path="/auditoria" element={<AuditPrinter />} />
<Route path="/padraoimpressora" element={<PatternPrinter />} />
<Route path="/editarpadrao/:padrao" element={<EditPattern />} />
<Route path="/impressorascadastradas" element={<PrintersList />} />
<Route path="/editarpadrao" element={<EditPattern />} />
<Route path="/impressorascadastradas" element={<ListEquipment />} />
<Route path="/visualizarimpressora/:printerData" element={<ViewPrinter/>}/>
<Route path="/listapadroes" element={<PatternList />} />
<Route path="/padroescadastrados" element={<PatternList />} />
<Route path="/visualizarpadrao/:padrao" element={<ViewPattern />} />
<Route path="/visualizarpadrao" element={<ViewPattern />} />
<Route path="/cadastrarContrato" element={<ContractForm />} />
<Route path="/editarContrato" element={<EditContractForm />} />
<Route path="/listagemContrato" element={<ContractList />} />
<Route path="/verContrato/:id" element={<ViewContract />} />
<Route path="/registrarContadores" element={<AddContador />} />
<Route element={<AdminRoutes/>}>
<Route path="/listausuarios" element={<UsersList />} />
<Route path="/cadastro" element={<CreateUserPage />} />
Expand All @@ -49,7 +61,7 @@ function App() {
<Route path="/" element={<Home />} />
<Route path="/contato" element={<Contact />} />
<Route path="/quemsomos" element={<AboutUs />} />
<Route path="/recuperarSenha" element={<RecoverPasswordPage/>} />
<Route path="/recuperarSenha" element={<RecoverPasswordPage />} />
<Route path="/esqueciMinhaSenha" element={<ForgottenPasswordPage />} />
</Routes>
</BrowserRouter>
Expand Down
2 changes: 2 additions & 0 deletions src/__mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// src/__mocks__/fileMock.js
module.exports = '';
7 changes: 4 additions & 3 deletions src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export async function login(email, password) {
};

try {
const response = await api.post('/user/login', data);
return {type: 'success', token: response.data.token };
// const response = await api.post('/user/login', data);
let token_mock = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEyMyIsImVtYWlsIjoidXNlckBleGFtcGxlLmNvbSIsIm5vbWUiOiJEYW5pZWwiLCJjYXJnb3MiOiJhZG1pbiJ9.tMm8nEv6qtGnL4XJIFRQJcgw6qafUUDpxgR8LUHXX08"
return {type: 'success', token: token_mock };
} catch (error) {
console.error('Erro ao fazer login:', error);
return {type: 'error', error};
Expand All @@ -28,4 +29,4 @@ export async function changePassword(data) {
} catch(error) {
return {type: 'error', error};
}
}
}
2 changes: 1 addition & 1 deletion src/assets/Filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading