1391 Commits

Author SHA1 Message Date
mattwr18
db20af2d39 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 2144-Add_Search_Results_Page 2020-04-02 08:19:43 +02:00
mattwr18
e8492b59f4 feat: add pagination for search page
- it wasn't really making sense to have one query for all users/posts,
  future hashtags, because we change the first/offset when the user
paginates, which would unneccesarily refetch all other resources.
- the solution was to separate them into their own queries and only
  refetch when the user wants to paginate the resources.
2020-04-02 00:36:26 +02:00
mattwr18
79c1cc02c1 test: add SearchResults test/rename classes 2020-04-01 19:20:00 +02:00
mattwr18
06985c2dbb chore: fix lint w/ new linting rules 2020-03-26 18:55:10 +01:00
mattwr18
cb0a3f5cdd chore: Fix lint w/ new linting rules 2020-03-26 10:14:51 +01:00
mattwr18
e1733201e8 chore: Fix lint, follow @alina-beck suggestions 2020-03-25 11:02:28 +01:00
Alina Beck
478e4fa08f include magic numbers in tokens, fix tests 2020-03-25 11:02:28 +01:00
Alina Beck
d9c3412b41 outsource styling to FilterMenuSection component
@mattwr18 great work and great styling so far! ;)
fyi: I noticed there was a lot of duplicate CSS and the solution I came up with is this new component, using slots
2020-03-25 11:02:28 +01:00
mattwr18
863656f718 chore: add story for LabeledButton 2020-03-25 11:02:28 +01:00
mattwr18
70bf870e4a chore: update name for HashtagsFilter 2020-03-25 11:02:28 +01:00
mattwr18
eb4536d855 refactor: test the functionality separately 2020-03-25 11:02:28 +01:00
mattwr18
5b8fecc6ef refactor: Extract LanguagesFilter to its own spec 2020-03-25 11:02:28 +01:00
mattwr18
bb183b1211 refactor: Extract FollowingFilter to its own spec 2020-03-25 11:02:28 +01:00
mattwr18
27c3c02e07 refactor: Extract CategoriesFilter to it own spec 2020-03-25 11:02:28 +01:00
mattwr18
38d2edf0f2 refactor: Extract EmotionsFilter to its own spec 2020-03-25 11:02:28 +01:00
mattwr18
4f8a4c6753 Refactor LanguageFilter to remove ds-flex 2020-03-25 11:02:28 +01:00
mattwr18
e400a10c45 chore: rename/refactor filter, make responsive
- Make the emotions filter similar in style to CategoriesFilter
2020-03-25 11:02:28 +01:00
mattwr18
0f03d09723 refactor: Extract FollowingFilter as own component
Co-authored-by: Alina Beck <alina.beck@mail.com>
2020-03-25 11:02:28 +01:00
mattwr18
b19a2a8dea Refactor GeneralFilter to remove unnecessary code
- remove ds-flex, ds-flex-item, ds-space, ds-heading
- not really happy with the design, and in mobile the divider border is
  hidden(!?)
2020-03-25 11:02:28 +01:00
Alina Beck
1ffde6bf10 refactor: CategoriesFilter to not use ds-flex
Co-authored-by: mattwr18 <mattwr18@gmail.com>

- introduce LabeledButton component
- rename FilterMenu to HashtagsFilter and FilterPosts to FilterMenu
2020-03-25 11:02:00 +01:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
Alina Beck
150442db01 use translations in SearchResults component 2020-03-23 17:14:41 +01:00
Alina Beck
a796efb54e use Empty component when no search results are found 2020-03-23 16:56:27 +01:00
Alina Beck
23a8010872 fix styling for post results 2020-03-23 14:29:49 +01:00
Alina Beck
72d979de55 improve user search results styling 2020-03-23 14:21:41 +01:00
Alina Beck
e03260d28d disable tabs when 0 results found 2020-03-23 13:57:56 +01:00
mattwr18
6d531c2cf8 chore: Update activeTab to show first results
Co-authored-by: Alina Beck <alina.beck@mail.com>
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
Co-authored-by: kachulio1 <jngugi88@gmail.com>
2020-03-19 16:47:41 +01:00
mattwr18
906f1bc0ca Merge branch 'master' of github.com:Human-Connection/Human-Connection into 2144-Add_Search_Results_Page 2020-03-19 16:02:54 +01:00
Alina Beck
5cb28d161d display empty state for search results 2020-03-19 15:37:40 +01:00
Moriz Wahl
7024ea0b30 specs for Search for Hashtags 2020-03-19 15:09:43 +01:00
Moriz Wahl
1c43d5fe6f Search for Hashtags works due watching route in pages/index.vue 2020-03-19 14:19:13 +01:00
mattwr18
27c731cc1a Style tabs, add grid for posts
Co-authored-by: Alina Beck <alina.beck@mail.com>
Co-authored-by: kachulio1 <jngugi88@gmail.com>
2020-03-19 13:10:05 +01:00
Moriz Wahl
014be6e7f8 partially working, index page does not update when route is changed 2020-03-19 12:59:15 +01:00
Moriz Wahl
16ad565ec8 partially working, index page does not update when route is changed 2020-03-19 12:55:59 +01:00
mattwr18
6d83299e75 Extract component, start story, styling (wip) 2020-03-18 19:46:40 +01:00
roschaefer
79fbdd7734 refactor: Avoid store use query parameters+routing 2020-03-18 16:02:15 +01:00
Alina Beck
7a818a04a7 refactor and design search results page (wip)
Co-authored-by: mattwr18 <mattwr18@gmail.com>
Co-authored-by: Raphael Beer <raphael.beer@protonmail.com>
2020-03-18 14:33:01 +01:00
ogerly
1bf57cbf58 sorting result in users and posts 2020-03-17 06:15:48 +01:00
Robert Schäfer
512ef672bf
feat: Introduce graphql image type (#3043)
* refactor(graphql): Introduce image type

* Undo changes to .travis.yml

* chore: Upgrade travis to node LTS

- URL is available since v10

* chore: use lts

Co-authored-by: mattwr18 <mattwr18@gmail.com>
2020-03-16 15:32:19 +01:00
ogerly
bba5a09ba9 search query extended to categories, sorting of results, first graphical display 2020-03-15 10:11:16 +01:00
ogerly
cbacbec724 feat: search on a new search page 2020-03-14 07:21:22 +01:00
Raphael Beer
7df4432601
Fix: named slot scopes 2020-03-13 00:09:33 +01:00
Raphael Beer
d465e94596
Refactor: use #shorthand for default v-slot attributes 2020-03-12 23:49:27 +01:00
Raphael Beer
5626cb2771
Revert "Refactor: replace default slots"
This reverts commit f1e308074bc33e6762431f90f335ed849776f4d9.

  Let's take this one at a time...
2020-03-12 23:49:01 +01:00
Raphael Beer
c3cf682fdf
Refactor: replace default slots 2020-03-12 23:49:01 +01:00
Raphael Beer
d90e4c2aa8
Refactor: replace named slots 2020-03-12 23:49:00 +01:00
Robert Schäfer
066506838f
Merge pull request #3219 from Human-Connection/2823-zero-bell-to-all-notifications-page
feat: zero bell to all notifications page [2823]
2020-03-10 13:01:38 +01:00
Raphael Beer
f3d2d35b26
Change: only attempt to style .main-navigation, if it exists 2020-03-05 12:03:11 +01:00
Raphael Beer
f3a7c10e8a
Fix: content shift when y-scrollbar disappears 2020-03-05 12:03:11 +01:00
Raphael Beer
8ffda5e908
Fix: linting, integration tests 2020-03-05 12:02:12 +01:00