Update fee card designs to show savings and MM fee#9629
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
f6ed32e to
d1c40db
Compare
Builds ready [d1c40db]
Page Load Metrics (434 ± 55 ms)
|
d1c40db to
0a02cbf
Compare
Builds ready [0a02cbf]
Page Load Metrics (772 ± 140 ms)
|
0a02cbf to
0a1755d
Compare
|
@brad-decker This has been rebased and your comments have been addressed |
brad-decker
left a comment
There was a problem hiding this comment.
Changes LGTM. I would point out that there is a larger problem in our codebase as a whole about the proper use of HTML tags to match the intent. It wasn't introduced in this PR and progress has been made on some lines of change requests during the review. However, a concerted effort to fix these sort of issues is going to be needed in the future (not specific to swaps or recent work).
Builds ready [0a1755d]
Page Load Metrics (409 ± 48 ms)
|
|
I want to block merging of this on #9662, so that we can properly QA the displayed savings amount. Once that is merged, this will be rebased. I don't think further code changes will be needed. |
0a1755d to
36f268d
Compare
Builds ready [36f268d]
Page Load Metrics (554 ± 89 ms)
|
|
as I was reviewing/QA'ing #9666 I noticed that there is a mismatch in the sign on the number: the saving's amount is '-1.63' but in the tooltip it shows '+1.63'... this is Nope... nope... that's a tilde. That's almost unrecognizable as a tilde Edit: in the screenshot, I was able to see it because it's super big compared to what I see on the extension popup on my laptop monitor. @jakehaugen thoughts? I don't think this blocks anything but it threw my old ass eyes for a loop 😆 |
Yes, this is an issue with the font we are using. In the mocks I use a different font for the tilde -- Euclid Flex vs. Euclid Circular B. Huge pain. But, I thought we had it solved elsewhere? |
|
@jakehaugen possibly, i just ran into it when testing. @danjm might have more insight. |
Builds ready [bf1ca7f]
Page Load Metrics (449 ± 49 ms)
|
|
This was updated to include desired messaging from @jakehaugen when there are no savings: |
b14a14b to
bcd3c93
Compare
Builds ready [bcd3c93]
Page Load Metrics (440 ± 64 ms)
|
|
The only big issue is seeing the "Terms of Service" link cut off on desktop, which I think is something we should fix -- we shouldn't risk users missing it: At present, I'm a big concerned about the way we're using space here: Maybe we could use a sideways arrow (" -> ") to better use the space? |
There was a problem hiding this comment.
If we initialize savingsText to '', we can void the last else and possibly the if (!inDevelopment) block.
There was a problem hiding this comment.
Might be helpful to add a comment here as to why we're using !important, not sure if we have a standard for doing that with important usage.
darkwing
left a comment
There was a problem hiding this comment.
Added a few suggestions here.
|
@darkwing The terms of service issue was addressed in 7ac38c3b5 Now looks like: |
Builds ready [5d6c285]
Page Load Metrics (432 ± 68 ms)
|
There was a problem hiding this comment.
inDevelopment and tokenConversionRate are checked in both else-ifs, so I think that could be tightened up, but I don't want to block on it.
There was a problem hiding this comment.
I'm going to leave this where it is for now, as we will be removing this variable in the not to distant future
There was a problem hiding this comment.
could we make use of the wrapperClassName/containerClassName prop on the InfoTooltip component instead of manually creating the extra div here?
There was a problem hiding this comment.
some day I will do this without you having to ask me about it on a PR 😅
css touch up More semantic html and remove unnecessary container wrapper Update message for case when there are no savings, in new swaps fee card designs Improve display of tilde in savings designs
…wn on view-quote screen
5d6c285 to
a7d49f2
Compare
…oved during rebase
Builds ready [1f43058]
Page Load Metrics (364 ± 38 ms)
|







Updates the fee card on the view quote screen to match the latest designs.
Edit: screenshots can be seen in this comment #9629 (comment)
This is blocked by #9611
The UI implemented in this PR can stand on its own, but to fully match latest designs, it needs to be combined with #9612
One final missing piece for latest designs is the info tooltip next to savings, which will be implemented in a forthcoming PR