Commit graph

150 commits

Author SHA1 Message Date
Philipp Lohner 48d976d263 Changed or added Colors and fonts to meet recent campaign design 2021-07-24 12:15:27 +02:00
Christoph Lienhard ce343c8c21 #28 Fix eslint warning 2021-06-25 09:22:23 +02:00
Philipp Lohner 4bac42f2c7 Added Info Text Component and implemented .map for Array of Page Infos 2021-06-24 17:53:21 +02:00
Philipp Lohner 4ac4738a06 added mutation - nsfp 2021-06-24 13:20:56 +02:00
Philipp Lohner e71faf536d made textareas editable, prepared info mutations 2021-06-23 23:42:16 +02:00
Philipp Lohner ee23820cce Added datastructure and gql queries, added dynamic info 2021-06-23 22:51:52 +02:00
Philipp Lohner 56691a3135 Some Info Edit Styles added 2021-06-20 16:59:36 +02:00
Philipp Lohner e5f0cf24f5 Added structure for Edit Impressum and About Page 2021-06-20 10:49:43 +02:00
Christoph Lienhard d46e5cdf2d
#20 Disable changeRole for logged-in user 2021-06-13 12:55:54 +02:00
Christoph Lienhard 44d58f072c
#20 Fix display persons integration test 2021-06-13 12:07:30 +02:00
Christoph Lienhard f0738aca27
#20 Refetch AllPersons on changeRole
Cache update seems too complicated since there is more
than one field "allPerson" when only the cached query
witch sorts by role needs to be updated.

Automatically refetching the query solves the problem
sufficiently good.
2021-06-13 11:54:16 +02:00
Christoph Lienhard 1f895d4bad
Run prettier 2021-06-13 11:51:51 +02:00
Christoph Lienhard 73055d2399
Do not run tests on commit 2021-06-13 11:51:31 +02:00
Philipp Lohner 0d6d496291 added functions to close menu and reload element after user role change 2021-05-29 18:09:31 +02:00
Christoph Lienhard 2dc8a97af0
Merge remote-tracking branch 'origin/feature/#20' into feature/#20 2021-05-29 17:34:51 +02:00
Christoph Lienhard 8ec2158f95
#20 Fix database start-up 2021-05-29 17:34:25 +02:00
Philipp Lohner 1779be2b39 changeRole implemented in UserManagement 2021-05-29 17:19:11 +02:00
Christoph Lienhard fc7fc9f841
#20 Run prettier on the whole redaktions-app source 2021-05-29 00:00:10 +02:00
Christoph Lienhard fbc9376575
#20 Use Grüne theme for everything not just CustomAppBar.tsx
Moved theme into index.tsx to apply color scheme to all components
in the app.
2021-05-28 23:58:13 +02:00
Christoph Lienhard 4a2ba8406d
#20 Return person on change role mutation
Return the whole person object on calling the changeRole mutation.
This enables the apollo cache in the frontend to automatically
update the role of the given user.

Furthermore, made all create function statements idempotent by
deleting them first if existing.
2021-05-28 23:41:30 +02:00
Philipp Lohner 1e518e8e9d Added Theme for Redaktions-App and basic color scheme green/purple (according Gruene-CI) 2021-05-26 10:04:37 +02:00
Philipp Lohner f9de07f3ab several minor changes in user management 2021-05-17 20:54:58 +02:00
Philipp Lohner 08fd48fee8 splay Roles Changed 2021-05-09 20:56:50 +02:00
Philipp Lohner ba4f3044cb splay Roles changed 2021-05-09 20:54:53 +02:00
Philipp Lohner 32395abb31 hange Role Function added Start 2021-05-09 19:10:44 +02:00
Christoph Lienhard 1cb6610b09
Fix Unexpected use of location error 2021-04-21 20:25:44 +02:00
Christoph Lienhard e26a154518
#20 Add UserManagement page
Connects to backend and gets all registered users by role.
Enabled editors to see all registered users which wasn't possible.
2021-03-30 18:24:41 +02:00
Christoph Lienhard 765443ebc2
Refactor: Fix eslint problems in tests 2021-03-30 17:57:28 +02:00
Christoph Lienhard dd47b36890
Refactor: Improve typing in jwt.ts 2021-03-30 15:44:04 +02:00
Christoph Lienhard ee263f52b1
Introduce routes to navigate as logged-in user
This also enables navigating to an empty user-management page
if logged-in as an editor.
2021-02-08 00:16:33 +01:00
Christoph Lienhard 9944f8a38b
#20 add drawer menu
Also:
* Extract User Menu into own Component
2021-02-07 23:06:58 +01:00
Christoph Lienhard 741874d07d
#20 log-out user in frontend in case of 401 from backend 2021-02-07 23:06:58 +01:00
Christoph Lienhard 642062dff2
Reset apollo cache on logout 2021-02-07 23:06:58 +01:00
Christoph Lienhard b26d6d6e69
Fix "used before it was defined" warning
* updated react-scripts (fix eslint-plugin problems)
* reorder functions where needed
2021-02-07 23:06:58 +01:00
Christoph Lienhard c12aadef04 Merge pull request 'feature/#14' (#23) from feature/#14 into develop
Reviewed-on: Netzbegruenung/candymat#23
2021-01-30 21:49:24 +01:00
Christoph Lienhard a70dd7d6a5
#14 Add integration tests for answering questions 2021-01-30 18:15:51 +01:00
Christoph Lienhard 8afea80dd2
Add eslint to redaktionsapp 2021-01-30 16:12:10 +01:00
Christoph Lienhard 77ef07d9ff
Add prettier for redaktions-app 2021-01-09 12:49:28 +01:00
Christoph Lienhard 5e219089f6
#14 Implement possibility to answer questions for canditates 2021-01-05 18:28:24 +01:00
Christoph Lienhard 6ea057a1cf
Update candymat-user-app to latest develop version 2020-12-31 21:16:51 +01:00
Christoph Lienhard 16d8e527f7
Fix several smaller problems
* adapt for structure change in gql backend (e.g. id -> rowId)
* display questions not rowId dependent anymore
* fixed calculation error if both, party and user, selected "skipped"
* fixed problems occuring when a candidate hasn't answered all questions (yet)
2020-12-31 21:13:23 +01:00
Christoph Lienhard 3490ca5a2c Merge pull request '#13 Show different main pages based on logged in user role' (#22) from feature/#13 into develop
Reviewed-on: Netzbegruenung/candymat#22
2020-12-31 13:16:47 +01:00
Christoph Lienhard 70df7c09e0
#13 Show different main pages based on logged in user role 2020-12-31 11:36:23 +01:00
Christoph Lienhard b3492174b5 Merge pull request 'feature/#11' (#19) from feature/#11 into develop
Reviewed-on: Netzbegruenung/candymat#19
2020-12-30 22:54:26 +01:00
Christoph Lienhard 0016e12acd
#11 Refactor: Disentangle QuestionList 2020-12-30 22:46:26 +01:00
Christoph Lienhard ff505226ab
#11 Refactor: Disentangle CategoryList 2020-12-30 22:21:29 +01:00
Christoph Lienhard 0170e850a8
#11 Refactor: Some renamings 2020-12-30 21:13:06 +01:00
Christoph Lienhard fc8bc6724b
#11 Refactor: Introduce apollo reactive variables for global state
Use it to streamline entangle the delete dialog(s) from the list(s)
2020-12-30 18:26:19 +01:00
Christoph Lienhard 42dc7f285d
#11 Add integration tests for displaying/deleting/editing and adding categories 2020-12-30 16:51:19 +01:00
Christoph Lienhard acbe0a453c
#11 Added integration tests for deleting and adding questions 2020-12-30 16:30:19 +01:00