Skip to content

Final project cotripper#648

Open
WRNoble wants to merge 8 commits intodevelopfrom
final-project-cotripper
Open

Final project cotripper#648
WRNoble wants to merge 8 commits intodevelopfrom
final-project-cotripper

Conversation

@WRNoble
Copy link
Copy Markdown

@WRNoble WRNoble commented Jul 2, 2020

@WRNoble WRNoble requested review from 0xZakk and Underwaterr July 7, 2020 18:07
William Ray Noble Jr added 2 commits July 7, 2020 14:24
@WRNoble
Copy link
Copy Markdown
Author

WRNoble commented Jul 7, 2020

#441 So I didn't realize we needed to have a separate branch for every issue, I thought we just needed to have a separate branch per every person. So this also has the code for issue #441 which is the "As a user, I want to see the groups that I have joined."

Copy link
Copy Markdown
Contributor

@0xZakk 0xZakk left a comment

Choose a reason for hiding this comment

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

@WRNoble Really great work! Your code looks good.

Is this PR still 2 different issues?

Comment thread Pipfile
Comment thread client/src/App.js
Comment on lines +1 to +8
.wrapper {
text-align: center;
}

h1{
display: inline-block;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you use the css naming convention outlined in the readme? These styles will clash with styles throughout the rest of the app

Comment thread client/src/components/GroupPage/GroupPage.js
<h1>Groups You Can Join!</h1>
</div>
<div className="HomePage__group-cards-container">
<span className="HomePage__groupcard-1">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should never have a number in a class - by definition, classes should apply to multiple elements (as opposed to IDs)

Also, make sure your names are consistent (i.e. HomePage__group-cards v. HomePage__groupcard)

</div>
<div className="CommunityPage_body">
<div>
<header className="CommunityPage__header">Group Location:</header>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A header tag is a block element, not a text element, so your text here should be surrounded by some appropriate text tag (h3, p, etc)

Comment on lines +78 to +85
<Pill
className="Pill"
text={"Traveling"}
size={"wide"}
color={"purple"}
icon={"white"}
onClick={pillClick}
selectId={0}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The data for these pills should be populated from somewhere in the API

Comment on lines +114 to +127
<Pill
className="Pill"
text={"Traveling"}
size={"wide"}
color={"pink"}
icon={"white"}
onClick={pillClick}
selectId={0}
/>{" "}
<Pill
className="Pill"
text={"Traveling"}
size={"wide"}
color={"pink"}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lot of repetition here - can you replace this with a loop?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i.e. with map?

Comment on lines +176 to +179
let memberLength = 1;
if (memberLength){
const memberLength = group.members.length;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is odd - you're assigning memberLength a truthy value and then testing if it's truthy immediately afterwords

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Then recreating the variable


<div className="MemberProfilePage__group-div-Her">
<GroupsList heading="Her Groups" moreGroups="View All" to="/" />
<GroupsList heading="Your Groups" moreGroups="View All" to="/" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this someone from the mock?

Copy link
Copy Markdown
Contributor

@0xZakk 0xZakk left a comment

Choose a reason for hiding this comment

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

Spend some time putting this in context for us

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