28 Commits

Author SHA1 Message Date
Wolfgang Huß
db7908139c Cleanup 2020-04-08 15:56:27 +02:00
Wolfgang Huß
b417667d31 Rename return property of 'extractNotificationDataOfCurrentUser'
- Renamed 'report' to 'filedReport'.
- Commented on the need of deep nested and similair properties for GQL of notifications.
2020-04-03 15:25:07 +02:00
Wolfgang Huß
f8de595d3b Extent storybook NotificationsTable with filed report notifications 2020-04-03 13:43:42 +02:00
Wolfgang Huß
c574c58ad5 Refactor notifications menu 2020-04-03 09:27:12 +02:00
Wolfgang Huß
6f8b48024d Fix Cypher for notifications queries
- Fixed GQL queries for notifications – normal, aerkAsRead, subscriptions add.
- Refactored notifications tests to check for authors of all types.
2020-04-03 08:59:17 +02:00
Wolfgang Huß
a52cbe1c66 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1709-send-feedbacks-in-report-processes-second-approach
# Conflicts:
#	backend/src/db/seed.js
#	backend/src/middleware/notifications/notificationsMiddleware.js
#	backend/src/schema/resolvers/notifications.js
#	webapp/components/NotificationsTable/NotificationsTable.spec.js
2020-04-01 12:22:56 +02:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
Wolfgang Huß
06be781078 Fix frontend tests 2020-03-13 14:47:42 +01:00
Wolfgang Huß
9c3d4c1436 Change after Matts suggestions
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2020-02-07 10:10:36 +01:00
Wolfgang Huß
63f36f02b4 Clarified variable naming 2020-02-06 09:52:18 +01:00
Wolfgang Huß
ff620171b2 Implement suggestions of Robert 2020-02-06 09:35:15 +01:00
Wolfgang Huß
0bb2b905ee Add example notification for filed report to storybook 2020-01-22 13:32:54 +01:00
Wolfgang Huß
4ca18522f1 Implement the filed report notification on the notification page
- Get all the old tests running.
- Implement new necessary tests.
- Lint fixing.
2020-01-20 18:03:40 +01:00
roschaefer
e24d8035b1 Fix this annoying bug with a tested helper
I don't know where the bug originates. But it can only be that either
`previousResult` or `fetchMore` result is sometimes undefined. This
should make the function bullet-proof for these situations.
2019-12-10 23:28:01 +01:00
roschaefer
973d3f899a Remove dots of gmail addresses
I had a chat with our moderator Daniel. He asks us to remove dots from
gmail accounts. He finds it more consistent and he has no problem to
write a mail to a gmail address without dots. He is OK to save the
email address different from how a user memorizes it.
2019-11-28 14:02:11 +01:00
roschaefer
7146e0a9b2 Fix lint 2019-11-28 13:48:09 +01:00
roschaefer
9e2baf25d2 Don't remove dots in emails 2019-11-28 11:22:09 +01:00
roschaefer
36062ffa8c Fix lint 2019-11-16 14:34:23 +01:00
mattwr18
d56c81dc3d Add test for NotificationsTable and refactor 2019-11-11 08:52:04 +01:00
mattwr18
e8c6941142 Follow @roschaefer's PR review suggestions
- disable button if form.reasonCategory is falsy
- extract valuesReasonCategoryOptions to global constant
- extract reasonCategoryOptions to created lifecycle hook to keep data()
clean and use map
- extract formSchema to components/utils and test
- remove validator from formSchema and validate based on "Deep Rules" https://github.com/yiminghe/async-validator#deep-rules
- Use v-model to update reasonCategory and reasonDescription
- default to error message in English from backend
- Update template slot to use new syntax
2019-10-15 20:28:25 +02:00
roschaefer
b58b4dca4f Write a test for UniqueSlugForm 2019-09-20 22:37:38 +02:00
roschaefer
c378505293 Add one test case for update user form 2019-09-20 20:30:57 +02:00
roschaefer
e8f47cb004 Frontend validations for regex 2019-09-20 20:24:04 +02:00
roschaefer
be6c4a6f7c Refactor to use FormSchema
That way we can re-use the code for slug validation in the
CreateUserAccount component
2019-09-20 20:05:27 +02:00
Robert Schäfer
4207aee09d DRY up password validations 2019-07-09 22:12:40 +02:00
Wolfgang Huß
472bfc2a88 Used PostMutations in PostHelpers now
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-06-14 18:44:56 +02:00
Wolfgang Huß
45bd1299ce Rewrote the PostHelpers and put them in a utils folder 2019-06-14 10:37:43 +02:00
Wolfgang Huß
482ac1572b Refactored and created the tests of DeletePostCallback
Created a folder `utils` for PostHelpers.js.
Fixed a new incoming problem of the master with deleting Posts on the User Profile.

Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-06-13 19:23:13 +02:00