-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$250] Pay button in the report header is not animated. #53474
Comments
Triggered auto assignment to @trjExpensify ( |
@lanitochka17 specifically in the case of partial pay of the report when an expense is held? |
Edited by proposal-police: This proposal was edited at 2024-12-03 16:51:17 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The "Pay Elsewhere" button does not have an animation when used. What is the root cause of that problem?There are two requirements for this issue:
What changes do you think we should make in order to solve the problem?To change the "Payment Complete" text to a button, we need to:
Code changes for the To enable animation in the Money Request Header:As done in the report preview, we need to:
const [isPaidAnimationRunning, setIsPaidAnimationRunning] = useState(false);
const shouldShowPayButton = isPaidAnimationRunning || canIOUBePaid || onlyShowPayElsewhere;
const stopAnimation = useCallback(() => setIsPaidAnimationRunning(false), []);
const startAnimation = useCallback(() => {
setIsPaidAnimationRunning(true);
HapticFeedback.longPress();
}, []);
POCScreen.Recording.2024-12-07.at.00.18.52.movScreen.Recording.2024-12-07.at.00.54.36.movHere is a draft branch with the proposed changes: What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional) |
Confirmed this doesn't require putting an expense on hold. I've simplified the steps in the OP. @Expensify/design do you know why we don't animate the button in the report header here? Jus' checking there isn't an intentional reason for that... 🤔 |
Hmm no idea, we should be animating it everywhere I would think? |
Yeah I think we agreed on implementing the animation everywhere but I don't think we've worked on adding the animation to the report header yet. Here's the thread in Slack for reference. |
Okay cool, so broadly then we should add the animation to the |
Job added to Upwork: https://www.upwork.com/jobs/~021864311402219129216 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
hi @trjExpensify, is the POC shown in this proposal the expected behavior? or is there something i am missing? |
Yeah I don't think that's the expected behavior. We essentially want the animation that shows on the report preview to be mimicked in the report header. I don't think anything needs to be animated on the expense previews. |
Yup, definitely agree with that. |
|
update the proposal and the POC to enable pay button animation insde the report header as well |
Thanks! Something looks weird about that to me, I think it's because we lose the button border. |
Thanks @trjExpensify for the prompt feedback... I dont exactly get your concern can you please illustrate more? |
I think we should maybe make it smaller and change the color to |
I agree with Tom, I think that does look weird. I think losing the container like that is part of it... Would it be crazy to do something like this where we animate from the pay text to the payment completed text (loader in between if we need it) and then after the payment complete just animate the whole button out? Is that going to get tricky with button widths? 🤔 Going to wait and see what the other designers have to say. |
Nice, that does look good. I suppose it would be interesting to see a revised exist animation that just does some kind of scaleOut, where we animate from a scale of 1 to a scale of 0? That might give us a similar effect as shrinking the height, and it might feel more natural in the header. That being said, I think it makes sense to keep the animation the same everywhere and not try to have a custom version just for the header. So perhaps we can try it everywhere and see how it goes? |
Totally agree Shawn |
Agree with that Shawn. I'd be keen to try it. Sometimes the 1 to 0 scale can be a bit too much, but we should try it. Alternatively we can do scale 1->0.5 and just do opacity 1->0. But lets start with the scale first. |
okay looking into this today |
@ntdiary, @trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@ntdiary what do you think? |
@trjExpensify, I’d like to give @abzokhattab’s proposal a green light. This is the behavior I got from @abzokhattab's demo.mp4
BTW, my previous comment might have caused some confusion for @abzokhattab. I didn’t actually mean to extract code like Finally, let’s see if internal engineer has some different thoughts. :) 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
thanks for the thorough review @ntdiary ... your comment makes sense to me ... lets discuss the raised points in the PR however for the video, seems like i reverted the last requested animation by mistake .. that's why you still see the "payment complete" as text. |
Yep, I think this is the style we landed on. |
@ntdiary @trjExpensify @lakchote this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@ntdiary I agree with you, we should be I'm also in favour of creating a test case for it. @abzokhattab when you raise the PR please assign |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hi, @abzokhattab, do you have an ETA for raising the PR? :D |
PR has been reviewed. @abzokhattab can you address the comments, please? Thanks! |
ok thanks working on them |
This issue has not been updated in over 15 days. @ntdiary, @trjExpensify, @lakchote, @abzokhattab eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
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: 9.0.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5290609
Issue reported by: Applause - Internal Team
Action Performed:
Pay
in the report headerExpected Result:
The pay button should be animated, like here.
Actual Result:
The pay button is not animated, it just disappears.
Workaround:
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6683249_1733237611189.Screen_Recording_2024-12-03_at_15.47.03.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ntdiaryThe text was updated successfully, but these errors were encountered: