Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: format big numbers using Intl api when rendered on screen #3171

Merged
merged 5 commits into from
Jun 16, 2023

Conversation

neuodev
Copy link
Contributor

@neuodev neuodev commented Apr 18, 2023

Format token amount: 100000 ==> 100,000

Screenshot

Screenshot 2023-04-19 at 12 45 26 AM
Screenshot 2023-04-19 at 12 47 08 AM

@neuodev neuodev self-assigned this Apr 18, 2023
@neuodev neuodev requested a review from vsubhuman April 18, 2023 22:49
@neuodev
Copy link
Contributor Author

neuodev commented Apr 18, 2023

[autoscript] ⚠️ Ahmed/format-nums doesn't full our branch naming convention.
Should follow <tag>/<jira-ticket-id>/<short-name>

Details
  • <tag>: fix, feat, chore, refactor, test, ...
  • <jira-ticket-id>: The issue ID of JIRA all capital letters
  • <short-name>: A short and descriptive name for the branch

@neuodev
Copy link
Contributor Author

neuodev commented Apr 18, 2023

Note: the big diff is because of the formatted file that was not formated

@neuodev neuodev mentioned this pull request Apr 18, 2023
33 tasks
@sonarqube-yoroi
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 0.0% 0.0% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

Copy link
Contributor

@vsubhuman vsubhuman left a comment

Choose a reason for hiding this comment

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

@neuodev , plz check the comment about the locale and also please roll back the formatting changes that are not related to the intended change, it becomes very hard to review and make sure I don't miss any of the changes that are actually important in the PR.

We can have formatting fixes as separate PRs that are not intended to have any logic changes.

@neuodev neuodev requested a review from vsubhuman June 5, 2023 13:29
@vsubhuman vsubhuman added this to the 4.22.0 milestone Jun 9, 2023
@sonarqube-yoroi
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vsubhuman vsubhuman merged commit 7044a7f into develop Jun 16, 2023
@vsubhuman vsubhuman deleted the Ahmed/format-nums branch June 16, 2023 13:27
@vsubhuman vsubhuman mentioned this pull request Jun 23, 2023
13 tasks
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.

2 participants