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

Us04 #10

Merged
merged 120 commits into from
Jul 29, 2024
Merged

Us04 #10

Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
19819a8
Merge pull request #1 from fga-eps-mds/devel
ingridSCarvalho May 21, 2024
d052d5c
Merge pull request #2 from fga-eps-mds/devel
ingridSCarvalho May 22, 2024
cb96d43
[feat : 17] - Estrutura do formulário de filiação
MilenaFRocha Jul 13, 2024
b6a629c
[fix:17] - Filiação dados pessoais
MilenaFRocha Jul 14, 2024
491dbf5
[fix:17] - alinhamento do formulario no css
storch7 Jul 15, 2024
d1b0649
[fix:17] - Campo de datas corretos
MilenaFRocha Jul 15, 2024
d4cd4f7
[fix:17] - Campo de datas corretos
MilenaFRocha Jul 15, 2024
a55dc8c
[fix:17] - Correção do CSS
MilenaFRocha Jul 15, 2024
c34c1fe
criação de novos componentes
storch7 Jul 16, 2024
35f9958
[fix:17] - Adicionando botão de dependente
MilenaFRocha Jul 16, 2024
94e7b0f
[fix:17] - Adicionando componentes
MilenaFRocha Jul 17, 2024
80a5b78
Alteração das configurações de css do formulário
storch7 Jul 17, 2024
00a3ea6
Alinhamento dos campos do formulário de filiação
storch7 Jul 18, 2024
4e323fa
realinhamento dos campos do formulário de filiação
storch7 Jul 18, 2024
bb31956
adicionando novos campos aos dependentes
storch7 Jul 18, 2024
c88d99a
[fix:17] - Alinhando front e back
MilenaFRocha Jul 18, 2024
ac605c4
us33-route
Jul 18, 2024
e419728
[fix:1] - setting-coauthor
Jul 18, 2024
92bc624
[fix:2] - add user view title and personal data section
jevprado Jul 18, 2024
df8d694
[fix:3] - autenticacao de usuario
Diogo-Barboza Jul 18, 2024
2bf0a67
[fix:17] - Modificação do html para atender a responsividade
storch7 Jul 18, 2024
39beb27
[fix:4] - caixas e estilizacao
Diogo-Barboza Jul 18, 2024
abadb57
[fix:5] - adicionando propriedade disabled nos campos
jevprado Jul 18, 2024
1d7d1d6
Mensagem do commit
Gam13 Jul 19, 2024
7a69f7f
[fix:6] - correcao de campos bloqueados
Diogo-Barboza Jul 19, 2024
0b079c1
new number masked component, FieldNumber
Gam13 Jul 19, 2024
bd6cef0
componente de lista com checkbox Co-authored-by: Jagaima <davinobre.i…
Gam13 Jul 19, 2024
0c40b4b
Delete src/Components/Lista directory
Gam13 Jul 19, 2024
26dcd55
Componente de checklist
Gam13 Jul 19, 2024
46fc37e
Componente de checklist
Gam13 Jul 19, 2024
074e4dd
Componente de checklist
Gam13 Jul 19, 2024
ac80d78
[fix:7] - mascara do campo celular
jevprado Jul 20, 2024
3770b2f
Prototiping
Gam13 Jul 20, 2024
82684f2
adição de cor no background do fieldtext e ajuste de posição do texto
jevprado Jul 20, 2024
933827b
[fix:33] - Campos pré-preenchidos
Diogo-Barboza Jul 20, 2024
42143bd
Merge branch 'us33-profile-update' of https://github.com/fga-eps-mds/…
Diogo-Barboza Jul 20, 2024
37607fe
[fix:33] - correção css e adição de status de login na pagina
jevprado Jul 20, 2024
5891cc1
Prototípo 1 da pagina feito, ainda não está no padrão de cores do pro…
Gam13 Jul 20, 2024
8ee4647
Algumas mudanças no CSS
Gam13 Jul 20, 2024
75fc70a
[fix:33] - correção direcionamento da home e adição do botão logout
jevprado Jul 20, 2024
96a4d00
Ajuste no css quando reduz o tamanho da tela
Gam13 Jul 20, 2024
4a08809
Pagina de Visualizar dados de um usuário
Gam13 Jul 20, 2024
5826531
Tela de visualizar usuário
Gam13 Jul 20, 2024
612ec2d
Arrumando coisas no CSS
Gam13 Jul 20, 2024
a1a8430
Arrumando coisas no CSS
Gam13 Jul 20, 2024
ba2c6ba
Criando a integração com o backend
Jagaima Jul 20, 2024
0d6e8d2
Merge branch 'US04' of https://github.com/fga-eps-mds/2024.1-SENTINEL…
Jagaima Jul 20, 2024
2eabd38
fix3: css
Gam13 Jul 20, 2024
e9e0a0b
Pagina de redirecionamento
Gam13 Jul 21, 2024
23b4eb3
Criando pagina de listar usuários e alguns fix
Gam13 Jul 21, 2024
61ecd76
[feat:33] - adicao de botoes funcionais
Diogo-Barboza Jul 21, 2024
489127a
Pagina que mostra a lista de usuários prototipada
Gam13 Jul 21, 2024
9bd75fa
fix
Gam13 Jul 21, 2024
c5fb5ae
fix
Gam13 Jul 21, 2024
15d7326
merge fix
Jagaima Jul 21, 2024
0b274a3
Merge branch 'US04' of https://github.com/fga-eps-mds/2024.1-SENTINEL…
Jagaima Jul 21, 2024
d9b7c22
fix
Jagaima Jul 21, 2024
0d00f0a
fix definitivo
Jagaima Jul 21, 2024
68098cf
[fix:33] - ajuste css e correção de botões
jevprado Jul 21, 2024
f6b159f
iniciando filtragem
Jagaima Jul 21, 2024
bee19b5
[fix:33] - ajuste de formatação dos textos e cores
jevprado Jul 22, 2024
14ab98e
Revert "iniciando filtragem"
Gam13 Jul 22, 2024
3d14690
Reapply "iniciando filtragem"
Jagaima Jul 22, 2024
6275f01
[feat:33] - implementação da nova sidebar na tela de visualização de …
jevprado Jul 22, 2024
1ad4f45
Pagina Cadastro
Gam13 Jul 22, 2024
48c889f
iniciando merge
Jagaima Jul 22, 2024
43200d8
Merge branch 'US04' of https://github.com/fga-eps-mds/2024.1-SENTINEL…
Jagaima Jul 22, 2024
976d3ab
corrigindo rotas do João
Jagaima Jul 22, 2024
32be571
validando o token eu userlist
Jagaima Jul 22, 2024
f335d62
[fix:33] - correcao da requisicao de usuario
Diogo-Barboza Jul 22, 2024
7b69f0b
[fix:33] - ajuste no sidebutton e rota do botão home
jevprado Jul 22, 2024
82b2874
implementando view (ainda não funcional)
Jagaima Jul 22, 2024
70ec5f4
Pequenas alterações nas cores de alguns botões e nos botões mostrados…
Gam13 Jul 23, 2024
a647df0
Pequenas alterações nas cores de alguns botões e nos botões mostrados…
Gam13 Jul 23, 2024
37bab71
Pagina para debugar o front
Gam13 Jul 23, 2024
58fd427
[fix:33] - correção CSS e de ícones na tela
jevprado Jul 23, 2024
e7ab9c0
[feat:33] - Implementação do modal funcional
jevprado Jul 23, 2024
1f799b2
[fix:33] - correção do botão logout
jevprado Jul 23, 2024
cb8eb48
[feat:33] - Validacao do field numbero
Diogo-Barboza Jul 23, 2024
f78547d
progresso significativo em obter dados para viewuser
Jagaima Jul 24, 2024
97a29f7
Merge branch 'US04' of https://github.com/fga-eps-mds/2024.1-SENTINEL…
Jagaima Jul 24, 2024
5640e52
Delete src/Pages/Public/TesteComponentes directory
Gam13 Jul 24, 2024
a02dc1c
Salvar e Deletar funcionais
Jagaima Jul 24, 2024
cfdb0a5
[fix:33] - ajuste do campo email e CSS
jevprado Jul 24, 2024
e1b2fbe
alterações
Jagaima Jul 24, 2024
cb42bd9
[feat:33] - implementação da mascara de email
jevprado Jul 24, 2024
56192b4
nomes e links reajustados
Gam13 Jul 24, 2024
1f784d8
Merge remote-tracking branch 'origin/us33-profile-update' into US04
Gam13 Jul 24, 2024
887f8ec
Testando Modal
Gam13 Jul 24, 2024
01a325d
testando botões lateráis
Gam13 Jul 24, 2024
a1e913b
tentando adicionar botão de logout
Gam13 Jul 24, 2024
78c4e50
alterando barra lateral
Jagaima Jul 24, 2024
6e0b9c0
[fix:04] - fixing modal on page
Jagaima Jul 24, 2024
55ccb69
[fix:4] - only letters in namefield
Gam13 Jul 24, 2024
981e097
[fix:04] - Adding fixes to names text fields
Jagaima Jul 24, 2024
f0caed0
[fix:04] - making modal accept more than one button
Jagaima Jul 24, 2024
f2c4068
[fix:4] - Changes for more modal buttons and finishing viewuser page
Gam13 Jul 24, 2024
08d5480
[fix:04] - making modal accept more than one button
Jagaima Jul 24, 2024
113ab4b
[fix:04] - fixing side-bar
Jagaima Jul 25, 2024
ef6f51a
[fix:04] - responsive bar
Jagaima Jul 25, 2024
2e301b2
[fix:04] - removing console.logs
Jagaima Jul 25, 2024
4805d31
[fix:04] - Finishing email validation, error menssage
Gam13 Jul 25, 2024
ada53f2
Merge remote-tracking branch 'origin/US04' into US04
Gam13 Jul 25, 2024
6ed5372
Revert "Merge remote-tracking branch 'origin/US04' into US04"
Gam13 Jul 25, 2024
bfbfec5
[fix:04] - Finishing email validation, error menssage
Gam13 Jul 25, 2024
d30b883
[fix: 04] Passando nome pro url da página
Jagaima Jul 26, 2024
21a3a57
[fix:7] - Fixing Routes, and minor fix on sidebar for dynamic URLs
Gam13 Jul 26, 2024
faf0693
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
93058be
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
c65413a
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
393b62c
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
9eb24bc
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
7faf668
[fix:7] - Adjusts in the CSS
Gam13 Jul 26, 2024
4ecdc98
[fix:04] - corrections for merge.
yukioz Jul 27, 2024
79a3801
Merge remote-tracking branch 'origin' into US04
yukioz Jul 27, 2024
14d23da
Merge branch 'devel' into US04
yukioz Jul 27, 2024
206a76c
[04] - fix eslint and merge problems.
yukioz Jul 27, 2024
5549fe5
[04] - fix more eslint erros.
yukioz Jul 27, 2024
1d212f7
[fix:04] Corrigindo conflitos + componentes
AlGouvea Jul 29, 2024
d617d5b
[fix:04] Corrigindo teste
AlGouvea Jul 29, 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
1,171 changes: 647 additions & 524 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/material": "^5.15.17",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-date-pickers": "^7.10.0",
"axios": "^1.7.2",
"dayjs": "^1.11.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.2.1",
"react-number-format": "^5.4.0",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
Expand Down
31 changes: 31 additions & 0 deletions src/Components/Card/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.card {
background-color: #eae3d7;
max-width: 500px;
width: 90%;
height: 690px;
border-radius: 20px;
display: flex;
flex-direction: column;
align-items: center;
/* justify-content: space-around; */
}

.area-card {
flex: 1;
height: 100vh;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.logo {
width: 107px;
height: 107px;
margin-top: 40px;
}

.sentinela {
margin-top: -30px;
width: 350px;
height: auto;
}
28 changes: 28 additions & 0 deletions src/Components/Card/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";
import PropTypes from "prop-types";
import "./index.css";

export default function Card({ children, className }) {
return (
<div className="area-card">
<div className={`card ${className}`}>
<img
className="logo"
src="src/assets/sindpol-logo.png"
alt="Sindpol Logo"
/>
<img
className="sentinela"
src="src/assets/sentinela-logo.png"
alt="Sentinela Logo"
/>
{children}
</div>
</div>
);
}

Card.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
};
42 changes: 42 additions & 0 deletions src/Components/Checklist/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React, { useState } from 'react';
import Checkbox from '@mui/material/Checkbox';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemText from '@mui/material/ListItemText';
import Divider from '@mui/material/Divider';



export default function CheckList({items, value, onChange}) {

const handleToggle = (e) => () => {
const currentIndex = value.indexOf(e);
const newChecked = [...value];

if (currentIndex === -1) {
newChecked.push(e);
} else {
newChecked.splice(currentIndex, 1);
}

onChange(newChecked);
};
return (
<List>
{items.map((item, index) => (
<React.Fragment key={item}>
<ListItem button onClick={handleToggle(item)}>
<Checkbox
edge="start"
checked={value.indexOf(item) !== -1}
tabIndex={-1}
disableRipple
/>
<ListItemText primary={item} />
</ListItem>
{index !== items.length - 1 && <Divider />}
</React.Fragment>
))}
</List>
);
}
20 changes: 20 additions & 0 deletions src/Components/DataSelect/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { DatePicker } from '@mui/x-date-pickers/DatePicker';

export default function DataSelect({label, value, onChange}) {
return(
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DatePicker
label={label}
value={value}
onChange={onChange}
format="DD/MM/YYYY" // Define o formato desejado
renderInput={(params) => <TextField {...params} variant="filled" />}
sx={{
margin: '.7rem',
}}
/>
</LocalizationProvider>
)
}
30 changes: 30 additions & 0 deletions src/Components/FieldNumber/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import PropTypes from "prop-types";
import FieldText from "../FieldText";
import { PatternFormat } from 'react-number-format';


export default function FieldNumber({ label, value, onChange, disabled, format }) {
return (
<PatternFormat
format={format}
mask='_'
allowEmptyFormatting
patternChar='#'
type='tel'
customInput={FieldText}
label={label}
value={value}
onChange={onChange}
disabled={disabled}
variant="filled"
id="filled-basic"
/>
);
}
FieldNumber.propTypes = {
label: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
disabled: PropTypes.bool,
format: PropTypes.string.isRequired,
};
45 changes: 45 additions & 0 deletions src/Components/FieldSelect/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React, { useState } from 'react';
import theme from "../../Styles/global";
import { FormControl, InputLabel, MenuItem, Select } from "@mui/material";
import 'dayjs/locale/pt-br'; // Importa a localização desejada para o dayjs


function FieldSelect({ label, value, onChange, options }) {
return (
<FormControl fullWidth sx={{ margin: '.7rem', backgroundColor: '#f5f5f5', borderRadius: '5px', width: 'inherit'}}>
<InputLabel id={`label-${label}`}>{label}</InputLabel>
<Select
labelId={`label-${label}`}
id={`select-${label}`}
value={value}
onChange={onChange}
label={label}
sx={{

background : "#e0d4cc",
backgroundColor : "#e0d4cc",
'& .MuiSelect-select': {
borderColor: theme.palette.custom.main
},
'& .MuiOutlinedInput-notchedOutline': {
borderColor: theme.palette.custom.main,
},
'&:hover .MuiOutlinedInput-notchedOutline': {
borderColor: theme.palette.custom.main,
},
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
borderColor: theme.palette.custom.main,
}
}}
>
{options.map((option) => (
<MenuItem key={option} value={option} sx={{ padding: '10px', backgroundColor: '#e0e0e0' }}>
{option}
</MenuItem>
))}
</Select>
</FormControl>
);
}

export default FieldSelect;
54 changes: 54 additions & 0 deletions src/Components/FieldText/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

import PropTypes from "prop-types";
import theme from "../../Styles/global";
import TextField from "@mui/material/TextField";

export default function FieldText({ label, value, onChange, disabled}) {

return (
<TextField
id="filled-basic"
label={label}
value={value}
variant="filled"
onChange={onChange}
disabled={disabled}

sx={{
margin: '.7rem',
background: "#EAE3D7",
backgroundColor: "#EAE3D7",
borderRadius: '5px',
"& .MuiInput-underline:before": {
borderBottomColor: theme.palette.custom.main, // Cor da borda inferior antes do foco
},
"& .MuiInput-underline:hover:before": {
borderBottomColor: theme.palette.custom.main, // Cor da borda inferior ao passar o mouse
},
"& .MuiInput-underline:after": {
borderBottomColor: theme.palette.custom.main, // Cor da borda inferior após o foco
},
"& .MuiInputBase-input": {
color: theme.palette.custom.contrastText, // Cor do texto
},
"& .MuiInputLabel-root": {
color: theme.palette.custom.main,
fontFamily: '"Noto Sans", sans-serif',
},
"& .MuiInputLabel-root.Mui-focused": {
color: theme.palette.custom.main, // Cor do rótulo quando focado
},
"& .MuiInputBase-input::placeholder": {
fontFamily: '"Overpass", sans-serif', // Fonte do placeholder
}
}}
/>
);
}

FieldText.propTypes = {
label: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
disabled: PropTypes.bool,
};
3 changes: 2 additions & 1 deletion src/Components/LabeledTextField/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from "prop-types";
import { theme } from "../../Styles/global";
import theme from "../../Styles/global";
import TextField from "@mui/material/TextField";


Expand All @@ -14,6 +14,7 @@ export default function LabeledTextField ({ label, placeholder, type, value, onC
value={value}
onChange={onChange}
sx={{
background: "#EAE3D7",
width: "400px",
fontFamily: "Noto Sans",
marginTop: "33px",
Expand Down
41 changes: 41 additions & 0 deletions src/Components/Modal/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal {
border-radius: 20px;
display: flex;
flex-direction: column;
align-items: center;
background: #EAE3D7;
padding: 40px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: relative;
width: auto;
max-width: 90%;
max-height: 90vh;
overflow-y: auto;
}

.modal-buttons {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
margin-top: 10px;
gap: 10px;
width: 100%;
}

.modal-buttons button {
flex: 1 1 auto;
}
49 changes: 49 additions & 0 deletions src/Components/Modal/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from "react";
import "./index.css";
import PropTypes from "prop-types";
import { Alert, AlertTitle } from "@mui/material";
import { useNavigate } from "react-router-dom";
import theme from '../../Styles/global';

export default function Modal({ show, children, alertTitle, buttons }) {
const navigate = useNavigate();

if (!show) {
return null;
}

return (
<div className="modal-overlay">
<div className="modal">
<Alert
severity="success"
variant="filled"
sx={{
backgroundColor: theme.palette.custom.button,
"& .MuiAlertTitle-root": {
fontFamily: theme.typography.fontFamilyPrimary,
},
"& .MuiAlert-message": {
fontFamily: theme.typography.fontFamilySecondary,
},
width: "100%", // Ajusta para 100% da largura do modal
}}
>
<AlertTitle>{alertTitle}</AlertTitle>
{children}
</Alert>

<div className="modal-buttons">
{buttons}
</div>
</div>
</div>
);
}

Modal.propTypes = {
show: PropTypes.bool.isRequired,
children: PropTypes.node.isRequired,
alertTitle: PropTypes.string.isRequired,
buttons: PropTypes.array,
};
2 changes: 1 addition & 1 deletion src/Components/PrimaryButton/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from "prop-types";
import { theme } from "../../Styles/global";
import theme from "../../Styles/global";
import { Button } from "@mui/material";

export default function PrimaryButton ({ text, onClick }) {
Expand Down
Loading