Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Add Payment History dialog to Payments Tab (issue #2994) #3473

Merged
merged 2 commits into from
Aug 27, 2016
Merged

Add Payment History dialog to Payments Tab (issue #2994) #3473

merged 2 commits into from
Aug 27, 2016

Conversation

willy-b
Copy link
Contributor

@willy-b willy-b commented Aug 27, 2016

This pull request adds a Payment History dialog to the Payments Tab.
This is the result of rebasing the work in PR #3391 , so some detailed code review is available there.

Detailed discussions and @bradleyrichter's original mockup can be found in issue #2994 (see mockup at #2994 (comment)).

auditors: @diracdeltas @mrose17

Willy Bruns added 2 commits August 27, 2016 01:49
- Displays a table of user payment history
  (Each row represents a batched payout to multiple publishers
  sometimes called a `reconciliation` or `transaction` elsewhere)
- 3 columns are shown for each payment: `Date`, `Total Amount`, & `Receipt Link`
- Data comes from `transactions` array in `ledgerData` obj in UI
  (same as `ledgerInfo` in `browser-laptop/app/ledger.js`)
- Next payment date in footer comes from `ledgerData.reconcileStamp`
- fix awkward alignment of `Account Balance`, `Monthly Budget` columns, and `View Payment History` button in Payments Tab

impls issue #2994
- Remove "Receipt Link" column from this PR
- Resize modal and remaining columns
@willy-b
Copy link
Contributor Author

willy-b commented Aug 27, 2016

So auditors/reviewers get credit for the help in previous PR, here's a summary of the review feedback incorporated into this:

Restyle "View Payment History" button
Simple orange text in Account Balance box
#2994 (comment)

Replace "View Payment History" literal with l10nId "viewPaymentHistory"
#3391 (comment)

"View Payment History" Button should not display if no wallet or no transactions
#3391 (comment)

Payment History footer should be empty if ledgerData.reconcileStamp is undefined/null
#3391 (comment)

PaymentHistoryRow uses historical exchange rate from new ledgerData.transactions.contribution.fiat fields
use new fields added in @mrose17s updates in ledger-client v0.8.46 brought in by #3397
addresses #3391 (comment)
and #3391 (comment)

Replace Payment History Footer text with data-l10n-id "paymentHistoryFooterText"
#3391 (comment)

PaymentHistoryRow uses toLocaleDateString, not mockup format, for l10n
#3391 (comment)

Remove unnecessary line
#3391 (comment)

Fix "View Payment History" styling

Payment History dialog cleanup
Fixes for some items from @diracdeltas code review (thanks!)

Payments Tab styling fixes

@bbondy bbondy added this to the 0.11.6dev milestone Aug 27, 2016
@diracdeltas diracdeltas merged commit 93062f1 into brave:master Aug 27, 2016
@diracdeltas
Copy link
Member

Great work, thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants