Skip to content

Conversation

@pietro-maximoff
Copy link
Collaborator

No description provided.

@pietro-maximoff pietro-maximoff self-assigned this Nov 3, 2025
Copilot AI review requested due to automatic review settings November 3, 2025 19:27
@pietro-maximoff pietro-maximoff added the enhancement New feature or request label Nov 3, 2025
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for sovryn-layer ready!

Name Link
🔨 Latest commit 76a0418
🔍 Latest deploy log https://app.netlify.com/projects/sovryn-layer/deploys/690b5390b4acb3000877cd1f
😎 Deploy Preview https://deploy-preview-13--sovryn-layer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new AmountRenderer component to standardize the display of numeric values with formatting, tooltips, and copy functionality across the Money Market interface. The component provides consistent decimal formatting, prefix/suffix support, and an optional tooltip with copy-to-clipboard functionality.

  • Introduces AmountRenderer component with configurable formatting options
  • Replaces hardcoded value formatting with the new component across multiple tables and statistics
  • Updates type definitions to use numeric types instead of pre-formatted strings

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/web-app/src/components/ui/amount-renderer.tsx New component for standardized amount display with formatting and copy functionality
apps/web-app/src/components/MoneyMarket/components/TopPanel/TopPanel.tsx Updated to use AmountRenderer for net worth, APY, and health factor display
apps/web-app/src/components/MoneyMarket/components/PoolPositionStat/PoolPositionStat.tsx Changed value prop type from string/number to ReactNode to support AmountRenderer
apps/web-app/src/components/MoneyMarket/components/LendPositionsList/components/AssetsTable/AssetsTable.constants.tsx Updated balanceUsd from string to number format
apps/web-app/src/components/MoneyMarket/components/LendPositionsList/LendPositionsList.types.tsx Changed balanceUsd type from string to number
apps/web-app/src/components/MoneyMarket/components/LendPositionsList/LendPositionsList.tsx Replaced formatted strings with AmountRenderer components
apps/web-app/src/components/MoneyMarket/components/LendAssetsList/components/AssetsTable/AssetsTable.tsx Updated balance and APY display to use AmountRenderer
apps/web-app/src/components/MoneyMarket/components/LendAssetsList/components/AssetsTable/AssetsTable.constants.tsx Added balanceUsd numeric values to asset data
apps/web-app/src/components/MoneyMarket/components/LendAssetsList/LendAssetsList.types.tsx Added optional balanceUsd number field
apps/web-app/src/components/MoneyMarket/components/BorrowPositionsList/components/AssetsTable/AssetsTable.tsx Updated to use AmountRenderer for balance and APY display
apps/web-app/src/components/MoneyMarket/components/BorrowPositionsList/components/AssetsTable/AssetsTable.constants.tsx Changed balanceUsd from string to number format
apps/web-app/src/components/MoneyMarket/components/BorrowPositionsList/BorrowPositionsList.types.tsx Updated balanceUsd type from string to number
apps/web-app/src/components/MoneyMarket/components/BorrowPositionsList/BorrowPositionsList.tsx Replaced formatted strings with AmountRenderer components
apps/web-app/src/components/MoneyMarket/components/BorrowAssetsList/components/AssetsTable/AssetsTable.constants.tsx Updated balanceUsd from string to number format
apps/web-app/src/components/MoneyMarket/components/BorrowAssetsList/BorrowAssetsList.types.tsx Changed balanceUsd type from string to number

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 5, 2025 13:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…sList/components/AssetsTable/AssetsTable.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 5, 2025 13:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@creed-victor creed-victor merged commit 0fc33ab into develop Nov 6, 2025
5 checks passed
@creed-victor creed-victor deleted the feat/SOV-5215 branch November 6, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants