Skip to content

[Due for payment 2026-09-09] Workspace - Members avatar become fallback when clear cache #99381

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.4.60-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/70698814/folder/53678195?sort=%2Bstatus_id
Email or phone of affected tester (no customers): gocemate+sdf@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: windows 10/chrome
App Component: Chat Report View

Action Performed:

  1. Create workspace and invite members
  2. Go to Troubleshoot
  3. Tap Clear cache and restart
  4. Navigate to workspace members page

Expected Result:

Members should be displayed with default or custom avatars

Actual Result:

Avatars of the workspace members are displayed as fallback

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7241816_1787612955182.Recording__1477.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7241816

Issue OwnerCurrent Issue Owner: @gijoe0295

Activity

  1. added
    DeployBlockerCash
    Bug
    on Aug 25, 2026
  2. applause-bot commented on Aug 25, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/57c32be7270c6882528db855d2d1ef14c278dfe0ed1a3eb1f43c07c7f1e2d234

  3. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  4. melvin-bot commented on Aug 25, 2026

    @melvin-bot

    Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Aug 25, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. MelvinBot commented on Aug 25, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #98483 - "Show workspace members with missing personal details instead of dropping them" by @gijoe0295 (High confidence)
    Related Issues: #97591 (the issue #98483 was fixing)

    Recommendation: ROLL FORWARD

    A straight revert of #98483 would reintroduce the original bug it fixed (workspace members being silently dropped from the list, #97591), which is arguably worse than a fallback avatar. The targeted fix is to seed a deterministic default avatar from the member's email when personal details are missing, instead of rendering the generic gray FallbackAvatar.

    Assigned: @gijoe0295 (PR author/co-author), @luacmartins, @justinpersaud (approving reviewers) from the highest-confidence causing PR
    Labels: No change. This is a Frontend bug, so DeployBlockerCash correctly stays; no DeployBlocker was present to remove.

    📋 Detailed Analysis

    Evidence

    Verification

    Root Cause

    When personal details are absent (e.g. right after Clear cache, before re-fetch), policyMemberEmailsToAccountIDs[email] is empty, so filteredMembers assigns a synthetic accountID = generateAccountID(email). That ID is passed to AccountAvatar → useAccountIcons → buildUserIcon, where:

    source: personalDetails?.[accountID]?.avatar ?? defaultAvatars.FallbackAvatar,
    ...
    fallbackIcon: invitedEmail ? getDefaultAvatar({accountID, accountEmail: addSMSDomainIfPhoneNumber(invitedEmail), defaultAvatars}) : undefined,

    personalDetails?.[syntheticAccountID]?.avatar is undefined, and because these are existing members (no invitedEmail), fallbackIcon is also undefined. So the row renders the generic gray FallbackAvatar instead of the deterministic default/letter avatar that would be computed from the member's email/name. The proper roll-forward fix is to pass the member's email into the avatar resolution (as invited-member rows already do) so getDefaultAvatar/getLetterAvatarURL produces a stable default avatar when personal details are missing.

  7. luacmartins commented on Aug 25, 2026

    @luacmartins
    Contributor

    I think we can demote this one. @gijoe0295 can you work on a fix please?

  8. 8 remaining items

  9. added
    Reviewing
    Weekly
    and removed
    Daily
    on Aug 27, 2026
  10. melvin-bot commented on Aug 29, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  11. added
    Daily
    and removed
    Reviewing
    Weekly
    on Sep 2, 2026
  12. changed the title [-]Workspace - Members avatar become fallback when clear cache[/-] [+][Due for payment 2026-09-09] Workspace - Members avatar become fallback when clear cache[/+] on Sep 2, 2026
  13. melvin-bot commented on Sep 2, 2026

    @melvin-bot

    @gijoe0295

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.65-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-09-09. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

  14. melvin-bot commented on Sep 5, 2026

    @melvin-bot

    @gijoe0295 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  15. gijoe0295 commented on Sep 5, 2026

    @gijoe0295
    Contributor

    This is done. Please close the issue

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

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions