near / queryapi

Near Indexing as a Service
15 stars 3 forks source link

QueryAPI Indexers Filtering/Sorting on Dashboard #454

Open roshaans opened 6 months ago

roshaans commented 6 months ago

Currently we have over 50 indexers on queryapi.dataplatform.near and they are growing faster.

For a new indexer developer or even a current one, it is very hard to explore indexers and go to the ones you are recently working on.

To make it easier, we can do the following improvements on the main dashboard page.

I have created an indexer that is still in development, but should be sufficient to help us in implementing some of these features:

query IndexerLogsMostRecent {
  roshaan_near_queryapi_indexer_v5_indexers(
    limit: 30
    order_by: {last_edited_block_height: desc}
  ) {
    id
    last_edited_block_height
    last_edited_timestamp
    name
    number_of_edits
    originally_authored_block_height
    accountid
  }
}

Near Horizon has a sort by list. We can include something similar with the options above. You can find Near Horizon's Github Repo here: https://github.com/near-horizon/horizon

image

Some inspiration: DevHub has a feed that has a filter by authorId option. We can do a similar thing for contractId filters as well as indexer creators. You can find the github repo here: https://github.com/near/neardevhub-widgets/

image
roshaans commented 6 months ago

@pkudinov feel free to add more details here.

@xuan-ytr Pavel said you'd eventually work on designs. You can take this ticket into account while doing that later