Angular /Graphql/mongodb/node.js: Add a status field and related behavior to an object in an existing app
Budget: $50 – $150 USD
Please see the details with screenshots in this link and please refer to the attached file for code.
The existing app is built Angular 7, Graphql -Redis Pubsub mongoose and node.js to be able to complete this task:
https://docs.google.com/document/d/1tUt-MvxHUD57FGRenwGhSb2m3NMrRMrsNjGtrS6GhHM/edit?usp=sharing
From the above document:
A status field has been added in the schema for the activity object, and the draft UI related to the status field has been added in the activities screen (the home component). Please implement the behavior related with activity status.
As a teacher, I can change the activity status by selecting one of the 3 options on the drop-down
The students can only see the active activities, inspectors can only see active and archived activities
Conditions:
Teachers can delete (soft delete) only Activities with draft status.
active status can be revert to draft if there are no post or evidence in associate with the activity - classes yet.
Teachers can only archive active activities
other teachers can see activities in all status..
Archived activities can be moved back to active state.
As a teacher and inspector I can filter activities by status so that I can see only limited activities.
Inspectors can only filter Active and Archived activities
Hide archived and Draft activities from students and inspectors
allow soft deleting (set isDeleted=true) activity. activity can only be deleted if it is "draft" and not associated with any classes.
deleted activities will not be visible to anyone. A confirm pop up should show to ask the teacher to confirm deletion. both front-end and backend should enforce the deletion logic
The existing app is built Angular 7, Graphql -Redis Pubsub mongoose and node.js to be able to complete this task:
https://docs.google.com/document/d/1tUt-MvxHUD57FGRenwGhSb2m3NMrRMrsNjGtrS6GhHM/edit?usp=sharing
From the above document:
A status field has been added in the schema for the activity object, and the draft UI related to the status field has been added in the activities screen (the home component). Please implement the behavior related with activity status.
As a teacher, I can change the activity status by selecting one of the 3 options on the drop-down
The students can only see the active activities, inspectors can only see active and archived activities
Conditions:
Teachers can delete (soft delete) only Activities with draft status.
active status can be revert to draft if there are no post or evidence in associate with the activity - classes yet.
Teachers can only archive active activities
other teachers can see activities in all status..
Archived activities can be moved back to active state.
As a teacher and inspector I can filter activities by status so that I can see only limited activities.
Inspectors can only filter Active and Archived activities
Hide archived and Draft activities from students and inspectors
allow soft deleting (set isDeleted=true) activity. activity can only be deleted if it is "draft" and not associated with any classes.
deleted activities will not be visible to anyone. A confirm pop up should show to ask the teacher to confirm deletion. both front-end and backend should enforce the deletion logic