-
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
Add currency conversions for signing sheet - Fixes #8027 #9063
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (36)
|
@yenda How do I get access to the Jenkins logs to see what it doesn't like? I've run the tests and linter and both pass at this point. |
@acolytec3 does not seems related to the pr, tests fails because we run out of space on jenkins (maybe just make sure they pass locally in the meantime), @jakubgs could you have a look please? |
I've cleaned up the hosts, should be good now:
Please push again to rebuild everything. |
32df077
to
819b68b
Compare
Done, squashed and updated. Below is a screengrab of how the currency conversion looks. 2 questions:
|
@errorists could you answer those questions? @acolytec3 before a designer comes by to answer your question I think you should use an interpunct for now https://en.wikipedia.org/wiki/Interpunct and also be mindful of the font-color, the value is black. You can check the nested-text component and how it is used to achieve that within one text element. I'd use the tilde (~) for both |
@yenda I've incorporated a nested-text element into the presentation so now the text of the wallet-currency is now black. I think the only thing left is now I have an odd spacing issue where there's a gap between the value and the currency symbol as shown below. Does nested-text take a padding or margin style element that would shrink this gap? I looked at the prop functions for nested text and it looks like all the styling options are font related and not spacing. Also, since I already had the code basically written, I went ahead and added the loading spinner as well. The bounty can still be paid out to @alexjg since I know he was planning to work on it. Below is a screen-grab. |
yes, Eric is right, both should use |
[separator]]) | ||
[list-item/list-item | ||
{:type :small | ||
:title :t/network-fee | ||
:error gas-error | ||
:accessories [[acc-text fee fee-display-symbol] :chevron] | ||
:accessories [[acc-text fee fee-display-symbol] "·" (if converted-fee-value [react/nested-text {:styles {:color :colors/black}} (str "~" (i18n/format-currency converted-fee-value (:code wallet-currency)))] |
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.
don't use acc-text
here, if you look at the definition above in this namespace it is just a nested-text with 2 parts and here you have more. You also misused nested-text here, you should use nested-text instead of acc-text. here is an example of how to use it:
as you can see you give a global style and then you can have as many arguments as you want, strings or vector, the strings get the global style and the vectors are tuples of style + string, the style is merged with the global style so you only have to put what changes there
Hey! Spotted there are error tooltips on the screens, just wanted to make sure the error states stay consistent, here's an issue about those #9037 (comment) |
On the tooltip. There is a component here: https://github.com/status-im/status-react/blob/bf6b328996581c77fff437efcbf9d411e00d2ef9/src/status_im/ui/components/tooltip/styles.cljs @yenda do you know if it's up to date, following these designs?: https://www.figma.com/file/cb4p8AxLtTF3q1L6JYDnKN15/Index?node-id=4290%3A1769 |
765b0bb
to
23f3d1b
Compare
@yenda @errorists I've updated the PR with the fixes for the nested-text element and seems to have resolved the spacing elements as well. I also changed out the bullet I was using to the larger one from @errorists's comment so let me know if there are any more visual things I need to work on. |
Looks good now, thanks @acolytec3 |
23f3d1b
to
d930c1f
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.
looks good to me as well!
100% of end-end tests have passed
Passed tests (47)Click to expand
|
two questions:
From my perspective PR is ready to merge. |
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
d930c1f
to
7286747
Compare
Thanks for calling these out @churik.
Well done @acolytec3! Thanks for your contribution. |
fixes #8027
Summary
Displays the amount and fee associated with a transaction in the User's wallet's currency
Functional
Steps to test
status: ready