feat: add analytics to Liquidity Hub feature - #5765
Conversation
🦋 Changeset detectedLatest commit: 21e7af1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
2c4b91b to
b9f59fd
Compare
Greptile SummaryAdds analytics across Liquidity Hub navigation, amount entry, and transaction lifecycle events, with tests covering the new instrumentation.
Confidence Score: 5/5The PR appears safe to merge with no concrete blocking or independently actionable non-blocking issues identified. The added instrumentation preserves existing navigation and transaction behavior, and the borrow-cap display now consistently reflects both the protocol cap and available market liquidity.
|
| Filename | Overview |
|---|---|
| apps/evm/src/libs/analytics/useAnalytics/types.ts | Extends the typed analytics event map for Liquidity Hub navigation, selection, funding sources, and amount events. |
| apps/evm/src/containers/LiquidityHubForm/Form/index.tsx | Exposes amount-entry and maximum-selection callbacks without changing form validation or submission behavior. |
| apps/evm/src/containers/LiquidityHubForm/SupplyTabs/SupplyWithWalletForm/index.tsx | Adds wallet-funded supply analytics around amount changes and transaction signing while preserving the existing mutation flow. |
| apps/evm/src/containers/LiquidityHubForm/SupplyTabs/SupplyWithCollateralForm/index.tsx | Adds collateral-migration supply analytics with funding-source attribution and rejection tracking. |
| apps/evm/src/containers/LiquidityHubForm/WithdrawForm/index.tsx | Adds withdrawal amount and transaction-lifecycle analytics without changing withdrawal inputs. |
| apps/evm/src/clients/api/mutations/useSupplyToLiquidityHub/index.ts | Records confirmed wallet supplies before performing the existing Liquidity Hub cache invalidations. |
| apps/evm/src/clients/api/mutations/useMigrateCoreSupplyToLiquidityHub/index.ts | Records confirmed collateral migrations with normalized token amounts and funding-source attribution. |
| apps/evm/src/clients/api/mutations/useWithdrawFromLiquidityHub/index.ts | Records confirmed withdrawals, including whether the full supply was redeemed. |
| apps/evm/src/containers/Layout/NavBar/MenuItem/index.tsx | Invokes item-specific analytics callbacks before retaining the existing menu-closing behavior. |
| apps/evm/src/pages/LiquidityHubs/LiquidityHubTable/index.tsx | Tracks both hub-row navigation and row-control modal selection. |
| apps/evm/src/pages/Market/MarketHistory/index.tsx | Caps the displayed total-borrow threshold at the amount reachable from current borrows plus available market cash. |
Reviews (1): Last reviewed commit: 2c4b91b | Re-trigger Greptile
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c4b91ba65
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
b9f59fd to
21e7af1
Compare
Changes