11 Commits

Author SHA1 Message Date
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
fd961cb529
fixed lint problem 2023-06-01 12:03:56 +02:00
540cd40e10
fixed coverage reporting 2023-06-01 11:47:21 +02:00
Moriz Wahl
e3eaaf4435 fix tests for contribution form 2023-05-23 11:04:01 +02:00
mahula
556c63a864 set jest coverage check for webapp workflow 2023-03-16 17:23:56 +01:00
Moriz Wahl
f95d6d63f9 remove unused package, ignore dist for unit tests 2023-02-24 12:45:47 +01:00
Moriz Wahl
b75c7c6977 hack MapboxGeocoder in unit tests by simply stubbing the import 2023-02-23 18:13:19 +01:00
Moriz Wahl
4850e456fe pages tests nearly working 2023-02-13 23:08:41 +01:00
Moriz Wahl
6aead3f75e refactor(webapp): jest to latest and vue test utils to latest 2023-02-13 20:22:16 +01:00
ba72956536
lint fix 2022-11-18 10:53:22 +01:00
f57e11dd02
frontend: jest coverage 2022-11-07 18:23:54 +01:00