Skip to content
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 latest TX list for method type #1679

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

csillag
Copy link
Contributor

@csillag csillag commented Jan 9, 2025

This PR exposes the method search feature added to Nexus in oasisprotocol/nexus#824.

It adds support for filtering latest TX list for method type.

Currently, this is only enabled on the latest transactions page (i.e. /mainnet/sapphire/tx )

It looks like this:

image

Or this, when there are no results:

image

Nexus has introduced filtering for tx method in
oasisprotocol/nexus#824

Our API wrapper code hasn't yet been updated for this change.
This commit selectively updates this single part of the wrapper.
Copy link

github-actions bot commented Jan 9, 2025

Deployed to Cloudflare Pages

Latest commit: 9ab010dd60716770edd000fd93bb3279352bb5f1
Status:✅ Deploy successful!
Preview URL: https://2f63444e.oasis-explorer.pages.dev
Alias: https://pr-1679.oasis-explorer.pages.dev

Currently, this is only enabled on the latest transactions page
(i.e. /mainnet/sapphire/tx )
Currently, if a <Table> receives zero rows, and it is not loading,
it is simply hidden.

This is not ideal if there are zero rows because of some filtering
configured inside the table headers, which is now no longer accessible,
since the whole table has been hidden.

So this commit introduces an alternative behavior: if we pass an
`emptyMessage` to the table, then it will not be hidden even
if there are no rows, but instead, the passed message will be displayed.

Please note that the default behavior doesn't change; to trigger
this new behavior, the new parameter needs to be added.
This can happen when filtering for TX method.
@csillag csillag force-pushed the csillag/filter-txs-for-method branch from 051268e to 07e7251 Compare January 9, 2025 03:04
@csillag csillag marked this pull request as ready for review January 9, 2025 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant