GithubHelp home page GithubHelp logo

interface's People

Contributors

abisuq avatar asaadam avatar ayikfour avatar math-marcellino avatar pyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

interface's Issues

Risedle USDC Vault Page Improvement

The Risedle USDC Vault page should contains the following information:

  1. APY History
  2. Total available cash
  3. Utilization rate history

We need to create new service to record all the data first, so FE team can simply query the data.

Add "Disconnect" button on mobile

Currently there is no disconnect button on mobile menu:

Screen Shot 2022-01-30 at 19 19 05

  • Add disconnect button below the docs menu
  • Disconnect button only show up when the user wallet is connected

Toast won't disappear

When I'm interacting with an action that triggers a toast, the toast won't disappear until I reload the page. Is the duration already set up in the component?

image

Product detail page improvement

The current product detail page is very simple.

Screen Shot 2021-12-29 at 21 19 47

We can add more information such as:

  1. Available to mint
  2. Nav history price
  3. The total managed collateral and its cap (similar to Ribbon finance vault)
  4. Information about rebalancing etc

Leveraged Token Chart: Implement parallel UI loading

Currently, leveraged token chart is loading data from two different sources:

  1. The latest NAV data from the chain https://github.com/risedle/interface/blob/v1/components/v1/MarketDetailPage/LeveragedTokenChart.tsx#L24
  2. Historical NAV data from the snapshot API https://github.com/risedle/interface/blob/v1/components/v1/MarketDetailPage/LeveragedTokenChart.tsx#L27

The current approach is using the following step:

  1. If the (1) and (2) data is error or loading, then display skeleton chart https://github.com/risedle/interface/blob/v1/components/v1/MarketDetailPage/LeveragedTokenChart.tsx#L57
  2. Otherwise display the data.

It have a few drawbacks:

  1. Skeleton might show too long if the network is slow
  2. If one of the source is error, it will display the skeleton forever.

To solve this, we need to separate the loading information.

Instead of using one UI states variable showSkeleton, we can use different UI states variable:

  1. For NAV: navResponse.isLoading, navResponse.data, navResponse.error
  2. For Chart: data.loading, data.data, data.error

If data (2) is loaded first, then we display the chart directly instead of waiting data (1) to resolve.

Here is the visualiation before & after:
chart-states-before

chart-states-after

Wrong Network Page

Description

When user connect their wallet and if their wallet is connected to unsupported network, the user should be redirected to /networks to select the network.

When user click one of the network, user's wallet should pop up and prompt user to switch the network.

Switch Network on WalletConnect will diplay QR code

Currently, if user is connected via WalletConnect, they cannot switch network automatically due to behaviour of WalletConnect. If the user click "Switch Network" it will toast an error.

Here is what we want to achieve:

  1. When user click the swtich network, it will display new QR code.
  2. When user scan the QR code, user will automatically switched to the network

Other external links

When the user click three-dots button (top right conner).
Screen Shot 2021-12-29 at 21 14 25

The user should be able to see the following links:

  1. Twitter
  2. Discord
  3. Documentation

Mint doesn't work

Maybe related to above, when I followed the below steps, UI showed strange behaviour as shown in below gif.

  1. Cancel mint transaction
  2. Close the Mint page
  3. Re-open the mint page
  4. Set the input amount using the slider
  5. Click Mint
    ryu_hashi

The "not enough balance" should work on the following form:

  1. MintForm
  2. RedeemForm
  3. DepositForm
  4. WithdrawForm

30d Price Change

The user should be able to see the 30d price change from the /invest page.

Screen Shot 2021-12-29 at 21 17 28

To do this, we need to create new service called risedle-price-history so the FE team can simply query the data.

Disconnect wallet doesn't work

When u have connected your wallet you will see the following:

Screen Shot 2021-12-29 at 21 24 16

If you click disconnect, your wallet will be disconnected.

But if you refresh the page, your account is still connected.

The wallet should be disconnected.

New Feature: Portfolio page

Already provided the portfolio page design in Figma.
The data that will be shown are:

  • Overall Asset
  • The leverage token asset section
  • The vault token asset section

Each asset will have this:

  • Amount (how many tokens they hold)
  • Value (how much the token is valued in USD
  • Return (Shown in USD value)

Expected desktop:
image

Design file:
Portfolio page design

Leveraged & Vault Token Chart: Update tooltip timestamp formatting

Update the tooltip timestamp format to 20 Jan 2022, 9:00 PM

const formattedDate = new Intl.DateTimeFormat("en-US", { hour: "numeric", day: "numeric", month: "numeric", year: "numeric", minute: "numeric" }).format(date);

const formattedDate = new Intl.DateTimeFormat("en-US", { hour: "numeric", day: "numeric", month: "numeric", year: "numeric", minute: "numeric" }).format(date);

UI Update: Popup/Dropdown menu

Minor update for popup/dropdown menu component. The update:

  • Rounded: adjusted to 8px
  • States for Hover, Pressed, etc
  • On desktop: Show menu on hover (current, user need to click it)

Design component can be seen here:

Prototype Playground:

Mint ETHRISE using ETH

The new contract support minting ETHRISE using ETH directly.

Update the ETHRISE minting page to use ETH.

Max Button Outside Range

unknown

Report from our community:

Hi, on Mint page, when I chose "MAX", the input amount became invisible. I think the font colour become the same colour as background as shown below. When I manually moved the slider, it worked fine.
ryu_hashi

This form need to be checked:

  1. MintForm
  2. RedeemForm
  3. DepositForm
  4. RedeemForm

Investigate Why Metamask Doesn't Pop Up spontaenously

I also noticed that when I cancel the first mint transaction, then mint again(keeping the mint window open), the second transaction became very slow, meaning it took very long time until the metamask showed up(it was not slow for first mint)
ryu_hashi

This need to be checked:

  1. MintForm
  2. RedeemForm
  3. DepositForm
  4. WithdrawForm

Dark/Light Mode Switcher

When the user click three-dots button (top right conner).
Screen Shot 2021-12-29 at 21 14 25

The user should be able to see theme switcher.

Network Switcher

Description

User should be able to switch to supported networks:

  1. Kovan
  2. Arbitrum Mainnet

How it works

When user click the network name:

Screen Shot 2021-12-29 at 21 08 12

the user should directed to /networks.

/networks contains a list of networks.

When user click one of the network, the network wallet should be switched to that network.

Minting/Redeem/Deposit/Withdraw Error Handling

Scenario that can make minting process failed:

  1. Total available USDC supply is not enough
  2. There is high slippage when converting USDC to the collateral token

Scenario that can make redeeming process failed:

  1. There is high slippage when converting collateral token to USDC

Scenario that can make depoist USDC process failed:

  1. Cap is reached

Scenario that can make redeeming USDC process failed:

  1. There is no available cash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.