Skip to content

Instantly share code, notes, and snippets.

@lobo
Created May 28, 2019 14:56
Show Gist options
  • Save lobo/e2794f00c9a57b6f62753f9da922de22 to your computer and use it in GitHub Desktop.
Save lobo/e2794f00c9a57b6f62753f9da922de22 to your computer and use it in GitHub Desktop.

Booking widget

Implemented features

πŸš€ Add compulsory country code when selecting the phone number and append that field to the phone field (only one field) when submitting it.

πŸš€ add compulsory BIRTH DATE to payment step both status page and booking widget. Make sure it looks nice on Mobile.

πŸš€ Add compulsory phone number (with the updated regex) to payment step in both booking widget and status page form.

Bug fixes

πŸ”¨ all "inviable" bookings should get automatically cancelled as well.

Status Page

Implemented features

πŸš€ Add compulsory country code when selecting the phone number and append that field to the phone field (only one field) when submitting it.

πŸš€ add compulsory BIRTH DATE to payment step both status page and booking widget. Make sure it looks nice on Mobile.

πŸš€ Add compulsory phone number (with the updated regex) to payment step in both booking widget and status page form.

Sales Dashboard

Implemented features

πŸš€ [Find alternative trip feature] 1) Add an wp_id field to the period schema (api/models/period.js).

πŸš€ [Find alternative trip feature] 2) Sync Period process with WP (api/wp/periods.js) should set the _id field to the month index. Suggestion: use a static map from month name β€˜November’, β€˜June’ to month index 10, 5, for example. Proposal: Use a 0..11 scheme.

πŸš€ [Find alternative trip feature] 3) Sync Period process (api/wp/periods.js) should set wp_id to the WP ID.

πŸš€ [Find alternative trip feature] 4) Sync Trips process with WP (api/wp/trips.js) should fetch periods and set in the periods array the month indexes corresponding to the trips periods. The array used to have something like [560, 556, 554], which are WP ID and it will now have [4, 5, 6]. That point to the _id in the period now.

πŸš€ [Find alternative trip feature] 5) Add the periods field to the trip response in the booking widget.

πŸš€ [Find alternative trip feature] 6) Availability date picker in the booking widget.

πŸš€ [Find alternative trip feature] 7) Add an API validation for the same thing in the backend. This is useful for creating bookings from scratch.

πŸš€ [Find alternative trip feature] 8) Add an alert when creating bookings from scratch if the period for the trip is wrong.

Bug fixes

πŸ”¨ Bookings that should expire are not expiring.

Emails

Implemented features

πŸš€ When a guide sends alternative available dates, send the following email to clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment