Closed bigboydiamonds closed 3 months ago
The changes introduce a new utility function, formatNumberWithCommas
, which formats numeric strings by adding commas as thousand separators. This function is utilized in the AmountInput
component to improve the display of numerical values and in the StateManagedBridge
component to enhance toast messages. The updates aim to improve the readability of numerical information presented to users across the application.
Files | Change Summary |
---|---|
packages/synapse-interface/components/ui/AmountInput.tsx |
Introduced formatNumberWithCommas to format the input value for better readability. |
packages/synapse-interface/pages/state-managed-bridge/index.tsx |
Updated toast messages to format debouncedFromValue using formatNumberWithCommas for improved clarity in user notifications. |
packages/synapse-interface/utils/formatNumberWithCommas.ts |
Added formatNumberWithCommas function to format numeric strings with commas as thousand separators, enhancing the presentation of numerical values in the app. |
In a garden bright and fair,
A rabbit hops without a care.
With numbers neat and commas bright,
The changes bring a pure delight!
Hooray for formats, clear and grand,
A joyful leap across the land! πβ¨
[!TIP] We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changes will increase total bundle size by 264.58kB :arrow_up:
Bundle name | Size | Change |
---|---|---|
sdk-router-@synapsecns/sdk-router-cjs | 527.05kB | 409.81kB :arrow_up: |
synapse-interface-client-array-push | 7.41MB | 228 bytes :arrow_up: |
synapse-interface-server-cjs | 1.33MB | 145.45kB :arrow_down: |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 30.85118%. Comparing base (
9ceacfe
) to head (1f23a25
). Report is 14 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
1f23a25
|
Status: | β Deploy successful! |
Preview URL: | https://642d4ffc.sanguine-fe.pages.dev |
Branch Preview URL: | https://fe-input-comma.sanguine-fe.pages.dev |
Latest commit: |
1f23a25
|
Status: | β Deploy successful! |
Preview URL: | https://bd2ee3b7.sanguine.pages.dev |
Branch Preview URL: | https://fe-input-comma.sanguine.pages.dev |
Summary by CodeRabbit
AmountInput
component to display numerical values with commas for improved readability.StateManagedBridge
component to format numerical values with commas, making them clearer to users.These changes collectively improve the overall user experience by ensuring that large numbers are easier to read and understand.
6d89607d9c7ea7d2664f37016ce573ba16765bb7: synapse-interface preview link