Skip to content

Conversation

@dieguezguille
Copy link
Member

@dieguezguille dieguezguille commented Jan 20, 2026

Summary by CodeRabbit

Release Notes

  • Style
    • Standardized USD amount display across the app to consistently show currency values in "$X.XX" format instead of locale-dependent currency formatting.
    • Refined text spacing in multiple UI components by adjusting typography line height properties.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2026

🦋 Changeset detected

Latest commit: 78b718f

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

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

@gemini-code-assist
Copy link

Summary of Changes

Hello @dieguezguille, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive update to how USD currency amounts are displayed throughout the mobile application. The primary goal is to ensure a uniform and predictable presentation of monetary values, enhancing user experience by providing clear and consistent financial information. This change moves away from locale-dependent currency formatting to a more controlled decimal representation with an explicit dollar sign prefix.

Highlights

  • Standardized USD Display: All USD currency displays across the application have been updated to use a consistent format. Instead of relying on the currency style of toLocaleString, which can vary in symbol placement and formatting based on locale, values are now explicitly prefixed with a dollar sign ($) and formatted as decimals with two fixed fractional digits (e.g., $1,234.56). In some cases, such as spending limits, the display is formatted with zero fractional digits (e.g., $1,234).
  • Text Styling Refinements: Several Text components across various files have had their lineHeight properties removed. This likely aims to simplify text styling and allow for more flexible or default line height behavior, potentially resolving layout inconsistencies.
  • New Changeset Entry: A new changeset file, ninety-olives-flow.md, has been added to document this patch, indicating its inclusion in future release notes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cruzdanilo
Copy link
Member

@cursor review

@cursor
Copy link

cursor bot commented Jan 20, 2026

PR Summary

Unifies USD display and tightens typography for consistent UI.

  • Replaces locale currency style with explicit $ prefix and decimal formatting (2 fraction digits) across Activity, Card, Add/Send Funds, Bridge, Swaps, Home/Portfolio, Pay Mode, and Roll Debt screens
  • Updates helpers like formatUSDValue and numerous value labels (balances, limits, quotes, previews) to the new format, including ≈$ cases
  • Simplifies typography by removing lineHeight in shared Text variants and specific inputs/text, ensuring consistent sizing
  • Adds a changeset for a patch release

Written by Cursor Bugbot for commit bd3a684. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on February 2

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

})}
{`$${(markets ? Number(borrowLimit(markets, marketUSDCAddress)) / 1e6 : 0).toLocaleString(language, {
style: "decimal",
})}`}
Copy link

Choose a reason for hiding this comment

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

Missing fraction digits in CardContents USD formatting

Medium Severity

The toLocaleString calls in CardContents.tsx for the "Available balance" display only specify style: "decimal" without minimumFractionDigits or maximumFractionDigits. All other USD amount displays in this PR consistently use minimumFractionDigits: 2, maximumFractionDigits: 2. This omission causes inconsistent formatting—a balance of 1234.5 might display as $1,234.5 here but $1,234.50 everywhere else in the app.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

@coderabbitai is this fixed in the latest force-pushed code?

Copy link

Choose a reason for hiding this comment

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

@dieguezguille Yes, this has been fixed! Looking at the current file content, both locations now include the proper fraction digit specifications:

Credit branch (lines 79-82):

{`$${(markets ? Number(borrowLimit(markets, marketUSDCAddress)) / 1e6 : 0).toLocaleString(language, {
  style: "decimal",
  minimumFractionDigits: 2,
  maximumFractionDigits: 2,
})}`}

Debit branch (lines 97-103):

{`$${(markets ? Number(withdrawLimit(markets, marketUSDCAddress)) / 1e6 : 0).toLocaleString(
  language,
  {
    style: "decimal",
    minimumFractionDigits: 2,
    maximumFractionDigits: 2,
  },
)}`}

Both instances now consistently format USD amounts with exactly 2 decimal places, matching the rest of the PR changes. ✅

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request consistently normalizes the display of USD values across the application by explicitly prepending a dollar sign ($) and setting the style option to decimal in toLocaleString calls. This ensures a uniform presentation of currency, which is a good practice for user interface consistency. Additionally, lineHeight properties have been removed from several Text components, aligning with a broader style update in src/components/shared/Text.tsx to streamline text styling. The changes are well-applied and improve the maintainability and consistency of the codebase.

@coderabbitai
Copy link

coderabbitai bot commented Jan 20, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

This PR normalizes USD display formatting across 40+ mobile UI components by replacing locale-based currency formatting (with USD currency code and narrow symbol) with consistent decimal formatting (2 fractional digits) prefixed by a literal "$" symbol. Additionally, several components have lineHeight properties removed from Text styling.

Changes

Cohort / File(s) Summary
Activity components
src/components/activity/ActivityItem.tsx, src/components/activity/PendingProposals.tsx, src/components/activity/details/CardActivity.tsx, src/components/activity/details/OperationDetails.tsx, src/components/activity/details/ReceivedActivity.tsx, src/components/activity/details/RepayActivity.tsx, src/components/activity/details/SentActivity.tsx
Standardized USD amount display from currency formatter (USD, narrowSymbol) to decimal format with fixed 2 fractional digits prefixed by "$"
Add-funds components
src/components/add-funds/AssetSelectSheet.tsx, src/components/add-funds/Bridge.tsx
Replaced currency-style USD formatting with decimal formatting and "$" prefix; Bridge includes two occurrences
Card components
src/components/card/Card.tsx, src/components/card/SpendingLimit.tsx, src/components/card/exa-card/CardContents.tsx
Changed spending/limit displays from currency formatter to decimal with "$" prefix; CardContents applies to both borrowLimit and withdrawLimit
Home components
src/components/home/AssetList.tsx, src/components/home/CardLimits.tsx, src/components/home/Portfolio.tsx, src/components/home/PortfolioSummary.tsx
Updated USD balance and value displays from currency formatting to consistent decimal format with "$" prefix
Pay-mode components
src/components/pay-mode/PaySelector.tsx, src/components/pay-mode/PaymentSheet.tsx, src/components/pay-mode/RepayAmountSelector.tsx
Reformatted USD amounts and updated preview/discounted pricing display to decimal style with manual dollar prefix; PaySelector also removes lineHeight
Send-funds components
src/components/send-funds/Amount.tsx, src/components/send-funds/Receiver.tsx, src/components/send-funds/ReviewSheet.tsx
Converted USD display from currency formatter to decimal with "$"; Receiver removes lineHeight prop from label text
Shared/typography components
src/components/shared/AmountSelector.tsx, src/components/shared/AssetSelector.tsx, src/components/shared/LiquidationAlert.tsx, src/components/shared/ProcessingBalance.tsx, src/components/shared/ProcessingBalanceBanner.tsx, src/components/shared/ProfileHeader.tsx, src/components/shared/Text.tsx
Standardized USD formatting across shared components and removed lineHeight properties; Text.tsx removes lineHeight from all StyledText variants
Swap components
src/components/swaps/Failure.tsx, src/components/swaps/Pending.tsx, src/components/swaps/SelectorModal.tsx, src/components/swaps/Success.tsx, src/components/swaps/TokenInput.tsx
Reformatted fromUsdAmount and toUsdAmount displays from currency style to decimal with "$"; TokenInput also removes lineHeight from input style
Debt management
src/components/roll-debt/RollDebt.tsx
Converted four displayed monetary fields ("Debt to rollover", "Rollover interest", "Current debt", "Total after rollover") from currency to decimal formatting with "$" prefix
Changeset
.changeset/ninety-olives-flow.md
Added changeset entry marking patch release for @exactly/mobile with message "🌐 normalize usd display"

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • ♻️ misc app improvements #633 — Modifies the same UI component files (ActivityItem.tsx, PendingProposals.tsx, activity detail components), suggesting related formatting changes in parallel branches.
  • ✨ add i18n #635 — Makes similar changes to the same components' formatting code (ActivityItem, PendingProposals, CardActivity, Bridge, AssetList, etc.) with language-aware toLocaleString calls; represents an alternative approach to the same formatting problem.

Suggested reviewers

  • franm91
  • cruzdanilo
  • nfmelendez
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changeset: normalizing USD display formatting across the entire codebase from locale currency formatting to consistent decimal formatting with dollar prefix.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch guille

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sentry
Copy link

sentry bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.96%. Comparing base (583261f) to head (78b718f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #658      +/-   ##
==========================================
+ Coverage   78.91%   78.96%   +0.05%     
==========================================
  Files          43       43              
  Lines        1987     1987              
  Branches      435      435              
==========================================
+ Hits         1568     1569       +1     
+ Misses        269      267       -2     
- Partials      150      151       +1     
Flag Coverage Δ
github 78.96% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cruzdanilo cruzdanilo merged commit 78b718f into main Jan 20, 2026
5 checks passed
@cruzdanilo cruzdanilo deleted the guille branch January 20, 2026 18:20
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