issues
search
BinaryStudioAcademy
/
bsa-2024-bebalance
Track your work-life balance and improve the specific areas of your life with AI recommendations.
4
stars
1
forks
source link
feat: change task after deadline bb-446
#579
Closed
Shcracoziabra
closed
1 month ago
Shcracoziabra
commented
1 month ago
446
Overview
[x] Created a modal that will appear on the Tasks screen when the countdown for the exact task ends.
[x] Changed the status of a task after its deadline after user action (extend deadline, mark as completed or skip).
[x] Modal appears in the Tasks tab if there is at least one task expired.
[x] User can horisontally slide expired tasks if there are several ones.
[x] Notification is triggered on the task dueDate property to warn user of the task expired.
Summary:
added @notifee/react-native to display expired task notification;
created ExpiredTasksModal component for expired tasks;
adjusted DeadlineCountdown component to change appearance when expired or active;
adjusted TaskCard component to change appearance when expired or active;
added updateTaskAfterDeadline method to tasks api;
created updateTaskAfterDeadline thunk for tasks slice;
added activeTasks and expiredTasks to the tasks slice to make task screen update on state change possible;
added setActiveTasks, setExpiredTasks, addExpiredTask to slice actions.
Screenshots
Userflow
446
Overview
Summary:
Screenshots
Userflow