Code Monkey home page Code Monkey logo

restaking-dashboard's Introduction

Restaking Dashboard frontend

Running locally

This project uses Vite. To start locally, run the following commands from the project's root directory:

npm i
npm run dev

restaking-dashboard's People

Contributors

adriantpaez avatar edgarbarrantes avatar hyodar avatar jianmtech avatar kushagrasarathe avatar rubo avatar swapnilraj avatar vincenthongzy avatar yasmine9 avatar zishan-7 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

restaking-dashboard's Issues

`Error: supabaseUrl is required.`

Here's what I see when I follow the README.md and run this.

If there's an .env file required for this to run, please explain that in the README.md and provide an .env.example.

Screenshot from 2023-08-16 10-19-18

UX touchup

Stand back and look at the website and see if we can move graphs around to give it a better look.

Collecting possible ideas:

  • Sidebar index thing for navigating sections to improve discoverability
  • Loader while charts load (data is available, time is just related to graph computation)

Navigation misbehavior on AVS details view

When you go to AVS details operator tab and then try to go back to the previous page, it does not work. it just gets stuck there.

Screen.Recording.2024-07-24.at.10.53.44.PM.mov

Add descriptions and links to UI

UI improvements:

  • Add some descriptions of important charts/data.
  • Overview of the dashboard/project
  • Link to Eiger Layer docs and anything relevant.
  • Links to re-stake on the EigenLayer dapp
  • Add link to repo for contributors

fix: ui issues and enhancements

These UI issues and enhancements needs to be implemented:

  • Sidebar also scrolls-down along with the page content, hiding the sidebar title. Ideally sidebar should be fixed wrt to page content, keeping all links and title visible on screen without scrolling.
Screenshot 2024-05-20 at 10 13 04 AM
  • Padding between tabs sections on smaller screens
Screenshot 2024-05-20 at 11 08 35 AM
  • Fix mobile responsiveness for overflowing content

  • Close ham menu on smaller screens on navigating to a different path

Visualise re-staked Eth

Ideas:

  • Pie chart of total re-staked Eth with each category of re-staked ETH
  • Stacked bar chart of re-staked Eth over time

Suggest better ones

Visualise staker data

leaderboard table with address and staked eth across strategies similar to degenscore.com

Ensure navigation is keyboard-friendly

  • Ensure the navigation is available with the keyboard
  • Ensure links retain the default browser behavior and can be opened in a new tab
  • Ensure the focus outline is consistent and visible for interactive controls

Mainnet Toggle

Add a toggle to mainnet, if someone tries to toggle then it should mainnet is not ready yet and reset the toggle

Using current total staked ETH in leaderboard

@yasmine9 I just noticed the staker leaderboard views currently don't take withdrawals into account (which is not wrong as it's mostly an interpretation point, since we do talk about literally deposits, but the main idea IMO is the current main stakers), and we also don't make the shares -> amount conversion to get the ETH value (only makes a difference for stETH). This does not make a big difference atm, but we should fix this soon.

What I propose is we do both of these changes. If you agree, it'd be good if you could take a look at those views, change them so they take withdrawals into account and do all calculations with the share amount as opposed to the balance. The way to manage withdrawals is getting the queued share withdrawals and joining it with the withdrawals table so you know which ones were actually executed. Then, with the share amount in hand in the FE, you can get the exchange rate in a similar way as done in #38, calling sharesToUnderlyingView. With this, you'll have the token amount, and in the case of static tokens such as rETH and cbETH, as it's already done, you'll need to also use their exchange rate to ETH.

Let me know how it goes! Feel free to contact me before updating the views to be sure.

Dynamic image preview

Generate an image to show in the image preview when sharing link.
The image should have the current stake in each strategy.

Image

Something like this ^ looks good

responsiveness issue while using visx component

using visx ParentSize component sometimes causes the UI to overflow, and when testing responsiveness the page doesn't immediately adopt to screen width on smaller screens, need to refresh the page to properly see the content of page.

Screenshot 2024-07-03 at 12 37 02 AM
Screenshot 2024-07-03 at 12 37 30 AM

Wrap all service calls with `try/catch`

To display error messages and hide loading indicators, we must wrap server calls with try/catch/finally everywhere. It's better to do this in a separate PR. What do you think?

Originally posted by @rubo in #118 (comment)

  • Home
  • AVS list
  • AVS details (#170)
  • Operator list
  • Operator details
  • LRT (done in #129)
  • LST

Promote the data API on the dashboard

I reckon this is a must have for launch, even internally.

At the least the API docs should be linked in the footer for now. Next step would be a clear communication of the value proposition of the data API inline in the site content somewhere.

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.