Skip to content

Finished tasks 38, 37, 36 #41

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

Merged
merged 1 commit into from
May 2, 2021
Merged

Finished tasks 38, 37, 36 #41

merged 1 commit into from
May 2, 2021

Conversation

pao-prog
Copy link
Collaborator

Motivation

Note task 35 is not included in this.

Issue #36 #37 #38

Summary of Changes

Feel free to use sentences or a bulleted list.

  • right side defaults to first proposal in list
  • user's own comments are highlighted
  • fixed proposal deletion bug

Testing

Manual Testing

Screenshot/Gif of results

pic1

pic2

pic3

Copy link
Collaborator

@Warrenwwang1 Warrenwwang1 left a comment

Choose a reason for hiding this comment

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

great work! just resolve some comments before u merge but ill approve it first!

@@ -22,11 +22,13 @@ function Dashboard() {
let proposal_lst = response.data;
/* Initialize false <checked> attributes for each proposal; used for checkbox tracking
while in deleting mode */
console.log("proposals fetched " + proposal_lst)
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete

proposal_lst.forEach(proposal => {
proposal_lst.checked = false;
})
setProposals(proposal_lst);
setFilteredProposalsList(proposal_lst);
firstProposal(proposal_lst);
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe rename func to "setPreviewToFirstProposal" bc its not clear what "firstProposal" does

@@ -11,17 +11,24 @@ function ConditionalUserNameRender(isAdmin, userName) {
}
}

function ConditionalUserDisplay(userID) {
console.log(userID);
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete

Comment on lines +156 to +161
if (proposal.checked) {
updatedPropsIdsToDelete.pop(proposal.id);
}
else {
updatedPropsIdsToDelete.push(proposal.id);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

just wanted to comment that this is beautiful :)

@baileysegall baileysegall merged commit f07c29c into main May 2, 2021
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.

3 participants