-
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
feat: implement account list item component #17303
Conversation
Jenkins BuildsClick to see older builds (73)
|
c2f7d84
to
0f6294b
Compare
0f6294b
to
c7e3aa4
Compare
4a7792d
to
a934ff7
Compare
(h/wait-for #(h/has-style (h/query-by-label-text :container) | ||
{:height 56 | ||
:borderRadius 12 | ||
:backgroundColor (colors/custom-color :blue 50 5) | ||
:flexDirection :row | ||
:alignItems :center | ||
:paddingHorizontal 12 | ||
:paddingVertical 6 | ||
:justifyContent :space-between}))) |
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.
Not sure if we get a value from this kind of strict-styling
tests, given that styles might be changing and it would add extra work. Could instead use snapshot testing (mehh) which would have a similar result (but easier to maintain), or just do the check for the background color, since it seems like it's the only style that changes.
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.
Agree, see my comment in this other PR -> #17398 (comment)
I'll update on this once I have more inputs either on this or the other PR
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.
For the beginning I would just strip the tests of all the unnecessary styles and just keep the style u test for (here it's backgroundColor
). For me it would be enough to have it merged, and then decide on the usefulness of these tests in a follow-up. We already have quite a few tests that check for styles in this way, so I guess it should be fine.
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, I thought toHaveStyle
checked for the entire style map, but it works also checking for a specific style prop, so I simplified it as suggested :)
53cd45a
to
cdc4b05
Compare
ad741d3
to
8194150
Compare
@Francesca-G can you review this component please? |
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 ✨
Adding follow up required to fix the spacing between 1st and 2nd line, see comment here :)
082553b
to
3fb70b5
Compare
@Francesca-G I adjusted spacing in balance text at the right, is that ok? |
3fb70b5
to
774775b
Compare
Signed-off-by: Brian Sztamfater <brian@status.im>
774775b
to
0ba010e
Compare
Signed-off-by: Brian Sztamfater <brian@status.im>
Signed-off-by: Brian Sztamfater <brian@status.im>
fixes #17301
Summary
Implement Account List Item component
Screenshots
Platforms
Steps to test
status: ready