Skip to content

Commit 5c86b64

Browse files
authored
Merge branch 'develop' into bugfix/21616
2 parents 6b026fc + 9c7d215 commit 5c86b64

File tree

17 files changed

+104
-71
lines changed

17 files changed

+104
-71
lines changed

nix/status-go/source.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ let
1313
repo = "status-go";
1414
rev = "unknown";
1515
shortRev = rev;
16-
rawVersion = "develop";
17-
cleanVersion = rawVersion;
16+
version = "unknown";
17+
cleanVersion = version;
1818
goPackagePath = "github.com/${owner}/${repo}";
1919
# We use builtins.path so that we can name the resulting derivation,
2020
# Normally the name would not be deterministic, taken from the checkout directory.
@@ -43,7 +43,6 @@ let
4343
inherit (versionJSON) owner repo version;
4444
rev = versionJSON.commit-sha1;
4545
shortRev = strings.substring 0 7 rev;
46-
rawVersion = versionJSON.version;
4746
cleanVersion = lib.sanitizeVersion versionJSON.version;
4847
# Need to pretend this is from status-im to let Go build it.
4948
goPackagePath = "github.com/status-im/${repo}";

src/quo/components/empty_state/empty_state/styles.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
(def image-placeholder
3636
{:width 80
3737
:height 80
38-
:background-color colors/danger})
38+
:background-color colors/danger-50})

src/quo/components/inputs/input/style.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
:placeholder (colors/theme-colors colors/neutral-80-opa-20 colors/white-opa-20 theme)
3232
:text (colors/theme-colors colors/neutral-100 colors/white theme)}
3333
:error
34-
{:border-color (colors/theme-colors colors/danger-opa-40 colors/danger-opa-40 theme)
34+
{:border-color colors/danger-50-opa-40
3535
:placeholder (colors/theme-colors colors/neutral-80-opa-40 colors/white-opa-40 theme)
3636
:text (colors/theme-colors colors/neutral-100 colors/white theme)}
3737
:disabled
@@ -48,7 +48,7 @@
4848
:placeholder (colors/theme-colors colors/neutral-30 colors/neutral-60 theme)
4949
:text (colors/theme-colors colors/neutral-100 colors/white theme)}
5050
:error
51-
{:border-color (colors/theme-colors colors/danger-opa-40 colors/danger-opa-40 theme)
51+
{:border-color colors/danger-50-opa-40
5252
:placeholder (colors/theme-colors colors/neutral-40 colors/white-opa-40 theme)
5353
:text (colors/theme-colors colors/neutral-100 colors/white theme)}
5454
:disabled

src/quo/components/keycard/component_spec.cljs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
[test-helpers.component :as h]))
55

66
(h/describe "keycard component"
7-
(h/test "Render of keycard component when: holder-name prop is not set"
8-
(h/render [keycard/keycard])
9-
(h/is-truthy (h/get-by-translation-text :t/empty-keycard)))
10-
11-
(h/test "Render of keycard component when: holder-name prop is set"
12-
(let [holder-name "Alisha"]
7+
(let [holder-name "Alisha"]
8+
(h/test "Render of keycard component when: holder-name prop is set"
139
(h/render [keycard/keycard {:holder-name holder-name}])
1410
(h/is-truthy (h/get-by-translation-text :t/user-keycard {:name holder-name})))))

src/quo/components/keycard/style.cljs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,28 @@
66
(def keycard-chip-height 28)
77

88
(defn card-container
9-
[locked? theme]
9+
[locked? theme blur?]
1010
{:overflow :hidden
1111
:height keycard-height
1212
:align-items :flex-start
1313
:justify-content :space-between
1414
:border-width 1
15-
:border-color (if locked?
15+
:border-color (if (or locked? blur?)
1616
colors/white-opa-5
1717
(colors/theme-colors colors/neutral-20 colors/neutral-80 theme))
1818
:border-style :solid
1919
:border-radius 16
2020
:padding 16
2121
:background-color (if locked?
22-
(colors/theme-colors colors/danger colors/danger-opa-40 theme)
23-
(colors/theme-colors colors/neutral-5 colors/neutral-90 theme))})
22+
(colors/theme-colors colors/danger-50 colors/danger-50-opa-40 theme)
23+
colors/keycard-color)})
2424

2525
(defn keycard-logo
2626
[locked? theme]
2727
{:tint-color (if locked?
2828
colors/white
2929
(colors/theme-colors colors/neutral-100 colors/white theme))})
3030

31-
(defn keycard-watermark
32-
[locked? theme]
33-
{:position :absolute
34-
:tint-color (if locked?
35-
colors/white-opa-5
36-
(colors/theme-colors colors/neutral-100 colors/white theme))
37-
:align-self :center
38-
:height 280.48
39-
:transform [{:rotate "-30deg"} {:translate-y -30}]
40-
:opacity (when-not locked? 0.02)
41-
:z-index 1})
42-
4331
(def keycard-chip
4432
{:height keycard-chip-height
4533
:position :absolute
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(ns quo.components.keycard.view
22
(:require
3+
[clojure.string :as string]
34
[quo.components.keycard.style :as style]
45
[quo.components.tags.tag :as tag]
56
[quo.foundations.colors :as colors]
@@ -14,29 +15,24 @@
1415
- :locked? - Boolean to specify whether the keycard is locked or not
1516
- :theme :light/:dark
1617
"
17-
[{:keys [holder-name locked?]}]
18-
(let [theme (quo.theme/use-theme)
19-
label (if holder-name
20-
(i18n/label :t/user-keycard {:name holder-name})
21-
(i18n/label :t/empty-keycard))]
22-
[rn/view {:style (style/card-container locked? theme)}
18+
[{:keys [holder-name locked? blur?]}]
19+
(let [theme (quo.theme/use-theme)]
20+
[rn/view {:style (style/card-container locked? theme blur?)}
2321
[rn/image
2422
{:source (resources/get-image :keycard-logo)
2523
:style (style/keycard-logo locked? theme)}]
2624
[rn/image
2725
{:source (resources/get-image
2826
(if (or locked? (= :dark theme)) :keycard-chip-dark :keycard-chip-light))
2927
:style style/keycard-chip}]
30-
[rn/image
31-
{:source (resources/get-image :keycard-watermark)
32-
:style (style/keycard-watermark locked? theme)}]
33-
[tag/tag
34-
{:size 32
35-
:type (when locked? :icon)
36-
:label label
37-
:labelled? true
38-
:blurred? true
39-
:resource (when locked? :i/locked)
40-
:accessibility-label :holder-name
41-
:icon-color colors/white-70-blur
42-
:override-theme (when locked? :dark)}]]))
28+
(when-not (string/blank? holder-name)
29+
[tag/tag
30+
{:size 32
31+
:type (when locked? :icon)
32+
:label (i18n/label :t/user-keycard {:name holder-name})
33+
:labelled? true
34+
:blurred? true
35+
:resource (when locked? :i/locked)
36+
:accessibility-label :holder-name
37+
:icon-color colors/white-70-blur
38+
:override-theme (when locked? :dark)}])]))

src/quo/foundations/colors.cljs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,12 @@
195195
(def success-60-opa-30 (alpha success-60 0.3))
196196
(def success-60-opa-40 (alpha success-60 0.4))
197197

198-
;;;;Danger
199-
(def danger "#E95460")
200-
201-
;; Danger with transparency
202-
(def danger-opa-40 (alpha danger 0.4))
203-
204198
;;Solid
205199
(def danger-50 "#E95460")
206200
(def danger-60 "#BA434D")
207201

208202
(def system-yellow "#FFD60A")
203+
(def keycard-color "#FF6400")
209204

210205
;;50 with transparency
211206
(def danger-50-opa-0 (alpha danger-50 0))

src/status_im/contexts/keycard/error/view.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
:description :text
3434
:description-text description}]
3535
[rn/view {:style {:margin-horizontal 20}}
36-
[quo/keycard {:holder-name ""}]
36+
[quo/keycard {:blur? true}]
3737
[quo/section-label
3838
{:section (i18n/label :t/what-you-can-do) :container-style {:padding-vertical 8}}]
3939
(if (= error :keycard/error.keycard-empty)

src/status_im/contexts/keycard/manage/profile_keys/view.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{:title profile-name}]
2828
[rn/view {:style {:margin-horizontal 20}}
2929
[rn/view {:style {:padding-top 8 :padding-bottom 20}}
30-
[quo/keycard {:holder-name ""}]]
30+
[quo/keycard {:blur? true}]]
3131
[quo/section-label
3232
{:section (i18n/label :t/what-you-can-do) :container-style {:padding-vertical 8}}]
3333
[quo/settings-item

src/status_im/contexts/keycard/migrate/profile_keys/view.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:description-text (i18n/label :t/finalise-migration-instructions)}]
1818
[rn/view {:style {:margin-horizontal 20}}
1919
[rn/view {:style {:padding-top 8 :padding-bottom 20}}
20-
[quo/keycard {:holder-name ""}]]
20+
[quo/keycard {:blur? true}]]
2121
[quo/section-label {:section (i18n/label :t/what-you-can-do) :container-style {:padding-vertical 8}}]
2222
[quo/settings-item
2323
{:title (i18n/label :t/finalise-migration)

0 commit comments

Comments
 (0)