harmony-one / bounties

Bounty program is to help the community take part in the development of the Harmony blockchain. It covers from core feature to validator tooling, from dApp development to DeFi integration.
MIT License
59 stars 23 forks source link

Revamp Harmony Bridge (Horizon) frontend #95

Open zhongeric opened 2 years ago

zhongeric commented 2 years ago

Description

The frontend for Harmony's bridge (https://bridge.harmony.one/erc20) works well, but there are significant flaws in its UI / UX which confuse new users and over complicate the process. This bounty is for a v2 version of the bridge frontend that is familiar to users of other bridge platforms and easier to maintain.

Context

This is the current UI:

Screen Shot 2021-12-28 at 8 41 24 PM

My thoughts:

A V2 version should be:

  1. Intuitive to use
  2. Minimize number of user interactions / freeform input, thus reducing potential errors and lost tokens
  3. Handle errors and provide resolution steps for users instead of relying on FAQ page

I would like to draw inspiration from other bridges on other chains:

Screen Shot 2021-12-28 at 8 50 08 PM

Adopting, a single column, top - bottom UI flow, in addition to using two dropdowns for thee source chain (BSC, ETH, or ONE) and the destination chain. Adding a comprehensive token selector + support for custom tokens, and adding a button allowing the user to select the MAX number of a token (a feature lacking in the current version).

Screen Shot 2021-12-28 at 8 59 01 PM

This is just what I sketched together in ~5 min, so some details may be missing, but the general idea is there. It's very similar to the terra bridge above, but that's just the core components. I want to add detailed error handling and resolution (auto prompt metamask to switch networks if required rather than showing error msg), etc. that is within scope.

I would like to take this on - I have 2-3 years of experience working with React + Typescript, I've skimmed through the repo and this is within my scope. Thus, I propose the following grant / bounty (not sure what to call this) for me to begin work:

Acceptance Criteria

Anticipated timeline: 2 weeks (part time)

Reward

USD $15,000 equivalent of ONE token

LeoHChen commented 2 years ago

@gupadhyaya , would like to sponsor this bounty?

zhongeric commented 2 years ago

Feel free to update the reward as you see fit / fair @LeoHChen @gupadhyaya

givp commented 2 years ago

@zhongeric we are moving away from posting external bounties on Github. If you post this on the forum, it will be reviewed much quicker. https://talk.harmony.one/c/funding-proposals/bounties/45

zhongeric commented 2 years ago

@givp sounds good, just posted here: https://talk.harmony.one/t/bounty-harmony-horizon-bridge-frontend-revamp/10249. Thanks!