Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communication: Show profile picture #111

Open
wants to merge 41 commits into
base: develop
Choose a base branch
from

Conversation

FelberMartin
Copy link
Collaborator

@FelberMartin FelberMartin commented Nov 16, 2024

Problem

Currently profile pictures are not visible in the android app (see #63). This is the first of two planned PRs for this feature. This PR solely focusses on the minimal functionality by adding the profile pictures to the chat.

Changes

  • Added authorImageUrl to post entities
  • Created ProfilePictureImageProvider
  • Showing ProfilePicture instead of AuthorRoleIcon
    • Added AuthorRoleIcon in front of the name
    • As a follow up this should be adapted to iOS, I feel these changes would be to big for this PR

Screenshots

image

Followup

Add Profile pictures 2:

  • Create onClick dialog for profile pictures (see iOS)
  • To the conversation header
  • To the Conversation overview
  • To notifications

Adjust the message view to iOS:

  • Show cards around messages
  • Replace authorRole icon with badge above the user name
  • Move post time to the right

@FelberMartin FelberMartin self-assigned this Nov 16, 2024
@FelberMartin FelberMartin marked this pull request as draft November 16, 2024 10:50
@FelberMartin FelberMartin marked this pull request as ready for review November 18, 2024 11:05
@FelberMartin FelberMartin added the ready for review This PR can be reviewed label Nov 18, 2024
Copy link
Contributor

@julian-wls julian-wls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feature, the results look really nice.
I didn't experience any issues in connection with these changes.
I found some minor things, which might be worth discussing, see below.
Overall good, approved from my side.

@FelberMartin FelberMartin removed the ready for review This PR can be reviewed label Nov 25, 2024
@FelberMartin FelberMartin force-pushed the feature/communication/show-profile-picture branch from 94ef35b to c0473c4 Compare November 26, 2024 19:09
…-rendering' into feature/communication/show-profile-picture

# Conflicts:
#	feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/chatlist/MetisChatList.kt
#	feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/thread/MetisThreadUi.kt
#	feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ConversationAnswerMessagesUITest.kt
@FelberMartin FelberMartin added the ready for review This PR can be reviewed label Nov 29, 2024
@FelberMartin FelberMartin added the database changes This PR includes database changes and should be treated with extra care when merging label Nov 29, 2024
FelberMartin and others added 2 commits November 29, 2024 14:24
…ion/show-profile-picture

# Conflicts:
#	feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/service/storage/impl/MetisStorageServiceImplTestUpgradeLocalAnswerPost.kt
Base automatically changed from bugfix/communication/attachments-rendering to develop November 30, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database changes This PR includes database changes and should be treated with extra care when merging ready for review This PR can be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Communication: Profile pricures are not shown in the android app
3 participants