[No QA] Gate RHP web animation changes to desktop only#92086
Draft
adhorodyski wants to merge 2 commits into
Draft
[No QA] Gate RHP web animation changes to desktop only#92086adhorodyski wants to merge 2 commits into
adhorodyski wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
52 tasks
Contributor
Author
|
@dubielzyk-expensify this works great on my end, can you please kick off an adhoc and test yourself if this is exactly what you meant? I made sure to bring back the original mobile (narrow layout) experience as per before the OG PR so it effectively only touches web desktops. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
PR #90212 reduced web modal/dropdown/RHP animation timings and added a 60px slide-and-fade enter animation to the RHP. The intent was desktop-only, but the changes keyed off
Platform.OS === 'web', which also matches mobile web — so mobile web got the desktop RHP look and the faster timings. Reviewer @dubielzyk-expensify flagged this: on mobile the RHP "kinda fades" and is inconsistent with the expected full-slide behavior.This PR gates the PR #90212 changes to desktop only via layout width (narrow = mobile web, wide = desktop). Mobile web reverts to the pre-#90212 behavior. Desktop is unchanged from what shipped.
Three files changed, all layout-gated:
src/libs/Navigation/AppNavigator/useRootNavigatorScreenOptions.ts— RHP open: narrow →slide-from-width(full slide) + default timing; wide →slide-and-fade+ 150ms/100ms.src/libs/Navigation/AppNavigator/ModalStackNavigators/useModalStackScreenOptions.ts— RHP nested screen pushes: narrow →CardStyleInterpolators.forHorizontalIOS+ default timing; wide →slide-and-fade+ 150ms/100ms.src/libs/Navigation/PlatformStackNavigation/navigationOptions/animation/slideFromRight/index.ts— removed the globaltransitionSpec(150ms/100ms) that [No QA] Tune web modal, dropdown and RHP animations #90212 added to the sharedSLIDE_FROM_RIGHTprimitive. That global change had sped up every narrow-layout slide-from-right surface on mobile web. RHP desktop timing is now applied explicitly at the two RHP call sites above.Native (iOS/Android) is unaffected — all changes live in
web:blocks / the web entry point.Fixed Issues
$ #90146
PROPOSAL:
Tests
Offline tests
N/A
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))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