Commit graph

47 commits

Author SHA1 Message Date
Jenni Nurmi
ac3db9efa3 Refactor SelectSingleFilter to use subcomponents SelectSingleFilterPlain and SelectSingleFilterPopup 2019-01-28 14:37:41 +02:00
Jenni Nurmi
4c6435e569 Refactor SelectMultipleFilter to use FilterPopup and FilterPlain 2019-01-28 14:37:40 +02:00
Jenni Nurmi
27a49d1534 Add DateRangeFilter to desktop and mobile versions 2019-01-28 14:37:40 +02:00
Jenni Nurmi
0aca4567c2 Update Prettier to 1.15.3 2018-12-05 11:07:47 +02:00
Vesa Luusua
009f14e2c7 SearchFilters and SearchFiltersMobile 2018-10-31 10:53:52 +02:00
Hannu Lyytikainen
702d65b0fd Change multiselect search filter input IDs
Pass in the id of the parent component of the filter to achieve input ID
uniqueness.
2018-08-01 16:57:19 +03:00
Hannu Lyytikainen
559fa8332a Add checks for filter props
Check that filter props are available before resolving initial values
for the corresponding filter param.
2018-08-01 16:57:19 +03:00
Vesa Luusua
049f6a7f37 import lodash per file to reduce bundle size 2018-05-18 15:24:09 +03:00
Hannu Lyytikainen
0107e9f43f Update filter value resolving function naming 2018-04-18 12:25:57 +03:00
Hannu Lyytikainen
3dec9983d4 Add a prop type for filter config 2018-04-18 12:14:38 +03:00
Hannu Lyytikainen
ae2db17152 Update filters configuration and validation
Changes the way filters are defined and how the filter params are
validated.
2018-04-18 11:38:46 +03:00
Vesa Luusua
c393edac0b SearchFilters can show 'More filters' button if needed 2018-02-23 17:29:02 +02:00
Vesa Luusua
bf3b7d7574 Review changes 2018-02-20 13:46:34 +02:00
Vesa Luusua
6b29e9c759 SearchFilters baselining 2018-02-20 11:56:39 +02:00
Vesa Luusua
76c807eca6 Loading search results: show loading text on top of searchFilters area. 2018-02-20 11:56:38 +02:00
Vesa Luusua
bf7a833682 No search results: wrap result text to next line 2018-02-20 11:56:38 +02:00
Vesa Luusua
3a168b882d More space for text: n results. And some baselining 2018-02-20 11:56:38 +02:00
Vesa Luusua
4f8f6c61d3 Remove unused prop / function 2018-02-20 11:56:30 +02:00
Vesa Luusua
e39801e40b margin between filters 2018-02-20 10:37:13 +02:00
Vesa Luusua
a3aa697d9e SearchFilters uses amenities as variable name for amenities 2018-02-15 16:22:25 +02:00
Hannu Lyytikainen
059aa69a6d Rename amenities url param variable 2018-02-15 14:43:45 +02:00
Hannu Lyytikainen
e18f6c07d5 Use urlParam param instead of variable
In submit handlers for multi select filters, use the url param passed to
the function instead of the amenities url param variable.
2018-02-15 14:34:46 +02:00
Hannu Lyytikainen
8bf94da03e Rename features url param const 2018-02-08 13:31:27 +02:00
Hannu Lyytikainen
8efed6f043 Change FieldGroupCheckbox field naming 2018-02-06 13:48:34 +02:00
Hannu Lyytikainen
9d4e8ebd45 Rename filter dropdown offset const 2018-02-06 13:33:58 +02:00
Hannu Lyytikainen
82487f0daa Rename amenities url param name const 2018-02-06 13:16:50 +02:00
Hannu Lyytikainen
99ce1f9a01 Unify function naming 2018-02-06 10:22:57 +02:00
Hannu Lyytikainen
161a0268ab Pass initial value to SelectSingleFilter
Pass initial value to SelectSingleFilter instead of full query
parameters object.
2018-02-05 16:01:01 +02:00
Hannu Lyytikainen
623c274781 Pass label as a param to SelectMultipleFilter 2018-02-05 15:51:07 +02:00
Hannu Lyytikainen
528b6b593d Add urlParam param to SelectMultipleFilter
Also rename amenities url param.
2018-02-05 15:01:53 +02:00
Hannu Lyytikainen
8c362b6dca Add features filter 2018-02-05 11:03:25 +02:00
Hannu Lyytikainen
d850bc1286 Pass content offset as param to SelectSingleFilter
Offset is passed in the same way to SelectMultipleFilter.
2018-02-05 11:03:25 +02:00
Kimmo Puputti
74d86dbd24 Change category query param 2018-02-02 15:03:34 +02:00
Kimmo Puputti
f4f7aaa217 Use custom categories instead of custom attributes config 2018-01-26 17:05:20 +02:00
Janne Koivistoinen
3d1e9f0b96 filter dr done 2018-01-18 00:58:28 +02:00
Hannu Lyytikainen
e07027ce42 Rename SelectSingleCustomAttribute
Rename SelectSingleCustomAttribute to SelectSingleFilter for more
consistent naming with mobile components.
2018-01-15 13:42:47 +02:00
Hannu Lyytikainen
fe0bbbe324 Move search filter padding to the filter container 2018-01-12 15:16:11 +02:00
Hannu Lyytikainen
f831172273 Add mobile search filters component 2018-01-12 15:16:11 +02:00
Hannu Lyytikainen
300bb0bc74 Update styles for filter container 2018-01-09 18:35:30 +02:00
Hannu Lyytikainen
a13c914bf7 Fix mobile search styling 2018-01-09 16:36:37 +02:00
Hannu Lyytikainen
7758b512d5 Update comments and image naming 2018-01-09 15:58:20 +02:00
Hannu Lyytikainen
5e47b79691 Add a null check for category custom attribute 2018-01-09 15:29:44 +02:00
Hannu Lyytikainen
1f936cfd72 Fix baseline alignment 2018-01-09 10:49:51 +02:00
Hannu Lyytikainen
8f1f19a5d6 Change filter links to buttons 2018-01-05 13:33:55 +02:00
Hannu Lyytikainen
a0ff57705d Split SelectSingleCustomAttribute into it's own file 2018-01-03 15:56:01 +02:00
Hannu Lyytikainen
4d751af165 Add prop validation 2018-01-03 15:09:33 +02:00
Hannu Lyytikainen
9c725abada Rename SearchAttributes component to SearchFilters 2018-01-03 14:42:59 +02:00