coopcycle / coopcycle-app

CoopCycle native app
MIT License
151 stars 33 forks source link

New delivery; add package set selection, weight selection (Dropoff) [API changes required] #1790

Open vladimir-8 opened 1 month ago

vladimir-8 commented 1 month ago

2nd page current design

6CFB79F6-2D59-446C-9D0F-A3D7139FC3E5_1_102_o

It contains:

  1. uneditable address field
  2. phone number field
  3. person to contact field
  4. delivery info comment box
  5. day and time range picker OR dropdown menu of preconfigured time slots with text descriptions

It does not have Packages, time slot selection, weight, or tags.

Things to change

2nd page dirty design

image

2nd page final design

TO DO

Implementation

Additional info

POST {{host}}/api/deliveries

{
  "store": "/api/stores/1",
  "dropoff": {
    "address": "/api/addresses/53",
    "before": "2024-05-24T17:28:47-07:00",
    "packages": [
      {"type": "Boxes", "quantity": 2}
    ],
    "weight": 1500,
    "comments": "Please call me before delivery"
  }
}

or use a different endpoint: https://github.com/coopcycle/coopcycle-web/issues/4335