-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ff/account-card-component
- Loading branch information
Showing
129 changed files
with
1,777 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
|
||
[Patching](patching.md) | ||
|
||
[Creating a pixel perfect UI](pixel-perfection.md) | ||
|
||
## Testing | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Pixel Perfection | ||
The Status Mobile team aims to align the design implementation perfectly according to a given screens respective Figma design spec. | ||
|
||
Currently the Figma Designs match up with an "iPhone 11 Pro" screen size. | ||
|
||
To test your implementation is correct you can take the following steps | ||
|
||
- Open a new Figma file so that you have write privileges. | ||
- Copy in the component or screen from the Figma file. | ||
|
||
- Using the "iPhone 11 Pro" simulator (it is the default now) you take a screenshot of your component and paste it into your Figma file. | ||
|
||
- To get the right size, set your screenshot to width 375px | ||
|
||
![](images/pixel-perfection/layer-width.png) | ||
|
||
- Lower the opacity so you can see it sitting on top of the Figma mock ups. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
src/quo2/components/list_items/community/component_spec.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
(ns quo2.components.list-items.community.component-spec | ||
(:require [quo2.components.list-items.community.view :as component] | ||
[test-helpers.component :as h])) | ||
|
||
(h/describe "Community list" | ||
(h/test "default render" | ||
(h/render [component/view {}]) | ||
(h/is-truthy (h/get-by-label-text :community-item-title)) | ||
(h/is-null (h/query-by-label-text :community-item-info))) | ||
|
||
(h/describe "type share" | ||
(h/test "renders" | ||
(h/render [component/view | ||
{:type :share | ||
:title "Title" | ||
:subtitle "Subtitle"}]) | ||
(h/is-truthy (h/get-by-text "# Title")) | ||
(h/is-truthy (h/get-by-text "Subtitle")) | ||
(h/is-null (h/query-by-label-text :community-item-info)))) | ||
|
||
(h/describe "type engage" | ||
(h/test "default, no info" | ||
(h/render [component/view {:type :engage}]) | ||
(h/is-null (h/query-by-label-text :community-item-info))) | ||
|
||
(h/test "info is :navigation" | ||
(h/render [component/view {:type :engage :info :navigation}]) | ||
(h/is-truthy (h/get-by-label-text :info-navigation))) | ||
|
||
(h/test "info is :token-gated" | ||
(h/render [component/view {:type :engage :info :token-gated}]) | ||
(h/is-truthy (h/get-by-label-text :info-token-gated))) | ||
|
||
(h/test "info is :muted" | ||
(h/render [component/view {:type :engage :info :muted}]) | ||
(h/is-truthy (h/get-by-label-text :info-muted))) | ||
|
||
(h/test "info is :notification" | ||
(h/render [component/view {:type :engage :info :notification}]) | ||
(h/is-truthy (h/get-by-label-text :info-notification-dot))) | ||
|
||
(h/test "info is :mention" | ||
(h/render [component/view | ||
{:type :engage | ||
:info :mention | ||
:unread-count 9000}]) | ||
(h/is-truthy (h/get-by-text "99+")))) | ||
|
||
(h/describe "type discover" | ||
(h/test "default, no info, no member stats" | ||
(h/render [component/view {:type :discover}]) | ||
(h/is-null (h/query-by-label-text :stats-members-count)) | ||
(h/is-null (h/query-by-label-text :community-item-info))) | ||
|
||
(h/test "info is :token-gated, show member stats" | ||
(let [on-press-info (h/mock-fn)] | ||
(h/render [component/view | ||
{:type :discover | ||
:info :token-gated | ||
:locked? true | ||
:blur? false | ||
:on-press-info on-press-info | ||
:members {:members-count 9876 :active-count 1350} | ||
:tokens [{:id 1 :group [{:id 1}]}]}]) | ||
(h/is-truthy (h/get-by-label-text :community-item-info)) | ||
(h/is-truthy (h/get-by-label-text :permission-tag)) | ||
(h/is-truthy (h/get-by-label-text :stats-members-count)) | ||
(h/is-truthy (h/get-by-label-text :stats-active-count)) | ||
(h/fire-event :press (h/get-by-label-text :permission-tag)) | ||
(h/was-called on-press-info))))) |
Oops, something went wrong.