49 Commits

Author SHA1 Message Date
e87a33eb3f
feat(backend): push posts (#8609)
* push posts

push posts

* unpush posts

* fix comment query

* locales

* fix locales

* fix tests

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* fix unpushedSuccessfully english message

* remove paremeters from unpushPost

* rename pushPostToTop -> pushPost, tests

* update locales & tests webapp

* fix lint

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-06-03 17:57:21 +02:00
Moriz Wahl
a3178a91b4
refactor(webapp): store for categories (#8551)
* after authentification, query the categories if active and store them

* get categories from store

* use category store to get categories

* get categories from store

* mock store to have access to categories

* to get rid of the active categories config variable in the frontend, the Category query returns an empty array when categories are not active

* remove CATEGORIES_ACTIVE from .env

* should return string to avoid warnings in console

* replace all env calls for categories active by getter from store

* use categoriesActive getter

* ignore order of returned categories

* mixin to get the category infos from the store, to ensure, that the quey has been called

* fix misspelling

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-27 15:03:26 +02:00
Max
1e6a74b8ce
feat(frontend): observe posts (#8293)
* After creating the post, the author of it automatically observes it to get notifications when there are interactions

* a user that comments a post, automatically observes that post to get notifications when there are more interactions on that post

* mutation that switches the state of the obeservation of a post on and off

* remove duplicate code

* fix unit tests

* add metric observed users count to posts

* change naming

* Add follow post entry to post menu

* Add FollowButton (WIP), show unfollow in menu when already followed

* Follow/unfollow post => observe

* Update slashed bell

* Add requests to observe/unobserve posts

* Add ObserveButton functionality

* Rename isObservedByMe

* Add observingUsersCount; simplify ObserveButton and menu entries

* Fix locales

* Add snapshot test for ObserveButton (WIP)

* Remove empty routes push

* Add test for ObserveButton

* Add test for ContentMenu, improve ObserveButton test

* Remove unneeded fields from PostQuery

---------

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2025-04-04 11:54:43 +00:00
Moriz Wahl
4ce5bdd6fa get most components working 2023-02-15 10:23:34 +01:00
Moriz Wahl
88b5fb9b46 have i18n as option for search groups, fix test 2022-10-23 13:02:04 +02:00
Moriz Wahl
e27f9b00e6 remove location from group fragment, remove search type from search string on search page 2022-10-23 01:18:58 +02:00
Moriz Wahl
d1b05b7e02 add groups to search result page 2022-10-21 18:35:21 +02:00
Moriz Wahl
938f5ccdf9 fix all tests 2022-07-25 23:20:05 +02:00
Wolfgang Huß
3ef41adfb1 Refactor TabNavigator.story.js 2021-01-25 15:28:07 +01:00
Wolfgang Huß
ae09aee91c Renamed NewTabNavigation to TabNavigation
- Renamed old TabNavigation to OldTabNavigation.
2021-01-21 20:27:13 +01:00
Wolfgang Huß
9ce1e089fa Fix lint 2021-01-21 16:38:55 +01:00
Wolfgang Huß
101b50486c Cleanup comments 2021-01-21 13:03:32 +01:00
Wolfgang Huß
830eb1010c Refactored SearchResults.spec.js to new tab component 2021-01-21 11:36:39 +01:00
Wolfgang Huß
bcd98c793c Implement mixins for delete, pin, unpin post in lists, done 2020-10-08 15:24:06 +02:00
Wolfgang Huß
c91c9e263f Implement mixins for delete, pin, unpin post in lists, on the way 2020-10-08 09:26:20 +02:00
Wolfgang Huß
91b64c2360 Implement postActions, first try 2020-09-30 16:19:10 +02:00
Wolfgang Huß
b076fa57ec Improve component for user profile tab and use on search page, refinement needed 2020-09-30 11:01:34 +02:00
Wolfgang Huß
20c52b16e7 Temporary fix tests for SearchResult.vue
- Now the buttons are disabled instead of remove from the DOM.
2020-09-25 13:46:56 +02:00
Moriz Wahl
d049ad5d3e changes requested by review https://github.com/Human-Connection/Human-Connection/pull/3271 2020-09-24 13:14:35 +02:00
Moriz Wahl
af56c3dd4b Layout improved for Searcg Result page 2020-09-24 12:21:57 +02:00
Moriz Wahl
e7c76c1622 fix pagination buttons for admin/user and notifications 2020-09-21 19:07:04 +02:00
Moriz Wahl
a30ae12d65 specs added for SearchResults component.
General use of v-if instead of v-show. Why render a not displayed component?
Helper added to fake posts.
2020-05-12 18:30:26 +02:00
Moriz Wahl
8f44fd6410 use v-if instead of v-show 2020-05-11 21:17:20 +02:00
Moriz Wahl
0892d6aaa3 Pagination is working, pageSize set to 12 2020-05-11 17:53:48 +02:00
ogerly
2ffdbe80f8 WIP: pagenation 2020-05-07 16:24:51 +02:00
ogerly
446fd18e3b location: de one and more numbers 2020-04-30 15:54:17 +02:00
ogerly
c80f7d0518 feature: seach pageination WIP 2020-04-28 11:20:51 +02:00
ogerly
404b926a1f lint: clean 2020-04-22 19:03:45 +02:00
ogerly
cccb6cec83 test: user + pagination ok, rest WIP 2020-04-22 15:06:55 +02:00
ogerly
4a60911c9a fix: lint and test for SearchableInput ok 2020-04-22 09:58:53 +02:00
ogerly
1d79900e5e fix: lint 2020-04-17 08:51:07 +02:00
ogerly
94937c1496 feature: pagenation extended. page number display added, scroll to top at next and back, post display wider 2020-04-15 17:49:11 +02:00
ogerly
0865f63583 feature: incorrect calculation of the total all search results fixed 2020-04-15 16:30:13 +02:00
ogerly
026cd97a57 feature: sum fail fix 2020-04-15 11:27:29 +02:00
ogerly
9fe882b39b feature: sum search results added, Enter closes the preview search field, language file EN, DE adjusted 2020-04-15 11:18:15 +02:00
Moriz Wahl
2544edcb29 no more error messages on page load 2020-04-14 21:50:53 +02:00
Moriz Wahl
7562af227e pages are counted correctly 2020-04-14 21:41:45 +02:00
ogerly
8f56ad4a3b feature: hashtag inserted and taken over in search 2020-04-14 18:16:44 +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
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
Alina Beck
5cb28d161d display empty state for search results 2020-03-19 15:37:40 +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
mattwr18
6d83299e75 Extract component, start story, styling (wip) 2020-03-18 19:46:40 +01:00