Commit graph

2920 commits

Author SHA1 Message Date
Kimmo Puputti
46a8e2bbfc Require an env var to show default searches 2018-08-24 14:16:54 +03:00
Kimmo Puputti
669e1a7edb Reorganize maps configuration 2018-08-24 14:16:54 +03:00
Hannu Lyytikainen
d4d4ac90fa Disable default predictions in listing wizard 2018-08-22 11:25:42 +03:00
Hannu Lyytikainen
4c9885f654 Add a prop for disabling default predictions 2018-08-22 11:21:36 +03:00
Hannu Lyytikainen
330eb2b8b0 Improve window availability check 2018-08-21 16:12:55 +03:00
Hannu Lyytikainen
e14cd98903 Add path check for search page 2018-08-21 12:00:01 +03:00
Kimmo Puputti
29056e545c Delay Mapbox lib usage to fix server side rendering 2018-08-20 14:51:09 +03:00
Hannu Lyytikäinen
920d11b5ba
Merge pull request #902 from sharetribe/availability-env-var
Availability environment variable
2018-08-17 13:11:29 +03:00
Hannu Lyytikäinen
324baa3bda
Merge pull request #901 from sharetribe/max-time-slots
Availability improvements
2018-08-17 13:11:17 +03:00
Hannu Lyytikainen
09991d2616 Add error message for time slot request errors 2018-08-17 13:09:35 +03:00
Hannu Lyytikainen
e64f0e7d58 Return second time slots reques promise
Return the nested promise so that errors from it will be caucht in the
catch block of the outer promise.
2018-08-17 13:09:35 +03:00
Hannu Lyytikainen
a293c144fe Put availability behind an env varaible 2018-08-16 17:45:23 +03:00
Hannu Lyytikainen
27462b5433 Remove date time from time slots request 2018-08-16 16:40:56 +03:00
Hannu Lyytikainen
30a49d7e18 Add a second time slots query
In case max bookable day count exceeds 90 days, fetch a second batch of
time slots.
2018-08-16 15:39:51 +03:00
Kimmo Puputti
675135a7f2 Remove Google Maps fullscreen control 2018-08-16 11:41:14 +03:00
Kimmo Puputti
35ffe2e67c Fix hidden "Powered by Google" text in Mobile Safari 2018-08-16 10:58:46 +03:00
Kimmo Puputti
81c9719baa Unify default search data and avoid place details API call 2018-08-15 16:31:36 +03:00
Kimmo Puputti
b9ed883ddc Use a functional component 2018-08-15 11:43:15 +03:00
Kimmo Puputti
48714c5de8 Use Google map by default 2018-08-15 11:43:05 +03:00
Kimmo Puputti
a27217609c Add Mapbox map index file 2018-08-14 15:07:22 +03:00
Kimmo Puputti
74b01032e7 Implement dynamic Mapbox map 2018-08-14 15:07:22 +03:00
Kimmo Puputti
dde89f606b Pass class names to the dynamic map 2018-08-14 15:07:22 +03:00
Kimmo Puputti
c4dfa7d4c3 Use a div instead of button around the dynamic map 2018-08-14 15:07:22 +03:00
Kimmo Puputti
6e339b86f6 Implement static Mapbox map 2018-08-14 15:07:22 +03:00
Kimmo Puputti
eb53b6dcb3 Extract circle polyline calculation util 2018-08-14 15:07:22 +03:00
Kimmo Puputti
61de75d68b Clean up map controls 2018-08-14 15:04:48 +03:00
Kimmo Puputti
ac093bf89e Abstract away map provider 2018-08-14 15:04:48 +03:00
Kimmo Puputti
afe9cad777 Change component names 2018-08-14 15:04:48 +03:00
Kimmo Puputti
c7f5afd82b Rename Google map component files 2018-08-14 15:04:48 +03:00
Kimmo Puputti
04e85c8f47
Merge pull request #895 from sharetribe/autocomplete-current-location
Autocomplete current location
2018-08-14 09:49:32 +03:00
Hannu Lyytikäinen
f6fbae7dd8
Merge pull request #892 from sharetribe/availability
Add availability support
2018-08-13 15:24:03 +03:00
Hannu Lyytikainen
cfd7494e25 Improve comments 2018-08-13 15:16:31 +03:00
Hannu Lyytikainen
c282dc513d Fix selecting end date first
Enable ending booking on the day another booking starts.
2018-08-13 14:43:17 +03:00
Hannu Lyytikainen
e659ac4809 Fix a bug in daily booking
Fixes a bug in daily booking where selected end date styles are not
cleared when updating start date with a date that is before the old
start date and a booked date can be found between those old and new
start dates.
2018-08-13 14:14:03 +03:00
Kimmo Puputti
4092563d9c Implement current location default search for the Mapbox geocoder 2018-08-13 13:02:12 +03:00
Kimmo Puputti
28543ee418 Update snapshots 2018-08-13 11:34:55 +03:00
Kimmo Puputti
b03081767c Implement user's current location as a default location search 2018-08-13 11:30:27 +03:00
Kimmo Puputti
f1172c2503 Add helper to calculate a bounding box 2018-08-13 10:52:24 +03:00
Kimmo Puputti
7e01233e52 Add helper to get user's location 2018-08-13 10:49:01 +03:00
Kimmo Puputti
fd4c39d01d
Merge pull request #894 from sharetribe/autocomplete-default-searches
Default location suggestions for LocationAutocompleteInput
2018-08-13 09:51:00 +03:00
Hannu Lyytikainen
2c0cb83b5b Add an example for day based bookings 2018-08-13 09:00:33 +03:00
Kimmo Puputti
2686726bd2 Add support for default predictions 2018-08-10 10:46:21 +03:00
Kimmo Puputti
040dfa6cd2 Use the geocoder to read the prediction ID 2018-08-10 10:45:09 +03:00
Hannu Lyytikainen
b43a97f0db Remove an unused function 2018-08-10 09:34:11 +03:00
Hannu Lyytikainen
19dd70c433 Enable availability by default 2018-08-10 08:55:47 +03:00
Hannu Lyytikainen
5e1aa7b244 Add error handling for initiate request 2018-08-10 08:37:21 +03:00
Kimmo Puputti
1bee582260 Select by prediction object, not index 2018-08-09 16:57:12 +03:00
Hannu Lyytikainen
1706f22e52 Add error handling to checkout page
Add handling for the tx time already booked error to checkout page.
2018-08-09 15:43:28 +03:00
Hannu Lyytikainen
bcbeec8aef Pass time slots to BookingDatesForm 2018-08-09 15:43:28 +03:00
Hannu Lyytikainen
2563bfeb2d Default time slots to null 2018-08-09 15:43:28 +03:00