Show workspace members with missing personal details instead of dropping them - #98483
Draft
MelvinBot wants to merge 1 commit into
Draft
Show workspace members with missing personal details instead of dropping them#98483MelvinBot wants to merge 1 commit into
MelvinBot wants to merge 1 commit into
Conversation
…ing them Co-authored-by: Joe Ph <gijoe0295@users.noreply.github.com>
7 tasks
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Contributor
Author
|
The two failing checks aren't code failures — they both need human action, so there's no fix I can push.
Every actual CI check passes — So nothing to fix on the code side — the red checks just need the author checklist filled in and a reviewer approval. |
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.
Explanation of Change
The Workspace Members page (NewDot) was rendering only a subset of members — the reporter saw about half the list that Classic/OldDot shows in full.
The page renders
policy.employeeListjoined against the global personal-details list, and silently dropped any member whose personal details weren't present in Onyx: infilteredMembers, eachemployeeListentry was skipped withcontinuewhenpersonalDetails?.[accountID]was falsy. So the rendered count was effectivelyemployeeList ∩ loaded-personalDetails, which is why it was intermittent ("unable to reproduce") — it depended on which members' details happened to be loaded.This change makes the list robust to missing personal details (matching OldDot's behavior of showing everyone) rather than dropping members:
continuewhen details are missing, the member is rendered with a fallback identity (email as display name), so the rendered count always matchesemployeeList.email → accountIDjoin is empty (details not loaded), a generated accountID is used so the row can still be built, mirroring the existing optimistic-accountID pattern used elsewhere in the app.Note: if the underlying cause is the
OpenWorkspaceMembersPagebackend command returning personal details for only a subset ofemployeeList, a complementary backend fix (inWeb-Expensify/Auth) would be needed and is out of scope for this repo. This App-side change ensures the full list renders regardless.Fixed Issues
$ #97591
PROPOSAL: #97591 (comment)
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review".
// Please describe what tests you performed that validate your change worked.
Offline tests
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas they need to test for regressions.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari