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

DO NOT MERGE: Grading Notes #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ body {
background-size: contain;
background-repeat: repeat;
height: fit-content;
height: 275vh;
background-color: #1b4170;
background-attachment: fixed;

Expand Down
14 changes: 7 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@ function App() {
{!currentUser && <Auth setCurrentUser={setCurrentUser} />}
</Route>

{/* Add Page */}
<ProtectedRoute exact path="/products/new" currentUser={currentUser}>
<AddProduct user={currentUser} />
</ProtectedRoute>

{/* View Product */}
<Route exact path="/products/:id">
<ProductDetails user={currentUser} />
</Route>

{/* Add Page */}
<ProtectedRoute exact path="/add" currentUser={currentUser}>
<AddProduct user={currentUser} />
</ProtectedRoute>

{/* View Profile/ Edit own Profile */}
<ProtectedRoute exact path="/profile/:id/edit" currentUser={currentUser}>
<EditUserView exact path="/profile/:id/edit" currentUser={currentUser} />
<EditUserView />
</ProtectedRoute>

{/* Profile */}
<Route exact path="/profile/:id">
<UserView exact path="/profile/:id" currentUser={currentUser} />
<UserView currentUser={currentUser} />
</Route>

{/* About Us */}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Products/ProductsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import '../../App.css';

export default function ProductsCard({ products }) {
return (
<div>
<>
<h1 className="productListTitle">
<img className="techlogo" src={logo} alt="Techswap2"></img>
Welcome To The TechSwap
Expand All @@ -21,6 +21,6 @@ export default function ProductsCard({ products }) {
</Link>
</div>
))}
</div>
</>
);
}
16 changes: 16 additions & 0 deletions src/grading.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Tech Swap Grading Notes

- I had a pretty hard time navigating this app -- I don't see a link to sign in or sign up or links for adding products -- I had to go searching the code to figure out how to get there -- maybe add a redirect on the home page if there isn't a signed in user to show the auth page -- also add links to your headers to make them really obvious
- I like that you went mobile first, but don't forget to consider larger monitors. You can use media queries in CSS to display different images depending on the size of the browser -- that can stop your header image from stretching on larger monitors
- Try not to use top-level `<div>` elements -- use fragments (crabby hands) instead (prevents a lot of extra divs in your code)
- Your split between views / components looks great -- nice job there
- You had some extraneous props on your routes -- take a look and make sure you understand where `exact` and `path` need to go
- Overall really cool app -- great job -- just a few things to think about mostly usability wise

| Rubric | Deduction |
| ------------------------------------------------------ | --------- |
| React Router (remove a point for the extraneous props) | -1 |
| Snapshot tests for all components | -1 |
| Usability | -1 |

**Total Points: 147 / 150**