coopcycle / coopcycle-app

CoopCycle native app
MIT License
151 stars 33 forks source link

New delivery; confirm/edit pickup info #1792

Open vladimir-8 opened 1 month ago

vladimir-8 commented 1 month ago

The context

Currently the app does not ask for any pickup information. This is a problem because it assumes certain information that may not be correct about the pickup time range and address. While often this information is the default setting, it should be possible to modify it in case of special deliveries. The new plan is to have the conditions be preset with the default settings, and can be clicked through with one button to confirm, or edited.

Implement changes done for dropoffs:

Dirty Design

And since there is limited information for the second page, we can put all this together into one single page

Screenshot 2024-05-24 at 22 37 32

Additional info

POST {{host}}/api/deliveries

{
  "store": "/api/stores/1",
  "pickup": {
    "address": "24, Rue de la Paix",
    "before": "tomorrow 13:00",
    "comments": "Please call me before pickup"
  },
  "dropoff": {
    "address": "48, Rue de Rivoli",
    "before": "tomorrow 13:30",
    "packages": [
      {"type": "Boxes", "quantity": 2}
    ],
    "weight": 1500,
    "comments": "Please call me before delivery"
  }
}