-
Notifications
You must be signed in to change notification settings - Fork 987
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
[#16577] Add missing context tags variants & fix API #16962
Conversation
783cfe7
to
661ddce
Compare
src/status_im2/contexts/shell/jump_to/components/switcher_cards/view.cljs
Outdated
Show resolved
Hide resolved
Jenkins BuildsClick to see older builds (45)
|
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! 🚀 @ulisesmac
src/status_im2/contexts/shell/jump_to/components/switcher_cards/view.cljs
Outdated
Show resolved
Hide resolved
db65236
to
d9e10e4
Compare
@smohamedjavid @J-Son89 I have pushed changes according to your comments. |
@@ -7,24 +7,27 @@ | |||
|
|||
(def sizes | |||
{:icon {:small 12 | |||
28 16 |
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.
how possible would it be to update the other uses here and fix across the app so we're not mixing semantic names with integers? 🤔
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.
As I wrote in this PR description:
So I implemented them in order to have this PR working and pass design review, but these components should be checked in the same way I did it with this one.
I meant, we need to refactor, add the missing sizes and fix the API of these components.
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.
Thanks, my bad for missing that!
:medium 32 | ||
:large 48}}) | ||
|
||
;; TODO: this implementation does not support group display picture (can only display default group | ||
;; icon). | ||
(defn- view-internal | ||
[_] | ||
(fn [{:keys [color size theme]}] | ||
(fn [{:keys [color size theme icon-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.
can we change color
to customization-color
? or is that a follow up?
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 PR already has a lot of changes related to the context-tag and its uses, adding even more to refactor surrounding components is too mucho IMO. I just touched the other components to add the required features, a separate issue for each one is required. I will create the issues
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.
Yep I agree, thanks!
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.
pr looks good, left a few comments if you can take a look at them 👍
After rebasing with develop, the variants relying on the
are broken, I noticed also the issue: |
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 like the light blur theme is missing
edfb125
to
cc65a01
Compare
@Francesca-G The preview screen blur was not looking nice on iOS but on Android it looks better. |
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.
@ulisesmac all good :)
81% of end-end tests have passed
Failed tests (8)Click to expandClass TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Passed tests (35)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
07e3b5f
to
a41eeb1
Compare
a41eeb1
to
801f8fb
Compare
801f8fb
to
e393ef7
Compare
@VolodLytvynenko, @ulisesmac is on pto so I have taken over this branch. looks like you are in testing with it so let me know if any issues and I will address them :) |
1 similar comment
@VolodLytvynenko, @ulisesmac is on pto so I have taken over this branch. looks like you are in testing with it so let me know if any issues and I will address them :) |
Hi @ulisesmac thank you for PR. No issues from my side. PR can be merged |
Add icon-name to group avatar Add missing context-tags variants and fix the API to match figma Updates context-tag previous uses remove `nil nil` params Rename alias Remove theme/provider alias Lint fix add map style argument to style/container Fix code style Update use of group-avatar api Add issue for multinetwork variant Add issue for wroing text style
e393ef7
to
05602dd
Compare
Add icon-name to group avatar Add missing context-tags variants and fix the API to match figma Updates context-tag previous uses Update use of group-avatar api
fixes #16577
Summary
This PR implements the missing variants of the context-tag variant and matches its API to figma.
Review notes
I noticed some other components are still incomplete:
preview-list
lacked of 20 sizegroup-avatar
lacked of 28 sizeuser-avatar
lacked of 28 sizeSo I implemented them in order to have this PR working and pass design review, but these components should be checked in the same way I did it with this one.
Testing notes
The previous context-tag uses have been replaced by this new one reworked.
Platforms
Steps to test
status: ready