-
Notifications
You must be signed in to change notification settings - Fork 9
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 support for filtering TX lists for method type #1679
Conversation
Deployed to Cloudflare Pages
|
051268e
to
07e7251
Compare
0b7e0ce
to
4a589e6
Compare
6befb60
to
e092000
Compare
As discussed with @donouwens, the type filter list for the consensus layer is too long to be convenient. Ideally, it should be replaced with a combo-box with type-ahead search. However, we plan to support multiple values anyway (later, when nexus will add support for that), so we will replace the widget with a searchable combo-box at that time. Which means, the current version is as good as it will get, in the current round of implementation. |
/** | ||
* An optional second title which will be displayed under title / subheader / action | ||
*/ | ||
title2?: ReactNode |
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.
subtitle
maybe?
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 problem is that currently we have title
, subheader
(and action
), all displayed in the same row.
If we introduced subtitle
, it would be very easy to accidentally confuse it with subheader
.
That was my thinking, but I don't have a strong opinion. If you think subtitle would be better, I am open to rename it. What do you think?
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.
In reality this is a workaround to supplement action
layouting on mobile. Ideally it should be solved with css instead of misleading abstractions. Maybe a correctly placed flex-wrap would work
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.
Typescript can make sure these are kept in sync
e6dcb06
to
0b41a3c
Compare
dc66285
to
5023109
Compare
Please note that filtering for runtime tx type can get some inconsistent results until oasisprotocol/nexus#883 is implemented. |
5023109
to
28d1944
Compare
This will be greatly improved when oasisprotocol/nexus#890 lands, because it will make it possible to search for the "transfer" type coherently. |
28d1944
to
f1ffc24
Compare
93e9d3f
to
0f19dd2
Compare
/** | ||
* An optional second title which will be displayed under title / subheader / action | ||
*/ | ||
title2?: ReactNode |
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.
In reality this is a workaround to supplement action
layouting on mobile. Ideally it should be solved with css instead of misleading abstractions. Maybe a correctly placed flex-wrap would work
7dfabb1
to
9476dfb
Compare
f39783d
to
d79ea64
Compare
Currently, if a <Table> receives zero rows, and it is not loading, it is simply hidden without any trace. This commit introduces the possibility to show a message where the table was supposed to be.
This works on: - the latest transactions page (i.e. /mainnet/sapphire/tx ) - the account transactions page ( /mainnet/sapphire/address/0x683dC5f8cFa3e156b0F695CEa0b8EdeC7322CbF6 ) - block transactions ( /mainnet/consensus/block/22847794 )
(As preparation for filtering for them)
- Add missing methods - Use exhaustedTypeWarning for warning on new, unhandled values, both for labels and icons
d79ea64
to
8ea8fb2
Compare
This PR exposes the runtime tx method search feature added to Nexus in oasisprotocol/nexus#824.
It adds support for filtering runtime TX lists for method type.
Depends on:
It also adds the same feature for consensus TX lists, for which the Nexus support has been there for a while.
It works on all consensus and runtime dashboards, transaction list, also including transactions for blocks, accounts and validators.
I suggest reviewing the PR commit by commit, because there are multiple semi-independent small changes.
The account transactions page looks like this:
Or this, when there are no results:
Latest transactions page, on mobile:
For consensus: