Skip to content

Conversation

@therealemjy
Copy link
Member

@therealemjy therealemjy commented Dec 11, 2025

Changes

evm app

  • add ApproveToken and ApproveDelegate containers to share between various forms that require an approval before submitting a transaction
  • set Biome as default formatter in VSCode config
  • add Footer component and implement it in the Supply form. In the following PRs, I'll refactor the other operation forms to use this component to remove some code duplicates
  • add useCommonValidation hook to be used on every operation details form to detect errors that are common among them

@changeset-bot
Copy link

changeset-bot bot commented Dec 11, 2025

🦋 Changeset detected

Latest commit: c0af3b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@venusprotocol/evm Minor

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

@vercel
Copy link

vercel bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
app.venus.io Ready Ready Preview Dec 22, 2025 8:22am
dapp-preview Ready Ready Preview Dec 22, 2025 8:22am
dapp-testnet Error Error Dec 22, 2025 8:22am
venus.io Ready Ready Preview Dec 22, 2025 8:22am

@github-actions
Copy link
Contributor

github-actions bot commented Dec 16, 2025

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 79.53% 34488 / 43363
🔵 Statements 79.53% 34488 / 43363
🔵 Functions 62.52% 579 / 926
🔵 Branches 72.68% 4217 / 5802
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/components/ApproveTokenSteps/index.tsx 100% 66.66% 100% 100%
apps/evm/src/containers/ApproveDelegate/index.tsx 100% 50% 100% 100%
apps/evm/src/containers/ApproveToken/index.tsx 100% 0% 100% 100%
apps/evm/src/containers/Form/RhfSubmitButton/index.tsx 95.74% 66.66% 100% 95.74% 63-66
apps/evm/src/hooks/useDelegateApproval/index.ts 85.36% 75% 50% 85.36% 1, 35-38, 54
apps/evm/src/hooks/useGetSwapInfo/index.ts 99.32% 97.43% 100% 99.32% 1
apps/evm/src/hooks/useTokenApproval/index.ts 0% 0% 0% 0% 1-109
apps/evm/src/pages/Market/OperationForm/index.tsx 85.14% 25% 25% 85.14% 96-115
apps/evm/src/pages/Market/OperationForm/ApproveDelegateSteps/index.tsx 96.15% 33.33% 100% 96.15% 28
apps/evm/src/pages/Market/OperationForm/BoostForm/index.tsx 93.57% 88.4% 72.72% 93.57% 77, 140-143, 256-266, 290-299
apps/evm/src/pages/Market/OperationForm/BoostForm/SubmitSection/index.tsx 100% 77.77% 0% 100%
apps/evm/src/pages/Market/OperationForm/BorrowForm/index.tsx 93.61% 88.13% 80% 93.61% 87-92, 235-251, 470
apps/evm/src/pages/Market/OperationForm/BorrowForm/SubmitSection/index.tsx 100% 88.88% 100% 100%
apps/evm/src/pages/Market/OperationForm/Footer/index.tsx 100% 92.3% 100% 100%
apps/evm/src/pages/Market/OperationForm/Footer/SubmitButton/index.tsx 79.48% 42.85% 100% 79.48% 31, 47, 49-56
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/index.tsx 96.27% 93.82% 87.5% 96.27% 143-146, 288-298, 357
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithCollateralForm/SubmitSection/index.tsx 100% 75% 0% 100%
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithWalletBalanceForm/index.tsx 99.62% 92.85% 100% 99.62% 618, 646
apps/evm/src/pages/Market/OperationForm/Repay/RepayWithWalletBalanceForm/SubmitSection/index.tsx 100% 94.44% 100% 100%
apps/evm/src/pages/Market/OperationForm/SupplyForm/index.tsx 93.26% 86.2% 100% 93.26% 109, 229, 281-290, 418-433, 444-445, 460
apps/evm/src/pages/Market/OperationForm/SupplyForm/SubmitSection/index.tsx 0% 100% 100% 0% 2-105
apps/evm/src/pages/Market/OperationForm/SupplyForm/useForm/index.tsx 89.74% 50% 100% 89.74% 1, 111-119
apps/evm/src/pages/Market/OperationForm/SupplyForm/useForm/useFormValidation.ts 92.45% 91.66% 100% 92.45% 1, 123-129
apps/evm/src/pages/Market/OperationForm/WithdrawForm/index.tsx 92.83% 89.7% 88.88% 92.83% 82-85, 160, 249-265, 289, 466-471
apps/evm/src/pages/Market/OperationForm/WithdrawForm/SubmitSection/index.tsx 100% 88.88% 100% 100%
apps/evm/src/pages/Market/OperationForm/useCommonValidation/index.ts 99.4% 97.43% 100% 99.4% 3
apps/evm/src/pages/Swap/SubmitSection/index.tsx 100% 96.87% 100% 100%
Generated in workflow #12107 for commit c0af3b7 by the Vitest Coverage Report Action

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