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] Incorrect avatars are displayed on the collective habit card #7465

Open borntoshine1 opened 2 months ago

borntoshine1 commented 2 months ago

Environment: Windows 11 Pro Version 23H2, x64 Google Chrome Version 128.0.6613.137 (Official Build) (64-bit) Firefox 127.0 (64-bit)

Reproducible: always

Preconditions The user has at least one collective habit in progress.

Steps to reproduce

  1. Go to the https://www.greencity.social/#/greenCity website
  2. Log in
  3. Click the 'My Space' tab.

Actual result: Show avatars of a friend that track the same habit as user. Image

Expected result: Shows avatars of friends who are invited to track the habit together.

User story: https://github.com/ita-social-projects/GreenCity/issues/988

kovalsofiia1 commented 1 month ago

Hi @borntoshine1 , the user should be able to see avatars of users who already track this habit, if the user was only invited, but did not accept the invite he shouldn`t be there

borntoshine1 commented 1 month ago

Hi @kovalsofiia1, after clarifying with the product owner, I received an answer: the avatars of the friends with whom you track your habit should be displayed, as specified in the user story.

bzhn commented 3 weeks ago

Hi @borntoshine1,

The business logic of showing users' avatars is managed on the back-end. List of the avatars for habit card is returned from the following endpoint

https://greencity.greencity.cx.ua/habit/539/friends/profile-pictures

where 539 is habit ID.

Swagger

This means that the issue is related to back-end and not front-end, so more labels should be added to the issue.