Skip to content

feat(#10662): display contact profile photo#11087

Open
benkags wants to merge 1 commit into
medic:masterfrom
benkags:10662-display-profile-photo
Open

feat(#10662): display contact profile photo#11087
benkags wants to merge 1 commit into
medic:masterfrom
benkags:10662-display-profile-photo

Conversation

@benkags
Copy link
Copy Markdown
Contributor

@benkags benkags commented May 18, 2026

Description

Add the ability to display the profile photo of the user when provided in the contact profile. The profile photo field is configurable in contact type definition.

Code review checklist

  • UI/UX backwards compatible: Test it works for the new design (enabled by default). And test it works in the old design, enable can_view_old_navigation permission to see the old design. Test it has appropriate design for RTL languages.
  • Readable: Concise, well named, follows the style guide
  • Documented: Configuration and user documentation on cht-docs
  • Tested: Unit and/or e2e where appropriate
  • Internationalised: All user facing text
  • Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in the release notes.
  • AI disclosure: Please disclose use of AI per the guidelines.

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

Comment thread webapp/src/ts/components/contact-photo/contact-photo.component.ts Fixed
@benkags benkags changed the title [draft] feat(#10662): display contact profile photo feat(#10662): display contact profile photo May 27, 2026
@benkags benkags force-pushed the 10662-display-profile-photo branch 3 times, most recently from 3fc31cf to 9395085 Compare May 27, 2026 12:40
- add ContactPhotoComponent
- replace the resource-icon span in contacts-content with
mm-contact-photo
- expose photo_field on contact-type config
- use photo as default photoField
@benkags benkags force-pushed the 10662-display-profile-photo branch from 9395085 to 63b4b83 Compare May 27, 2026 13:04
@benkags
Copy link
Copy Markdown
Contributor Author

benkags commented May 27, 2026

Hi @dianabarsan @jkuester I decoupled this from #10923 since profile photo display automatically work as long as the photo has been attached to the contact doc; so this can be reviewed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants