-
Notifications
You must be signed in to change notification settings - Fork 985
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
chore: slider button - add error type, blur variant and fix small ui bug #17473
Conversation
Jenkins BuildsClick to see older builds (12)
|
@@ -22,7 +22,7 @@ | |||
(defn- track-cover-interpolation | |||
[track-width thumb-size] | |||
{:in [0 1] | |||
:out [(/ thumb-size 2) track-width]}) | |||
:out [(/ thumb-size 1.8) track-width]}) |
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.
@clauxx wdyt? 🤔
ce20fbf
to
f55476d
Compare
@@ -22,7 +22,7 @@ | |||
(defn- track-cover-interpolation | |||
[track-width thumb-size] | |||
{:in [0 1] | |||
:out [(/ thumb-size 2) track-width]}) | |||
:out [thumb-size track-width]}) |
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.
@clauxx wdyt?
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.
I think smth like this would be better, to assure the cover moves together with the right edge of the thumb, so on quick slides it's less likely that it would be visible on the other side:
(defn- track-cover-interpolation
[track-width thumb-size]
{:in [0 1]
:out [thumb-size (+ track-width thumb-size)]})
Here's the before [thumb-size track-width]
and after [thumb-size (+ track-width thumb-size)]
(red is the cover):
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.
:out [thumb-size track-width]}) | |
:out [thumb-size (+ track-width thumb-size)]}) |
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, and I appreciate the very clear images! :)
:component-container-style (when-not @blur? (:align-items :center)) | ||
:blur? @blur? | ||
:show-blur-background? true} |
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.
If blur is only for the dark theme, should add the blur-dark-only?
prop as well.
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.
imo, this feature would have benefitted from discussion before being merged/moved forward. This blur-dark-only?
option ignores that there is also blur-light-only
(at least I think there is some cases). Not to mention that there is many incorrect configurations of components possible on the preview screens. The button is a good example of this and a better alternative (imo) is to block incorrect configurations via disabling the descriptors for relevant options. This would of course benefit a lot if Mali gets added to the codebase.
Having this discussion was mentioned here (although I'm not sure if the pr with this feature had got merged before, I assume it had so no big deal):
#17271 (comment)
response - #17271 (comment)
response - #17271 (comment)
imo it should be commonplace to discuss with those interested in the team before we add new features to the preview screens as they tend to effect everyone, and with a team so large it takes a while to make later refactors once a feature starts getting used.
f55476d
to
a91b987
Compare
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.
LGTM
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 good!
Thanks @pavloburykh - that's expected but not desirable :). There is no |
0% of end-end tests have passed
Failed tests (43)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
Thank you @J-Son89! Could you please rebase the PR as it is quite outdated. After that we will need to re-run e2e as they failed due to a problem of outdated branch. |
a91b987
to
735a319
Compare
@pavloburykh - done! apologies I thought I did that this morning. :/ |
86% of end-end tests have passed
Failed tests (6)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (37)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
|
@J-Son89 e2e are okay. Ready for design review cc @Francesca-G |
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 good ✨
@pavloburykh I saw you already noticed the light blur issue, so I didn't leave any comment on that. A quick update about the copy of the button overall, as clarified here, we should always use "Slide" instead of sign (which was featured in some wallet designs).
Examples:
- Slide to reveal code
- Slide to create account
- Slide to reveal phrase
- Slide to bridge (previously "Slide to sign")
735a319
to
f224118
Compare
fixes: #17444
This pr adds the blur variant for the slider button.
It also adds the blur. Note - with the blur & error variant - I have not implemented the changing background color yet as that will involve some further in put from design on what is expected of the color transition. Something I only discovered while implementing these changes. Will create a follow up for that.
blur
blur and type danger
Syncing Page:
To Test:
only changes to slider button so wherever this is used in the app - currently only in the syncing screens (afaik)
design review:
check the slider button in quo2 preview