Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Search box improvements #4

Description

@MOZGIII

The search bar is currently operating in a suboptimal manner.

It can be easily implemented in the following manner:

  • User fills in the input
  • We try to parse the input
    • If parses as ss58 address - we suggest navigating to the account page for that address
    • If it's a 0x-prefixed hex string
      • query if the block with this hash exists, if it does - suggest navigating to that block (/block/<block-number>)
      • query if an extrinsic with this hash can be found in any of the blocks, if it does - suggest navigating to each of the block/extrinsic instances (/extrinsic/<extrinsic-id>, i.e. /extrinsic/1714638-1 for extrinsic number 1 in block number 1714638)
    • if the input is a number - suggest navigating to the block with this number if the block exists (/block/<block-number>)
    • if no suggestions are made - display a message that the input can not be recognized

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountyThis issue is a part of the initiatives program!good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions