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

🪢 Merge Validators into dev #4776

Merged
merged 18 commits into from
Feb 21, 2024
Merged

🪢 Merge Validators into dev #4776

merged 18 commits into from
Feb 21, 2024

Commits on Dec 28, 2023

  1. Validator profile creation (#4428)

    * Compoenents Created
    
    * RowInline created
    
    * create profile modal complete
    
    * profile modification modal complete
    
    * change BuyMembershipModal to multiTransaction modal
    
    * add Bonding Validator Account Transaction,fix the machine
    
    * fix the bug in machine
    
    * fix the bug
    
    * complete the UI,but did not implement transaction for binding validator account
    
    * lint:fix
    
    * add bondValidatorAcc tx
    
    * update storybook
    
    * fix mistake
    
    * lint fix
    
    * fix storybook
    
    * add storybook for update validator membership
    
    * Revert "fix storybook"
    
    This reverts commit 489d7f6.
    
    * add some happy and failure case
    
    * Metadata to BYTES for UpdateProfile Tx
    
    * buyValidatorMembership flow draft
    
    * update machine, modal flow
    
    * fix machine
    
    * address merge conflicts
    
    * lint --fix
    
    * update MembershipForm, UpdateMembershipForm
    
    * update interaction test
    
    * fix machine self transition condition, correct PlusIcon import
    
    * fix signer, update test
    
    * revert changes on UpdateMembership
    
    * fix
    
    * update app.stories.tsx with validator provider mocking
    
    * Revert "update app.stories.tsx with validator provider mocking"
    
    This reverts commit d3182d2.
    
    * update storybook comment
    
    * update buymembership machine
    
    * update buyMembership machine
    
    * fix
    
    * Fix the duplicated transaction signing
    
    * Improve binding tests
    
    * Change the select validator account function
    
    * add validatorProvider
    
    * check validator account
    
    * Count the membership's root/controller account into the validator membership
    
    * fix
    
    * Skip validator query until it's needed
    
    ---------
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    eshark9312 and thesan authored Dec 28, 2023
    Configuration menu
    Copy the full SHA
    23e07ff View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Validator page responsiveness (#4706)

    * Revert "remove route, sidebar item, tab, dashboard, modal"
    
    This reverts commit 480cd09.
    
    * Fix the validator hooks
    
    * fix validator page tab
    
    * add responsive
    
    * fix
    
    * lint fix
    
    * fix hook
    
    * add loading, count the current era into uptime
    
    * lint fix
    
    * remove validator dashboard
    
    * address merge conflict
    
    * fix validatorsInfo modal
    
    * fix validatorslist col-layout
    
    * update validator provider
    
    * fix
    
    * lint fix
    
    * fix
    eshark9312 authored Jan 5, 2024
    Configuration menu
    Copy the full SHA
    e89ffb9 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. 🚿 Fix Validator dashboard queries (#4718)

    * Make validators `APR`, `staking`, and `slashed` optional
    
    * Make `totalRewards` and `rewardPointsHistory` optional too
    
    * Fix the validator details queries
    
    * Filter validator queries
    
    * Fix filters
    
    * Order validators query results
    
    * Skip the membership query when details aren't needed
    
    * Add pagination
    
    * Rename "others" to "nominators"
    
    * Fix the tests
    
    * Filter, sort, and paginate on the last step
    
    * Split the provider code
    
    * Fix pagination on filtered results
    thesan authored Jan 15, 2024
    Configuration menu
    Copy the full SHA
    1deafe8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0902426 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    2ac1b80 View commit details
    Browse the repository at this point in the history
  2. 📡 Fix the queries broken by the ProxyApi (#4733)

    * Fix address encoding
    
    * Fix the `query` function of `ProxyApi`
    
    * Same thing for tx: `paymentInfo` and `signAndSend`
    
    * Fix the no latest reward case
    
    * Don't encode the addresses
    
    * Fix tests
    thesan authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    3dfd186 View commit details
    Browse the repository at this point in the history
  3. Update membership (#4721)

    * add MyMembership storybook, update updateMembershipFormModal
    
    * fix machine
    
    * update UpdateMembershipModal
    
    * update storybook test
    
    * Run prettier
    
    * fix useValidators hook
    
    * update ValidatorsList storybook test
    
    * remove UpdateMembershipModal unit-test
    
    * fix proposal storybook test
    
    * remove UpdateMembershipModal unit-test
    
    * fix updateMembershipFormModal
    
    * Alice has two validator accounts
    
    * fix
    eshark9312 authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    87ccd02 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Configuration menu
    Copy the full SHA
    62ff736 View commit details
    Browse the repository at this point in the history
  2. 🃏 Validators sort by apr (#4739)

    * Rely on observables laziness to filter and sort validators
    
    * Re-implement the status filter
    
    * Re-implement sort by APR
    
    * Show a loader while sorting validators
    
    * Throttle to decrease re-rendering cycles
    thesan authored Jan 18, 2024
    Configuration menu
    Copy the full SHA
    44d3f79 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. 🧹 Finalize validator dashboard (#4742)

    * Factor common queries
    
    * Fix tests
    
    * Simplify validators mocks
    
    * Factor stakers queries
    
    * Fix APR and the latest reward stat
    
    * Fix uptime stat
    
    * Fix the Era statistic
    
    * Watch `totalIssuance` and `useObservable`
    
    * Move validators mocks to a separate file
    
    * Use the reward average to calculate the APR
    
    * Apply the "do not show again" box decision
    
    * Fix the toggle appearance
    thesan authored Jan 22, 2024
    Configuration menu
    Copy the full SHA
    5757822 View commit details
    Browse the repository at this point in the history
  2. Replace spinner with skeleton (#4744)

    * replace spinner with skeleton
    
    * fix
    eshark9312 authored Jan 22, 2024
    Configuration menu
    Copy the full SHA
    bab08f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. 🔍 Check transaction signer addresses in interactions tests (#4704)

    * Pass the signer address to mock tx in interaction tests
    
    * Fix existing tests
    thesan authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    6c1ef8d View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Address Validator dashboard QA issues (#4753)

    * fix validatorlist filter - input notification & enter on empty search box
    
    * don't show validation message until enter key typed
    
    * show 'All' in the filter select as default
    
    * fix validtor card responsiveness
    
    * fix typo 'Norminate'
    
    * rename reward widget label - last era
    
    * fix validator page widgets tooltips
    
    * fix social media icons as hyperlink
    
    * Rename `ExternalResourceLink` and type it
    
    * add 2 decimals to apr
    
    * fix search box not to show invalid choice until type enter
    
    * Update packages/ui/src/memberships/constants/externalResourceLink.ts
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    
    * fix
    
    * fix apr calculation
    
    * fix
    
    * add commission tooltip
    
    * Update packages/ui/src/validators/hooks/useValidatorsList.tsx
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    
    ---------
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    eshark9312 and thesan authored Jan 31, 2024
    Configuration menu
    Copy the full SHA
    10f1ce6 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Fix nominator count in the validator dashboard (#4755)

    * fix
    
    * Fix failing tests
    
    ---------
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    eshark9312 and thesan authored Feb 1, 2024
    Configuration menu
    Copy the full SHA
    ae3cb33 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Address create/update validator membership QA issues (#4767)

    * fix typo, warning layout
    
    * fix validator account select UX
    
    * fix storybook
    
    * fix invalid validator account input
    
    * fix
    
    * fix update validator membership UX
    
    * Factor validator selection
    
    * initialize the updateMembershipForm with the member's current details
    
    * fix create/update membership interaction test
    
    * fix invalid validator account input -  interact test
    
    ---------
    
    Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
    eshark9312 and thesan authored Feb 13, 2024
    Configuration menu
    Copy the full SHA
    703fc42 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. Configuration menu
    Copy the full SHA
    e396ab2 View commit details
    Browse the repository at this point in the history
  2. Fix the cancel proposal test

    thesan committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    707e18d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2cf534 View commit details
    Browse the repository at this point in the history