-
Notifications
You must be signed in to change notification settings - Fork 973
Conversation
6a80158
to
784e4b8
Compare
Rebased |
451eb83
to
b3d7dad
Compare
b3d7dad
to
0a08085
Compare
0a08085
to
80d48ad
Compare
Need 'clean profile' on test plan. (nit) Do we have a way to test when a second promotion is received (before first expires)? |
@jasonrsadler sadly we only have one active promotion |
@@ -1882,15 +1882,33 @@ const onWalletProperties = (state, body) => { | |||
state = ledgerState.setInfoProp(state, 'currentRate', rate) | |||
} | |||
|
|||
// Grants |
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.
Could this block perhaps be extracted to a separate function and exported? It shouldn't change any of the existing tests you've put in place.
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 needed
fundsAmount__item: { | ||
marginBottom: '4px', | ||
width: '215px', | ||
fontSize: '14.5px' |
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.
Is there a reason this isn't just 15px
? it looked fine with it for me
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.
We use 14.5px in other places by default, so that's why I set it here as well
grants.map(grant => { | ||
return <div className={css(styles.fundsAmount__item)}> | ||
{formatCurrentBalance(ledgerData, grant.get('amount'), false)} | ||
<span> (<span data-l10n-id='expires' /> {new Date(grant.get('expirationDate') * 1000).toLocaleDateString()})</span> |
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.
(nit) could we maybe separate new Date(grant.get('expirationDate') * 1000).toLocaleDateString()
in a to a formatting function?
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 needed
When a contribution is made, do we have determination as to what funds are used first? (i.e. Is UGP used first or user funds) |
@jasonrsadler UGP funds should be used first |
Resolves brave#14229 Auditors: Test Plan:
80d48ad
to
a0d55ef
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.
One bug addressed over slack, test plan works well. Awesome work 👍
Resolves #14229
Empty wallet
With user fund
With grant
With grant + user fund
Contribution in progress
Contribution done
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Make sure that in all this steps you are getting correct amounts listed in the account balance section
Reviewer Checklist:
Tests