Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 20 of N pull requests. This pull request introduces several enhancements to the `apps/earn-protocol` application, focusing on incorporating user activity data and top depositors into various pages and components. The most important changes include updates to the `EarnVaultManagePage`, `EarnVaultOpenPage`, and `UserActivityPage` to fetch and display this new data, as well as modifications to the server handlers and components to support these updates. ### Enhancements to data fetching and display: * `apps/earn-protocol/app/earn/[network]/position/[vaultId]/[walletAddress]/page.tsx`: Added `getUserActivity` to fetch user activity and top depositors, and updated `EarnVaultManagePage` to include this data in the component props. ([apps/earn-protocol/app/earn/[network]/position/[vaultId]/[walletAddress]/page.tsxR6](diffhunk://#diff-aec0650e1d631148c7236a9124bdf58ab593e3e089754ba25c6ca8b08b32ed61R6), [apps/earn-protocol/app/earn/[network]/position/[vaultId]/[walletAddress]/page.tsxL22-R23](diffhunk://#diff-aec0650e1d631148c7236a9124bdf58ab593e3e089754ba25c6ca8b08b32ed61L22-R23), [apps/earn-protocol/app/earn/[network]/position/[vaultId]/[walletAddress]/page.tsxR34-R38](diffhunk://#diff-aec0650e1d631148c7236a9124bdf58ab593e3e089754ba25c6ca8b08b32ed61R34-R38), [apps/earn-protocol/app/earn/[network]/position/[vaultId]/[walletAddress]/page.tsxR65-R66](diffhunk://#diff-aec0650e1d631148c7236a9124bdf58ab593e3e089754ba25c6ca8b08b32ed61R65-R66)) * `apps/earn-protocol/app/earn/[network]/position/[vaultId]/page.tsx`: Updated `EarnVaultOpenPage` to fetch user activity and top depositors and pass this data to the `VaultOpenView` component. ([apps/earn-protocol/app/earn/[network]/position/[vaultId]/page.tsxR4](diffhunk://#diff-eaafa83dbaa20354e007ae0e12db9f7a702c4eda62f13e8ac7f97562a32e633cR4), [apps/earn-protocol/app/earn/[network]/position/[vaultId]/page.tsxL18-R25](diffhunk://#diff-eaafa83dbaa20354e007ae0e12db9f7a702c4eda62f13e8ac7f97562a32e633cL18-R25), [apps/earn-protocol/app/earn/[network]/position/[vaultId]/page.tsxL34-R43](diffhunk://#diff-eaafa83dbaa20354e007ae0e12db9f7a702c4eda62f13e8ac7f97562a32e633cL34-R43)) * [`apps/earn-protocol/app/earn/user-activity/page.tsx`](diffhunk://#diff-00a406f55b8254b1f7ebb56bdffb224cf8036f0c3b2bf475a55323c66fe4bf24L16-R16): Modified `UserActivityPage` to include top depositors in the fetched data and pass it to the `UserActivityView` component. [[1]](diffhunk://#diff-00a406f55b8254b1f7ebb56bdffb224cf8036f0c3b2bf475a55323c66fe4bf24L16-R16) [[2]](diffhunk://#diff-00a406f55b8254b1f7ebb56bdffb224cf8036f0c3b2bf475a55323c66fe4bf24R25) ### Updates to server handlers: * [`apps/earn-protocol/app/server-handlers/sdk/get-user-activity.ts`](diffhunk://#diff-410dafcceab060e8269aee988d0fec5ba9126561247c8a7181761fe1f2b6b48cR1-R74): Created a new function `getUserActivity` to fetch user activity and top depositors. * [`apps/earn-protocol/app/server-handlers/sdk/get-users-activity.ts`](diffhunk://#diff-e5a3f2bcbd2b174bc55aaec59dde8bca644433d0ab0ef25de8ec779eb53c10d4L3-R14): Updated `getUsersActivity` to include top depositors in the returned data. [[1]](diffhunk://#diff-e5a3f2bcbd2b174bc55aaec59dde8bca644433d0ab0ef25de8ec779eb53c10d4L3-R14) [[2]](diffhunk://#diff-e5a3f2bcbd2b174bc55aaec59dde8bca644433d0ab0ef25de8ec779eb53c10d4L41-R39) [[3]](diffhunk://#diff-e5a3f2bcbd2b174bc55aaec59dde8bca644433d0ab0ef25de8ec779eb53c10d4R58-R66) ### Component modifications: * [`apps/earn-protocol/components/layout/VaultManageView/VaultManageView.tsx`](diffhunk://#diff-180e4453ecde0323c93bedc67a55441498ddf30fa5f732446fd12cc2dc575ba9L3-R8): Updated `VaultManageView` to accept and pass user activity and top depositors to the `VaultManageViewComponent`. [[1]](diffhunk://#diff-180e4453ecde0323c93bedc67a55441498ddf30fa5f732446fd12cc2dc575ba9L3-R8) [[2]](diffhunk://#diff-180e4453ecde0323c93bedc67a55441498ddf30fa5f732446fd12cc2dc575ba9R18-R26) [[3]](diffhunk://#diff-180e4453ecde0323c93bedc67a55441498ddf30fa5f732446fd12cc2dc575ba9R35-R36) * [`apps/earn-protocol/components/layout/VaultManageView/VaultManageViewComponent.tsx`](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccR1): Enhanced `VaultManageViewComponent` to display user activity, top depositors, and other related data. [[1]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccR1) [[2]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccR11-R35) [[3]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccR44-R75) [[4]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccL71-R94) [[5]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccL82-R117) [[6]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccL101-R127) [[7]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccL148-R174) [[8]](diffhunk://#diff-093401e3ee1390c1d36183263365baea6f0df465c9bc2cdafe8c6205c965caccL178-R209) * [`apps/earn-protocol/components/layout/VaultOpenView/VaultOpenView.tsx`](diffhunk://#diff-a40498ddbf1bf5830448800c7d93442c21fc90a4f6c4eed0b672478679ce71a9L3-R8): Updated `VaultOpenView` to accept and pass user activity and top depositors to the `VaultOpenViewComponent`. [[1]](diffhunk://#diff-a40498ddbf1bf5830448800c7d93442c21fc90a4f6c4eed0b672478679ce71a9L3-R8) [[2]](diffhunk://#diff-a40498ddbf1bf5830448800c7d93442c21fc90a4f6c4eed0b672478679ce71a9R17-R32) --------- Co-authored-by: sebastianPiekarczyk <sebastian@oazoapps.com>
- Loading branch information