CollActionteam / collaction_app

CollAction cross-platform mobile application for iOS and Android
https://collaction.org
GNU General Public License v3.0
34 stars 12 forks source link

[FEATURE]: View others profiles #329

Open Xazin opened 1 year ago

Xazin commented 1 year ago

We want to be able to view the profile of another user.

This requires refactoring of ProfileBloc, ProfileScreen, and maybe other parts.

Extend UserProfilePage to take an argument String? userId. If null then ProfileBloc should fetch the profile via. v1/profiles/me which is what it currently does. However, if the userId is supplied, then it should use the endpoint v1/profiles/${userId}.

Once UserProfilePage, ProfileBloc, and ProfileRepository (including the interface IProfileRepository) has been amended, also include this work:

  1. Refactor the ListTile returned from the ItemBuilder in crowdaction_participants_screen.dart into it's own widget, eg. ParticipantsListTile.
  2. Use GestureDetector so that when pressed it will open the ProfileScreen with the participants userId (participation.userId)
saksham-gt commented 1 year ago

Hey, is anyone working on it? If not, I'm willing to take it up.

pythonhubdev commented 1 year ago

Hi @Xazin It has been assigned to me I will be taking it up shortly. We can collaborate and work.

Xazin commented 1 year ago

@pythonhubdev Hey Vetrichelvan, let me know what is going on, I'm assigning this to @glitchpop-frenzy since I haven't heard from you! :)

CollActionOfficial commented 1 year ago

@glitchpop-frenzy what's the status on this? @pythonhubdev indicated he'd like to pick up a task for some time now, so maybe you can finish it together? Are you already working on a branch? And @pythonhubdev, could you send a message to @glitchpop-frenzy on Slack regarding this issue? :)

saksham-gt commented 1 year ago

Hey, yes! Sorry for the delay. It's a feature in progress and I completed most of the parts. Been a bit busy with work and went out for a week. I'll surely open up a PR for this feature this week.