/epoch-table

Primary LanguageJavaScript

Epoch Table

  • Fetch from the given API from .env file
  • Use graphql for initial fetch
  • Initially sort by 'startBlock' in descending order through gql
  • Sort columns descending order initially then ascending order once active column is clicked again through gql
  • Search 'startBlock' though gql
  • Pagination done through frontend side
  • Horizontal scroll should appear on mobile view for the table
  • Sticky Header is enabled
  • Big numbers are rounded off up to 2 decimal values

Limitations:

  • should input whole 'startBlock' value for it to appear. example: 12589880
  • Whole number values will not be shown when cell is clicked. No expanded table feature.

Additional Packages used:

  • Material UI
  • react-table

Needed installations to run application:

  • node
  • npm

To run: npm start