Skip to content

Conversation

@ThomasVirgo
Copy link
Owner

No description provided.

@netlify
Copy link

netlify bot commented Aug 11, 2021

✔️ Deploy Preview for repo-getter ready!

🔨 Explore the source changes: a5102d6

🔍 Inspect the deploy log: https://app.netlify.com/sites/repo-getter/deploys/6113e59c9f78310008569b49

😎 Browse the preview: https://deploy-preview-12--repo-getter.netlify.app

@msvalen msvalen requested a review from zakgogi August 11, 2021 12:06
Copy link
Collaborator

@zakgogi zakgogi left a comment

Choose a reason for hiding this comment

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

Really cool overall, really like the regexp matching stuff and the design in general, was hard to find something to criticise, good work

setError(false);
window.location.pathname = `/${username}`;
} catch (error) {
setError('Unable to find GitHub user, please try again.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool that you handled the error here, when we did it we checked on the next page so we didn't have to fetch more than once but this is nicer I think

Copy link
Collaborator

Choose a reason for hiding this comment

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

Realised that because the error is handled here, if I just type an invalid username in the top bar it loads forever rather than using an error

@@ -0,0 +1,33 @@
import { screen } from '@testing-library/react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice that you added some tests

@@ -0,0 +1,21 @@
import React, { useState } from 'react';
import { TextField } from '@material-ui/core';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I've never used material-ui before, looks cool

setLoading(false);
}, [])

function closeModal(){
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool that you used Modals, we just redirected to another page which was much less elegant

import './style.css'

const Repos = () => {
const { username } = useParams();
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool solution

<Route path = '/:username'>
<Repos/>
</Route>
<Route path = '/'>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Feel like you potentially might need an exact in here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

our plan was to send them back to the for in case of error

@@ -0,0 +1,34 @@
# Changelog
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice readme, like that you used a gif

Copy link
Collaborator

Choose a reason for hiding this comment

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

I used ScreenToGif for Windowsx64 ;)

@JawwadUddin
Copy link
Collaborator

In agreement with Zak

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.

5 participants