440 Commits

Author SHA1 Message Date
Robert Schäfer
61813c4eb8
refactor(backend): put config into context (#8603)
This is a side quest of #8558. The motivation is to be able to do dependency injection in the tests without overwriting global data. I saw the first merge conflict from #8551 and voila: It seems @Mogge could have used this already.

refactor: follow @Mogge's review

See: https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8603#pullrequestreview-2880714796

refactor: better test helper methods

wip: continue refactoring

wip: continue posts

continue

wip: continue groups

continue registration

registration

continue messages

continue observeposts

continue categories

continue posts in groups

continue invite codes

refactor: continue notificationsMiddleware

continue statistics spec

followed-users

online-status

mentions-in-groups

posts-in-groups

email spec

finish all tests

improve typescript

missed one test

remove one more reference of CONFIG

eliminate one more global import of CONFIG

fix language spec test

fix two more test suites

refactor: completely mock out 3rd part API request

refactor test

fixed user_management spec

fixed more locatoin specs

install types for jsonwebtoken

one more fetchmock

fixed one more suite

fix one more spec

yet another spec

fix spec

delete whitespaces

remove beforeAll that the same as the default

fix merge conflict

fix e2e test

refactor: use single callback function for `context` setup

refactor: display logs from backend during CI

Because why not?

fix seeds

fix login

refactor: one unnecessary naming

refactor: better editor support

refactor: fail early

Interestingly, I've had to destructure `context.user` in order to make
typescript happy. Weird.

refactor: undo changes to workflows - no effect

We're running in `--detached` mode on CI, so I guess we won't be able to
see the logs anyways.

refactor: remove fetch from context after review

See:

refactor: found an easier way for required props

Co-authored-by: Max <maxharz@gmail.com>
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-07-03 11:58:03 +02:00
sebastian2357
a81ec214f1
fix(webapp): added option for slug (#8659) 2025-07-02 12:20:21 +00:00
Max
2a54dc9664
Build source maps (#8695)
Builds source maps, so we can debug our frontend code on stage and production.
2025-06-25 13:24:46 +02:00
Moriz Wahl
b67c9fd7cb
feat(e2e): group create feature (#8636)
Co-authored-by: mahula <lenzmath@posteo.de>
2025-06-06 14:47:05 +00:00
sebastian2357
a69006873d
fix(webapp): notifications - UI Improvements (#8559)
* Notifications view:
- restructured broken layout
- joined several columns for mobile view
- moved button from footer to header
- set alternating colors for the table rows

UserTeaser
- added injectedText
- added injectedDate
- fixed padding

* fixed race-condition with default behavior of browser

* - fixed: jumping menu / menu should get closed by click on notification
- fixed: NotificationList replaced by NotificationTable

* - fixed: menu gets closed when cursor leaves content area, but it is still within popup

* - fixed: menu top buttons should be next to each other

* - fixed: popup background overlay remains after NotificationMenu disappeared after viewport change to mobile

* - fixed lint errors

* - fixed tests + snapshots

* - fixed e2e test

* fix lint error

Co-authored-by: Sebastian Stein <sebastian@codepassion.de>

* Fix locale identifier to have single quotes 'notifications.reason.on_date'

---------

Co-authored-by: Sebastian Stein <sebastian@codepassion.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-05-25 16:44:33 +00:00
Max
33274e5b9a
feat(webapp): user teaser popover (#8450)
* calculate distance between current user and queried user

* fix query for unset location

* use database to calculate distance

* rename distance to distance to me, 100% calculation done in DB

* distanceToMe tests

* lint fixes

* remove comments

* Show user teaser popover with badges, Desktop

* Refactor UserTeaser and add mobile popover support

* Avoid click propagation (WIP)

* Prevent event propagation

* Adjust alignment and font sizes

* More spacing for statistics

* Add distance, simplify user link

* Refactor location info into own component

* Add tests for UserTeaserPopup

* Refactor and test LocationInfo

* Query distanceToMe, rename distance to distanceToMe

* Update test

* Improve tests for UserTeaser, WIP

* Fix tests

* DistanceToMe on User instead of Location

* Revert "DistanceToMe on User instead of Location"

This reverts commit 96c9db00a44cd120e47bfe9534d3e066a194744c.

* Fix notifications

* Refactor UserTeaser and fix location info

* Fix group member crash

* Show 0 distance

* Fit in popover on small screens

* Allow access to profile on desktop

* Revert backend changes

* Load user teaser popover data only when needed

* Fix type mismatch

* Refactor for clarity and accessibility

* Litte refactorings and improvements

* Fix popover test

* Adapt and fix tests

* Fix tests and bugs

* Add placeholder

* cypress: adapt user teaser locator to changes

* Remove delays and scrolling

* Disable popovers in notification list and fix layout

* Remove flickering

* Make overlay catch all pointer events on touch devices

* Re-add attribute for E2E test

* Fix test, return to mouseover

* fix snapshot

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
Co-authored-by: mahula <lenzmath@posteo.de>
2025-05-05 23:54:13 +00:00
mahula
30080a44c2
refactor(other): cypress: simplify cucumber preprocessor imports and some linting (#8489)
* cypress: a little linting

* cypress: import badeball preprocessor globally

* cypress: reintroduce accidentally removed semicolons

* cypress: set new e2e support file in config

* Revert "cypress: import badeball preprocessor globally"

This reverts commit 55fde3de2f9c355fe25bf9b49485b6bf64ca01cf.

* Revert "cypress: set new e2e support file in config"

This reverts commit 525cb5cf3766e402dadfd17f48e5b0f6c6ba1f9b.

* cypress: change preprocessor import to correct method in step definition file

* cypress: change preprocessor import to correct method in step definition files
2025-05-04 22:00:36 +02: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
mahula
dfe9205bf6
refactor(other): cleanup cypress configuration (#8345)
* cypress:remove redundant comment from command config

* cypress: move command and factory imports from global to local

* cypress: linting

* cypress: set support file to false in config
2025-04-08 22:20:41 +02:00
mahula
66ee8571a9 adapt cypress config to cypress-cucumber-preprocessor update
- see https://github.com/badeball/cypress-cucumber-preprocessor/releases/tag/v21.0.0
2024-10-29 08:59:45 +01:00
mahula
97355d55b5 add wait fornetwork to be idle in e2e test step 2024-02-07 07:05:10 +01:00
mahula
0dcaee5e8c set viewport size in cypress config 2024-02-06 10:54:22 +01:00
mahula
0983ed023d fix links in markdown files 2023-11-21 17:11:20 +01:00
mahula
48fb4b17d9 fix links in markdown files 2023-11-21 17:04:58 +01:00
mahula
2049ce183f increase cypress default command timeout 2023-10-31 15:35:27 +01:00
mahula
21fd669a60 increase cypress page load timeout 2023-10-31 14:25:12 +01:00
mahula
2c39e8f8a2
Merge branch 'master' into 6376-refactor-cypress-upgrad-all-relevant-packages-to-current-versions 2023-07-17 16:22:14 +02:00
mahula
264546c27c
Merge branch 'master' into cypress-reporting 2023-07-13 14:04:14 +02:00
mahula
c9e4029b2e
Merge branch 'master' into 6375-refactor-cypress-migrate-from-cypress-file-upload-to-selectfile 2023-07-13 13:32:18 +02:00
mahula
f073553621 Revert "make e2e tests failto test html reporting"
This reverts commit 463d2224be3f408755e2f04505ecbd63df315604.
2023-07-12 10:50:58 +02:00
mahula
463d2224be make e2e tests failto test html reporting 2023-07-12 10:00:35 +02:00
mahula
875dfcefa5 reset e2e test workflow 2023-07-12 09:28:51 +02:00
mahula
4c565e92c5 correct spec pattern path in cypress config 2023-07-12 09:05:41 +02:00
mahula
8d3dd01724 add htlm report creation script 2023-07-11 20:40:18 +02:00
mahula
8dd7156195 remove unnecessary code from cypress config 2023-07-11 20:13:27 +02:00
mahula
82999d377d disable waiting for actionability at post creation image dropzone 2023-07-11 15:00:16 +02:00
mahula
5b73dc8e58 fix typo 2023-07-11 12:33:54 +02:00
mahula
bb53ee70da
Merge branch 'master' into 6375-refactor-cypress-migrate-from-cypress-file-upload-to-selectfile 2023-07-11 11:56:40 +02:00
mahula
242619d21b remove unnecessary cypress code from step definitions 2023-07-11 11:19:47 +02:00
mahula
f44dda4127 fix file path 2023-07-11 10:30:20 +02:00
mahula
d42cac30c8 add file content to file selection in test step 2023-07-11 09:59:38 +02:00
mahula
4efb6463a0 adapt feature step to selectFile 2023-07-11 08:42:08 +02:00
mahula
c1a4ba12da adapt feature step to selectFile 2023-07-10 21:58:53 +02:00
mahula
73f6bc6421 remove package cypress-file-upload from e2e testing 2023-07-10 20:41:21 +02:00
mahula
728fd79579 set cypress test retries to 0 2023-07-10 18:42:06 +02:00
1cadf80a43
fixed fullstack tests 2023-06-22 16:48:51 +02:00
23c2be3093
Merge branch 'master' into update-database 2023-06-16 15:02:58 +02:00
5f545f3b8f
fixed cypress 2023-06-13 15:06:04 +02:00
mahula
44ef732825
Merge branch 'master' into 6376-refactor-cypress-upgrad-all-relevant-packages-to-current-versions 2023-06-08 09:34:18 +02:00
mahula
747d7294cd remove async from step definition file 2023-06-07 12:38:31 +02:00
mahula
497e448088 remove async from step definition file 2023-06-07 12:12:18 +02:00
mahula
4b26a0c665 remove async from step definition file 2023-06-07 11:48:52 +02:00
mahula
5dd9c03b4f
Merge branch 'master' into seed-posts-as-articles 2023-06-07 09:32:01 +02:00
mahula
d70030387d fix reporting e2e tests 2023-06-07 08:44:08 +02:00
mahula
38a135d966 fix social media test step 2023-06-07 08:44:07 +02:00
mahula
fd68118543 add visit main page to logout e2e test 2023-06-07 08:44:07 +02:00
520e1e44b4 removed duplicate step defintion 2023-06-07 08:44:07 +02:00
38c3fc1397 fix .env loading 2023-06-07 08:44:07 +02:00
00c615d796 fix first errors 2023-06-07 08:44:07 +02:00
mahula
c8c59886a1 move cypress config to cypress.config.js 2023-06-07 08:44:07 +02:00