Commit cc56203
authored
Search/integrate ngrx (aviabird#322)
### Why?
- In order to optimise the search components. We needed redux integration in search.
### This change addresses the need by :-
- Upgrades ngrx to v7+.
- Creates and integrates a search store with the search module.
- Updates search resolver to work with store.
- Adds product svg placeholder, while loading.1 parent 9ca7826 commit cc56203Copy full SHA for cc56203
44 files changed
+670-249Lines changed: 670 additions & 249 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- app
- auth/effects
- checkout/effects
- modules/search
- components
- filter-summary-container
- components
- filter-summary-filter-list
- filter-summary-filter
- filter-summary-sort-by
- search-filters-container
- components
- multiselect-filter
- range-filter
- single-selection-filter
- search-results-container
- components
- search-result-item
- search-result-list
- search-title-container
- components/search-title-count
- guards
- models
- pages/search-page
- services
- store
- actions
- effects
- reducers
- selectors
- states
- product/effects
- user/effects
- assets/default
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
48 | | - |
49 | | - |
| 47 | + |
| 48 | + |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
38 | 39 | |
39 | 40 | |
40 | 41 | |
41 | | - |
| 42 | + |
| 43 | + |
42 | 44 | |
43 | 45 | |
44 | 46 | |
|
Collapse file
src/app/auth/effects/auth.effects.ts
Copy file name to clipboardExpand all lines: src/app/auth/effects/auth.effects.ts+12-10Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
18 | 17 | |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | 26 | |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
44 | 43 | |
| 44 | + |
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
57 | 59 | |
58 | 60 | |
59 | 61 | |
|
Collapse file
src/app/checkout/effects/checkout.effects.ts
Copy file name to clipboardExpand all lines: src/app/checkout/effects/checkout.effects.ts+57-47Lines changed: 57 additions & 47 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
33 | 35 | |
34 | 36 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
39 | 43 | |
40 | 44 | |
41 | 45 | |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
49 | 55 | |
50 | 56 | |
51 | 57 | |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
61 | 69 | |
62 | 70 | |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
74 | 84 | |
75 | 85 | |
76 | 86 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
17 | 18 | |
18 | 19 | |
19 | 20 | |
| 21 | + |
20 | 22 | |
Collapse file
src/app/modules/search/components/filter-summary-container/components/filter-summary-filter-list/filter-summary-filter-list.component.html
Copy file name to clipboardExpand all lines: src/app/modules/search/components/filter-summary-container/components/filter-summary-filter-list/filter-summary-filter-list.component.html+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
5 | 7 | |
6 | 8 | |
7 | 9 | |
|
Collapse file
src/app/modules/search/components/filter-summary-container/components/filter-summary-filter/filter-summary-filter.component.html
Copy file name to clipboard+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
src/app/modules/search/components/filter-summary-container/components/filter-summary-sort-by/filter-summary-sort-by.component.html
Copy file name to clipboard+26-6Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
3 | 10 | |
4 | | - |
| 11 | + |
| 12 | + |
| 13 | + |
5 | 14 | |
6 | | - |
7 | | - |
8 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
9 | 29 | |
10 | 30 | |
11 | 31 | |
Collapse file
src/app/modules/search/components/filter-summary-container/filter-summary-container.component.html
Copy file name to clipboardExpand all lines: src/app/modules/search/components/filter-summary-container/filter-summary-container.component.html+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
6 | 8 | |
7 | | - |
|
Collapse file
src/app/modules/search/components/search-filters-container/components/multiselect-filter/multiselect-filter.component.html
Copy file name to clipboard+18-5Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
2 | 4 | |
3 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
4 | 8 | |
5 | | - |
6 | | - |
7 | | - |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
8 | 21 | |
9 | 22 | |
10 | 23 | |
0 commit comments