[CIAB:POS] Add team member avatar to POS bookings list#15381
Open
[CIAB:POS] Add team member avatar to POS bookings list#15381
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #15381 +/- ##
============================================
- Coverage 39.18% 39.18% -0.01%
- Complexity 10921 10923 +2
============================================
Files 2237 2237
Lines 127215 127229 +14
Branches 17733 17735 +2
============================================
+ Hits 49852 49854 +2
- Misses 72287 72299 +12
Partials 5076 5076 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
38a52be to
fafb301
Compare
Display a circular avatar in each booking list card showing the team member's photo or initials as fallback. Uses the v2 team-members API data already fetched by the repository.
fafb301 to
6be178c
Compare
malinajirka
approved these changes
Feb 20, 2026
Contributor
malinajirka
left a comment
There was a problem hiding this comment.
LGTM! I've left one minor comment.
| } | ||
| } | ||
|
|
||
| private fun mapTeamMember( |
Contributor
There was a problem hiding this comment.
🔍 Might be worth covering with tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes WOOMOB-2222
Closes WOOMOB-2228
Description
Adds a team member avatar to each booking card in the POS bookings list. The avatar is a 24dp circle placed in the top-right corner of the card. When the team member has a photo, it loads the image via Coil. When there's no photo (or while loading), it shows the team member's initials on a gray background. A light border is shown around the avatar only when the image is loaded.
The data comes from the v2 team-members API (
/wc-bookings/v2/resources/team-members/) which was already being fetched. Theresource_idon each booking links to a team member, and we now pass the full resource through to the list item mapper.Test Steps
Note: Currently you can create team members via the CIAB UI, but it looks like you can not assign them to bookings through the UI. To test this you need to either use the API directly and assign team members to a bookng or I can invite you to my test site.
Images/gif
02-18--19-17.mp4
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.