Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Organizers can set delivery location, notes and set curbside pickup on mission edit view #564

Open
utunga opened this issue May 18, 2020 · 0 comments
Labels
organizer Belongs to the organizer view

Comments

@utunga
Copy link
Contributor

utunga commented May 18, 2020

Part of the mission edit user story - #431

Some of these functions are already handled as part of #552 but this card is to ensure we can:

  • set delivery location - with a preview of the address
  • toggle the 'curbside' delivery option on and off

The fields involved are;

"deliveryWindow": {
  "timeWindowType": "as soon as possible",
  "startTime": "2020-05-17T18:58:28.828772"
}

Just ignore these fields for now. We dont need this for MVP0 at all. Might come back later.

"deliveryLocation": {
  "address": "5123 W 20th St, Los Angeles, CA 90016, USA",
  "lat": 34.0402893,
  "lng": -118.351885,
  "label": ""
},
"deliveryNotes": "front house on the left of entrance. red light feature outside.",

We should make these editable in this view using the AddressAutocomplete component so that it is possible to see a preview of the address.

We also want to be able to view/edit the delivery notes.

Generally, these fields will be set by the recipient when they request a box. However, it should be possible to edit them also.

"deliveryType": "delivery",

Per DeliveryStep.jsx (in the request food box flow) it is possible for deliveryType to be "curbside" or "delivery". Per that view, a curbside pickup checkbox can disable the address.

In order for routing to work correctly, we do need to put the default curbside pickup location for this organization into the location field when the location is set to 'curbside pickup'.

This may require adding curbside pickup location to the organisation data (in data.py and schema.ts etc). For MVP0 we don't need more than one curbside pickup location per organisation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
organizer Belongs to the organizer view
Projects
None yet
Development

No branches or pull requests

1 participant