Open
Description
For /interop-messages
page we need to add filters for all columns in the table (except the invisible Payload
column) like it's done for /advanced-filter
page.
blockscout/blockscout#11903 implements the following HTTP GET parameters for /api/v2/optimism/interop/messages
endpoint for filtering:
interop_message_nonce
(for theMessage
column) - can only contain one value, e.g.:/api/v2/optimism/interop/messages?interop_message_nonce=751
. UI component should just have a text field withFilter
button andReset
link.interop_message_age_from
andinterop_message_age_to
(for theAge
column) are implemented likeage_from
andage_to
in/api/v2/advanced-filters
. And UI is like for theAge
column on/advanced-filter
page.interop_message_statuses
(for theStatus
column) can have multiple comma-separated values. Allowed ones are:SENT,RELAYED,FAILED
(can be mixedcase). Implementation is like for theType
column on/advanced-filter
page.interop_message_init_transaction_hash
(for theSource tx
column) - can only contain one value, e.g.:/api/v2/optimism/interop/messages?interop_message_init_transaction_hash=0x5ceca6af22895e834c21d80754a27357769007553a4425ba1c65c7c8ce19dbb9
. UI component should just have a text field withFilter
button andReset
link.interop_message_relay_transaction_hash
(for theDestination tx
column) - the same as forinterop_message_init_transaction_hash
.interop_message_sender_address_hashes_to_include
andinterop_message_sender_address_hashes_to_exclude
(for theSender
column) are implemented likefrom_address_hashes_to_include
andfrom_address_hashes_to_exclude
in/api/v2/advanced-filters
. And UI is like for theFrom
column on/advanced-filter
page.interop_message_target_address_hashes_to_include
andinterop_message_target_address_hashes_to_exclude
(for theTarget
column) are implemented liketo_address_hashes_to_include
andto_address_hashes_to_exclude
in/api/v2/advanced-filters
. And UI is like for theTo
column on/advanced-filter
page.interop_message_direction
(for theIn/Out
column) can be one of: "in", "out", "all". And UI is the radio switcher like for theOR
column on/advanced-filter
page.
There won't be Export to CSV
button yet.
By default, all filters are switched off and the /interop-messages
page displays all messages (paginated, of course) with the message counter like it's implemented right now. Once at least one of the filter parameters is applied, the message counter becomes hidden and the page switches to the first page. But the pagination should work as usual (next_page_params
is still there).