-
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
Refactor tag preview screens to new api #17549
Conversation
4771dde
to
4b437b1
Compare
Jenkins BuildsClick to see older builds (51)
|
@@ -33,7 +33,7 @@ | |||
opts | |||
{ | |||
:size :small/:big | |||
:token-img-src :token-img-src | |||
:img-src :img-src |
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.
nice one @ajayesivan! 💪
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.
Great job 🚀, i just left some comments about using the public quo2.core
namespace.
[rn/view | ||
{:margin-top 20 | ||
:align-self :flex-end} | ||
[permission-tag/tag |
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.
[permission-tag/tag | |
please use public quo2.core namespace | |
[quo2.core :as quo] | |
``` | |
[quo/tag |
@@ -1,10 +1,9 @@ | |||
(ns status-im2.contexts.quo-preview.tags.status-tags | |||
(:require [quo2.components.tags.status-tags :as quo2] |
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.
(:require [quo2.components.tags.status-tags :as quo2] | |
(:require [quo2.core :as quo] |
[quo2.foundations.colors :as colors] | ||
[quo2.components.tags.tag :as tag] | ||
[status-im.ui.components.react :as react] | ||
(:require [quo2.components.tags.tag :as tag] |
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.
(:require [quo2.components.tags.tag :as tag] | |
(:require [quo2.core :as quo] |
@@ -1,50 +1,40 @@ | |||
(ns status-im2.contexts.quo-preview.tags.tags | |||
(:require [quo2.components.tags.tags :as tags] |
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.
(:require [quo2.components.tags.tags :as tags] | |
(:require [quo2.core :as quo] |
(merge @state | ||
{:token-img-src (if (= (get-in @state [:token]) "ETH") eth-token snt-token)})]]]]))) | ||
[rn/view {:style {:align-items :center}} | ||
[quo2/token-tag |
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.
please use public quo2.core namespace
[quo2.core :as quo]
```
[quo/token-tag
4b437b1
to
022d113
Compare
@mohsen-ghafouri Thanks for the review! I have made the suggested changes. |
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.
Nice work 🚀
51% of end-end tests have passed
Failed tests (21)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (22)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
86% of end-end tests have passed
Failed tests (6)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (37)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
022d113
to
b4ce131
Compare
@ajayesivan any clues where in app this component can be used? |
Hi @churik! The token-tag component is being used in
|
@ajayesivan component itself looks great on preview, but likely not used yet on the implementation (the same as in nightly, so I do not think it is something related to this PR) so I'd suggest merging this PR after passing the design review (cc @Francesca-G ) Thank you! |
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.
Here's the component design review :)
b4ce131
to
a689c33
Compare
b4d9bde
to
0b65b68
Compare
@Francesca-G I have fixed the component review issues. Could you please have another look? Thanks! |
7764977
to
32edaf5
Compare
32edaf5
to
1f77331
Compare
Part of Preview Screen Migration: #17288
Migrated all the tags preview screens to the new API.
Alongside the migration, I've also addressed two minor issues:
token-tag
component was not displaying the token image as expected.token-tag
component prop usage.Testing Notes
status: ready