ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[My Habits] Unmarking a habit in the calendar doesn't work #7502

Open borntoshine1 opened 1 day ago

borntoshine1 commented 1 day ago

Environment: Windows 11 Pro Version 23H2, x64 Google Chrome Version 128.0.6613.137 (Official Build) (64-bit) Microsoft Edge Version 129.0.2792.52 (Official build) (64-bit)

Reproducible: always in Google Chrome and Edge. But unmark works in Firefox.

Preconditions

Go to the https://www.greencity.cx.ua/#/greenCity website Log in Click the 'My space' button. The habit is tracked for 2 or more days.

Steps to reproduce:

  1. Click on the current day in the calendar.
  2. In the pop-up window, click the '+' button to the left of the habit name
  3. The button changes to a 'v'
  4. Close the pop-up window.
  5. Click on the current day in the calendar.
  6. In the list of habits, the selected habit is marked as done.
  7. Click on the 'v' button to the left of the habit name.
  8. The button changes to a '+'
  9. Close the pop-up window.
  10. Click on the current day in the calendar.
  11. In the list of habits, the selected habit is marked I will do.
  12. Close the pop-up window.
  13. Click on the day before the current one.
  14. In the pop-up window, from the list of habits, select the habit marked with a completed 'v'
  15. Click on the 'v' button to the left of the habit name.
  16. The button will change to '+'
  17. Close the pop-up window.
  18. Click on the day before the current one.
  19. In the list of habits, the selected habit is marked as completed.

Actual result:

  1. The status of the habit remains Done after you deselect it.
  2. https://github.com/user-attachments/assets/5c78dec7-cfd5-4164-92c8-ac575e1dc3b9

Expected result:

  1. After unmarking a habit as Done, it remains in the Untracked status even after refreshing the window.
  2. The counter of days goes to negative value.
  3. https://github.com/user-attachments/assets/051b30a0-1ca4-4979-a27a-0261f07c9da8
borntoshine1 commented 1 day ago

https://github.com/user-attachments/assets/434680f8-07ea-4ed0-9bde-fbe94ea74dba