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

feat(staking,extension,ui): StakePools Grid and List View integration, persistance adjustments [LW-9250, LW-9393, LW-9249, LW-9922] #904

Merged
merged 72 commits into from
Mar 22, 2024

Conversation

tommayeliog
Copy link
Contributor

@tommayeliog tommayeliog commented Feb 21, 2024

Checklist


Proposed solution

This PR integrates the List and Grid view with business logic, including changes to the settings persistence (e.g. preferred view and selected stake pools). Introducing usage of ROS instead of APY (deprecated) and some necessary bug fixes around that.

New env variables:

  • USE_MULTI_DELEGATION_STAKING_FILTERS - shows filters tab if true

Changes to the existing env variables:

  • USE_ROS_STAKING_COLUMN - if set to false the "ROS" sorting option won't be available in the top-right corner sort/filter preferences card

Testing

Please run full regression on Staking and check the env variables. Be sure to include some of the following edge cases with different search queries/sorting/pool selections:

  • network switching
  • opening drawers (StakePoolDetails / Confirming new staking preferences)
  • opening/modifying the side panel with sorting options (on smaller resolution - top right corner)
  • reloading the extension should persist selected pools and preferred view (grid/list)
  • resizing browser window using both views and reloading at specific breakpoints (we experienced some incorrect fetch requests - but managed to fix it already)

Screenshots

Screenshot 2024-03-05 at 17 21 46 Screenshot 2024-03-05 at 17 21 38

@github-actions github-actions bot added browser Changes to the browser application. staking Changes to the staking package. ui-toolkit labels Feb 21, 2024
Copy link

github-actions bot commented Feb 21, 2024

Allure report

allure-report-publisher generated test report!

smokeTests: ✅ test report for 7379be5d

passed failed skipped flaky total result
Total 30 0 0 0 30

@coveralls
Copy link

coveralls commented Feb 21, 2024

Coverage Status

Changes unknown
when pulling 7379be5 on feat/LW-9250-LW-9393-browse-pools-sorting
into ** on main**.

@przemyslaw-wlodek przemyslaw-wlodek force-pushed the feat/LW-9250-LW-9393-browse-pools-sorting branch from 8a2f312 to 3ad58cc Compare February 22, 2024 10:47
@przemyslaw-wlodek przemyslaw-wlodek force-pushed the feat/LW-9250-LW-9393-browse-pools-sorting branch from 3ad58cc to 50118e4 Compare February 22, 2024 22:05
@github-actions github-actions bot added e2e Changes to the e2e testing instrumentation. ui-toolkit labels Feb 29, 2024
@przemyslaw-wlodek przemyslaw-wlodek force-pushed the feat/LW-9250-LW-9393-browse-pools-sorting branch from 777a1a9 to 990ae8b Compare March 5, 2024 13:45
przemyslaw-wlodek and others added 21 commits March 14, 2024 13:16
Copy link

sonarcloud bot commented Mar 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
4.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

{ updateLocalStorage: setMultidelegationFirstVisitSincePortfolioPersistence }
] = useLocalStorage(MULTIDELEGATION_FIRST_VISIT_SINCE_PORTFOLIO_PERSISTENCE_LS_KEY, true);
const sendAnalytics = useCallback(() => {
// TODO implement analytics for the new flow
Copy link
Collaborator

Choose a reason for hiding this comment

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

covering in LW-9993 and LW-9994, out of scope for this PR

@tommayeliog tommayeliog merged commit 21abec2 into main Mar 22, 2024
10 of 14 checks passed
@tommayeliog tommayeliog deleted the feat/LW-9250-LW-9393-browse-pools-sorting branch March 22, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Changes to the browser application. e2e Changes to the e2e testing instrumentation. staking Changes to the staking package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants