App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-06] Web - Chat - Update popup animations on web/desktop to pop open instead of fade/slide

Open kavimuru opened this issue 5 years ago • 44 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Go to https://staging.new.expensify.comand login
  2. Click the + icon in a Group DM text input and verify the popup menu

Expected Result:

The animation for the popup should open like in https://github.com/Expensify/App/issues/6121#issuecomment-964433800. In addition to the example in the description, any other animation using fadeInUp/fadeOutDown should be updated on web/desktop.

Actual Result:

The animation for the popup slides and fades.

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.1-0 Reproducible in staging?: Y Reproducible in production?: Y Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:

https://user-images.githubusercontent.com/43996225/139499750-f20806ad-7b71-4698-a2e3-699053f55ca8.mp4

Expensify/Expensify Issue URL: Issue reported by: Slack conversation:

View all open jobs on GitHub

kavimuru avatar Oct 29 '21 20:10 kavimuru

Triggered auto assignment to @Jag96 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Oct 29 '21 20:10 MelvinBot

@kavimuru I'm not sure I understand Popup in text input flies out and disappears for a moment. It looks like the issue is that when the pop-up menu comes up, one of the options can be auto highlighted, and then when moving the mouse the item is no longer highlighted (the fix would be to not highlight items while the animation is happening). Am I understanding that correctly?

Jag96 avatar Oct 29 '21 21:10 Jag96

@Jag96 This is an extreme edge case and You can reproduce the same behaviour for the FAB menu. Steps:

  1. Click on the FAB.
  2. When the menu is transitioning, continue clicking the FAB Button area.
  3. Menu will toggle hide and show the state on every click.

parasharrajat avatar Oct 30 '21 00:10 parasharrajat

I'm still not seeing any bug in the description video other than the one in https://github.com/Expensify/App/issues/6121#issuecomment-955069723, @kavimuru please can you clarify the Actual Result for me?

Menu will toggle hide and show the state on every click.

Is this the same issue that is being described in the description? @parasharrajat If it is the same issue, can you provide an Action Performed, Expected Result, and Actual Result for the FAB case as well?

Jag96 avatar Nov 01 '21 20:11 Jag96

Issue reproducible during KI retests.

mvtglobally avatar Nov 02 '21 00:11 mvtglobally

@Jag96 I believe the issue minor. When you click on the popup it sort of slides overlapping with the content. We haven't seen it with other popups, so team decided to log it. See below 2 images Screen Shot 2021-10-29 at 9 11 38 AM

Screen Shot 2021-11-01 at 8 43 57 PM .

mvtglobally avatar Nov 02 '21 00:11 mvtglobally

@mvtglobally thanks for the context, it looks like this is being caused by the animation style for the PopoverMenu component, the same effect can be seen when clicking on an IOU detail and opening the option to pay:

Going to tag @Expensify/design here to confirm this is the behavior that we want, if not we can update the animation style and if so we can close this issue.

Jag96 avatar Nov 02 '21 01:11 Jag96

Ok. Looking at the new comments, the issue reported here https://github.com/Expensify/App/issues/6121#issuecomment-955110098 is different from this one.

@Jag96

Here is the video

https://user-images.githubusercontent.com/24370807/139772531-fbdb9027-b5e0-4b37-a40f-751ea1366e2e.mp4

parasharrajat avatar Nov 02 '21 01:11 parasharrajat

@parasharrajat good find! I think that can be filed separately then, feel free to post it in slack

Jag96 avatar Nov 03 '21 17:11 Jag96

Adding design label to get input on https://github.com/Expensify/App/issues/6121#issuecomment-957017886

Jag96 avatar Nov 04 '21 22:11 Jag96

Triggered auto assignment to @megankelso (Design), see these Stack Overflow questions for more details.

MelvinBot avatar Nov 04 '21 22:11 MelvinBot

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

MelvinBot avatar Nov 08 '21 19:11 MelvinBot

hi, sorry for the delay. I believe this animation style is behaving as expected. But I see what you're saying and I feel like it could be cleaned up. What if instead of the fade and scroll up it just pops open?

such as in this example:

https://user-images.githubusercontent.com/49413768/140985606-568292d8-f5a6-4ac0-8461-53900ccfe847.mov

megankelso avatar Nov 09 '21 18:11 megankelso

I agree that looks much cleaner. It looks like the fadeIn/fadeOut animation is a consistent default across the app (for example, try setting a profile picture), would we want to update the default to be no animation for all popovers like these?

Jag96 avatar Nov 09 '21 21:11 Jag96

I'm down to standardize on the in-place fade in/out for these kinds of things on desktop. For mobile, I still think we'd want to launch this menu (which actually becomes more like a modal) from the bottom though.

shawnborton avatar Nov 09 '21 22:11 shawnborton

Sounds good, do we want to leave the fadeIn/fadeOut for mobile as well? Or remove the fade on mobile and just have it slideInUp/slideOutDown rather than fadeInUp/fadeOutDown?

Jag96 avatar Nov 10 '21 14:11 Jag96

I think mobile is probably fine as-is, so I wouldn't change anything there. But curious if others agree too!

shawnborton avatar Nov 10 '21 15:11 shawnborton

I think mobile is fine but would be up for cleaning up the animation on web

megankelso avatar Nov 10 '21 15:11 megankelso

Sounds good! Updating the title and making external, thanks for the 👀

Jag96 avatar Nov 11 '21 15:11 Jag96

Triggered auto assignment to @dylanexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Nov 11 '21 15:11 MelvinBot