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

New delivery; confirm/edit pickup info #1792

Open
2 tasks done
Tracked by #30 ...
vladimir-8 opened this issue May 24, 2024 · 0 comments · May be fixed by #1913
Open
2 tasks done
Tracked by #30 ...

New delivery; confirm/edit pickup info #1792

vladimir-8 opened this issue May 24, 2024 · 0 comments · May be fixed by #1913

Comments

@vladimir-8
Copy link
Contributor

vladimir-8 commented May 24, 2024

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
-> the shop coordinate should fill by default the fields
-> the "search for client field" should search in saved adresses, at the endpoint "GET /api/stores/{id}/addresses", the search result should prefill the form

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"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants