osmosis-frontend icon indicating copy to clipboard operation
osmosis-frontend copied to clipboard

Add command palette

Open jonator opened this issue 3 years ago • 3 comments

For the osmosis power user: we should add a command palette to allow users to jump to certain functions, navigate the app, and send Txs to Keplr. It could be conventionally accessible w/ cmd + K.

Example in react. Also seen on tailwind docs site.

Possibilities:

  • Fuzzy search pool (by denoms, "atom osmo" or by id: "1") then:
    • Open pool detail page (i.e. "atom osmo open" or "1 open")
    • Remove liquidity (if applicable) ("atom osmo remove" or "1 remove")
    • Add liquidity (if has balance)
    • Bond
    • Unbond
    • Swap
    • Only functions that a user can successfully perform will be selectable. I.e. they shouldn't get an error after selecting an option for not enough gas, high slippage, low balances, etc.
  • Type swap then the tokens (i.e. "swap osmo atom") to do a swap w/ default slippage settings from first to second token
  • Future: fuzzy search Osmosis concepts that could link to relevant docs page (GAMM, LP shares, etc.)
  • etc.

jonator avatar Jun 01 '22 19:06 jonator

6/7 meeting -

  • Syed: ask about this in user interview
  • Victor: wants this
  • Josh: good to tailor to super user during bear market

jonator avatar Jun 07 '22 16:06 jonator

This would be an ambitious good first issue, though super valuable!

jonator avatar Sep 23 '22 19:09 jonator

Challenge: create a decoupled command palette mobx store that doesn't create a direct dependency on AccountStore.

May be blocked until we create an account abstraction.

jonator avatar Oct 05 '22 21:10 jonator

Reopen when started:

https://app.clickup.com/t/8669b05dq

jonator avatar Feb 20 '23 17:02 jonator