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

feat: initial donor dropoff view #32

Merged
merged 20 commits into from
Nov 17, 2021
Merged

feat: initial donor dropoff view #32

merged 20 commits into from
Nov 17, 2021

Conversation

hanlinc27
Copy link
Member

@hanlinc27 hanlinc27 commented Nov 11, 2021

Notion ticket link

Donor Dropoff View

Implementation description

  • Moved the <Header/> component to be mounted in App.tsx to avoid rerenders
  • Added Donor dropoff view at /dropoff and the donor schedule details at /dropoff/:id?donorId=
  • Created cancel dropoff modal
  • Add getDonorByUserId endpoint: feat: add getDonorByUserId service #38
  • All functionality should be intact, UI still needs work

https://user-images.githubusercontent.com/19617248/141862607-29e54fe7-b34d-44c8-b687-e406749a631e.mp4
Screen Shot 2021-11-15 at 5 26 18 PM
Screen Shot 2021-11-15 at 5 26 26 PM
Screen Shot 2021-11-15 at 5 26 33 PM

6ed9983e-1e58-497d-9ca6-d137bef2cb92.mp4

Steps to test

  1. Create a donor, login as donor and POST a few schedules in order to see it populated, test out buttons:
    {
       "donorId": 2,
     "categories": ["Non-perishables"],
       "size": "large",
      "pickupLocation": "University of Waterloo",
      "startTime": "Mon Nov 15 2021 22:19:23",
      "endTime": "Tues Nov 16 2021 22:19:25",
      "status": "Pending",
      "isPickup": true,
      "volunteerNeeded": true,
      "frequency": "Weekly on Monday",
      "notes": "These are copied notes"
    }

What should reviewers focus on?

  • The UI isn't fully accurate but make sure to test out functionality

@hanlinc27 hanlinc27 added frontend Frontend change in progress labels Nov 11, 2021
@hanlinc27 hanlinc27 marked this pull request as ready for review November 15, 2021 22:32
@hanlinc27 hanlinc27 requested review from a team and akshay2000saxena November 15, 2021 22:32
@@ -100,112 +99,109 @@ const AccountDetails = ({
}

return (
<>
<Header />
Copy link
Contributor

Choose a reason for hiding this comment

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

I am guessing this header would be added in Anne's PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah I made a comment in #37 so just depends what gets merged first

@hanlinc27 hanlinc27 requested a review from a team November 16, 2021 07:11
@hanlinc27 hanlinc27 requested a review from Shehryar21 November 17, 2021 00:19
@Shehryar21 Shehryar21 mentioned this pull request Nov 17, 2021
4 tasks
borderRadius="8px"
>
<Box pl="6" pr="6" pb="6" pt="4">
<HStack spacing="10">
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe if you touch anywhere in the card, it should also lead to the edit page, so I guess add the onClick function for box as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you sure? What's the purpose of the menu button for edit then?

Copy link
Member Author

@hanlinc27 hanlinc27 Nov 17, 2021

Choose a reason for hiding this comment

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

Made it clickable.

@hanlinc27 hanlinc27 requested a review from Shehryar21 November 17, 2021 22:32
Copy link
Contributor

@Shehryar21 Shehryar21 left a comment

Choose a reason for hiding this comment

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

Works for me!! Great Job!!

@hanlinc27 hanlinc27 merged commit f7731c1 into main Nov 17, 2021
@hanlinc27 hanlinc27 deleted the feat/donor-view branch December 10, 2021 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants