Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a component for exploring applications statistics #4358

Closed
Tracked by #4038
ManuGowda opened this issue Jun 27, 2022 · 1 comment · Fixed by #4370
Closed
Tracked by #4038

Create a component for exploring applications statistics #4358

ManuGowda opened this issue Jun 27, 2022 · 1 comment · Fixed by #4370

Comments

@ManuGowda
Copy link
Contributor

ManuGowda commented Jun 27, 2022

Description

Create a component to show number of applications by status, Total LSK Supply/Staked

Acceptance Criteria

  • Allow users to see application status by pie chart
  • Allow users to see total supply of LSK
  • Allow users to see staked LSK
  • Ensure UI/UX design requirements are met
  • Add required unit tests
  • Add required new e2e tests

Additional Information

  • Suggested component name blockchainApplicationStatistics,
  • Suggested function name for mapping data ?,
  • Suggested component name for each type and list ?,
  • Create a function to map data and render the right component by type
  • Existing pic chart component can be used (DPoS Delegation status)
  • Fetch data from the given endpoint
const mapApplicationStatistics = (data) => {
 return [
   {
     type: 'pieChart',
     label: null,
     chartData
   },
   {
     type: 'cart',
     label: t('total supply'),
     value: '500,000 LSK',
     icon,
   }
 ]
}

@soroushm
Copy link
Contributor

@isalga I just add the end point to the ticket, please use it for the manager and mock the response

@ManuGowda ManuGowda moved this from Backlog to In Progress in Lisk Desktop Version 3.0.0 Jun 30, 2022
isalga pushed a commit that referenced this issue Jul 5, 2022
* Add component and screen structure

* Add tooltips

* Create api util

* Add TODO dependency on api call

* Add unit test

* Add icons

* Adjust styles

* Fix lint

* Adjust chart styles and options

* Add coverage expections

* Increase e2e wait time

* Add alias

* remove old routesMap

* PR feedback

* Update unit test

* PR feedback

* Fix test and lint

* Add unit tests

* Ignore branch coverage

* Lint issues

* PR feedback
@isalga isalga closed this as completed Jul 5, 2022
Repository owner moved this from In Progress to Done in Lisk Desktop Version 3.0.0 Jul 5, 2022
soroushm pushed a commit that referenced this issue Jul 5, 2022
* Add component and screen structure

* Add tooltips

* Create api util

* Add TODO dependency on api call

* Add unit test

* Add icons

* Adjust styles

* Fix lint

* Adjust chart styles and options

* Add coverage expections

* Increase e2e wait time

* Add alias

* remove old routesMap

* PR feedback

* Update unit test

* PR feedback

* Fix test and lint

* Add unit tests

* Ignore branch coverage

* Lint issues

* PR feedback
eniolam1000752 pushed a commit that referenced this issue Jul 6, 2022
* Add component and screen structure

* Add tooltips

* Create api util

* Add TODO dependency on api call

* Add unit test

* Add icons

* Adjust styles

* Fix lint

* Adjust chart styles and options

* Add coverage expections

* Increase e2e wait time

* Add alias

* remove old routesMap

* PR feedback

* Update unit test

* PR feedback

* Fix test and lint

* Add unit tests

* Ignore branch coverage

* Lint issues

* PR feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment