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: react query 5 - 5, migration hooks #1839

Merged
merged 81 commits into from
Mar 18, 2024
Merged

Conversation

JoaquinBattilana
Copy link
Member

@JoaquinBattilana JoaquinBattilana commented Nov 10, 2023

General Changes

  • Refactors fetching mechanism for migration page from global state to react query
  • Adds usePoolReserve, useUserMigrationReserves, useUserSummaryAfterMigration and useUserSummaryForMigration hooks
  • Deletes not used slices
  • Deletes not used selectors (moved logic to hooks)

Developer Notes

Add any notes here that may be helpful for reviewers.


Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • The base branch is set to main
  • The title is using Conventional Commit formatting
  • The Github issue has been linked to the PR in the Development section
  • The General Changes section has been filled out
  • Developer Notes have been added (optional)

If the PR is ready for review:

  • The PR is in Open state and not in Draft mode
  • The Ready for Dev Review label has been added

Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code style generally follows existing patterns
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)
  • Code changes have been quality checked in the ephemeral URL
  • QA verification has been completed
  • There are two or more approvals from the core team
  • Squash and merge has been checked

Copy link

height bot commented Nov 10, 2023

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 516.73 KB (🟡 +26 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Thirteen Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 86.16 KB (🟢 -4.46 KB) 602.89 KB
/404 16.26 KB (🟡 +2 B) 532.99 KB
/500 16.67 KB (🟡 +2 B) 533.4 KB
/faucet 38.05 KB (🟢 -4.49 KB) 554.78 KB
/governance 87.12 KB (🟢 -3.11 KB) 603.85 KB
/governance/ipfs-preview 119.96 KB (🟢 -3.12 KB) 636.69 KB
/governance/proposal 120.13 KB (🟢 -3.12 KB) 636.85 KB
/governance/proposal/[proposalId] 74.74 KB (🟢 -3.11 KB) 591.47 KB
/history 46.66 KB (🟢 -3.29 KB) 563.38 KB
/markets 37.62 KB (🟡 +55 B) 554.34 KB
/reserve-overview 35.04 KB (🟢 -4.54 KB) 551.77 KB
/staking 33.73 KB (🟢 -3.13 KB) 550.46 KB
/v3-migration 49.9 KB (🟡 +2.05 KB) 566.63 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

@JoaquinBattilana JoaquinBattilana changed the base branch from main to feat/react-query-5-1 November 20, 2023 10:44
@JoaquinBattilana JoaquinBattilana changed the base branch from feat/react-query-5-1 to feat/react-query-5-2 November 22, 2023 14:00
@JoaquinBattilana JoaquinBattilana changed the base branch from feat/react-query-5-2 to feat/react-query-5-3 November 22, 2023 15:22
Copy link

github-actions bot commented Mar 8, 2024

Copy link

github-actions bot commented Mar 8, 2024

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 537.01 KB (🟢 -2.18 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.1 KB (-6 B) 615.11 KB
/404 6.71 KB (🟢 -1 B) 543.72 KB
/500 7.13 KB (🟢 -2 B) 544.14 KB
/faucet 28.19 KB (-2 B) 565.2 KB
/governance 88.43 KB (-4 B) 625.45 KB
/governance/ipfs-preview 102 KB (-2 B) 639.02 KB
/governance/v3/proposal 128.2 KB (-4 B) 665.22 KB
/history 36.85 KB (-3 B) 573.87 KB
/markets 29.72 KB (🟡 +35 B) 566.74 KB
/reserve-overview 24.03 KB (🟡 +1 B) 561.04 KB
/staking 23.93 KB (-1 B) 560.95 KB
/v3-migration 40.14 KB (🟡 +1.8 KB) 577.15 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

github-actions bot commented Mar 8, 2024

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 536.97 KB (🟢 -2.22 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.1 KB (-5 B) 615.07 KB
/404 6.71 KB (🟢 -1 B) 543.67 KB
/500 7.13 KB (🟢 -2 B) 544.1 KB
/faucet 28.19 KB (🟢 -3 B) 565.16 KB
/governance 88.43 KB (-4 B) 625.4 KB
/governance/ipfs-preview 102 KB (-2 B) 638.97 KB
/governance/v3/proposal 128.2 KB (-4 B) 665.17 KB
/history 36.85 KB (-3 B) 573.82 KB
/markets 29.68 KB (🟢 -4 B) 566.65 KB
/reserve-overview 24.02 KB (🟢 -3 B) 560.99 KB
/staking 23.93 KB (-1 B) 560.9 KB
/v3-migration 40.14 KB (🟡 +1.8 KB) 577.11 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

github-actions bot commented Mar 8, 2024

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.09 KB (🟢 -2.54 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.1 KB (-5 B) 616.19 KB
/404 6.71 KB (🟢 -1 B) 544.8 KB
/500 7.13 KB (🟢 -2 B) 545.22 KB
/faucet 28.19 KB (🟢 -3 B) 566.28 KB
/governance 88.53 KB (-2 B) 626.62 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.27 KB
/governance/v3/proposal 128.84 KB (-3 B) 666.94 KB
/history 36.85 KB (-3 B) 574.95 KB
/markets 29.68 KB (🟢 -4 B) 567.78 KB
/reserve-overview 24.02 KB (🟢 -3 B) 562.12 KB
/staking 23.93 KB (-1 B) 562.02 KB
/v3-migration 40.14 KB (🟡 +1.8 KB) 578.23 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.09 KB (🟢 -2.54 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.1 KB (-5 B) 616.19 KB
/404 6.71 KB (🟢 -1 B) 544.8 KB
/500 7.13 KB (🟢 -2 B) 545.22 KB
/faucet 28.19 KB (🟢 -3 B) 566.28 KB
/governance 88.53 KB (-2 B) 626.62 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.27 KB
/governance/v3/proposal 128.84 KB (-3 B) 666.94 KB
/history 36.85 KB (-3 B) 574.95 KB
/markets 29.68 KB (🟢 -4 B) 567.78 KB
/reserve-overview 24.02 KB (🟢 -3 B) 562.12 KB
/staking 23.93 KB (-1 B) 562.03 KB
/v3-migration 40.14 KB (🟡 +1.8 KB) 578.23 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.06 KB (🟢 -2.58 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.08 KB (🟢 -18 B) 616.14 KB
/404 6.71 KB (🟢 -1 B) 544.76 KB
/500 7.13 KB (🟢 -2 B) 545.19 KB
/faucet 28.19 KB (🟢 -3 B) 566.24 KB
/governance 88.54 KB (🟡 +13 B) 626.6 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.23 KB
/governance/v3/proposal 128.85 KB (🟡 +8 B) 666.91 KB
/history 36.85 KB (-3 B) 574.91 KB
/markets 29.68 KB (🟢 -4 B) 567.74 KB
/reserve-overview 24.03 KB (🟡 +3 B) 562.09 KB
/staking 23.93 KB (-2 B) 561.99 KB
/v3-migration 40.14 KB (🟡 +1.8 KB) 578.2 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.06 KB (🟢 -2.58 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.08 KB (🟢 -18 B) 616.14 KB
/404 6.71 KB (🟢 -1 B) 544.76 KB
/500 7.13 KB (🟢 -2 B) 545.19 KB
/faucet 28.19 KB (🟢 -3 B) 566.24 KB
/governance 88.54 KB (🟡 +13 B) 626.6 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.23 KB
/governance/v3/proposal 128.85 KB (🟡 +8 B) 666.91 KB
/history 36.85 KB (-3 B) 574.91 KB
/markets 29.68 KB (🟢 -4 B) 567.74 KB
/reserve-overview 24.03 KB (🟡 +3 B) 562.09 KB
/staking 23.93 KB (-2 B) 561.99 KB
/v3-migration 40.19 KB (🟡 +1.84 KB) 578.24 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

MareskoY
MareskoY previously approved these changes Mar 13, 2024
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.06 KB (🟢 -2.58 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.08 KB (🟢 -18 B) 616.14 KB
/404 6.71 KB (🟢 -1 B) 544.76 KB
/500 7.13 KB (🟢 -2 B) 545.19 KB
/faucet 28.19 KB (🟢 -3 B) 566.24 KB
/governance 88.54 KB (🟡 +13 B) 626.6 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.23 KB
/governance/v3/proposal 128.85 KB (🟡 +8 B) 666.91 KB
/history 36.85 KB (-3 B) 574.91 KB
/markets 29.68 KB (🟢 -4 B) 567.74 KB
/reserve-overview 24.03 KB (🟡 +3 B) 562.09 KB
/staking 23.93 KB (-2 B) 561.99 KB
/v3-migration 40.19 KB (🟡 +1.84 KB) 578.24 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 538.05 KB (🟢 -2.58 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twelve Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 78.12 KB (🟡 +15 B) 616.17 KB
/404 6.71 KB (🟢 -1 B) 544.76 KB
/500 7.13 KB (🟢 -2 B) 545.18 KB
/faucet 28.22 KB (🟡 +30 B) 566.27 KB
/governance 88.57 KB (🟡 +40 B) 626.62 KB
/governance/ipfs-preview 102.18 KB (-2 B) 640.23 KB
/governance/v3/proposal 128.85 KB (🟡 +8 B) 666.91 KB
/history 36.89 KB (🟡 +30 B) 574.94 KB
/markets 29.72 KB (🟡 +29 B) 567.77 KB
/reserve-overview 24.09 KB (🟡 +65 B) 562.14 KB
/staking 23.96 KB (🟡 +32 B) 562.02 KB
/v3-migration 40.22 KB (🟡 +1.88 KB) 578.27 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

@JoaquinBattilana JoaquinBattilana merged commit e1cc882 into main Mar 18, 2024
27 checks passed
@JoaquinBattilana JoaquinBattilana deleted the feat/react-query-5 branch March 18, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants