Skip to content

Releases: everyday-as/craft-waitwhile

1.1.6

04 Oct 09:29
Compare
Choose a tag to compare
  • I forgot to take specific day into consideration in craft.waitwhile.getBookingTimesForDay
  • Change format returned by any of the AbsoluteHours function. Instead of mon through fri it now returns dates, with an addition of any of the other custom dates defined.

1.1.5

04 Oct 08:51
Compare
Choose a tag to compare
  • Added craft.waitwhile.getAbsoluteBusinessHours to accomodate Waitwhile's newest API addition in businessHoursByDate
  • Added craft.waitwhile.getAbsoluteWaitlistHours to accomodate Waitwhile's newest API addition in businessWaitlistByDate
  • Added craft.waitwhile.getAbsoluteBookingHours to accomodate Waitwhile's newest API addition in businessBookingByDate
  • craft.waitwhile.getBookingTimesForDay now uses getAbsoluteWaitlistHours

1.1.4

19 Sep 11:18
Compare
Choose a tag to compare
  • Added a birthdate field to Booking and Guest. This is a useful field a lot of people have a need for. Validation is if it's numeric and 6 in length (ddmmyy).
  • The above is sent as an addition to a note as I can not seem to make custom fields work at all
  • Made error messages more obvious

1.1.3

13 Sep 11:38
Compare
Choose a tag to compare
  • Added craft.waitwhile.getBusinessHours and craft.waitwhile.getWaitlistHours in a better format than the default returned by Waitwhile

1.1.2

11 Sep 19:15
Compare
Choose a tag to compare
  • Reverts 1.1.1 use Controller@asJson instead of json_decode

1.1.1

11 Sep 15:20
Compare
Choose a tag to compare
  • Refactored BookingController and QueueController. They now support JavaScript requests - if it's an ajax request you have to do nothing,
    but if it's an axios or other request you need to set the Javascript-Request header to 1 or true.
    When sending JavaScript requests you need to deal with the error and redirect logic yourself.
  • Set response in waitwhile session for BookingController just like QueueController does
  • Added start_real_unix_ms to times array for Waitwhile@getBookingTimesForDay
  • Use Controller@asJson instead of json_decode

1.1.0

10 Sep 15:06
Compare
Choose a tag to compare
  • Added a Waitwhile@getBookingTimesForDay('YYYY-MM-DD') method that returns an array with the available times on the given day
  • Added a Booking::formatBookins method, only used internally
  • Added a booking length setting (in minutes)
  • Added everyday-waitwhile/booking/times action

1.0.6

07 Sep 19:16
Compare
Choose a tag to compare
  • Added support for a hidden input field called country_code in submission for action everyday-waitwhile/queue
    (input is without +, only the actual country code)
  • Added notes input to Queue and Booking
  • Added same validation Guest received in 1.0.5 to Booking
  • Make sure some fields truly are optional
  • Require PHP 7.0 or above

1.0.5

06 Sep 11:04
Compare
Choose a tag to compare
  • Added a Waitwhile@getBookings method
  • Added a Waitwhile@getResources method
  • Create a Waitwhile@getSession method for the Waitwhile class to expose the API response on the following page
  • The above means that craft.waitwhile.getSession grabs the previous API response
  • Added validation rules for email and phone fields for the Guest model

1.0.4

20 Aug 16:59
Compare
Choose a tag to compare
  • Added localization
  • Waitwhile@createWaitingGuest now adds a waiting guest to Waitwhile
  • Added a everyday-waitwhile/frontend/queue-form template for submitting a Waitwhile@createWaitingGuest action
  • Added a BookingController, a Booking model and createBooking method