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

The initials source code for this demo #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gitsome
Copy link

@gitsome gitsome commented Jun 10, 2020

No description provided.

Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

Thanks @gitsome !
Added a few comments below

]
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

🎨 a trailing newline could help match it with the code style of the rest of the app.

Suggested change
}
}

Comment on lines +9 to +17
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/react-router-dom": "^5.1.5",
"@types/uuid": "^7.0.3",
Copy link
Member

Choose a reason for hiding this comment

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

Testing libraries and types may be well suited to be deb dependencies

"framer-motion": "2.0.0-beta.70",
"github-markdown-css": "^4.0.0",
"jstoxml": "^1.6.6",
"node-sass": "^4.14.1",
Copy link
Member

Choose a reason for hiding this comment

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

node sass as a build tool may be well suited to be a dev dependency

"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
Copy link
Member

Choose a reason for hiding this comment

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

react-scripts as a build tool may be well suited to be a dev dependency

"react-scripts": "3.4.1",
"remark-html": "^11.0.2",
"remark-parse": "^8.0.2",
"typescript": "~3.7.2",
Copy link
Member

Choose a reason for hiding this comment

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

typescript as a build tool may be well suited to be a dev dependency


const ITEM_LOCATION_REGEX = /\/([A-Za-z\-0-9]{1,})\/([0-9]{1,})\/$/;

const fakeCourses: Course[] = [
Copy link
Member

Choose a reason for hiding this comment

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

Maybe not an immediate priority, this data is currently being bundled with the application.
It might be good to move it to a JSON file served from the public folder.

<AppBar position="static">
<Toolbar>
<Box display="inline" mr={1}>
<IconButton edge="start" color="inherit" aria-label="menu" component={RouterLink} to={`/`}>
Copy link
Member

Choose a reason for hiding this comment

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

The link appears to be static, does it need to be a template string?

Suggested change
<IconButton edge="start" color="inherit" aria-label="menu" component={RouterLink} to={`/`}>
<IconButton edge="start" color="inherit" aria-label="menu" component={RouterLink} to="/">

</AppBar>

<Breadcrumbs aria-label="breadcrumb" className="app-breadcrumbs">
<Link color="inherit" component={RouterLink} to={`/`}>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<Link color="inherit" component={RouterLink} to={`/`}>
<Link color="inherit" component={RouterLink} to="/">

@@ -0,0 +1,205 @@
// This acts an immutable store. Every change triggers the model to generate an immutable copy
Copy link
Member

Choose a reason for hiding this comment

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

This seems to have a custom immutability implementation: could something like https://github.com/immerjs/immer or https://lodash.com/docs#cloneDeep help reduce the complexity here?
Or maybe something like https://recoiljs.org ?

}

.course-name {
margin-top: 0px;
Copy link
Member

Choose a reason for hiding this comment

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

zero is unitless

Suggested change
margin-top: 0px;
margin-top: 0;

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