Repository navigation
Wrap the login page background image in a new container to fix it moving - #34958
Conversation
|
@hayata-suenaga 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] |
|
asked a contributor plus to review this PR first. Someone will come and review this soon |
|
@aimane-chnaif @hayata-suenaga Please do not did any job on this PR I just added it for my proposal to show what change I suggest . Sorry if i did something wrong |
|
@shahinyan11 if you wanna demo, it's fine to create your own branch but don't make PR. |
|
@aimane-chnaif How to crate draft PR and Don't mark as ready . |
https://github.blog/2019-02-14-introducing-draft-pull-requests/ |
|
is this draft or ready for review? |
|
@shahinyan11 Next time please do not raise PRs until assigned. Also please fix the PR description and title |
|
@s77rt I made some new changes to preserve the current UI on other platforms because they changed a bit after our changes. Please check them and approve if everything is ok |
|
@shahinyan11 Please apply the requested changes and explain the bug you are referring to. This PR should only effect one file. |
|
@s77rt Now We have such error on Web small screens This is because we updated the styles and now here should be used
|
|
@shahinyan11 We shouldn't be changing any style here. There should be only one change which is to add a wrapping view in SignInPageLayout |
|
@s77rt Adding wrapping view demands changing style of his child. We did that only for IOS. Now the wrapping view has the same styles as his child for all platforms besides IOS. To avoid this we can make the changes I commented. |
|
The wrapping view shouldn't have the same style as the child. Keep the style of the child untouched. The wrapping view should be something like that: <View
style={[
styles.pAbsolute,
styles.w100,
StyleUtils.getHeight(Math.max(variables.signInContentMinHeight, containerHeight)),
StyleUtils.getBackgroundColorStyle(theme.highlightBG),
]}
>
<BackgroundImage />
</View> |
|
@shahinyan11 Please change the PR title to something more explanatory (what's being changed in the PR) also fix the checklist (the part |
|
@s77rt And what about my comment above related with android bug ? |
|
@shahinyan11 Can you please clarify which bug? Is there still a reproducible bug here? |
|
We should set @s77rt What do you think about using |
|
@shahinyan11 This seems like a different bug as I can see the three color layers on main. Also, is there a real case where this is reproducible? (besides hard coding a long error)
|
Screen.Recording.2024-02-03.at.12.26.10.mov |
|
@s77rt Yes I am agree with you that there is another error too. Actually, there are several bottlenecks
|
|
Write a util style function (something like |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Don't we need to do this for web as well? Not that it makes any diff as on web the height is limited but I think android is the platform that is different than the rest not ios.
index.ts returns theme.signInPage as bg color
index.android.ts returns no specifc bg color
There was a problem hiding this comment.
No. Only IOS need specified background color. Other platforms use a background image whose bottom color is different from the bottom color of the background image that iOS uses.
|
@shahinyan11 Any updates here? |
|
@shahinyan11 Try merge main see if it fixes the failing perf test |
|
✋ 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 staging by https://github.com/rlinoz in version: 1.4.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.40-5 🚀
|



Details
Fixed Issues
$ #34529
PROPOSAL: #34529 (comment)
Tests
continueOffline tests
N/A
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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.2024-01-31.at.15.40.42.mov
Android: mWeb Chrome
Screenrecorder-2024-01-30-23-04-17-77.mp4
iOS: Native
Screen.Recording.2024-01-30.at.21.23.12.mov
iOS: mWeb Safari
Screen.Recording.2024-01-30.at.22.53.56.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-30.at.22.55.23.mov
MacOS: Desktop
Untitled.mov