[NOQA] fix: remove unused preview success animation scales#94955
Conversation
|
@QichenZhu Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
This doesn't need a C+ review per #94944 (comment), so unsubscribing.
|
# Conflicts: # src/components/ReportActionItem/MoneyRequestReportPreview/usePreviewMessageAnimation.ts
|
Reviewing... |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_mWeb.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
|
I will move this ahead as its quite simple I dont think we need to wait for a second reviewer here |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.28-0 🚀
|
|
🤖 Help site review: no changes required I reviewed the changes in this PR and no updates are needed to the help site files under Why: This is a
Help site articles describe product behavior and workflows for customers; dead-code removal in an animation hook has no effect on any of that, so there's nothing to document. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.28-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Removes unused
checkMarkScaleandthumbsUpScaleshared values fromusePreviewMessageAnimation.These values were being set for paid/approved states, but nothing consumed them via an animated style or rendered icon. The visible checkmark/thumbs-up success animation is already handled by
AnimatedSettlementButton, so this cleans up dead code and updates the hook docstring to match its actual behavior.Fixed Issues
$ #94944
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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