Skip to content

Fix gray fallback avatars on Workspace Members page - #99589

Merged
justinpersaud merged 1 commit into
mainfrom
claude-fixGrayMemberAvatars
Aug 31, 2026
Merged

justinpersaud merged 1 commit into
mainfrom
claude-fixGrayMemberAvatars

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

On the Workspace Members page, members whose personal details aren't loaded yet (e.g. right after Clear cache and restart) rendered the generic gray fallback avatar. buildUserIcon in UserAvatarUtils.ts only produced a default avatar when invitedEmail was passed, so a not-yet-loaded member fell through to defaultAvatars.FallbackAvatar with no fallbackIcon, and UserAvatar rendered the gray asset. The list started rendering those members after #98483, which is why the regression became visible.

This mirrors how the rest of the app already handles this (see ReportUtils and PersonalDetailsUtils) by seeding source with getDefaultAvatarURL — a locally-drawn letter avatar (first initial + login-hashed color), requiring no network request. It seeds source (not fallbackIcon), because parseLetterAvatarURL only inspects the resolved source; a letter URL in fallbackIcon would be fetched as a remote image instead of drawn locally.

Changes:

  • UserAvatarUtils.buildUserIcon accepts an optional accountEmail and, when personal details aren't loaded, seeds source with getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(accountEmail)}). Invited rows are unchanged.
  • useAccountIcons accepts a third optional accountEmails param (index-aligned with accountIDs) and forwards it.
  • AccountAvatar accepts an optional accountEmail prop and passes it through.
  • WorkspaceMembersTableRow passes accountEmail={item.login} (uses login, not the phone-formatted email).
  • WorkspaceMemberDetailsPage seeds the UserAvatar source from the already-recovered memberLogin so the details page matches the row.

Members with an email login now show a letter avatar; phone/SMS logins keep the illustrated catalog default (letter-avatar initials are empty for SMS logins by design); once personal details load, the real avatar takes over. MultiAccountAvatar, AccountAvatarWithCardFeed, usePolicyIcons, and invited/pending rows are unchanged because they pass no accountEmail.

Fixed Issues

$ #99381
PROPOSAL:

Tests

  1. Create a workspace and invite a member with an email login.
  2. Go to Troubleshoot → Clear cache and restart.
  3. Open Workspace → Members and verify the member shows a colored letter avatar (not gray).
  4. Open the member's details page and verify the avatar matches the row.

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review".
// Suggested steps: Create a workspace and invite a member with an email login. Go to Troubleshoot → Clear cache and restart. Open Workspace → Members and verify the member shows a colored letter avatar (not gray). Open the member's details page and verify the avatar matches the row. Confirm phone/SMS logins keep the illustrated catalog default and that invited/pending rows are unchanged.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

Same as tests

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review", or the issue title must include "[No QA]".

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
Screen.Recording.2026-08-27.at.23.17.45.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2026-08-27.at.23.14.39.mov
MacOS: Chrome / Safari
Screen.Recording.2026-08-27.at.23.11.15.mov

Co-authored-by: Joe Ph <gijoe0295@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team August 26, 2026 17:54
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Aug 26, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-fixGrayMemberAvatars
git checkout -b claude-fixGrayMemberAvatars upstream/claude-fixGrayMemberAvatars
git push -u origin claude-fixGrayMemberAvatars

Then you can close this PR and open a new one from your fork.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Ran the PR testing steps on Android (standalone NewDot). Result: ✅ pass — after Clear cache and restart, an invited email-login member shows a colored letter avatar (not the gray fallback) on both the Members list and the member details page, matching the fix. Phone/SMS logins keep the illustrated catalog default, unaffected.

Step Status Observation
Create a workspace and invite a member with an email login ✅ pass New workspace created; invited an email-login member, confirmed on the Members list.
Troubleshoot → Clear cache and restart ✅ pass Account → Troubleshoot → "Clear cache and restart" → confirmed "Reset and refresh"; app reloaded (full restart).
Members list shows a colored letter avatar (not gray) ✅ pass After restart, the avatar renders a colored circle with the initial "G" (teal), not the gray SvgFallbackAvatar. Accessibility tree confirmed a literal "G" glyph rather than a fallback SVG icon.
Member details page avatar matches the row ✅ pass Details page shows the same teal "G" letter avatar, matching the list row exactly.
Phone/SMS logins keep the illustrated catalog default; invited/pending rows unchanged ✅ pass SMS-login member (+1 500-555-0123) rendered the illustrated default catalog avatar (SvgFallbackAvatar), confirming SMS logins are unaffected by the letter-avatar fix.

Console errors: none.

Environment quirks (unrelated to the fix)
  • The invited SMS/phone member was optimistically added but reverted by the backend within ~1–2s each attempt — appears to be a test-environment backend/provisioning constraint, not a client rendering issue. The client-side avatar render was captured during the brief optimistic-add window.
  • Fresh test accounts land in the onboarding wizard before Home; this was navigated through to reach the workspace used for testing.
Screenshots

Members list right after inviting the email-login member

Members list right after inviting the email-login member

Members list after cache clear/restart showing colored letter avatar "G"

Members list after cache clear/restart showing colored letter avatar G for email-login member

Member details page showing matching colored letter avatar "G"

Member details page showing matching colored letter avatar G

Members list (owner-only state after removing the email member)

Members list after removing the email member (owner-only state)

Members list showing illustrated default catalog avatar for SMS-login member

Members list showing illustrated default catalog avatar for SMS-login member

view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Ran the PR testing steps on Web (dev NewDot). Result: ✅ pass — after Clear cache and restart, an invited email-login member shows a colored letter avatar (blue "M") on both the Members list and the member details page, matching the fix. Phone/SMS logins keep the illustrated catalog default, unaffected. No gray fallback avatar observed anywhere.

Step Status Observation
Create a workspace and invite a member with an email login ✅ pass Created a workspace, invited an email-login member; Members list showed "Total workspace members: 2" with the new row.
Troubleshoot → Clear cache and restart ✅ pass Account → Troubleshoot → "Clear cache and restart" → confirmed "Reset and refresh"; app reset and returned to signed-in state.
Members list shows a colored letter avatar (not gray) ✅ pass Post-restart, the email-login member's avatar is a blue circle with letter "M" (pixel sample RGB 68,144,215 — clearly blue, not gray).
Member details page avatar matches the row ✅ pass Details page shows the same blue "M" letter avatar, matching the list row exactly.
Phone/SMS logins keep the illustrated catalog default; invited/pending rows unchanged ✅ pass Phone invite (+1 500-555-0075) shows the standard illustrated cartoon-catalog avatar — not a letter and not the gray fallback.

Console errors: none.

Environment quirks (not app bugs)
  • Left-hand nav sidebars weren't exposed in the accessibility tree in this build, so navigation used coordinate-based clicks; the viewport was temporarily enlarged to reveal "Troubleshoot" and restored afterward. Neither affected the fix under test.
Screenshots

Members list after clear cache and restart — colored letter avatar for email-invited member

Members list after clear cache and restart, showing colored letter avatar for email-invited member

Member details page showing matching colored letter avatar

Member details page showing matching colored letter avatar

Members list with phone-invited member showing illustrated catalog default avatar

Members list with phone-invited member showing illustrated catalog default avatar

Zoomed comparison — phone (illustrated), owner (letter), email-invited (letter)

Zoomed comparison of phone (illustrated), owner (letter), and email-invited (letter) avatars

view run

@gijoe0295

gijoe0295 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
Details

Explanation of Change

On the Workspace Members page, members whose personal details aren't loaded yet (e.g. right after Clear cache and restart) rendered the generic gray fallback avatar. buildUserIcon in UserAvatarUtils.ts only produced a default avatar when invitedEmail was passed, so a not-yet-loaded member fell through to defaultAvatars.FallbackAvatar with no fallbackIcon, and UserAvatar rendered the gray asset. The list started rendering those members after #98483, which is why the regression became visible.

This mirrors how the rest of the app already handles this (see ReportUtils and PersonalDetailsUtils) by seeding source with getDefaultAvatarURL — a locally-drawn letter avatar (first initial + login-hashed color), requiring no network request. It seeds source (not fallbackIcon), because parseLetterAvatarURL only inspects the resolved source; a letter URL in fallbackIcon would be fetched as a remote image instead of drawn locally.

Changes:

  • UserAvatarUtils.buildUserIcon accepts an optional accountEmail and, when personal details aren't loaded, seeds source with getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(accountEmail)}). Invited rows are unchanged.
  • useAccountIcons accepts a third optional accountEmails param (index-aligned with accountIDs) and forwards it.
  • AccountAvatar accepts an optional accountEmail prop and passes it through.
  • WorkspaceMembersTableRow passes accountEmail={item.login} (uses login, not the phone-formatted email).
  • WorkspaceMemberDetailsPage seeds the UserAvatar source from the already-recovered memberLogin so the details page matches the row.

Members with an email login now show a letter avatar; phone/SMS logins keep the illustrated catalog default (letter-avatar initials are empty for SMS logins by design); once personal details load, the real avatar takes over. MultiAccountAvatar, AccountAvatarWithCardFeed, usePolicyIcons, and invited/pending rows are unchanged because they pass no accountEmail.

Fixed Issues

$ #99381
PROPOSAL:

Tests

  1. Create a workspace and invite a member with an email login.
  2. Go to Troubleshoot → Clear cache and restart.
  3. Open Workspace → Members and verify the member shows a colored letter avatar (not gray).
  4. Open the member's details page and verify the avatar matches the row.

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review".
// Suggested steps: Create a workspace and invite a member with an email login. Go to Troubleshoot → Clear cache and restart. Open Workspace → Members and verify the member shows a colored letter avatar (not gray). Open the member's details page and verify the avatar matches the row. Confirm phone/SMS logins keep the illustrated catalog default and that invited/pending rows are unchanged.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

Same as tests

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review", or the issue title must include "[No QA]".

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
Screen.Recording.2026-08-27.at.23.17.45.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2026-08-27.at.23.14.39.mov
MacOS: Chrome / Safari
Screen.Recording.2026-08-27.at.23.11.15.mov
@MelvinBot please set the PR body to the content in the details section above

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Done — I've set the PR description to the content you provided.


view run

@gijoe0295

Copy link
Copy Markdown
Contributor

@MelvinBot Mark Pull Request ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review August 27, 2026 16:59
@MelvinBot
MelvinBot requested a review from a team as a code owner August 27, 2026 16:59
@melvin-bot
melvin-bot Bot requested review from gijoe0295 and removed request for a team August 27, 2026 16:59
@melvin-bot

melvin-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

@gijoe0295 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Done — I've marked this PR as ready for review.


view run

@melvin-bot
melvin-bot Bot requested review from JmillsExpensify and removed request for a team August 27, 2026 16:59
const prevMember = usePrevious(member);
const details = memberPersonalDetails ?? ({} as PersonalDetails);
const fallbackIcon = details.fallbackIcon ?? '';
const memberAvatarSource = details.avatar ?? (memberLogin ? getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(memberLogin)}) : undefined);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ CONSISTENCY-3 (docs)

This inline computation duplicates the exact seeded-avatar resolution that the same PR is centralizing inside buildUserIcon (personalDetails.avatar ?? getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(login)})). UserAvatarUtils.ts even documents buildUserIcon as the place where "the resolution stays in one place", so replicating the same getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(memberLogin)}) fallback here re-implements shared logic and risks the two copies drifting apart.

Resolve the avatar through the shared path instead of hand-rolling the fallback. For example, derive the icon via buildUserIcon/useAccountIcons (passing accountEmail: memberLogin) and pass its source, or extract a small helper in UserAvatarUtils.ts (e.g. getSeededAvatarSource(accountID, login)) and call it in both places:

// UserAvatarUtils.ts
function getSeededAvatarSource(accountID: number, accountEmail?: string): AvatarSource | undefined {
    return accountEmail ? getDefaultAvatarURL({accountID, accountEmail: addSMSDomainIfPhoneNumber(accountEmail)}) : undefined;
}

// WorkspaceMemberDetailsPage.tsx
const memberAvatarSource = details.avatar ?? getSeededAvatarSource(accountID, memberLogin);

Reviewed at: 1aafe83 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👎

@gijoe0295

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
Screen.Recording.2026-08-27.at.23.17.45.mov
iOS: HybridApp
iOS: mWeb Safari
Screen.Recording.2026-08-27.at.23.14.39.mov
MacOS: Chrome / Safari
Screen.Recording.2026-08-27.at.23.11.15.mov

@gijoe0295

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 1aafe83a25

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@JmillsExpensify JmillsExpensify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gijoe0295

Copy link
Copy Markdown
Contributor

LGTM

@justinpersaud
justinpersaud merged commit 1e3de1c into main Aug 31, 2026
52 of 54 checks passed
@justinpersaud
justinpersaud deleted the claude-fixGrayMemberAvatars branch August 31, 2026 13:16
@github-actions

Copy link
Copy Markdown
Contributor

🚧 justinpersaud has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify OSBotify mentioned this pull request Aug 31, 2026
75 tasks done
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/justinpersaud in version: 9.4.65-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help site changes are required, so I did not create a draft PR.

This PR is a rendering regression fix: it makes not-yet-loaded workspace members show a letter avatar instead of the gray fallback. It adds no feature, setting, tab, or button, and it changes no user-facing copy — the only new surface is internal props (accountEmail on AccountAvatar, a third param on useAccountIcons).

The help site already documents the behavior this PR restores:

If no image is found, your avatar shows your initials on a colored background based on your name or email. Accounts without a name or email—such as phone number-only accounts—are assigned an illustrated avatar instead.

— docs/articles/expensify-classic/settings/Add-profile-photo.md:37

That matches the PR exactly, including the phone/SMS carve-out. So the article was already correct; the app was the thing out of step.

I also checked the other articles that touch avatars or workspace members and found nothing that this PR makes stale:

One thing worth noting, though it is out of scope for this PR: the automatic letter-avatar explanation exists only in the Expensify Classic article, not the New Expensify one. That is a pre-existing gap, not something this PR created. Tell me if you want a separate docs PR to add it to the New Expensify article.

@gijoe0295, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review


view run

@OSBotify

OSBotify commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/francoisl in version: 9.4.65-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

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

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants