Closed yinonov closed 3 years ago
Enhanced by: #166
@yinonov please review and let me know your thoughts.
Once a teacher creates a session they can delete it only if no one is enrolled in the session.
A teacher can cancel a session (delete it), if there are students enrolled, in case of an emergency. If they cancel, there should be an automatic email sent to the students. The email will be sent through MailChimp, and the students get a full refund.
Only the following fields can be edited after the session is done:
@LolaRev where do you think we can place the DELETE button & CANCEL button in terms of UI?
@ilirhushi we can add it here.
Also, here if possible for a quick edit.
It should be available only for the session creator.
@yinonov @LolaRev what happens when user hits DELETE
because the reference will be deleted, will we redirect to some other page?
my suggestion the list of sessions under the account. @yinonov thoughts?
@yinonov delete session works from my end. I can't test the scenario where there are already students signed for it. Any suggestions? Also, I didn't see it on the session's card.
@LolaRev we don't really know how to display it and where. We can do like a "more" icon to open a menu with edit, delete etc'...
@yinonov yes. Please add it as a side menu. See this example:
For the card, there are 3 dots on the design.
Delete a session
@yinonov please review and let me know your thoughts.
Once a teacher creates a session they can delete it only if no one is enrolled in the session.
Cancel a session (it is the same action as delete but with a different scenario)
A teacher can cancel a session (delete it), if there are students enrolled, in case of an emergency. If they cancel, there should be an automatic email sent to the students. The email will be sent through MailChimp, and the students get a full refund.
Edit session
Only the following fields can be edited after the session is done:
- Promotion (if they want to add a discount, etc)
- Description, goals, name, what's needed - also can be edited but we will make sure to tell the teachers they can't change the assent of the session once someone is enrolled.
- add or change the thumbnail, intro video. All the other fields can't be changed.
partially issued by #176
Describe the bug Session doesn't have a delete button
Expected behavior Session should have a delete button
Screenshots
Additional context
create a firebase cloud callable function to enable deletion if:
(all following conditions should be validated both on client & backend)
Session is owned by user
session is a draft
session has no subscribers/enrolments to it #167
[ ] if some of the above don't apply - ui should indicate the reason for blocking delete button
Deletion of session should affect references such as:
btw @LolaRev we should define a process for deletion of published sessions