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: Community logo and title animation #19651
fix: Community logo and title animation #19651
Conversation
Jenkins BuildsClick to see older builds (26)
|
c345688
to
c6e2e9c
Compare
c6e2e9c
to
4b1e2bb
Compare
4b1e2bb
to
a9210d4
Compare
{:opacity center-opacity} | ||
nil) | ||
(style/center-content-container | ||
(if (= type :title) (= text-align :center) false))) |
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.
center-content-container (and (= type :title) (= text-align :center))
?
(let [center-content-container-style (reanimated/apply-animations-to-style | ||
(if center-opacity | ||
{:opacity center-opacity} | ||
nil) | ||
(style/center-content-container | ||
(if (= type :title) (= text-align :center) false))) |
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.
Hey @ajayesivan 👋 Thanks for the PR 🙏
I have some questions around this refactor, and I want to make sure I understand the code:
- I was noticing that some components like
wallet-networks-center
anddropdown-center
were always passingcentered?
astrue
. Should they continue to do that? - I was also noticing that most of the other components like
channel-center
always passedcentered?
asfalse
. And thattitle-center
was the only one that checked for(= text-align :center)
. Should they all now only be centered based on text-align?
I suppose it makes sense that we have a standard way of determining when something should be centered, though I wonder if the code had some special assumptions by always passing false
or true
.
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.
Hi @seanstrom, yes, it is a bit confusing and maybe not the ideal solution for this. But first of all, I'm not trying to fix that in this PR. My goal in this PR is to fix the animation.
In this component, only the type title
has two alignments: center
and left
. So the text-align
property is only considered when the type is title
.
Design: https://www.figma.com/design/WQZcp6S0EnzxdTL4taoKDv/Design-System-for-Mobile?node-id=159-6028&m=dev
Hi @ajayesivan Did you find the root reason for this bug to happen? From what can I see and since I'm not familiar with this component: Another cause might be that it takes some time to render or fetch the content of the community, and the flat list is shorter at the beginning so we display the header. |
Hi @ulisesmac, in this component, we were using the |
2fd04c5
to
d871bef
Compare
85% of end-end tests have passed
Failed tests (6)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestWalletMultipleDevice:
Class TestDeepLinksOneDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Expected to fail tests (2)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (44)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityMultipleDevicePR:
Class TestWalletOneDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
d871bef
to
2cc3d20
Compare
Hi @ajayesivan ! Thanks for your fix. E2E are known and not related. |
2cc3d20
to
edb5b40
Compare
fixes #19635
Areas that maybe impacted
Steps to test
Before and after screenshots comparison
status: ready