-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix illustration is sitting too far down #40822
fix illustration is sitting too far down #40822
Conversation
@alitoshmatov 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] |
@@ -101,7 +108,7 @@ function TroubleshootPage({shouldStoreLogs}: TroubleshootPageProps) { | |||
isCentralPane | |||
subtitleMuted | |||
illustration={LottieAnimations.Desk} | |||
illustrationStyle={[styles.mt4, styles.mbn4]} | |||
illustrationStyle={!isNativePlatform && [styles.mt4, styles.mbn4]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm why are we making a platform-specific style here? Can't we find a solution that works everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, Why this page specifically has this problem whereas other similar pages(about page) are just fine.
@shawnborton I think we need to supply a new |
Are you sure we need a new file? I feel like we wanted the illustration to sit downwards on all platforms, so why can't we address this with styles but use those same styles everywhere? |
Yes. I think it a good solution as if I replace
I tried to address the issue by using the style but as you can see, we need to make a platform-specific style. @alitoshmatov Do you have any feedback? |
Can you elaborate on why the style failed on iOS though? Can we try something different that might work everywhere? |
I do not know exactly why the style failed on native devices with the current illustration file and still investigating it. @alitoshmatov any thoughts on this? |
@alitoshmatov Friendly bump to review comment |
Sorry was busy with other issue, I will catch up with this and leave my feedback soon |
Looks like we are in deadend. I am really confused on root cause of this and why it is only happening in troubleshooting page. But comparing it directly to other pages is also misleading since each page is utilizing different illustration with different sizes and animations. @tienifr If we were to replace the file what exactly should be different in it? |
Hmm before replacing the file, I'm mostly interested to understand why the negative margin isn't working on iOS, as it seems to work fine on other platforms? |
@shawnborton I am still investigating. But FYI, the library we used to display the illustration handles web and native separately. That is why the bug appears in ios (and android as well): App/src/components/Lottie/index.tsx Lines 37 to 38 in 072e537
|
@alitoshmatov Reply your comment: In here:
we need to add the illustration for each platform as well. So I think it makes sense if we apply the current solution. |
@alitoshmatov Do you have any feedback about my comment here? |
No, I am really confused on what should be our next step. As I understand we are not sure on exact root cause here? |
Asked here |
@shawnborton I think we can fix the issue using platform-specific style because the issue has already existed in here and we applied the same solution in that. Then we can create a follow-up PR if the exact RCA is discovered. @alitoshmatov @danieldoglas What do you think? |
That works for me, especially if we're already doing something similar. |
@alitoshmatov Based on this comment, should we move forward with the current solution? |
@tienifr Yes, go head please |
@alitoshmatov Can you review this PR again? |
Reviewer Checklist
Screenshots/VideosAndroid: Native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@danieldoglas Can you review it again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Details
Fixed Issues
$ #38594 (comment)
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-04-24.at.02.32.51.mov
Android: mWeb Chrome
Screen.Recording.2024-04-24.at.02.34.31.mov
iOS: Native
Screen.Recording.2024-04-24.at.02.27.18.mov
iOS: mWeb Safari
Screen.Recording.2024-04-24.at.02.28.32.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-24.at.02.24.06.mov
MacOS: Desktop
Screen.Recording.2024-04-24.at.02.26.43.mov