305 Commits

Author SHA1 Message Date
Wolfgang Huß
558e964c83
feat(webapp): add reason and call to action on post view page if commenting is disabled (#8958)
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-10-10 19:21:07 +02:00
Wolfgang Huß
2ed92c0a78
feat(webapp): post page group link improvement (#8883) 2025-09-20 10:15:04 +00:00
Robert Schäfer
00da9e8ecb
feat(backend): resize images with imagor (#8558)
* feat(backend): resize images with imagor

Open questions:
* Do we have external URLs for images? E.g. we have them for seeds. But
  in production?

* Do we want to apply image transformations on these as well? My current
implementation does not apply image transformations as of now. If we
want to do that, we will also expose internal URLs in the kubernetes
Cluster to the S3 endpoint to the client.

TODOs:
* The chat component is using a fixed size for all avatars at the moment.
Maybe we can pair-program on this how to implement responsive images in
this component library.

Commits:
* do not replace upload domain url in the database

* fix all webapp specs

* refactor: remove behaviour we won't need

We don't want to apply image transformations on files, right?

* refactor: replace the domain on read not on write

* wip: webapp fixes

* refactor(backend): add another url to config

I've given up. There seems to be no nice way to tell the minio to return
a location which differs from it's host name.

* refactor: add test for s3Service

* refactor(backend): proxy minio via backend in local development

Commits:
* provide tests for message attachments
* remove S3_PUBLIC_URL config value

* refactor: follow @ulfgebhardt's review

* add missing environment variable

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-08-19 10:11:12 +02:00
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
16803e45e6
fix broken observe on post (#8610)
Due to missing tests & problematic refactoring, posts could no longer be
observed and the new observe state beeing indicated without reloading
the page.

This reverts parts of
https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8598 to
fix the problem
2025-05-31 10:44:29 +02:00
4b3a26d517
feat(webapp): shout comments (#8600)
* shout comments

* fix notifications

* Remove whitespace for empty category sections

* Overhaul post actions

* Adjust spacing

* Allow fine-grained size control for icons and circle buttons via css variables; adjust comments layout

* Adjust spacing

* Add test for ActionButton (WIP)

* Rename import

* Remove text and add count bubble

* Use filled icons to indicate active states

* Adjust sizes and orientation

* Remove unused properties, add test

* Fix ObserveButton test

* Fix ShoutButton test

* fix tests

* Adapt styles

* Adjust style for larger numbers

* Remove unused icon

* Fix test structure

* Remove unused class names

---------

Co-authored-by: Maximilian Harz <maxharz@gmail.com>
2025-05-31 00:13:15 +02:00
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