405 Commits

Author SHA1 Message Date
Max
c090db3866
feat(webapp): badges admin settings (#8401)
Adds a link to badges settings in the user table, where admins can set the available badges.
2025-04-22 17:28:51 +00:00
8cf405c549
feat(backend): badges (#8391)
* delete all old badges

* reward/unrewardBadge

* verification Badges

* name all badged accordingly

* more tests, lint

* seed badges

* profileBadge mechanic

* badgesUnusedCount

* seed profileBadges set

* configure profile badge count

* insert badges db:data:badges:default

* seed commands to seed default badges and allow to seed branding data

* copy data migrations when building docker

* typo

* correct data:branding command & document it

* test new functionality

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* naming coventions

* final naming fix

lint

fix build

fix badge type in test

renamed badge_ to trophy_

lint fixes

small renameing

fixes

fix users spec

fix webapp queries

fix display

* expose badge description

---------

Co-authored-by: Max <maxharz@gmail.com>
2025-04-17 23:08:54 +00:00
Max
caeff070b7
feat(webapp): add mute/unumute group to menu (#8335)
* basics to notify a user when a followed user posted

* do not notify following user on posts in groups

* followig user wrote post notification

* notify regular group members when a new post is posted in the group

* mute and unmute groups

* clean database at end

* locale for post in group notification

* post in group notification triggers correctly

* email settings for post in group

* Add mute/unumute group to menu (WIP)

* Add mute group functionality (WIP)

* Add locales; use mute/unmute mutations, cleanup tests

* Overhaul group content menu test

* Rename isMuted to isMutedByMe and add it to group query

* Add German and English locales

* Add spanish translations

* Add missing translation keys (with null values)

* Remove console statement

* Add snapshot

* Replace mount by render

* Mock Math.random(), add tests for mute/unmute

* Use container instead of baseElement for snapshots

* fix group slug tests

* undo wrong variable naming

* rename parameter to groupId of mute/unmute group mutation

* rename parameter to groupId of mute/unmute group mutation

* only non pending members have access to the comtext menu

---------

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-04-11 23:10:42 +00:00
Max
1b07b06ca7
feat(webapp): notification settings frontend (#8320)
Implements detailed settings for email notifications.

Issues
relates 🚀 [Feature] Drei neue Interaktions-Benachrichtigungen #8280
2025-04-09 13:21:38 +00: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
01027e42cc
feat(webapp): track online status (#8312)
* client

* backend

* tests

* also save awaySince timestamp

* remove console.log
2025-04-03 17:19:53 +02:00
Moriz Wahl
316c12bd35
provide information of the observing status of the post after creating a comment (#8310) 2025-03-31 20:41:39 +02:00
Moriz Wahl
538f409086
feat(backend): observe posts (#8292)
* 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 observation of a post on and off
2025-03-26 22:16:06 +01:00
Moriz Wahl
7858dc6afb add event data to search post query 2023-09-26 17:15:14 +02:00
Moriz Wahl
6860a19629 query postType on searchPosts 2023-09-26 15:03:08 +02:00
fbd2b08737
Merge branch 'master' into fix-security-subscriptions 2023-07-20 17:11:20 +02:00
elweyn
074711dd90 Fix: order createdAt_desc & lastMessageAt_desc 2023-07-20 14:31:57 +02:00
elweyn
21124bcd71 Fix: Order of rooms. 2023-07-20 14:18:25 +02:00
604e1d8465
subscription roomCountUpdated security fix 2023-07-20 13:44:23 +02:00
f7c381efd8
subscription chatMessageAdded security fix 2023-07-20 13:44:04 +02:00
1b8b356432
notification subscription 2023-07-20 13:41:59 +02:00
70a1c52165
lint fixes 2023-07-20 13:10:25 +02:00
624f379677
fix new room mechanic 2023-07-20 12:57:18 +02:00
elweyn
13da3ba3f4 Add returned properties to the CreateRoom mutation, add emit to change the roomID. 2023-07-20 11:35:06 +02:00
2f76d0b502
fix lastMessage to contain proper values 2023-07-19 14:38:23 +02:00
f9dad608c7
Merge branch 'master' into chat-last-messages 2023-07-18 15:22:56 +02:00
Moriz Wahl
81a08ff04e query all props on add message subscription 2023-07-18 12:47:23 +02:00
cca020b6b3
aligned backend and frontend queries, show last message and unread count in room list 2023-07-18 11:14:06 +02:00
33ecc4764e
linting 2023-07-18 10:54:27 +02:00
98cad5b568
changed order of room to lastMessageAt 2023-07-18 10:47:56 +02:00
2e7adb4eb3
Merge branch 'master' into chat-notifications2 2023-07-17 22:29:03 +02:00
Moriz Wahl
829ea5ee0c Merge branch 'master' into chat-notifications 2023-07-17 18:37:28 +02:00
94bb798d72
Merge branch 'master' into chat-notifications 2023-07-17 15:51:52 +02:00
56060c6573
Merge branch 'master' into mark-messages-as-read 2023-07-17 15:04:02 +02:00
ced4996f47
implement chatMessageAdded subscription 2023-07-17 14:55:57 +02:00
mahula
58e25e6361
Merge branch 'master' into chat-order-by-indexid 2023-07-17 13:36:52 +02:00
3e60ab6854
room count subscription 2023-07-17 12:41:06 +02:00
fb45ac107a
Merge branch 'unread-rooms-query' into chat-notifications 2023-07-17 11:49:51 +02:00
ec07ddfec2
Merge branch 'master' into unread-rooms-query 2023-07-17 11:44:45 +02:00
9c052ea1cd
start with chat notifications 2023-07-17 11:38:06 +02:00
1e77e9aec0
Merge branch 'master' into unread-rooms-query 2023-07-17 10:23:56 +02:00
9ab8fd7561
Merge branch 'master' into chat-last-seen-webapp 2023-07-17 10:10:14 +02:00
1e7f579378
adjust tests 2023-07-15 12:51:43 +02:00
2d3483dc1b
query additional data for messages 2023-07-15 12:35:26 +02:00
f05a0bc544
frontend paginate rooms 2023-07-15 10:38:19 +02:00
Moriz Wahl
db594650f9 feat(webapp): mark messages as seen 2023-07-14 18:53:56 +02:00
Moriz Wahl
c46d0064fc unread rooms query in chat notification 2023-07-14 14:50:43 +02:00
54cf5b37a5
order by indexId instead of createdAt 2023-07-14 11:09:04 +02:00
a9ad8c34c8
Merge branch 'master' into message-pagination 2023-07-14 09:13:40 +02:00
635d3a2232
new room query 2023-07-12 13:15:06 +02:00
7e77bc82fb
new query including index & first, offset and orderBy 2023-07-12 13:14:43 +02:00
Wolfgang Huß
2ffe3a2fd4 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 6436-show-the-event-on-the-map 2023-07-11 13:27:36 +02:00
Wolfgang Huß
6c32eb918d Add markers for events to map 2023-07-11 11:33:24 +02:00
0ad59d9412
lint fix 2023-07-10 16:27:36 +02:00
aecc24e374
chat message capability 2023-07-10 16:21:39 +02:00