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

Search box improvements #4

Open
MOZGIII opened this issue Mar 16, 2023 · 2 comments
Open

Search box improvements #4

MOZGIII opened this issue Mar 16, 2023 · 2 comments
Labels
bounty This issue is a part of the initiatives program! good first issue Good for newcomers

Comments

@MOZGIII
Copy link
Contributor

MOZGIII commented Mar 16, 2023

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
@MOZGIII MOZGIII added good first issue Good for newcomers bounty This issue is a part of the initiatives program! labels Mar 16, 2023
@MOZGIII MOZGIII changed the title Make search work Make search bar work Mar 16, 2023
@MOZGIII MOZGIII removed the bounty This issue is a part of the initiatives program! label Mar 16, 2023
@MOZGIII MOZGIII changed the title Make search bar work Search box improvements Mar 16, 2023
@MOZGIII MOZGIII added the bounty This issue is a part of the initiatives program! label Apr 6, 2023
@dework-integration dework-integration bot reopened this Apr 6, 2023
@MOZGIII MOZGIII reopened this Apr 6, 2023
@hrutik7
Copy link

hrutik7 commented Aug 17, 2023

Hey @MOZGIII
Is this still open . I'll be happy to contribute in it :)

@MOZGIII
Copy link
Contributor Author

MOZGIII commented Aug 17, 2023

Hey! We have moved away from this explorer (we have subscan now), so while still open this task is no longer relevant

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bounty This issue is a part of the initiatives program! good first issue Good for newcomers
Development

No branches or pull requests

2 participants