Open IuliiaHerets opened 2 weeks ago
Triggered auto assignment to @adelekennedy (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
:wave: 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:
Triggered auto assignment to @dangrous (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
User can open avatar edit modal when the app is loading. Remove photo option is shown even when the account has default avatar when the app is loading.
this is new feature
We will disable this avatar while the app is loading in here
disabled={isAvatarCropModalOpen || (disabled && !enablePreview) || isLoadingApp}
with
const [isLoadingApp] = useOnyx(ONYXKEYS.IS_LOADING_APP);
We can edit the avatar while the app is loading.
Before the account switcher PR, the avatar is only shown on the initial settings page and a skeleton will replace it if the app is "loading".
Now, we also show/move the editable avatar on the profile page. https://github.com/Expensify/App/blob/e77f20458ad13d94c7b0188acc2ed1a91bd8ccbd/src/pages/settings/Profile/ProfilePage.tsx#L158-L160
But we never replace it with a skeleton when the app is loading.
We can have the same skeleton condition from InitialSettingsPage and show the skeleton when satisfied.
{isEmptyObject(currentUserPersonalDetails) || currentUserPersonalDetails.displayName === undefined ? (
<AvatarSkeleton size={CONST.AVATAR_SIZE.XLARGE} />
) : (
<AvatarWithImagePicker .../>
We can use the existing AvatarSkeleton, but we need to make some adjustments to the component. Currently, the skeleton has a static size of 28. https://github.com/Expensify/App/blob/e77f20458ad13d94c7b0188acc2ed1a91bd8ccbd/src/components/AvatarSkeleton.tsx#L9-L22
const StyleUtils = useStyleUtils();
const avatarSize = StyleUtils.getAvatarSize(size);
const skeletonCircleRadius = avatarSize / 2;
return ( <SkeletonViewContentLoader animate height={avatarSize}
@dangrous this doesn't seem like a deploy blocker to me
Yeah I don't think this needs to block, not a regression just a minor issue with a new feature. But yeah, let's get this fixed soonish!
assigning rushat to this one
@rushatgabhane let us know what you're thinking about this one, thanks!
i guess we should add skeleton for avatar when it is loading
@dangrous, @rushatgabhane, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!
That sounds good @rushatgabhane!
@dangrous, @rushatgabhane, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@rushatgabhane @dangrous how are we doing with this one? I see it's been grouped up with other issues here should we drop the priority of this one?
PR is in C+ review!
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.26-1 Reproducible in staging?: Y Reproducible in production?: N Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
User should not be able to open avatar edit modal when the app is loading (production behavior).
Actual Result:
User can open avatar edit modal when the app is loading. Remove photo option is shown even when the account has default avatar when the app is loading.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/d7ab6496-b96b-4475-ab02-3ae45f2d9260
View all open jobs on GitHub