-
Notifications
You must be signed in to change notification settings - Fork 0
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
Development deploy 2 #36
Changes from all commits
f61e3ea
d1901cc
afbdf64
8dbd5e2
80eb7db
d0d8847
316f9b0
56c5eca
5cc953c
0639928
15f735d
c78cb0b
6899bbd
05aef03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
name: Condor Code Review | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install condor_code_reviewer | ||
|
||
- name: Run Condor | ||
run: condor --gh-api-key ${{ secrets.GH_API_KEY }} --assistant-id ${{ secrets.ASSISTANT_ID }} --pull-request-url ${{ github.event.pull_request.html_url }} | ||
run: condor --openai-key ${{ secrets.OPENAI_KEY }} --gh-api-key ${{ secrets.GH_API_KEY }} --assistant-id ${{ secrets.ASSISTANT_ID }} --pull-request-url ${{ github.event.pull_request.html_url }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
import React, { useState } from 'react'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simbologia.jsx File ReviewOverall FeedbackThe Specific Feedback
Code Suggestions
Recommendations for Improvement
By applying these improvements and maintaining code cleanliness, the component will be more efficient and easier for other developers to build upon. |
||
import deportes from '../assets/deportes.png'; | ||
import eventos from '../assets/eventos.png'; | ||
import eventos from '../assets/eventos2.png'; | ||
import gastronomia from '../assets/gastronomia.png'; | ||
import hospedaje from '../assets/hospedaje.png'; | ||
import hospedaje from '../assets/hospedaje2.png'; | ||
import servicios from '../assets/servicios.png'; | ||
import turismo from '../assets/turismo.png'; | ||
import camping from '../assets/camping2.png'; | ||
|
||
const Simbologia = () => { | ||
const [selectedTitle, setSelectedTitle] = useState(''); | ||
|
||
// Definimos un objeto para asociar imágenes con títulos | ||
const iconos = [ | ||
{ src: deportes, title: 'Deportes' }, | ||
{ src: eventos, title: 'Eventos' }, | ||
{ src: gastronomia, title: 'Gastronomía' }, | ||
// { src: deportes, title: 'Deportes' }, | ||
{ src: hospedaje, title: 'Hospedaje' }, | ||
{ src: servicios, title: 'Servicios Comunitarios' }, | ||
{ src: turismo, title: 'Turismo' }, | ||
{ src: camping, title: 'Camping' }, | ||
{ src: servicios, title: 'Servicios y Oficios' }, | ||
{ src: eventos, title: 'Eventos' }, | ||
// { src: gastronomia, title: 'Gastronomía' }, | ||
// { src: turismo, title: 'Turismo' }, | ||
]; | ||
|
||
const handleClick = (title) => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,8 @@ const lugares = [ | |
horario_apertura: '10:00 AM', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lugares.js File ReviewOverall FeedbackThe Specific Feedback
Code Suggestions
Recommendations for Improvement
By applying these recommendations, this file will remain a resilient and useful part of your codebase, aligned with international coding standards and practices. |
||
horario_cierre: '10:00 PM', | ||
imagen: 'https://www.castelloninformacion.com/wp-content/uploads/2024/01/festival-cometas.jpg', | ||
rating: 's/n' | ||
rating: 'n/a', | ||
reseñas: [] | ||
}, | ||
{ | ||
id: 7, | ||
|
@@ -142,7 +143,12 @@ const lugares = [ | |
horario_apertura: '09:00 AM', | ||
horario_cierre: '05:00 PM', | ||
imagen: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQLvV61De4OClkKAKRsigpqN1L1se-qG6IagQ&s', | ||
rating: 4.6 | ||
rating: 4.6, | ||
reseñas: [ | ||
{ autor: 'María Silva', comentario: 'Muy interesante y entretenida. Excelente comida.', puntuacion: 4.5 }, | ||
{ autor: 'Pedro Rojas', comentario: 'Gran variedad de productos locales. Muy recomendado.', puntuacion: 5 }, | ||
{ autor: 'Luisa Pérez', comentario: 'Un evento muy bonito y bien organizado. Volvería.', puntuacion: 4.3 } | ||
] | ||
}, | ||
|
||
// GASTRONOMIA | ||
|
@@ -161,7 +167,13 @@ const lugares = [ | |
horario_apertura: '12:00 PM', | ||
horario_cierre: '10:00 PM', | ||
imagen: 'https://ralfvanveen.com/wp-content/uploads/2021/06/Placeholder-_-Glossary.svg', | ||
rating: 4.3 | ||
rating: 4.3, | ||
reseñas: [ | ||
{ autor: 'Andrés Soto', comentario: 'Excelente comida y ambiente. Muy recomendado.', puntuacion: 4.5 }, | ||
{ autor: 'Carmen Díaz', comentario: 'Platos deliciosos y atención de primera. Volveré.', puntuacion: 4.0 }, | ||
{ autor: 'Javier Torres', comentario: 'Muy buena comida y precios razonables. Volvería.', puntuacion: 4.4 } | ||
] | ||
|
||
}, | ||
{ | ||
id: 9, | ||
|
@@ -178,7 +190,11 @@ const lugares = [ | |
horario_apertura: '10:00 AM', | ||
horario_cierre: '08:00 PM', | ||
imagen: 'https://ralfvanveen.com/wp-content/uploads/2021/06/Placeholder-_-Glossary.svg', | ||
rating: 4.7 | ||
rating: 4.7, | ||
reseñas: [ | ||
{ autor: 'María Pérez', comentario: 'Comida deliciosa y atención amable. Muy recomendado.', puntuacion: 4.8 }, | ||
{ autor: 'Pedro Muñoz', comentario: 'Excelente comida casera y precios razonables. Volveré.', puntuacion: 4.6 } | ||
] | ||
}, | ||
|
||
// SERVICIOS COMUNITARIOS | ||
|
@@ -257,7 +273,12 @@ const lugares = [ | |
horario_apertura: '08:00 AM', | ||
horario_cierre: '06:00 PM', | ||
imagen: 'https://www.diarioelcentro.cl/wp-content/uploads/2022/12/Altos-de-Lircay-2.jpg', | ||
rating: 4.9 | ||
rating: 4.9, | ||
reseñas: [ | ||
{ autor: 'Marcela Soto', comentario: 'Hermoso parque con rutas de senderismo increíbles.', puntuacion: 5 }, | ||
{ autor: 'Juan Torres', comentario: 'Un lugar maravilloso para disfrutar de la naturaleza.', puntuacion: 4.8 }, | ||
{ autor: 'Andrea Pérez', comentario: 'Excelente lugar para hacer trekking y disfrutar de la naturaleza.', puntuacion: 4.9 } | ||
] | ||
}, | ||
{ | ||
id: 15, | ||
|
@@ -302,7 +323,12 @@ const lugares = [ | |
horario_apertura: '09:00 AM', | ||
horario_cierre: '09:00 PM', | ||
imagen: 'https://termaschillan.cl/wp-content/uploads/2022/10/puerto_htch_jun2019-514-Edit-1024x683.jpg', | ||
rating: 5 | ||
rating: 5, | ||
reseñas: [ | ||
{ autor: 'Cristina Torres', comentario: 'Un lugar increíble para relajarse y disfrutar de la naturaleza.', puntuacion: 5 }, | ||
{ autor: 'Pedro Soto', comentario: 'Excelente servicio y aguas termales muy relajantes.', puntuacion: 5 }, | ||
{ autor: 'María Pérez', comentario: 'Muy recomendado para un fin de semana de relajo.', puntuacion: 5 } | ||
] | ||
}, | ||
{ | ||
id: 18, | ||
|
@@ -347,7 +373,11 @@ const lugares = [ | |
horario_apertura: '24 horas', | ||
horario_cierre: '24 horas', | ||
imagen :'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRW7MxUQCL7EPugV5e4d23OE0IbIK6aC3z1TA&s', | ||
rating: 5 | ||
rating: 5, | ||
reseñas: [ | ||
{ autor: 'Juan Pérez', comentario: 'Un lugar increíble para pescar y disfrutar de la naturaleza.', puntuacion: 5 }, | ||
{ autor: 'Carla Soto', comentario: 'Hermoso río con paisajes impresionantes. Muy recomendado.', puntuacion: 5 } | ||
] | ||
} | ||
]; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ import '../styles/servicios.css'; | |
import { useAuth0 } from '@auth0/auth0-react'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. servicios.jsx File ReviewOverall FeedbackThe Specific Feedback
Code Suggestions
Recommendations for Improvement
Adhering to these recommendations can lead to a more maintainable and scalable code base, supportive of future needs and enhancements. Keep up the solid effort on organization and clarity in your code! |
||
import Navbar from '../components/Navbar'; | ||
import Footer from '../components/Footer'; | ||
import deportes from '../assets/deportes.png'; | ||
import eventos from '../assets/eventos.png'; | ||
import camping from '../assets/camping2.png'; | ||
import eventos from '../assets/eventos2.png'; | ||
import gastronomia from '../assets/gastronomia.png'; | ||
import hospedaje from '../assets/hospedaje.png'; | ||
import hospedaje from '../assets/hospedaje2.png'; | ||
import servicios from '../assets/servicios.png'; | ||
import turismo from '../assets/turismo.png'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
@@ -32,6 +32,7 @@ const Servicios = () => { | |
hospedaje: 'Encuentra alojamientos cómodos y asequibles en tu destino deseado.', | ||
servicios: 'Accede a una amplia gama de servicios locales que facilitarán tu vida.', | ||
turismo: 'Explora las atracciones turísticas más populares y disfruta de tu viaje al máximo.', | ||
camping: 'Disfruta de la naturaleza y acampa en lugares designados para experimentar al aire libre. Encuentra sitios ideales para montar tiendas, hacer fogatas y vivir aventuras en entornos naturales.', | ||
}; | ||
|
||
return ( | ||
|
@@ -55,12 +56,13 @@ const Servicios = () => { | |
|
||
<h3 className="business-promotion-title">Servicios disponibles</h3> | ||
<div className="icon-container"> | ||
<img src={deportes} alt="Deportes" onClick={() => handleIconClick('deportes')} /> | ||
<img src={eventos} alt="Eventos" onClick={() => handleIconClick('eventos')} /> | ||
<img src={gastronomia} alt="Gastronomía" onClick={() => handleIconClick('gastronomia')} /> | ||
<img src={hospedaje} alt="Hospedaje" onClick={() => handleIconClick('hospedaje')} /> | ||
<img src={camping} alt="Camping" onClick={() => handleIconClick('camping')} /> | ||
{/* <img src={deportes} alt="Deportes" onClick={() => handleIconClick('deportes')} /> */} | ||
{/* <img src={gastronomia} alt="Gastronomía" onClick={() => handleIconClick('gastronomia')} /> */} | ||
<img src={servicios} alt="Servicios" onClick={() => handleIconClick('servicios')} /> | ||
<img src={turismo} alt="Turismo" onClick={() => handleIconClick('turismo')} /> | ||
<img src={eventos} alt="Eventos" onClick={() => handleIconClick('eventos')} /> | ||
{/* <img src={turismo} alt="Turismo" onClick={() => handleIconClick('turismo')} /> */} | ||
</div> | ||
{/* Mostrar la información del servicio seleccionado */} | ||
{selectedService && ( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ import Navbar from '../../components/Navbar'; | |
import Footer from '../../components/Footer'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perfil.jsx File ReviewOverall FeedbackThe Specific Feedback
Code Suggestions
Recommendations for Improvement
Overall, the component is well-crafted, and by considering these additions, you can enhance functionality and user experience even further. Great work on maintaining clarity and organization within the code! |
||
import '../../styles/users/perfil.css'; | ||
|
||
|
||
const Perfil = () => { | ||
const { user, isAuthenticated, isLoading, logout } = useAuth0(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,8 +297,11 @@ background-color: white; /* Fondo blanco para la legibilidad */ | |
justify-content: center; /* Centra verticalmente */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mapa.css File ReviewOverall FeedbackThe CSS file Specific Feedback
Code Suggestions
Recommendations for Improvement
Taking the above steps can lead to a cleaner, more maintainable style sheet, while also preparing the groundwork for potential theme management needs in the future development of the application. |
||
padding: 20px; /* Espaciado interno */ | ||
border-radius: 10px; /* Esquinas redondeadas */ | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */ | ||
/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); Sombra suave */ | ||
margin-bottom: 20px; /* Espaciado inferior */ | ||
border: 2px #714dc9; /* Borde morado más grueso */ | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Aumenta la sombra para darle más profundidad */ | ||
background-color: #ffffff; /* Asegura un fondo blanco */ | ||
} | ||
|
||
/* Contenedor para los iconos */ | ||
|
@@ -308,8 +311,6 @@ background-color: white; /* Fondo blanco para la legibilidad */ | |
cursor: pointer; /* Cambia el cursor al pasar por encima */ | ||
} | ||
|
||
|
||
|
||
/* Efecto de hover en el icono */ | ||
.icon:hover { | ||
transform: scale(1.1); /* Aumenta el tamaño al pasar el ratón */ | ||
|
@@ -319,7 +320,7 @@ background-color: white; /* Fondo blanco para la legibilidad */ | |
.selected-title { | ||
margin-top: 20px; /* Espaciado superior */ | ||
font-size: 1.5rem; /* Tamaño de fuente para el título */ | ||
font-weight: bold; /* Negrita */ | ||
color: #714dc9; /* Color morado para el título */ | ||
/* font-weight: bold; Negrita */ | ||
color: #555; /* Color morado para el título */ | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,14 @@ html, body { | |
transform: scale(1.1); /* Efecto de aumento al pasar el mouse */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. servicios.css File ReviewOverall FeedbackThe Specific Feedback
Code Suggestions
Recommendations for Improvement
Applying these recommendations will support defining a stronger, more manageable style sheet that is ready for dynamic and aesthetic future usages across the application. Keep up the strong foundational work! |
||
} | ||
|
||
.service-info { | ||
text-align: center; /* Centra el texto */ | ||
max-width: 600px; /* Ajusta el ancho según sea necesario */ | ||
margin: 20px auto; /* Centra el contenedor horizontalmente y añade margen superior e inferior */ | ||
color: #555; | ||
} | ||
|
||
|
||
/* Sección de introducción con imagen y texto */ | ||
.intro-section { | ||
display: flex; | ||
|
@@ -42,22 +50,22 @@ html, body { | |
|
||
.intro-text { | ||
max-width: 600px; | ||
color: #6c3bcc; /* Color del texto */ | ||
/* color: #6c3bcc; Color del texto */ | ||
/* font-family: 'Montserrat'; */ | ||
/* text-align: center; Centra el título y subtítulo */ | ||
} | ||
|
||
.intro-text h1 { | ||
font-size: 30px; | ||
color: #E2974B; | ||
color: black; | ||
/* font-family: 'Montserrat'; */ | ||
margin-bottom: 10px; /* Ajusta el espacio debajo del título */ | ||
text-align: center; | ||
} | ||
|
||
.subtitle { | ||
font-size: 20px; | ||
color: #6c3bcc; /* Color morado para el subtítulo */ | ||
color: #E2974B; /* Color morado para el subtítulo */ | ||
/* font-family: 'Montserrat'; */ | ||
font-weight: 600; | ||
margin-bottom: 20px; /* Espaciado debajo del subtítulo */ | ||
|
@@ -76,7 +84,7 @@ html, body { | |
.button { | ||
display: block; | ||
margin: 20px auto; /* Esto centrará el botón horizontalmente y añadirá margen superior e inferior */ | ||
background-color: #714dc9; /* Color del botón */ | ||
background-color: #E2974B; /* Color del botón */ | ||
color: white; | ||
font-weight: bold; | ||
padding: 15px 20px; | ||
|
@@ -86,11 +94,16 @@ html, body { | |
/* font-family: 'Montserrat'; */ | ||
} | ||
|
||
.button:hover { | ||
background-color: black; /* Cambia el color a negro al pasar el mouse */ | ||
color: white; /* Asegúrate de que el texto siga siendo visible */ | ||
} | ||
|
||
/* Alinear el título con el texto y ajustar el espacio */ | ||
.business-promotion-title { | ||
text-align: left; /* Alineación a la izquierda */ | ||
font-size: 22px; | ||
color: #6c3bcc; /* Color morado para el título */ | ||
color: #E2974B; /* Color morado para el título */ | ||
font-weight: bold; | ||
margin-top: 40px; /* Espacio entre los iconos y el título */ | ||
max-width: 800px; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoogleMap.jsx File Review
Overall Feedback
The GoogleMap.jsx file appears to implement a map component using the
@react-google-maps/api
library. It includes functionality for displaying markers loaded from an external data source and geolocation features to center the map based on current user location. The component has modularized certain aspects like map options and styles which is good practice.Specific Feedback
Descriptive Naming and Consistency
setUserLocation
,closeInfoPanel
, andcontainerStyle
. However, mixing languages in comments (English and Spanish) can lead to confusion. Stick to one language for consistency.Code Modularization
mapOptions
,iconos
). However, commented-out code suggests that there might be some in-progress work which can be distracting. Clean up or remove any unfinished code before finalizing a review.Code Quality
Code Complexity
Code Suggestions
Comment Consistency: Use one language for comments to ensure that the entire team can understand the codebase:
// Ensure the main container fills available space and resets margins/padding
Remove Unused Code: Clear out commented sections to improve readability or provide rationale why they're left in the code:
// If filtering is a future implementation, consider adding a "TODO" comment to track it
Styling Consolidation: Consider leveraging CSS-in-JS or external stylesheets to handle component styles more efficiently.
Recommendations for Improvement
These improvements should streamline the development process and make your component easier for others to understand and maintain.
Please proceed to provide any further files for review.