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

Pagination improvements #2583

Closed
wants to merge 1 commit into from

Conversation

avclarke
Copy link
Contributor

No description provided.

@avclarke avclarke requested a review from LeifuChen July 12, 2023 16:28
@vercel
Copy link

vercel bot commented Jul 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
kwenta ✅ Ready (Inspect) Visit Preview Jul 12, 2023 4:32pm
kwenta-storybook ✅ Ready (Inspect) Visit Preview Jul 12, 2023 4:32pm

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

❗ No coverage uploaded for pull request base (feat/new-staking-v2@e284f68). Click here to learn what that means.
The diff coverage is n/a.

@@                  Coverage Diff                   @@
##             feat/new-staking-v2    #2583   +/-   ##
======================================================
  Coverage                       ?   50.83%           
======================================================
  Files                          ?      378           
  Lines                          ?    11335           
  Branches                       ?     2678           
======================================================
  Hits                           ?     5762           
  Misses                         ?     5352           
  Partials                       ?      221           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

LeifuChen added a commit that referenced this pull request Jul 12, 2023
@LeifuChen LeifuChen mentioned this pull request Jul 12, 2023
8 tasks
Copy link
Contributor

@LeifuChen LeifuChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. It's working perfectly. All the changes have been made in #2515

@platschi platschi closed this Jul 12, 2023
platschi added a commit that referenced this pull request Jul 13, 2023
* Updated the staking dashboard

* Updated the staking rewards

* Fixed the lint

* Updated the staking section

* Updated the trading rewards

* Updated the escrow tab

* Updated the pagination

* Update the migration page

* Update the cards into staking dashboard

* Support customized pagination of the table

* Optimize the table logic

* Hook V1 data

* Added v2 contract

* Updated the new contract name

* Updated V2 actions

* Fixed the lint warning

* Updated the mobile layout

* Fixed the mobile layout of the migration page and drop the unnecessary contract

* Fixed the layout of the rewards tab

* Fixed the warning lint

* Updated the layout issue

* Fixed the lint error

* Rename the button prop

* Added migration flow

* Added more v2 data

* Updated checkbox style

* Updated the checkbox style

* Updated the button style on escrow table

* Updated the checkbox style in light theme

* Fixed the trading rewards

* Updated the staking tab

* Updated the data in escrow tab

* Added cooldown period

* Corrected the staked kwenta balance and trading rewards logic

* Added epoch selector

* Fixed the epoch selector on mobile

* Added v2 actions to UI

* Rename the functions

* Fixed responsive layout

* Fixed the lint

* Fixed the lint

* Added some easy fixes accroding to the comments

* Add a new variant to TabButton

* Fixed the missing i18n issue

* Fixed tablet layout and tab button style

* Fixed the lint warning

* Added Escrow V2 data

* Fixed the escrow v2 data

* Removed the console log

* Fixed the unstaked Escrowed Balance V2

* Fixed the stake escrow v2

* Removed the subtitle, disabled button and add cooldown warning to the escrow tab

* Updated the escrow table layout

* Show the migration page as needed

* Fixed the table in smaller screen view

* Cleaned the code

* Fixed the lint warning

* Fixed the button state

* Optimized the button label

* Optimized the data fetching

* Move the order of the sidebar

* Added link out icon

* Fixed the lint

* Refactor the fee calculation logic

* Fixed the tablet layout and non-desktop pagintation layout

* Fixed the name issue and checkbox style in mobile escrow table

* Revised a portion of the code based on feedback from Adam's comments

* Fixed the sdk logic to map the correct contract

* Fixed the typo and layout issue

* Fixed the padding of the warning view

* Fixed the pagination border issue on mobile layout

* Fixed the staking dashboard in reponsive layout

* Reduce the gap of staking portfolio on large screen

* Refactored the estimated reward query

* Removed the unnecessary function

* Fixed the lint warning

* Fixed the query status

* Fixed the action name

* Updated the kwenta rewards display, button label, table label and warning; Removed the redeem

* Made the title of the section clickable on staking dashboard

* Added icon next to the label

* Added cooldown period into the unstake check

* Use redux state to track if the migration page is required

* Added v1/v2 toggle into escrow table

* Fixed the step3 copy

* Styled the dropdown menu

* Add the row gap to the staking card

* Ccapitalized the status

* Refactored the staking info state

* Added error handling and notification

* Added the disabled rules for the data fetching

* Refactored the migration component

* Refactored the pagination logic and updated the contract in mainnet

* Removed the unnecessary props

* Fixed the v1 escrow info for migration dashboard

* Updated the state migration file

* Disabled the claim and compound button if no claimable rewards

* Fixed the pnpm-lock file

* Removed the unused packages

* Fixed the lint warning

* Fixed the page size

* Fixed the escrow table style

* Fixed APY and reorganized the help icons

* Added the tooltips

* Fixed the Escrow Tab layout

* Showing V1 data in migration middle box

* Fixed the button variant and fetching status

* Added loading state for button

* Revised the code based on #2583

* Update the new lock file

* Added the loading state to the migration steps button and update the status of the rejected action

* Added the loading state for all the buttons

* Reset all the staking status

* fix: pnpm-lock

* fix: early vest fee tooltip

* fix: change onClick to early vest tab

---------

Co-authored-by: platschi <platschi@posteo.org>
@platschi platschi deleted the feat/new-staking-v2-pagination branch August 4, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants