-
Notifications
You must be signed in to change notification settings - Fork 984
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
Onboarding: Identifiers page highlighting animation #16375
Conversation
Jenkins BuildsClick to see older builds (12)
|
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 👍
emoji-hash-style (worklets.identifiers-highlighting/emoji-hash-style @progress)] | ||
|
||
[rn/view | ||
{:key (str name) |
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.
Why do we add this :key
key?
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.
I took over this branch, I guess rn will throw a warning if there's no key there. I can check
{:style (reanimated/apply-animations-to-style | ||
{:opacity avatar-opacity} | ||
{})} |
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.
I'm not sure about what did we agree about animated styles. Whether they should be in the style
namespace or in the view
one.
For this PR, I suggest to be consistent, because some of them are in the style
ns and this one is in view
.
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.
will move to style ns 👍 It's agreed they should go there.
{:size :heading-2 | ||
:weight :semi-bold | ||
:number-of-lines 1 | ||
:style style/user-name} name]] |
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.
name
should be in the following line (59)
[quo/text | ||
{:weight :monospace | ||
:number-of-lines 1 | ||
:style style/emoji-hash} emoji-hash]]]])) |
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.
emoji-hash
should be in the following line
@@ -0,0 +1,31 @@ | |||
(ns utils.worklets.identifiers-highlighting) |
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.
Same quesiton as in the JS file: why we don't create those JS functions here in ClojureScript?
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.
This was the way it was done when I joined the project and I've just been following this practice. Perhaps @briansztamfater or @Parveshdhull can provide a reason.
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.
Check out Implement React Native Reanimated V2
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.
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.
Thank you so much @Parveshdhull for giving context. I think the current solution is good for now.
Now Reanimated 3 has been released but I think we are using 2.11, so do you think this will be improved when we migrate to 3?
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.
Reanimated 3 also uses worklets, so we still have to rely on javascript workaround. Or we can look into cljs alternatives for creating worklets (not sure about performance impact though)
https://github.com/roman01la/cljs-worklet
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.
Ok, it seems the JS approach is good enough. Thanks @Parveshdhull
82% of end-end tests have passed
Failed tests (6)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (27)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
|
Hi, @J-Son89 take a look please, integration tests are failed https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-16375/3/consoleText |
whoops, thanks @VladimrLitvinenko will check! |
resolved now @VladimrLitvinenko 👍 |
@J-Son89 I like how it looks! Thank you for your work. Only one low-priority issue has been found. I don't want to block the current PR with this issue. Would you prefer to fix it separately or is the scope of this PR? Please let me know if it has been addressed. If not, we can proceed with merging the PR. ISSUE 1: The text is shown on the edge of the screen on the Identifiers pageActual result:Expected result: |
@VladimrLitvinenko - good spot! I think it will be best to do in a follow up as it would be great to get this pr merged in. This pr is already quite large and I think that issue is in develop too? |
@J-Son89 you are correct. I realized that this issue is also present in the develop branch. I didn't notice it initially. |
Me neither, thanks for checking that! I will try create the follow up pr today and if not I will file an issue to track it 👍 |
fixes: #15752
Created a new profile-card component inside identifiers folder only for identifiers page
Created worklets for animation: background for card-container style, opacity for out of highlighting elements, and for each of identicon-ring, user-hash and emoji-hash
Used mask view to highlight identicon-ring
** Note **
This pr is a continuation of the work done here: #15925
I have just taken it and fixed it for Android and refactored the code a little