-
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
fix: communities review #18634
fix: communities review #18634
Conversation
Jenkins BuildsClick to see older builds (44)
|
:description description | ||
:title-accessibility-label :community-title | ||
:description-accessibility-label :community-description}]) | ||
:title-number-of-lines 2 |
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.
Formatting here looks strange.
Suggestion
(defn community-header
[title logo description]
[quo/text-combinations
{:container-style {:margin-top (if logo
12
(+ scroll-page.style/picture-radius
scroll-page.style/picture-border-width
12))
:margin-bottom 12}
:avatar logo
:title title
:title-number-of-lines 2
:description description
:title-accessibility-label :community-title
:description-accessibility-label :community-description}])
src/quo/components/tags/tag.cljs
Outdated
24 :paragraph-2 | ||
nil)} | ||
resource]) | ||
(let [image-emoji? (int? resource)] |
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 part is a bit convoluted. What about this:
(defn- emoji-comp
[size resource]
(let [width (case size
32 20
24 12
nil)]
(if (string? resource)
[rn/text {:style {:margin-right 4 :font-size width}}
resource]
[rn/image
{:source resource
:style (cond-> {:margin-right 4}
(= size 32) (assoc :width width :height 20)
(= size 24) (assoc :width width :height 12))}])))
;; Then use it:
(when (= type :emoji)
[emoji-comp size resource])
Changes:
- Break apart components, this allows Reagent to completely skip processing the
emoji-comp
if props other thansize
andresource
change. cond->
instead ofmerge
+case
.react-native.core/image
instead oflegacy.status-im.ui.components.react
.
b17bcba
to
8a43127
Compare
db1514a
to
a439843
Compare
a439843
to
eae07d8
Compare
eae07d8
to
9a1934a
Compare
77% of end-end tests have passed
Failed tests (9)Click to expandClass TestDeepLinksOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Expected to fail tests (2)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (37)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePRTwo:
|
90% of end-end tests have passed
Failed tests (3)Click to expandClass TestDeepLinksOneDevice:
Class TestCommunityMultipleDeviceMerged:
Expected to fail tests (2)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
Passed tests (43)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
|
Hey @BalogunofAfrica, could you resolve the conflict and also specify what exactly from #17566 and Figma review fixes this PR, please? |
9a1934a
to
87f5dd9
Compare
Hi @qoqobolo! This PR addresses all the points raised in #17566. Just to be clear I have copied everything with figma link and marked them here:
|
Ah okay, from the comments in the issue, I understood that some of them were fixed in different PRs. |
Yeah @clauxx had worked on 2 of the items but didn't raise a PR. So I cherry picked his commits (b5b6038 and 37b4cd2) and completed the items. |
87f5dd9
to
3ad5365
Compare
69% of end-end tests have passed
Failed tests (14)Click to expandClass TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (33)Click to expandClass TestDeepLinksOneDevice:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
7% of end-end tests have passed
Failed tests (13)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (1)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
|
54% of end-end tests have passed
Failed tests (6)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (7)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
|
4f2bba2
to
1896008
Compare
Hi @BalogunofAfrica ! |
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 design review :)
1896008
to
8a13569
Compare
@mariia-skrypnyk Can this be merged, I would create a follow up issue for @Francesca-G's review. |
Hi @Francesca-G !
Are you ok that it will be merged and your review feedback will be included to the followup issue created by @BalogunofAfrica? |
Sure, works for me 👍 |
8a13569
to
064fe06
Compare
064fe06
to
b785487
Compare
Fixes #17566
Platform:
Figma review: https://www.figma.com/file/Tf5nfkYvpbnNCo4rKLK7lS/Feedback-for-Mobile?type=design&node-id=6117-85237&mode=design&t=Vz0i3Zn5tJ0daoMs-0#569667689
status: ready