-
Notifications
You must be signed in to change notification settings - Fork 0
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
redesign profile page #43
base: main
Are you sure you want to change the base?
Conversation
frontend/components/Issues.jsx
Outdated
@@ -11,7 +11,7 @@ const Issue = ({ Card }) => { | |||
> | |||
<h4> | |||
<b> | |||
{Card.repoName} - {Card.tag} | |||
//{Card.repoName} - {Card.tag} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we hardcode this?
frontend/components/Profile.jsx
Outdated
@@ -67,16 +61,21 @@ const Profile = ({ uname, aname, role, eno, contact, email, pfp }) => { | |||
}} | |||
/> | |||
</div> | |||
)} | |||
)} */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unused (commented) code
frontend/components/Profile.jsx
Outdated
{editProfile === true ? ( | ||
<label className="role">{role}</label> | ||
) : ( | ||
true | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{editProfile === true ? ( | |
<label className="role">{role}</label> | |
) : ( | |
true | |
)} | |
{editProfile === true && ( | |
<label className="role">{role}</label> | |
)} |
frontend/components/Profile.jsx
Outdated
true | ||
)} | ||
</div> | ||
{editProfile } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this?
frontend/components/Profile.jsx
Outdated
<label className="details">{uname}</label> | ||
</div> | ||
<div className="rankHandle"> | ||
<label className="userHandle">()</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these values hardcoded as empty?
frontend/components/Profile.jsx
Outdated
</div> | ||
<div className="rankHandle"> | ||
<label className="userHandle">()</label> | ||
<label className="userHandle">#RANK</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetch actual rank here
frontend/components/PullRequests.jsx
Outdated
const Issue = ({ Card }) => { | ||
return ( | ||
<div className="pullbox"> | ||
<div | ||
style={{ | ||
textAlign: "center", | ||
margin: "1rem", | ||
}} | ||
> | ||
<h4> | ||
<b> | ||
|
||
</b> | ||
</h4> | ||
|
||
</div> | ||
<div className="mentora"></div> | ||
</div> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Render data here
// top: -10rem; | ||
// left: 1rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code
frontend/styles/modules/Profile.scss
Outdated
.image { | ||
} | ||
.image { | ||
position: relative; | ||
left: 5%; | ||
top: 2%; | ||
//margin-left: 5%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
7ae9999
to
31bc0c6
Compare
frontend/components/PendingList.jsx
Outdated
const PendingList= ({ list, callback }) => { | ||
return ( | ||
list.map((Card, i) => { | ||
return <PendingCard Card={Card} key={i} callback={callback} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we passing callback
prop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also props are incorrect
frontend/components/MergedList.jsx
Outdated
const MergedList= ({ list, callback }) => { | ||
return ( | ||
list.map((Card, i) => { | ||
return <MergedCard Card={Card} key={i} callback={callback} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrect props
frontend/components/PullRequests.jsx
Outdated
</h4> | ||
|
||
</div> | ||
<div className="mentora"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo mentora
frontend/pages/profile/index.jsx
Outdated
const issues = response.data.assignedIssues; | ||
let repos = []; | ||
if (issues != undefined || issues != null) | ||
issues.forEach(async (element) => { | ||
var repoInfo = element.issue.split("/"); | ||
repos = JSON.parse(JSON.stringify(repos)); | ||
repos.push({ | ||
}); | ||
setPending(JSON.parse(JSON.stringify(repos))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend only sends one issue. Assigned issue can only be one at a time. Also property is incorrect. Use response.data.user.assignedIssue
No description provided.