Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
f6f6857
fix: se removió boton sin uso
Rodrig0at May 13, 2025
4ca5084
fix: ajustar formato de declaración de constante MENSAJE_POPUP_ELIMINAR
Rodrig0at May 13, 2025
2644e13
Feat: Lógica implementada para actualizar grupo de empleados
angieriosc May 13, 2025
41ef2a9
fix: corregí los botones y al modal flotante lo puse en negritas
Rodrig0at May 13, 2025
45de743
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
Rodrig0at May 14, 2025
eddd777
feature: Modal para importar productos
NicoH00d May 22, 2025
91490fd
feat: modal para crear un evento
May 25, 2025
cf21cf1
fix: arreglar errores
May 25, 2025
33e7554
fix: validar campos
May 25, 2025
b9ffa63
fix: actualizar modelo de Evento
May 25, 2025
00ddb5d
feat: crear evento
May 25, 2025
9f7c2fb
style: validar campos
May 25, 2025
e14da8c
Merge branch 'develop' into feat/DAGP_RF36_CrearEvento
May 25, 2025
c375f89
fix: quitar console log
May 25, 2025
db58291
feat: validación extra de campos
May 25, 2025
7074efc
Merge branch 'develop' into feat/DAGP_RF36_CrearEvento
May 26, 2025
27a27fc
feat: agregar funcionalidad para leer productos
DiegoAlfaro1 May 26, 2025
d63473c
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
DiegoAlfaro1 May 26, 2025
fc7a5a3
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
angieriosc May 26, 2025
24b439f
fix: arreglar manejo de errores
DiegoAlfaro1 May 26, 2025
336c261
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
NicoH00d May 26, 2025
64a0c20
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
DiegoAlfaro1 May 26, 2025
aa3fb8e
fix: quitar campos de periodo y renovación del formulario
May 26, 2025
f2c7236
Merge branch 'develop' into feat/DAGP_RF36_CrearEvento
May 26, 2025
1712973
feat: agregar imagen al modal
DiegoAlfaro1 May 26, 2025
6dcd2e5
Merge branch 'feature/DA_RF28_leer-productos' of https://github.com/C…
DiegoAlfaro1 May 26, 2025
1c4fdcb
Feat: Chips dinamicos cuando se selecciona
angieriosc May 26, 2025
6304c6b
feat: agregar leer rol
DiegoAlfaro1 May 26, 2025
d5dc341
Merge pull request #142 from CodeAnd-Co/fix/HIML_RF8_LEER-ROL
DiegoAlfaro1 May 26, 2025
78fffaa
Feat: selecciones dinamicas con tabla
angieriosc May 27, 2025
b9fc589
feature/HIML_RF48_leer-categoria
Hiram10tec May 27, 2025
c9ad501
Fix(categorias): manejar el error de bd
Hiram10tec May 27, 2025
0e367e8
fix(categoría): manejar mejor los errores
Hiram10tec May 27, 2025
7ede19b
Fix(categorías): cambiar const a español
Hiram10tec May 27, 2025
5c06fbe
Fix(setproductos): cambiar const a español
Hiram10tec May 27, 2025
25b1ca5
Merge pull request #144 from CodeAnd-Co/feature/HIML_RF48_leer-categoria
Rodrig0at May 27, 2025
0ff29c2
Feat: recibir ids de empleados, y sets de productos
angieriosc May 27, 2025
51b25fc
feat:agregar funcionalidad para crear sets de productos
DiegoAlfaro1 May 27, 2025
b782962
fix: arreglar alertas
DiegoAlfaro1 May 28, 2025
6074ffe
fix: arrglar comentarios de hiram
DiegoAlfaro1 May 28, 2025
2cc4e2c
Merge pull request #145 from CodeAnd-Co/feature/DA_RF28_leer-producto…
Hiram10tec May 28, 2025
adce7d4
feature: Agregar logica de importacion de productos
NicoH00d May 28, 2025
1f9290c
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
NicoH00d May 28, 2025
4a34967
feature: Ajustar renderCell en lista productos para imagen de placeho…
NicoH00d May 28, 2025
28a3889
feature(categorias): avance sin funcionalidad completa de actualizar …
Hiram10tec May 28, 2025
dd3cc14
feat: validar campos
NicoH00d May 28, 2025
ed39ea7
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d May 29, 2025
9ef6206
fix: arreglar columnas para quitar los campos innecesarios
DiegoAlfaro1 May 29, 2025
95de384
Merge branch 'develop' into feat/DAGP_RF36_CrearEvento
DiegoAlfaro1 May 29, 2025
9b05e51
fix arreglar alerta
DiegoAlfaro1 May 29, 2025
dc861dc
Fix: Manejo de estados
angieriosc May 30, 2025
02532d5
Merge branch 'MBI-1' into feat/DAGP_RF36_CrearEvento
NicoH00d May 30, 2025
7af0d73
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
NicoH00d May 30, 2025
63d19c4
fix: agregar exportar por selección
May 31, 2025
6dec5f1
feat: agregar documentacion para importar
NicoH00d May 31, 2025
55bb344
fix: arreglar manejo de errores segun los errores encontrados en las …
DiegoAlfaro1 Jun 1, 2025
361189c
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
DiegoAlfaro1 Jun 1, 2025
6a51b83
Feat: manejar la seleccion de empleados y sets con una lista de trans…
angieriosc Jun 1, 2025
9f2d957
Implement user update functionality with validation and API integration
toscanodiaz Jun 1, 2025
f06e33a
feat: agregar componente de lista de transferencia
DiegoAlfaro1 Jun 1, 2025
0f1d75e
fix: cambiar nombre de el componente
DiegoAlfaro1 Jun 1, 2025
17eb133
Fix: recibir sets de productos para actualizar
angieriosc Jun 1, 2025
8c0515d
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
angieriosc Jun 1, 2025
661a22e
feat: render de lista de transferencia
DiegoAlfaro1 Jun 2, 2025
4961f7f
fix: arreglar loop infinito
DiegoAlfaro1 Jun 2, 2025
2a208be
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
DiegoAlfaro1 Jun 2, 2025
cdb1cf7
fix: arreglar loop infinito en la lista de transferencia
DiegoAlfaro1 Jun 2, 2025
06706da
feat: agregar funcionalidad de seleccionar y quitar todo con flechas
DiegoAlfaro1 Jun 2, 2025
22e6070
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
DiegoAlfaro1 Jun 2, 2025
25d8b10
feat: cambiar flechas a iconos de MUI
DiegoAlfaro1 Jun 2, 2025
2f4f418
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
DiegoAlfaro1 Jun 2, 2025
846924b
Fix: optimizar código
angieriosc Jun 2, 2025
31edc70
Fix: quitar console.log
angieriosc Jun 2, 2025
32543e7
Merge remote-tracking branch 'origin/componente/DA_no_ref_transfer_li…
Hiram10tec Jun 2, 2025
5e291f6
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
Rodrig0at Jun 2, 2025
80254e7
fix: arreglar errores de lint
DiegoAlfaro1 Jun 2, 2025
37c270a
Fix: empleados y sets de productos pueden estar vacios al actualizar
angieriosc Jun 2, 2025
39ce632
Feat: Nombre y descripción son campos obligatorios
angieriosc Jun 2, 2025
5193269
Feat: Manejo de errores
angieriosc Jun 2, 2025
6fa845b
Refactor user update forms to improve validation handling and integra…
toscanodiaz Jun 2, 2025
aa767db
Feat: Uso de iconos mui
angieriosc Jun 2, 2025
43f90c3
fix: documentacion de instrucciones
NicoH00d Jun 2, 2025
764b25e
Fix: Correciones eslint
angieriosc Jun 2, 2025
96130d7
Fix: correción loop renderización
angieriosc Jun 3, 2025
d421cea
Fix: correcion variables y es lint
angieriosc Jun 3, 2025
1766a01
Feat: Ordenar alfabeticamente los sets y empleados seleccionados
angieriosc Jun 3, 2025
684e999
chore: incluir rama para github actions
ZValer Jun 3, 2025
5dc50a7
Merge pull request #157 from CodeAnd-Co/feature/DA_RF41_crear-sets-pr…
ZValer Jun 3, 2025
d880f6e
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
ZValer Jun 3, 2025
7b88119
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
angieriosc Jun 3, 2025
0996f12
Add ModalActualizarUsuario component to encapsulate user update funct…
toscanodiaz Jun 3, 2025
6c11bce
Feat: Campo en rojo en caso de estar vacio (nombre, descripción)
angieriosc Jun 3, 2025
d725a86
feat: agregar logica y componentes para actualizar otros campos de rol
DiegoAlfaro1 Jun 3, 2025
fd8d0a2
feat: agregar exportar empleados
Jun 3, 2025
cf4cc7c
fix: cambiar las dimensiones de la transfer list
DiegoAlfaro1 Jun 3, 2025
ab1f8b0
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
DiegoAlfaro1 Jun 3, 2025
6b08bb2
feat: agregar hook y repositorio, solo falta el backend
DiegoAlfaro1 Jun 3, 2025
e0530e1
feat: agregar ruta de la API
DiegoAlfaro1 Jun 3, 2025
c009908
Add password confirmation validation and normalize user data in updat…
toscanodiaz Jun 3, 2025
d0d6eb1
Merge pull request #159 from CodeAnd-Co/feature/ARC_RF24_actualizar-g…
toscanodiaz Jun 3, 2025
b9175db
refactor: simplificar el modal de leer cuota
Rodrig0at Jun 3, 2025
35a8a55
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
Rodrig0at Jun 3, 2025
4a29bb6
style: centre el valor de la cuota
Rodrig0at Jun 3, 2025
78b726b
refactor: quité varibales sin usa y puse varibales en camel case
Rodrig0at Jun 3, 2025
68409ae
fix:deshabilitar botón de confirmación en la carga
Jun 3, 2025
6615f98
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
Rodrig0at Jun 3, 2025
1de0aa8
refactor: clean up imports and remove unnecessary comments in CuotasI…
Rodrig0at Jun 3, 2025
623fc08
refactor: quitar warning de lint
Rodrig0at Jun 3, 2025
79b3afb
Merge pull request #160 from CodeAnd-Co/feature/RA_US33_lee-set-cuotas
Hiram10tec Jun 3, 2025
9202e2f
Merge branch 'MBI-1' into feature/PG_RF59_exportar-empleados
DiegoAlfaro1 Jun 4, 2025
bdef5a9
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
toscanodiaz Jun 4, 2025
c69f686
feat: add estatus field to user update form and handle undefined values
toscanodiaz Jun 4, 2025
12f81f0
feat: agregar recarga al cerrar detalle para que se muestren los camb…
DiegoAlfaro1 Jun 4, 2025
f6d24b2
fix: hacer pull de develop
DiegoAlfaro1 Jun 4, 2025
7131787
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
DiegoAlfaro1 Jun 4, 2025
e94193a
Merge branch 'MBI-1' into feat/DAGP_RF36_CrearEvento
DiegoAlfaro1 Jun 4, 2025
235af5d
Merge pull request #135 from CodeAnd-Co/feat/DAGP_RF36_CrearEvento
DiegoAlfaro1 Jun 4, 2025
6e78e89
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
DiegoAlfaro1 Jun 4, 2025
f173b30
fix: corregir error de lint
Jun 5, 2025
27aa2be
Merge branch 'feature/PG_RF59_exportar-empleados' of https://github.c…
Jun 5, 2025
af392e3
fix: arreglar conflictos
DiegoAlfaro1 Jun 5, 2025
1fada7b
Merge branch 'MBI-1' into feature/PG_RF59_exportar-empleados
paolamgarrido Jun 5, 2025
06841fa
fix: arreglar errores de lint
DiegoAlfaro1 Jun 5, 2025
e524ee2
Merge branch 'componente/DA_no_ref_transfer_list' of https://github.c…
DiegoAlfaro1 Jun 5, 2025
107be11
Merge pull request #161 from CodeAnd-Co/feature/PG_RF59_exportar-empl…
angieriosc Jun 5, 2025
65215db
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
DiegoAlfaro1 Jun 5, 2025
36fb332
Merge pull request #162 from CodeAnd-Co/feature/DA_RF9_actualizar-rol
ArturoSanRod Jun 5, 2025
81b892b
feat: Agregar ruta, repositorio y hook actualizar set
ZValer Jun 5, 2025
2b163af
feature actualizar categoria
Hiram10tec Jun 5, 2025
12d2d28
merge: MBI-1
ZValer Jun 5, 2025
bc0d886
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
Hiram10tec Jun 5, 2025
fab4d65
errores lint y merge
Hiram10tec Jun 5, 2025
42b8550
Merge branch 'feature/HIML_RF49_actualizar-categoria' of https://gith…
Hiram10tec Jun 5, 2025
35bc89b
Corrección lint
Hiram10tec Jun 6, 2025
e1a7d94
feat: se agregó vista,hook y repositorio de exportar productos
Jun 6, 2025
5a2fce2
Fix: Fechas en archivos, de exportar productos y empleados
angieriosc Jun 6, 2025
6b983ff
Co-authored-by: Nicolas Hood Figueroa <NicoH00d@users.noreply.github.…
toscanodiaz Jun 6, 2025
0f739ee
Fix: variable en español
angieriosc Jun 6, 2025
3eae1e5
Fix: variable en español
angieriosc Jun 6, 2025
5d34210
Merge pull request #164 from CodeAnd-Co/feature/PG-ARC_RF58_Exportar-…
DiegoAlfaro1 Jun 6, 2025
673e94b
Agregar feature de actualizar categoria
Hiram10tec Jun 6, 2025
f19a1c4
fix: remove unnecessary line breaks in user update form
toscanodiaz Jun 6, 2025
8997803
Resolver conflictos en ListaCategorias
Hiram10tec Jun 6, 2025
dad89f2
fix: eliminar console log
NicoH00d Jun 6, 2025
78419ad
borrar archivo
Hiram10tec Jun 6, 2025
f474a46
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
Hiram10tec Jun 6, 2025
d07bb62
feat: Agregar lógica inicial para ediar set productos con listas tras…
ZValer Jun 6, 2025
60fb3aa
Ya no se renderiza la tabla de editar categoria a cada segundo
Hiram10tec Jun 6, 2025
629bf83
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d Jun 6, 2025
40727a5
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
NicoH00d Jun 6, 2025
b53f77a
feat: añadir archivo de ejemplo
NicoH00d Jun 6, 2025
80976bf
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
Hiram10tec Jun 6, 2025
e930407
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
DiegoAlfaro1 Jun 6, 2025
2c34d83
fix: mejorar documentacion para importar
NicoH00d Jun 6, 2025
e75096c
fix: arreglar alertas en crear categorias
DiegoAlfaro1 Jun 6, 2025
a22b06c
mover la alerta afuera del modal
Hiram10tec Jun 6, 2025
779c0cf
Pull de MBI-1
Hiram10tec Jun 6, 2025
263045f
fix: arreglar ancho de modal de leer producto
DiegoAlfaro1 Jun 6, 2025
e80d342
feat: Agregar switch de activo
ZValer Jun 6, 2025
615d357
Cambiar colores altertex
Hiram10tec Jun 6, 2025
9a6c631
Merge branches 'feature/HIML-RF49_Actualizar_Categoria_buena' and 'fe…
Hiram10tec Jun 6, 2025
382825d
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d Jun 6, 2025
fa3e266
Merge pull request #167 from CodeAnd-Co/feature/HIML-RF49_Actualizar_…
NicoH00d Jun 6, 2025
df772de
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d Jun 6, 2025
fcdacde
feat: agregar csrf y corregir defecto en leer producto
DiegoAlfaro1 Jun 6, 2025
1d368a1
feat: Lista de transferencia
ZValer Jun 6, 2025
cbf74d9
feat: Actualización de sets
ZValer Jun 6, 2025
37f8662
feat: Desplegar los productos iniciales para actualizar set
ZValer Jun 6, 2025
9cee82e
fix: Corregir errores de lint
ZValer Jun 6, 2025
0039bcf
Prueba semi funcional de actualizar set de cuotas
ArturoSanRod Jun 6, 2025
aa21341
Campos Completos de pedidos al editar
ArturoSanRod Jun 6, 2025
dc725a9
fix: opacidad de alerta y neuvo csv de ejemplo
NicoH00d Jun 6, 2025
2b80bff
fix:agregar Timeout al descargar plantillas para importar
NicoH00d Jun 6, 2025
287f40d
Fix: Manejo de errores, alertas, logica de petición axios
angieriosc Jun 6, 2025
b26725b
feature: RF16 agregar empleado
Jun 6, 2025
8a24ee5
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
Jun 6, 2025
06a5d07
fix: corregir errores de lint
Jun 6, 2025
d1afe42
Fix: espacio entre campos
angieriosc Jun 6, 2025
17d7a3b
fix: eliminar comentarios innecesarios y variables en ingles
DiegoAlfaro1 Jun 6, 2025
6d8120a
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ZValer Jun 6, 2025
be8cb23
fix: errores menores
NicoH00d Jun 6, 2025
397e281
fix: improve user update handling and validation messages
toscanodiaz Jun 6, 2025
4e1361e
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
toscanodiaz Jun 6, 2025
2d3c1c7
Merge branch 'MBI-1' into feat/DA_no_ref_agregar-CSRF
angieriosc Jun 6, 2025
756d1d8
Merge pull request #169 from CodeAnd-Co/feat/DA_no_ref_agregar-CSRF
angieriosc Jun 6, 2025
11a7bc0
implementar funcionalidad de actualizar set de cuotas
ArturoSanRod Jun 6, 2025
3d8a059
Manejo de console logs
ArturoSanRod Jun 6, 2025
82de7ec
Merge branch 'develop' of https://github.com/CodeAnd-Co/Frontend-Text…
ArturoSanRod Jun 6, 2025
9519e57
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ArturoSanRod Jun 6, 2025
1ca5265
fix: Corregir errores de pruebas
ZValer Jun 6, 2025
f95c0e0
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ZValer Jun 6, 2025
ebfb760
Fix de alertas
ArturoSanRod Jun 6, 2025
e9f7c19
idProducto Obligatorio
NicoH00d Jun 6, 2025
73bff76
excluir cambiar usuario a superadmin
toscanodiaz Jun 6, 2025
fbaef19
Fix: Correcciones eslint
angieriosc Jun 6, 2025
8034b7a
Fix: Correciones console.log
angieriosc Jun 6, 2025
4d12542
fix: update role filtering to exclude additional role ID
toscanodiaz Jun 6, 2025
b5700af
style: Hacer más grande el modal
ZValer Jun 6, 2025
cb4e061
feat: Usar componente de lista transferible
ZValer Jun 6, 2025
0089080
fix: Corregir errores de lint
ZValer Jun 6, 2025
fa75642
fix: adjust confirmation delay and update success alert message in us…
toscanodiaz Jun 6, 2025
7c56d5b
pull mbi
toscanodiaz Jun 6, 2025
8471589
fix: enhance user update confirmation with customizable alert message…
toscanodiaz Jun 6, 2025
bf13f34
fix: update password fields labels for clarity in user update form
toscanodiaz Jun 7, 2025
80de422
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d Jun 7, 2025
e7b92de
Fix de caracteres de limite de los productos
ArturoSanRod Jun 7, 2025
bdd2fc5
Merge pull request #168 from CodeAnd-Co/feature/NHF_RF56_ImportarProd…
ArturoSanRod Jun 7, 2025
7e049b7
errores de lint
toscanodiaz Jun 7, 2025
092eaed
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ZValer Jun 7, 2025
7fe9a1f
Merge pull request #171 from CodeAnd-Co/feat/VZ_RF44_Actualiza_set_pr…
DiegoAlfaro1 Jun 7, 2025
c180c3e
Merge branch 'MBI-1' into feature/ASR_RF62_Actualizar_Pedido
DiegoAlfaro1 Jun 7, 2025
b53b091
Merge pull request #172 from CodeAnd-Co/feature/ASR_RF62_Actualizar_P…
DiegoAlfaro1 Jun 7, 2025
2856692
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ArturoSanRod Jun 7, 2025
ba94ba1
Fix de errores de Lint
ArturoSanRod Jun 7, 2025
5f3ff70
fix: improve email validation and enhance date of birth checks in use…
toscanodiaz Jun 7, 2025
2d4dd94
Merge branch 'MBI-1' into fix/CIFM_RF16_Crear-empleado
NicoH00d Jun 7, 2025
20f1464
Merge pull request #170 from CodeAnd-Co/fix/CIFM_RF16_Crear-empleado
NicoH00d Jun 7, 2025
6c62a8f
fix: enhance gender handling in user data initialization for better i…
toscanodiaz Jun 7, 2025
2ed3c95
Fix de consol logs
ArturoSanRod Jun 7, 2025
96d88ba
Fix de console logs
ArturoSanRod Jun 7, 2025
0a26701
Arreglo de comentarios
ArturoSanRod Jun 7, 2025
68afd82
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
ArturoSanRod Jun 7, 2025
18227d6
Merge pull request #173 from CodeAnd-Co/feature/ASR_RF34_Actualizar_C…
angieriosc Jun 7, 2025
c6a6245
fix: improve validation and sanitization in user update form fields
toscanodiaz Jun 7, 2025
1386d8b
fix: arreglar el export para que no exporte 2
DiegoAlfaro1 Jun 7, 2025
7abaa53
Merge branch 'MBI-1' into fix/PG_arreglarcsv
ArturoSanRod Jun 7, 2025
1c78bbe
Merge pull request #175 from CodeAnd-Co/fix/PG_arreglarcsv
ArturoSanRod Jun 7, 2025
fc45422
Merge branch 'MBI-1' into feature/MT_RF4_ActualizaUsuario
toscanodiaz Jun 7, 2025
59344dd
fix: Agregar Validacion de permisos en las funcionalidades faltantes
NicoH00d Jun 7, 2025
bd17c36
Merge branch 'MBI-1' into fix/NHF_no_ref_permisos
DiegoAlfaro1 Jun 7, 2025
c8c261d
Merge pull request #176 from CodeAnd-Co/fix/NHF_no_ref_permisos
DiegoAlfaro1 Jun 7, 2025
2f10010
Merge branch 'feature/MT_RF4_ActualizaUsuario' of https://github.com/…
NicoH00d Jun 7, 2025
47e44dd
Merge branch 'MBI-1' of https://github.com/CodeAnd-Co/Frontend-Text-L…
NicoH00d Jun 7, 2025
00e66f1
fix: corregir despliegue de super Admin
NicoH00d Jun 7, 2025
a70a7ba
Quitar comentarios en inglés FormaCrearSetsProducto.jsx
Hiram10tec Jun 7, 2025
79254fc
Merge pull request #178 from CodeAnd-Co/Hiram10tec-patch-1
ArturoSanRod Jun 7, 2025
301ae5a
Merge branch 'MBI-1' into feature/MT_RF4_ActualizaUsuario
toscanodiaz Jun 7, 2025
8208ccb
Correcciones de comentarios
Hiram10tec Jun 7, 2025
1520b48
Merge branch 'MBI-1' into Hiram10tec-patch-1
Krlos7121 Jun 7, 2025
89b5379
Merge pull request #179 from CodeAnd-Co/Hiram10tec-patch-1
Krlos7121 Jun 7, 2025
576fd9e
fix: Despliegue de rol de usuario y eliminacion de carpeta
NicoH00d Jun 7, 2025
5e2104d
fix despliegue de roles
NicoH00d Jun 7, 2025
dfcec78
Merge pull request #180 from CodeAnd-Co/MBI-1
Krlos7121 Jun 7, 2025
1ce6895
fix: bloquear ñ y tíides en contraseña empleado
Jun 10, 2025
1bef5bb
Merge pull request #181 from CodeAnd-Co/fix/CIFM_RF16_arreglar-contra…
Hiram10tec Jun 10, 2025
011ffdc
fix: posicion de alerta al eliminar
NicoH00d Jun 13, 2025
e5de6c6
Mensaje de correo duplicado
NicoH00d Jun 13, 2025
31a5afe
Manejo de la alerta
NicoH00d Jun 13, 2025
fe3cc77
Merge branch 'MBI-1' into feature/MT_RF4_ActualizaUsuario
NicoH00d Jun 13, 2025
f071675
Merge pull request #174 from CodeAnd-Co/feature/MT_RF4_ActualizaUsuario
angieriosc Jun 13, 2025
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
5 changes: 1 addition & 4 deletions .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- staging
- develop
- MBI-1

jobs:
lint:
Expand All @@ -18,10 +19,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:

node-version: '22.14'


- name: Install dependencies
run: npm install

Expand All @@ -38,13 +37,11 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:

node-version: '22.14'

- name: Install dependencies
run: npm install


- name: Run Build

run: npm run build
26 changes: 26 additions & 0 deletions public/ejemplo_importar_productos.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
idProducto,idProveedor,nombreProducto,nombreComercial,descripcionProducto,tipoProducto,marca,modelo,costo,precioVenta,precioCliente,precioPuntos,impuesto,descuento,estado,envio,nombreVariante,descripcionVariante,valorOpcion,SKUcomercial,cantidad,costoAdicional,descuentoOpcion,estadoOpcion
P1,101,Próducto 1,Comercial 1,Descripcion del producto 2,GENERAL,Marca1,M1,100,296.33,221.59,1,16,0,1,1,Variante 1,Variante 1 del producto 1,Opcion1,SKU-COM-1-1-1,1,0,0,1
P1,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 1,Opcion2,SKU-COM-1-1-2,17,0,0,1
P1,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 1,Opcion3,SKU-COM-1-1-3,17,0,0,1
P1,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 1,Opcion4,SKU-COM-1-1-4,17,0,0,1
P1,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 1,Opcion5,SKU-COM-1-1-5,8,0,0,1
P1,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 1,Opcion1,SKU-COM-1-2-1,14,20,0,1
P1,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 1,Opcion2,SKU-COM-1-2-2,11,20,0,1
P1,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 1,Opcion3,SKU-COM-1-2-3,13,20,0,1
P1,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 1,Opcion4,SKU-COM-1-2-4,12,20,0,1
P1,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 1,Opcion5,SKU-COM-1-2-5,12,20,0,1
P2,101,Producto 2,Comercial 2,Descripcion del producto 11,GENERAL,Marca2,M2,56.48,229.2,190.15,12,16,0,1,1,Variante 1,Variante 1 del producto 2,Opcion1,SKU-COM-2-1-1,7,0,0,1
P2,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 2,Opcion2,SKU-COM-2-1-2,11,0,0,1
P2,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 2,Opcion3,SKU-COM-2-1-3,13,0,0,1
P2,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 2,Opcion4,SKU-COM-2-1-4,17,0,0,1
P2,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 2,Opcion5,SKU-COM-2-1-5,6,0,0,1
P2,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 2,Opcion1,SKU-COM-2-2-1,18,10,0,1
P2,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 2,Opcion2,SKU-COM-2-2-2,5,10,0,1
P2,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 2,Opcion3,SKU-COM-2-2-3,13,10,0,1
P2,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 2,Opcion4,SKU-COM-2-2-4,18,10,0,1
P2,,,,,,,,,,,,,,,,Variante 2,Variante 2 del producto 2,Opcion5,SKU-COM-2-2-5,11,10,0,1
P3,101,Producto 3,Comercial 3,Descripcion del producto 22,GENERAL,Marca3,M3,80.76,289.09,186.15,45,16,0,1,1,Variante 1,Variante 1 del producto 3,Opcion1,SKU-COM-3-1-1,18,0,0,1
P3,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 3,Opcion2,SKU-COM-3-1-2,18,0,0,1
P3,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 3,Opcion3,SKU-COM-3-1-3,18,0,0,1
P3,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 3,Opcion4,SKU-COM-3-1-4,14,0,0,1
P3,,,,,,,,,,,,,,,,Variante 1,Variante 1 del producto 3,Opcion5,SKU-COM-3-1-5,11,0,0,1
1 change: 1 addition & 0 deletions public/plantilla_importar_productos.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
idProducto,idProveedor,nombreProducto,nombreComercial,descripcionProducto,tipoProducto,marca,modelo,costo,precioVenta,precioCliente,precioPuntos,impuesto,descuento,estado,envio,nombreVariante,descripcionVariante,valorOpcion,SKUautomatico,SKUcomercial,cantidad,costoAdicional,descuentoOpcion,estadoOpcion
4 changes: 4 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@
*/ #root {
text-align: center;
}

.css-1sf6n0n-MuiDataGrid-root {
height: auto !important;
}
14 changes: 14 additions & 0 deletions src/Dominio/Modelos/Cuotas/LeerCuota.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
Modelo de dominio para la lectura de una cuota.
RF[33] - Leer cuota - [https://codeandco-wiki.netlify.app/docs/proyectos/textiles/documentacion/requisitos/RF33]
*/

export class LeerCuota {
constructor({ idCuota, nombre, descripcion, productos = [], cuotas = [] }) {
this.idCuota = idCuota;
this.nombre = nombre;
this.descripcion = descripcion;
this.productos = productos;
this.cuotas = cuotas;
}
}
114 changes: 114 additions & 0 deletions src/Dominio/Modelos/Empleados/CrearEmpleado.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
//RF16 - Crear empleado - https://codeandco-wiki.netlify.app/docs/proyectos/textiles/documentacion/requisitos/RF16

/**
* Valida los datos del formulario para crear un empleado.
* Devuelve un objeto con los campos que tienen errores.
* @param {Object} datos - Datos del empleado
* @returns {Object} errores - Campos con error
*/

export const validarDatosCrearEmpleado = (datos, empleadosExistentes = []) => {
const errores = {};

if (!datos.nombreCompleto || datos.nombreCompleto.trim() === '') {
errores.nombreCompleto = 'El campo es obligatorio';
}

if (!datos.fechaNacimiento) {
errores.fechaNacimiento = 'El campo es obligatorio';
} else {
const hoy = new Date();
const fecha = new Date(datos.fechaNacimiento);

if (fecha > hoy) {
errores.fechaNacimiento = 'La fecha no puede ser futura';
} else {
// Calcular la fecha mínima permitida (18 años antes de hoy)
const fechaMinima = new Date(hoy.getFullYear() - 18, hoy.getMonth(), hoy.getDate());
if (fecha > fechaMinima) {
errores.fechaNacimiento = 'El empleado debe tener al menos 18 años al día de hoy';
}
}
}

const tieneCaracterEspecial = /[!@#$%^&*(),.?":{}|<>]/;
const tieneMayuscula = /[A-Z]/;

if (!datos.genero) errores.genero = true;

const correoValido = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (!datos.correoElectronico) {
errores.correoElectronico = true;
} else if (!correoValido.test(datos.correoElectronico)) {
errores.correoElectronico = 'Correo electrónico no válido';
}
const telefonoValido = /^\d{10}$/;

if (!datos.numeroTelefono) {
errores.numeroTelefono = true;
} else if (!telefonoValido.test(datos.numeroTelefono)) {
errores.numeroTelefono = 'El número de teléfono debe tener exactamente 10 dígitos';
} else if (empleadosExistentes.some((empleado) => empleado.telefono === datos.numeroTelefono)) {
errores.numeroTelefono = 'Este número ya está registrado';
}

if (!datos.direccion || datos.direccion.trim() === '') {
errores.direccion = true;
}

if (!datos.contrasenia || datos.contrasenia.trim() === '') {
errores.contrasenia = true;
} else {
const contraseniaSinEspacios = datos.contrasenia.replace(/\s/g, '');
if (datos.contrasenia.length < 8) {
errores.contrasenia = 'La contraseña debe tener al menos 8 caracteres';
} else if (!tieneCaracterEspecial.test(datos.contrasenia)) {
errores.contrasenia
= 'Debe contener al menos uno de estos caracteres: ! @ # $ % ^ & * ( ) , . ? " : { } | < >';
} else if (contraseniaSinEspacios.length < 2) {
errores.contrasenia
= 'La contraseña no puede estar compuesta solo de espacios y un carácter especial';
} else if (!tieneMayuscula.test(datos.contrasenia)) {
errores.contrasenia = 'Debe contener al menos una letra mayúscula';
}
}
if (!datos.confirmarContrasenia || datos.confirmarContrasenia.trim() === '') {
errores.confirmarContrasenia = true;
} else if (datos.contrasenia !== datos.confirmarContrasenia) {
errores.confirmarContrasenia = 'Las contraseñas no coinciden';
}

if (!datos.numeroEmergencia || datos.numeroEmergencia.trim() === '') {
errores.numeroEmergencia = true;
} else if (!telefonoValido.test(datos.numeroEmergencia)) {
errores.numeroEmergencia = 'El número de emergencia debe tener exactamente 10 dígitos';
}
if (!datos.areaTrabajo || datos.areaTrabajo.trim() === '') {
errores.areaTrabajo = 'El campo no puede estar vacío ni contener sólo espacios';
}
if (!datos.areaTrabajo || datos.areaTrabajo.trim() === '') {
errores.areaTrabajo = true;
}
if (!datos.posicion || datos.posicion.trim() === '') {
errores.posicion = 'El campo no puede estar vacío ni contener sólo espacios';
}

if (!datos.cantidadPuntos || isNaN(datos.cantidadPuntos) || datos.cantidadPuntos < 0) {
errores.cantidadPuntos = 'La cantidad de puntos debe ser un número positivo';
}

if (!datos.antiguedad) {
errores.antiguedad = 'La antigüedad es requerida';
} else {
const hoy = new Date();
const antiguedadFecha = new Date(datos.antiguedad);
if (antiguedadFecha > hoy) {
errores.antiguedad = 'La antigüedad no puede ser una fecha futura';
}
}
if (!datos.antiguedad) {
errores.antiguedad = true;
}

return errores;
};
16 changes: 15 additions & 1 deletion src/Dominio/Modelos/Empleados/GrupoEmpleadosLectura.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,25 @@
*/

export class GrupoEmpleadosLectura {
constructor({ idGrupo, nombre, descripcion, setsProductos = [], empleados = [] }) {
constructor({
idGrupo,
nombre,
descripcion,
setsProductos = [],
idsSetProductos = [],
empleados = [],
idsEmpleados = [],
empleadosActualizar = [],
setProductosActualizar = [],
}) {
this.idGrupo = idGrupo;
this.nombre = nombre;
this.descripcion = descripcion;
this.setsProductos = setsProductos;
this.idsSetProductos = idsSetProductos;
this.empleados = empleados;
this.idsEmpleados = idsEmpleados;
this.empleadosActualizar = empleadosActualizar;
this.setProductosActualizar = setProductosActualizar;
}
}
19 changes: 18 additions & 1 deletion src/Dominio/Modelos/Eventos/Eventos.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
export class Evento {
constructor({ idEvento, nombre, descripcion, puntos, periodoRenovacion, renovacion }) {

/**
* Clase que representa un evento.
*
* @constructor
* @param {Object} params - Parámetros del evento.
* @param {int} params.idEvento - ID del evento.
* @param {int} params.idCliente - ID del cliente asociado al evento.
* @param {string} params.nombre - Nombre del evento.
* @param {string} params.descripcion - Descripción del evento.
* @param {float} params.puntos - Puntos asociados al evento.
* @param {float} params.multiplicador - Multiplicador de puntos del evento.
* @param {string} params.periodoRenovacion - Periodo de renovación del evento.
* @param {bool} params.renovacion - Indica si el evento es renovable.
*/
constructor({ idEvento = 0, idCliente = 0, nombre = '', descripcion = '', puntos = 0, multiplicador = 0, periodoRenovacion = '', renovacion = false }) {
this.idEvento = idEvento;
this.idCliente = idCliente;
this.nombre = nombre;
this.descripcion = descripcion;
this.puntos = puntos;
this.multiplicador = multiplicador;
this.periodo = periodoRenovacion;
this.renovacion = renovacion;
}
Expand Down
9 changes: 9 additions & 0 deletions src/Dominio/Modelos/Pedidos/PedidoModelo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export class PedidoModelo {
constructor({ idPedido, estado, precioTotal, idEnvio, idPago }) {
this.idPedido = idPedido || '';
this.estado = estado || '';
this.precioTotal = precioTotal || 0;
this.idEnvio = idEnvio || '';
this.idPago = idPago || '';
}
}
61 changes: 61 additions & 0 deletions src/Dominio/Modelos/Productos/InfoProducto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* Modelo de información de un producto
* RF[28] Lee información del producto - https://codeandco-wiki.netlify.app/docs/proyectos/textiles/documentacion/requisitos/RF28
*/

export class InfoProducto {
constructor({ producto = {} }) {
this.idProducto = producto.idProducto ?? null;
this.nombreComun = producto.nombreComun ?? '';
this.nombreComercial = producto.nombreComercial ?? '';
this.tipoProducto = producto.tipoProducto ?? '';
this.marca = producto.marca ?? '';
this.modelo = producto.modelo ?? '';
this.estado = producto.estado ?? null;
this.idProveedor = producto.idProveedor ?? null;
this.nombreProveedor = producto.nombreProveedor ?? '';
this.precioVenta = producto.precioVenta ?? 0;
this.precioCliente = producto.precioCliente ?? 0;
this.precioPuntos = producto.precioPuntos ?? 0;
this.costo = producto.costo ?? 0;
this.envio = producto.envio ?? 0;
this.impuesto = producto.impuesto ?? 0;
this.descuento = producto.descuento ?? 0;

// Variantes del producto (puede ser un arreglo vacío)
this.variantes = Array.isArray(producto.variantes)
? producto.variantes.map((variante) => new VarianteProducto(variante))
: [];
}
}

class VarianteProducto {
constructor({ idVariante, nombreVariante, descripcion, opciones = [] }) {
this.idVariante = idVariante ?? null;
this.nombreVariante = nombreVariante ?? '';
this.descripcion = descripcion ?? '';
this.opciones = Array.isArray(opciones)
? opciones.map((opcion) => new OpcionVariante(opcion))
: [];
}
}

class OpcionVariante {
constructor({
estado,
cantidad,
descuento,
valorOpcion,
SKUcomercial,
SKUautomatico,
costoAdicional,
}) {
this.estado = estado ?? null;
this.cantidad = cantidad ?? 0;
this.descuento = descuento ?? 0;
this.valorOpcion = valorOpcion ?? '';
this.SKUcomercial = SKUcomercial ?? '';
this.SKUautomatico = SKUautomatico ?? '';
this.costoAdicional = costoAdicional ?? 0;
}
}
23 changes: 23 additions & 0 deletions src/Dominio/Modelos/Roles/DetalleRol.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* @class DetalleRol
* Representa el detalle completo de un rol en el sistema.
*/
export class DetalleRol {
constructor({ idRol, nombre, descripcion, totalUsuarios, permisos }) {
this.idRol = idRol ?? null;
this.nombre = nombre ?? '';
this.descripcion = descripcion ?? '';
this.totalUsuarios = totalUsuarios ?? 0;
this.permisos = permisos ?? [];
}
}

/**
* Convierte una respuesta JSON del backend en una instancia de DetalleRol.
* @param {object} respuestaJson
* @returns {DetalleRol}
*/
export function modeloDetalleRol(respuestaJson) {
const { rol } = respuestaJson;
return new DetalleRol(rol);
}
13 changes: 13 additions & 0 deletions src/Dominio/Modelos/SetsProductos/CrearSetsProductos.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Modelo para crear un set de productos
* Representa los datos necesarios para crear un nuevo set de productos.
*/
export class CrearSetsProducto {
constructor({ nombre, nombreVisible, descripcion, productos }) {
this.nombre = nombre;
this.nombreVisible = nombreVisible;
this.descripcion = descripcion;
this.activo = 1;
this.idProductos = productos.map(producto => producto.idProducto);
}
}
3 changes: 2 additions & 1 deletion src/Dominio/Modelos/SetsProductos/SetProductos.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
*/

export class SetProductos {
constructor({ idSetProducto, nombre, descripcion, activo, productos, grupos }) {
constructor({ idSetProducto, nombre, descripcion, activo, productos, grupos, idsProductos }) {
this.idSetProducto = idSetProducto;
this.nombre = nombre;
this.descripcion = descripcion;
this.activo = activo;
this.productos = productos;
this.grupos = grupos;
this.idsProductos = idsProductos;
}
}
Loading