Skip to content

Rosannas GitHub-tracker#4

Open
Rosanna86 wants to merge 11 commits intoTechnigo:mainfrom
Rosanna86:main
Open

Rosannas GitHub-tracker#4
Rosanna86 wants to merge 11 commits intoTechnigo:mainfrom
Rosanna86:main

Conversation

@Rosanna86
Copy link
Copy Markdown

This week, we want you to create a place to keep track of the GitHub repos that you're using here at Technigo.

What I learned:

  • This week it was a lot of JS and API requests. I have learned about fetch, API:S, finding info in an API and filtering. And how to add a gitHub token so you have limitless requests.👩‍💻

  • This week I had a problem to understand the connection between the code. I really had to narrow in all down to small small small pieces. BUT after Maks Wednesday live session I got more of a hang of it, the cheese sandwich comparison really made it more clear to me.

My own reflection
This week was really intense and I had a really big problem mentally. But in the end I solved everything and my page turned out alright 🙂

background-color: #7aa094;
display: grid;
grid-column: span 12;
border-radius: 25px 0px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A small detail that makes the boxes look really good in the mobile version I think :)

animation-delay: -0.5s;
}

@keyframes lds-ripple {
Copy link
Copy Markdown

@Rephili Rephili Oct 6, 2021

Choose a reason for hiding this comment

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

keyframes is something new to me :)

</header>

<div id="myProfile" class="my-profile"></div>
<div id="loading" class="lds-ripple"><div></div><div></div></div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cool that you added some "loading" content in case the information from the API is not shown

<header class="header">
<h1 class="header-text">GitHub Tracker</h1>
<div class="search-container">
<form id="search-form">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I tried it and it works :)

const USER_URL = `https://api.github.com/users/${USER}`
const projectsContainer = document.getElementById('projects')
const ldsripple = document.getElementById('loading')
const Auth = { }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Really useful to have a github token :)

getCommits(myPullRequest[0].commits_url, (data) => {
const numberOfCommits = data.length
//added function so the DOM do not self close tags
let boxHtml = `<div class="box-repo ${repo.name}">`; // https://stackoverflow.com/questions/46300108/innerhtml-closes-tags
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great that you add the link to Stack Overflow as a comment

Copy link
Copy Markdown

@Rephili Rephili left a comment

Choose a reason for hiding this comment

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

Hi Rosanna! I really like your page and I can totally relate to the problems you had during the week. It took some time to grasp all the Javascript code and how to connect everything. I like that you add comments through the whole code (makes it clean and readable) and great also that you had the time to add a search field. :)

[YES] Am I able to understand the code easily?
[NO] Does the code have lots of duplicates? Could it be tidied up?
[WORKS] Does it work or does anything look broken?
[YES (and above)] Does it follow the general and blue requirements?

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.

2 participants