299 Commits

Author SHA1 Message Date
Moriz Wahl
b736a2a2e3
feat(backend): pin more than one post (#8598)
* feat(backend): pin more than one post

* add postPinnedCount query, better names for env variable

* add store and mixin for pinned posts counts

* test pinned post store

* context menu for pin posts

* fix typos

* unpin posts is always possible

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-28 19:12:27 +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
Markus
d70fd979fb fixed event info layout 2024-02-01 11:57:13 +01:00
mahula
57b6b81a5f linting 2023-10-31 11:24:27 +01:00
mahula
7480f2c523 replace deprecated jest methods in webapp unit tests 2023-10-31 11:10:38 +01:00
Markus
18f932f1b6 [refactor] fixed wrong title on edit post page 2023-07-20 10:15:39 +02:00
Markus
caa7e8e1fb [refactor] updated ui of creat post page 2023-07-13 18:47:36 +02:00
Wolfgang Huß
c4a12a3a4a Merge branch 'merge-6336-into-6339-optimize-event-create-and-update' of github.com:Ocelot-Social-Community/Ocelot-Social into 6379-fix-event-teaser-date-from-start-to-end 2023-06-08 16:10:19 +02:00
elweyn
866079d307 Fix linting. 2023-06-08 09:49:42 +02:00
elweyn
5b40122b0e Remove async of cypress command and add contribution default value to post edit _id. 2023-06-08 09:44:11 +02:00
Wolfgang Huß
65b8780786
Merge branch 'master' into merge-6336-into-6339-optimize-event-create-and-update 2023-06-07 21:34:47 +02:00
Wolfgang Huß
04290921fc Move event location name to an own component 2023-06-07 16:40:51 +02:00
Wolfgang Huß
52cf19d5fc Rename component 'DateRange' to 'DateTimeRange' 2023-06-07 15:46:18 +02:00
Wolfgang Huß
7ad74b1398 Move date time range to an own component 2023-06-07 14:07:22 +02:00
33bb92de1a
Merge branch 'master' into fix-coverage 2023-06-07 10:56:46 +02:00
elweyn
9715df70f8 Merge @maeckes PR in @elweyn PR.
Co-authored-by: maeckes <markus@infinity.labs.ooo>
2023-06-07 09:35:54 +02:00
elweyn
bb7721b670 Fix linting! 2023-06-06 14:35:57 +02:00
elweyn
ab579e521b Change side menu text of Post.
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2023-06-06 11:24:52 +02:00
elweyn
ad0ccf59e6 Merge branch '6339-bug-webapp-event-update-page' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 6339-bug-webapp-event-update-page 2023-06-06 11:14:24 +02:00
elweyn
6accd65ee1 Add methods for Start/End Date-/Time-String
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2023-06-06 11:13:57 +02:00
Hannes Heine
3cd55051f7
Merge branch 'master' into 6339-bug-webapp-event-update-page 2023-06-05 21:20:34 +02:00
514a5c4894
fix warning in edit post test 2023-06-05 20:53:03 +02:00
elweyn
a24e2186be Fix linting 2023-06-05 17:55:45 +02:00
elweyn
734891e93d Fix localization of edit events
Co-authored-by: ogerly <fridolin@tutanota.com>
2023-06-05 17:54:37 +02:00
elweyn
726640a759 Create a function to switch between Article and Event. 2023-06-01 13:36:24 +02:00
elweyn
17e0d0a85c Rename creatEvent to createEvent 2023-06-01 13:04:06 +02:00
elweyn
ef7bb652bc Fix linting.
Co-authored-by: maeckes-infinitylabs <markus@infinity.labs.ooo>
2023-05-31 20:44:44 +02:00
Moriz Wahl
39288b4cb5 fix(webapp): warnings in unit tests 2023-05-31 18:05:29 +02:00
elweyn
e18fa0cea0 Fix test of post edit.
Co-authored-by: maeckes-infinitylabs<markus@infinity.labs.ooo>
2023-05-31 12:32:48 +02:00
elweyn
1ca274fad4 Add creatEvent to the update post so the form has event specific fields.
Co-authored-by: elweyn<heine.hannes@gmail.com>
Co-authored-by: maeckes-infinitylabs<markus@infinitylabs.ooo>
2023-05-31 11:01:28 +02:00
04ab8148f9
lint fixes 2023-05-25 12:41:04 +02:00
3f1e42e6fd
externalize styles 2023-05-25 12:15:03 +02:00
Moriz Wahl
60b05379d9 post page test fixed 2023-05-23 11:29:18 +02:00
Markus
7c37d9f9ef added conditional check for event time, code syntaxes 2023-05-17 15:32:49 +02:00
ogerly
ff559e71db merge #6045 #6267, resolve conflicts, fix save image 2023-05-17 11:01:49 +02:00
Markus
0c2c199e74 added linting 2023-05-10 15:26:33 +02:00
Markus
092feb5ee7 [webapp] added event info to post page 2023-05-10 15:20:01 +02:00
ogerly
5b256ed3e4 fix lint 2023-04-26 13:44:31 +02:00
ogerly
909a8f29fd refactor style 2023-04-26 13:43:14 +02:00
ogerly
b6ffdab321 refactor post event 2023-04-26 08:56:57 +02:00
ogerly
2c5576f8a1 fix lint, fix locales 2023-04-25 22:11:25 +02:00
ogerly
ef0ee1ec0d Merge branch '6044-Add-create-New-Event' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 6044-Add-create-New-Event 2023-04-25 21:05:04 +02:00
ogerly
fbdb6ca074 show all event datas in post 2023-04-25 21:04:58 +02:00
72ae881d9a
fixed undefined post problem 2023-04-25 21:03:24 +02:00
ogerly
43728dd0a5 flex system for eventdatas in post 2023-04-25 19:57:48 +02:00
ogerly
c930dd6d52 last step construct 2023-04-25 18:45:23 +02:00
ogerly
dbf89fadfc pre add-further-event-params 2023-04-20 13:55:52 +02:00
ogerly
8d27846602 add datepicker 2023-04-05 20:07:32 +02:00
ogerly
d2fec8ea2f first step for events 2023-04-05 10:24:58 +02:00