Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Feedback#23

Open
keupa wants to merge 20 commits into
Laboratoria:masterfrom
keupa:master
Open

Feedback#23
keupa wants to merge 20 commits into
Laboratoria:masterfrom
keupa:master

Conversation

@keupa

@keupa keupa commented Mar 13, 2020

Copy link
Copy Markdown

No description provided.

keupa and others added 20 commits February 26, 2020 09:07
Se crearon tres historias de usuario que se desarrollaron a través de tres sprints: El usuario podrá desplegar y escoger a través de un <select>, la lista de países y el indicador deseado. Se desplegará la información de los años y porcentaje en una tabla HTML. El usuario podrá seleccionar un país, un indicador y distintos años a través de ventanas modales. Posteriormente se desplegará la información sólo de los años elegidos en una tabla HTML. El usuario podrá seleccionar un país, un indicador y distintos años a través de ventanas modales. Además podrá elegir entre desplegar la información en una tabla o gráfica.

@HectorBlisS HectorBlisS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy bien la semántica y los nombres de funciones, agregar comentarios más descriptivos en los commit, lamentablemente solo pude ver tu trabajo, el de tu compañera no es visible, muy bien por el producto final.

Comment thread src/main.js
console.log(indicator)
}

function loadYears (list) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien por el nombre de las funciones en ingles

Comment thread src/main.js
Comment on lines +84 to +98
/*function setYearOptions(list) {
list.forEach(i=>{
let option = document.createElement('option')
option.value = i
option.label = i
yearSelect.appendChild(option)
})
}

function yearOnChange(e){
let value = e.target.value
year = value
console.log(year)
}
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evitar dejar código comentado, mejor eliminar

Comment thread src/main.js
})

function openModal(modal){
if(modal==null) return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(!modal) esto equivale a decir: if(modal===null || modal===undefined) y es mejor ;)

Comment thread src/main.js
test.addEventListener('click', onChange)
indiSelect.addEventListener('change', indiOnChange)
overlay.addEventListener('click', ()=>{
const modals = document.querySelectorAll('.modal.active')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien por el uso de qurySelector

Comment thread src/main.js
overlay.addEventListener('click', ()=>{
const modals = document.querySelectorAll('.modal.active')
modals.forEach(modal=>{
closeModal(modal)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien por el uso de una función para no repetir código

Comment thread src/style.css
display: none;
}

label{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evitemos editar etiquetas, preferible clases

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants