Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4326-Validators list - Page and widgets (#4375)
* Add Validators Module to the side menu and add tabs to validators page * Add widgets * fix widgets * display info modal on first open the page * get the staking informations using polkadot api * add validators list filter * fix widgets component and hook, add last reward * add validators' list- draft * add 'Total rewards', but not beyond history depth * remove filter and search box * fix validator page notification modal * lint:fix * Update packages/ui/src/validators/components/widgets/Era.tsx Co-authored-by: l1.media <31551045+traumschule@users.noreply.github.com> * Update packages/ui/src/validators/components/widgets/Era.tsx Co-authored-by: l1.media <31551045+traumschule@users.noreply.github.com> * Update packages/ui/src/validators/components/widgets/Rewards.tsx Co-authored-by: l1.media <31551045+traumschule@users.noreply.github.com> * Update packages/ui/src/validators/components/widgets/Rewards.tsx Co-authored-by: l1.media <31551045+traumschule@users.noreply.github.com> * rename 'widgets' to 'statistics','validators.tsx' to 'validatorlist.tsx' * add 'nominators' to the widget * add staking percentage to the widget * add blocks and points to the widget * fix validators page notification modal * fix the counter for active nominators * fix the format of staking value * yarn lint:fix * remove route, sidebar item, tab, dashboard, modal * add storybook for validator list page statistics * fix storybook, remove unused variables * Update packages/ui/src/app/pages/Validators/ValidatorList.stories.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/app/pages/Validators/ValidatorList.stories.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/app/pages/Validators/ValidatorList.stories.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Make story values more readable * Add a special case for `unwrap` methods * Assign an object to unwrap * Update packages/ui/src/common/components/charts/PercentageChart.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/validators/constants/constant.ts Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/validators/hooks/useStakingStatistics.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/validators/hooks/useStakingStatistics.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Update packages/ui/src/validators/hooks/useStakingStatistics.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * fix rewardPoints * remove InfoModal * fix asChainData helper * Simplify chain unwrapped mocks * move ERA_DRATION to common/constant/number * remove the default value for activeEra, assign undefined instead * pass the statistic values as props * fix some code to make it clear * fix some issue in Era widget --------- Co-authored-by: l1.media <31551045+traumschule@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
- Loading branch information
9f9514b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2-storybook – ./
pioneer-2-storybook-joystream.vercel.app
pioneer-2-storybook-git-dev-joystream.vercel.app
pioneer-2-storybook.vercel.app
9f9514b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2 – ./
pioneer-2-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-git-dev-joystream.vercel.app