orbiting / republik-admin-frontend

[DEPRECATED] moved to https://github.com/republik/plattform A front end to manage users and payments of Republik.
6 stars 3 forks source link

User widgets pt1 #27

Closed lukasbuenger closed 5 years ago

lukasbuenger commented 5 years ago

The care team needs more information available on the index page of every user. Therefore we decided to create widgets that can be independently placed and more importantly be changed and adjusted quickly instead of having this single query that everything is depending on.

This PR includes the first few widgets without adding them to the user page yet. A widget tries to incorporate everything that is needed to load, display and mutate a certain entity with minimal dependencies on context. The only interdependencies should be exposed Apollo queries that have to get refetched after a mutation. The widgets in this branch are:

Particulars widget

49723248-b77bae80-fc66-11e8-93e3-6df49520197b

49723271-bfd3e980-fc66-11e8-961f-fbd2d251ca9e

Email widget

49723470-2d801580-fc67-11e8-82bf-277be8e2a5cf 49723470-2d801580-fc67-11e8-82bf-277be8e2a5cf

Latest activity widget

image

Newsletter widget

image

image

Roles widget

image

image

Possible User dashboard 49723470-2d801580-fc67-11e8-82bf-277be8e2a5cf