Skip to content

supacode/router-app

Repository files navigation

Route Information

Background

The app displays stops for a delivery truck. Stops are predefined and we propose a schedule to the user. Depending on the schedule strategy, users are able to override parts of it.

Scheduling strategy

Fixed

Users can select the date for the first stop when using the fixed scheduling strategy.

img

Semi Flexible

Users can select the date and time for the first stop when using the semi flexible scheduling strategy.

img

Flexible

Users can select the date and time for all the stops when using the flexible scheduling strategy.

.img

Cargo items

We allow some Users to add cargo items per stop. This flag can be combined with any scheduling strategy.

When a user can add cargo items, an “Add cargo” button is shown below every stop.

img

Clicking on the button shows a form.

img

Cancelling closes the form. Saving is out of scope.

Challenge

  • The component should support the 3 scheduling strategies
  • The component should render the proposed schedule
  • Users should be able to override schedule components depending on the strategy
  • Users see an "Add cargo" button when canAddCargo is true
  • Clicking on "Add cargo" shows a form
  • Cancelling on the cargo form hides the form
  • Saving the cargo form is out of scope

Preview

https://main--softspoken-tiger.netlify.app/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published