ZHAW-PM4-Compass / compass

A time-, mood- and incident tracking application for Stadtmuur called Compass 🧭
https://stadtmuur.ch/
MIT License
0 stars 0 forks source link

As a participant/social worker I want to fill in the daily report of the mood in diffrent predefined categories #15

Closed x-snackage-x closed 3 months ago

x-snackage-x commented 5 months ago

Further Details Since categories up for a rating are dynamic we define the process as follows:

For the Social-Worker: FE passes User ID to receive all categories
-> BE collects categories as Union of all global categories (User is NULL) and User categories -> FE receives categories array and passes back same array with ratings and DaySheet-ID and User ID -> BE records ratings to DaySheet and sets ratings type based on flag in input and later role in passed JWT

For the Participant: FE doesn't need to pass User ID, token is sufficient.
FE has to call a different endpoint for Participant or Social-Worker ratings.

See #23 for more details on categories.

Estimate L - Storypoints

Tasks Checklist

Acceptance Criteria

Non-Functional Requirements

Dependencies This user story duplicates #18: We combine both stories and close #18. For now the rating type will be driven by a flag set in the request. When user roles functionality is more mature we will implement the type trigger based on the role passed in the JWT as defined in #55

This user story is to be completed with #57

This user story is linked to and partially blocked by #23:
The categories a user should provide a rating for are dynamic and are based on Inputs by the admin.

This user story is also dependant on all auth0 user stories.

r44cx commented 3 months ago

moved to #106