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

Fabiola #25

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open

Fabiola #25

wants to merge 41 commits into from

Conversation

DorsD
Copy link

@DorsD DorsD commented Mar 13, 2020

Project name: Bars & Dots
Developers: Eliza Olmedo y Fabiola González

Copy link
Contributor

@HectorBlisS HectorBlisS left a comment

Choose a reason for hiding this comment

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

Muy bien el repo, de los mejores, eviten el español a toda costa, eviten camelCase en CSS y sean más descriptivas con los commits, también en ingles. Felicidades por el gran trabajo, se nota el trabajo progresivo y en equipo.

@@ -67,32 +67,3 @@ <h3></h3>
<script type="module" src="indicators.js"></script>
</body>
</html>

Copy link
Contributor

Choose a reason for hiding this comment

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

Bien por borrar comentarios y código sobrante

@@ -154,12 +154,18 @@ const oneGraphic = () => {
});
}

const removeGraphic = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Bien los nombres en ingles y el camelCase

let graphicModal = document.getElementById("graphicModal");
let eraseChild = graphicModal.lastChild;
graphicModal.removeChild(eraseChild);
}

const showGraphic = (indicator) => {
let toggleButtonFlag = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Esta variable nunca se usó

let graphicModal = document.getElementById("graphicModal");
let eraseChild = graphicModal.lastChild;
graphicModal.removeChild(eraseChild);
}

// When the user clicks (x) of the modal, close it
span.onclick = function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

De preferencia usar addEventListener

@@ -207,8 +203,7 @@ div, header, footer, section{
padding: 0;
/* border: 1px solid #888;*/
width: 60%;

box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4),0 10px 22px 0 rgba(0,0,0,0.25);
Copy link
Contributor

Choose a reason for hiding this comment

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

bien

Comment on lines 3 to +10

describe('example', () => {
describe('bankData', () => {

it('debería ser una función', () => {
expect(typeof example).toBe('function');
expect(typeof bankData).toBe('function');
});

describe('example', () => {
//describe('example', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Muy bien por agregr tests

@@ -56,18 +49,14 @@ for (let i=0; i< indicatorName.length; i ++){
aTwitter.setAttribute("href","https://twitter.com/share?url=<URL>&text=<TEXT>via=<USERNAME>");
aFacebook.setAttribute("href","https://www.facebook.com/sharer/sharer.php?u=<URL>");
aMail.setAttribute("href","mailto:?subject=<SUBJECT>&body=<BODY>");
Copy link
Contributor

Choose a reason for hiding this comment

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

podrian intentar usar más `` para dibujar el html y mejorar la lectura

let graphicModal = document.getElementById("graphicModal");

let graphic = document.createElement("canvas");
graphic.setAttribute("id","myChart");
Copy link
Contributor

Choose a reason for hiding this comment

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

muy bien

data:{
labels:Object.keys(indicatorData),
datasets:[{
label:'PER',
Copy link
Contributor

Choose a reason for hiding this comment

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

Bien el uso de graficas

let graphicModal = document.getElementById("graphicModal");
let eraseChild = graphicModal.lastChild;
graphicModal.removeChild(eraseChild);
removeGraphic();
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Esto no es necesario si el script está al final de la etiueta body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants