-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Implement new transaction list design #8564
Conversation
d8617f5
to
cb5b5b4
Compare
6b5177b
to
5ed3ab5
Compare
cb5b5b4
to
982911d
Compare
382ce91
to
aea45cf
Compare
@brad-decker do you think it would be possible to address #8572 here? |
I’ll see what can be done @whymarrh I was thinking the same when I saw the issue report |
ef91741
to
08cb87d
Compare
982911d
to
c6281ec
Compare
@whymarrh this now includes a resolution for #8572 - transaction-list.component now includes a limit for completed transactions and slices through the array of completed transactions. A new "View More" (pending @rachelcope 's feedback) button at the bottom of the transaction list loads an increment of transactions. I have created a constant PAGE_INCREMENT value of 10 for this purpose, but I expect that we could add a new user preference for this in the future (or perhaps 100 is a more reasonable default?) pictured with a PAGE_INCREMENT of 1: |
ee27a7c
to
0b730ed
Compare
32d55e8
to
562a1c7
Compare
Builds ready [562a1c7]
Page Load Metrics (623 ± 51 ms)
|
562a1c7
to
9e4cd4b
Compare
Builds ready [9e4cd4b]
Page Load Metrics (671 ± 52 ms)
|
9e4cd4b
to
444aed1
Compare
Co-authored-by: Mark Stacey <[email protected]>
ui/app/hooks/useMethodData.js
Outdated
import { getKnownMethodData } from '../selectors/selectors' | ||
|
||
/** | ||
* useMethodData |
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: can we add a single line description of the function here instead? Maybe extracted from the larger description below.
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.
Do you like:
* Access known method data and attempt to resolve unknown method data
for this?
ui/app/hooks/useRetryTransaction.js
Outdated
|
||
|
||
/** | ||
* useRetryTransaction |
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: can we add a single line description of the function here instead? Maybe extracted from the larger description below.
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.
the description is now short enough to meet this need. Should I just omit the name? new:
/**
* Provides a reusable hook that, given a transactionGroup, will return
* a method for beginning the retry process
* @param {Object} transactionGroup - the transaction group
* @return {Function}
*/
*/ | ||
|
||
/** | ||
* useTransactionDisplayData |
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: can we add a single line description of the function here instead? Maybe extracted from the larger description below.
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.
/**
* Get computed values used for displaying transaction data to a user
*
ui/app/hooks/useCancelTransaction.js
Outdated
import { getConversionRate, getSelectedAccount } from '../selectors' | ||
|
||
/** | ||
* useCancelTransaction |
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: can we add a single line description of the function here instead? Maybe extracted from the larger description below.
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.
/**
* Determine whether a transaction can be cancelled and provide a method to
* kick off the process of cancellation.
c702933
to
b695366
Compare
Builds ready [b695366]
Page Load Metrics (877 ± 81 ms)
|
Builds ready [7966975]
Page Load Metrics (587 ± 62 ms)
|
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.
LGTM!
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.
Thanks for championing this across the finish line! This is a huge improvement. 🎉
The display logic from this component was inlined into the `TransactionList` component in #8564.
Main View ScreenShot
Demo Videos
Demo Full Screen & [Demo Popup Window]added utility methods
refactored ListItem component
refactored TransactionList component
refactored TransactionListItem component
moved TransactionListItemDetails into a Popover
NEW UX FEATURES
Queued Transactions
When users have more than one pending transaction now all items beyond the first that aren't "Unapproved" transactions will have a "Queued" label and will not have the Loading indicator behind them.Incremental loading of history
As pointed out in #8572 we are eagerly loading transactions into the history view, but we don't need to. We now have an incremental loader that shows 10 items at a time with a view more button to load more.updated e2e test selectors for finding currency amounts in the list
Bugs fixed
fixes #8572