41 Commits

Author SHA1 Message Date
Alina Beck
77f4810ddc set up global localVue
by setting up localVue with all required plugins (such as styleguide and vuex)
in a separate testSetup file we can avoid doing this individually in all component tests
the testSetup is executed before each test suite, so each test file gets a fresh
instance of localVue
2019-11-20 12:31:40 +03:00
Alina Beck
4e6572a042 replace ds-icon with base-icon 2019-11-19 12:26:07 +03:00
roschaefer
5715d3e9d5 Add vuex store tests for language filter 2019-10-31 17:32:18 +01:00
Moriz Wahl
3c8a35d371 Language Code As Buttons Instead Of Flag Icon 2019-10-31 14:35:36 +01:00
Moriz Wahl
6ffbd37c95 Language Code As Buttons Instead Of Flag Icon 2019-10-31 14:34:23 +01:00
Moriz Wahl
1dbd36c1e1 Tests Added For Language Filter Of Posts 2019-10-29 17:20:33 +01:00
Moriz Wahl
aeae72f691 first implementation 2019-10-28 13:49:32 +01:00
roschaefer
16d07bd3ba refactor: lint, frontend tests, vuex store
This fixes the lint errors and failing frontend tests. Also, when the
user chooses another orderBy, the menu gets translated.

The refactoring moves code and complexity into the vuex store where it
can be tested separately.
2019-10-18 21:58:53 +02:00
mattwr18
72ae2a4e44 Improve CSS
- filter by users followed button was slightly higher than emotions
buttons
2019-09-10 09:31:59 +02:00
aonomike
9a6a3a6bea Test clicks on the emotions buttons
- Add tests for clicks on the emotion button
- Refactor name of TOGGLE_EMOTIONS
2019-09-09 15:42:10 +03:00
mattwr18
48e696dde4 Fix lint 2019-09-09 08:24:33 +02:00
mattwr18
079864a7a9 Add emotions buttons, get it filtering 2019-09-07 12:44:36 +02:00
mattwr18
3b5c02e276 Extract FollowsFilterMenuItems
- remove now unnecessary FilterPostsMenuItems
2019-09-07 12:41:19 +02:00
mattwr18
a63e132b41 Extract categories filter into own component
- Co-authored-by: Brent Vardy <brent.vardy@challengelogic.net>
- Co-authored-by: Mike Aono <aonomike@gmail.com>
- Co-authored-by: Harald <harald.reingruber@gmx.at>
2019-09-07 12:38:24 +02:00
mattwr18
30ea892aa1 Allow filter by multiple emotions, test getters
- Co-authored-by: vardyb <brent.vardy@challengelogic.net>
- Co-aurhored-by: mike aono <aonomike@gmail.com>
2019-09-07 12:37:03 +02:00
mattwr18
07c58fc03e Add emotions buttons, get it filtering 2019-09-07 12:37:03 +02:00
mattwr18
e81942c6f5 Extract FollowsFilterMenuItems
- remove now unnecessary FilterPostsMenuItems
2019-09-07 12:37:03 +02:00
mattwr18
8a3bd6b770 Extract categories filter into own component
- Co-authored-by: Brent Vardy <brent.vardy@challengelogic.net>
- Co-authored-by: Mike Aono <aonomike@gmail.com>
- Co-authored-by: Harald <harald.reingruber@gmx.at>
2019-09-07 12:37:03 +02:00
roschaefer
1bd57dfeb8 Fix console.errors in test 2019-09-06 16:42:16 +02:00
roschaefer
a7ebbcf154 Implement visual feedback if filter is active 2019-08-21 23:52:10 +02:00
Matt Rider
ee93efd6d9 Localise categories 2019-08-14 13:57:39 +02:00
Robert Schäfer
0e707cdd4c Massive refactoring
Fix #1231 the filter menu once and for all...
2019-08-10 03:41:38 +02:00
Matt Rider
0cee0ecccb Fix bug, maintain filters across page changes
- filter was a bit off for categories, clear the filter if there are no categories
- a user should maintain their filter until they clear it
2019-08-08 08:32:43 +02:00
Matt Rider
e08e150742 Fix bug with lost filter when sorting
- add filtered state to vuex, so as to maintain filter
- filter is reset when visiting other pages, so reset the active buttons in the filter posts dropdown
- maybe we want to maintain the filters between page transitions and only clear when the user requests to?
2019-08-06 10:29:16 +02:00
Matt Rider
32796bfa0d Fix failing build 2019-08-05 19:08:53 +02:00
Matt Rider
1cd3ba907b Set vuex state to reset active button
- when a user clicks on the logo or changes pages, the filter is reset, but the active button didn't update
- still a bug with the active categoryIds since it's not so easy to set the state of an array in vuex
- dry out code for toggleFilters
- fix bug where user clicks on filter by users followed, then filters for categories of those users, then clicks to remove category filter
2019-08-05 14:39:45 +02:00
Matt Rider
ec7a5865f7 Update tests, showFilterPostsDropdown only on route 2019-08-02 15:41:19 +02:00
Matt Rider
afb9dbe241 Move filter by followers functionality to filter dropdown 2019-08-02 13:02:12 +02:00
Matt Rider
bb4532827a Refactor search input, navbar
- fix search input width on desktop
- removed adding removing classes on focus/blur search input
- fix notifications dropdown on mobile

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2019-07-15 11:20:28 -03:00
Matt Rider
b0f999ac05 Fix styling of navbar
- Follow @Tirokk suggestions

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2019-07-15 11:06:56 -03:00
Matt Rider
d42083a32e Move header to left, add border left
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2019-07-15 09:55:09 -03:00
Matt Rider
c7094d82b8 Fix styling, follow @Tirokk suggestions 2019-07-12 10:37:27 -03:00
Matt Rider
2e97af074c Remove duplicate code
- was silly for writing so much duplicate code to change the index of the array
- woke up with inspiration
2019-07-11 07:10:57 -03:00
Matt Rider
6536574a3b Refactor FilterPosts
- extract FilterPostsMenuItems to its own component
- update tests accordingly
- add _.chunk from lodash to dry out code
2019-07-10 17:10:01 -03:00
Matt Rider
0d4617399b Fix/add tests 2019-07-09 18:29:31 -03:00
Matt Rider
c7959dadb7 Refactor code
- Remove vuex as we don't need with vue-apollo and watch
- Use chunk[i] instead of firstGroup, etc...
- Extract Category query to its own file
- Mobile responsive categories dropdown
2019-07-09 13:00:08 -03:00
Matt Rider
737d1f839a Style categories filter dropdown, get working with multiple categories 2019-07-08 21:44:47 -03:00
Matt Rider
98080b597d Style categories dropdown items
- it's a vertical list, dealing with difficulties to make it horizontal
2019-07-05 14:34:54 -03:00
Matt Rider
3b6db5f631 Set up posts in store, get working from FilterPosts
- also, set it up to be mobile responsive
2019-07-05 12:47:44 -03:00
Matt Rider
65f11d6f98 Add functionality to filter posts by category
- only filters if you send two requests :'(
2019-07-04 20:32:16 -03:00
Matt Rider
bb93052b88 Add FilterPosts dropdown with category names 2019-07-03 19:46:49 -03:00