Added working animation to switch in accounting page#55412
Conversation
blazejkustra
left a comment
There was a problem hiding this comment.
It looks very clean this way, great refactor @sumo-slonik. I left couple comments but I think you are very close 👍
src/pages/workspace/accounting/qbo/export/QuickbooksCompanyCardExpenseAccountPage.tsx
Outdated
Show resolved
Hide resolved
…eans' into feature/kuba_nowakowski/add_switch_animations_to_acounting
…s_to_acounting # Conflicts: # src/pages/workspace/accounting/netsuite/advanced/NetSuiteAdvancedPage.tsx
|
@dubielzyk-expensify @thesahindia One of you needs to 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] |
|
PR is ready to check. |
|
Will review it in the morning. |
|
@thesahindia can you check it now? it seems to me to be working fine already |
|
Other than the issue called out above, this is looking good to me 👍 |
|
@dubielzyk-expensify hover problem is now fixed. |
|
Could I get a new video? |
|
@sumo-slonik, looks like we need to update "Custom form ID" switch. NetSuite > Advanced > Custom form ID Screen.Recording.2025-02-07.at.3.31.38.AM.movNAB: If you hover over the children just after you enable the switch, you can see the hoverable area expanding. It's hard to notice and very minor. Screen.Recording.2025-02-07.at.3.30.09.AM.online-video-cutter.com.1.mp4 |
I'm already looking at it. |
Screen.Recording.2025-02-07.at.14.21.24.mov |
…s_to_acounting # Conflicts: # src/pages/workspace/accounting/qbo/export/QuickbooksCompanyCardExpenseAccountPage.tsx
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-02-12.at.2.10.16.AM.moviOS: NativeScreen.Recording.2025-02-12.at.1.40.50.AM.moviOS: mWeb SafariScreen.Recording.2025-02-12.at.1.44.23.AM.movMacOS: Chrome / SafariScreen.Recording.2025-02-12.at.12.41.23.AM.movMacOS: DesktopScreen.Recording.2025-02-12.at.12.52.08.AM.mov |
|
In a few places, you may notice the value reverting to the default when you disable the switch. Is it worth fixing? Screen.Recording.2025-02-12.at.12.37.45.AM.online-video-cutter.com.mp4 |
|
This touches many files to avoid regressions we are not migrating the default ids in the lint, not emergency |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.0-2 🚀
|
| switchAccessibilityLabel={translate('workspace.qbo.defaultVendorDescription')} | ||
| wrapperStyle={[styles.ph5, styles.mb3, styles.mt1]} | ||
| isActive={!!qboConfig?.autoCreateVendor} | ||
| shouldPlaceSubtitleBelowSwitch |
There was a problem hiding this comment.
Looks like shouldPlaceSubtitleBelowSwitch prop was removed during a bad merge, and that caused the issue #59479


Explanation of Change
Adding animation to the switch in the Accounting tab.
A request to split into two PRs: #53938 (comment)
Fixed Issues
$ #53759
PROPOSAL:
Tests
Offline tests
Unnecessary
QA Steps
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))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
Screen.Recording.2025-01-21.at.16.01.18.mov
Android: mWeb Chrome
Screen.Recording.2025-01-21.at.14.21.33.mov
iOS: Native
Screen.Recording.2025-01-21.at.15.17.52.mov
iOS: mWeb Safari
Screen.Recording.2025-01-21.at.14.06.44.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
Screen.Recording.2025-01-21.at.16.04.53.mov