OriginProtocol / OriginProtocol/origin-dollar

Make input and output editable

Open
#1,407 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dapp enhancement frontend P2 ui/ux
Dominant language
Solidity
Stars
152
Forks
115
Avg merge
3d 20h
Merged PRs (30d)
17

Description

As a user, Andra redeemed OETH and then wanted to mint again. She saw that the input was "stuck" on OETH and couldn't find a way to change it to something she was now holding. Her intuition was to click the logo in the top left, then the Swap nav item expecting one of them to reset the form back to her original experience. She also tried refreshing the page. She did not know to click the arrow to flip the transaction nor click the output to change it to OETH.

We originally designed the OUSD dapp this way in an effort to communicate that OETH is required to be one side of the transaction. In other words, the dapp would not support swaps involving other tokens since that's what Uniswap and others are for. However, most users are accustomed to both the input and the output being editable on Uniswap and Curve. If we use the same dropdown element on both, we can still enforce the requirement that OETH (or OUSD) be involved.

I also suspect that the arrow is too subtle to do much good with the new theme, but that still isn't enough to make the form as intuitive as possible.

Our own way
Screenshot 2023-05-04 at 2 06 28 PM
Screenshot 2023-05-04 at 2 00 30 PM

The established way
Screenshot 2023-05-04 at 2 01 09 PM
Screenshot 2023-05-04 at 2 13 25 PM

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Swap nav item and locate the form described in the issue. Compare its current input and output controls with the established examples, including the arrow interaction. Done means both sides are editable while the transaction still requires OETH or OUSD on one side, with the described reset and flip behavior working intuitively.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.