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

Format values in Setting clients #7583

Merged
merged 3 commits into from
Feb 26, 2025
Merged

Conversation

bankjirapan
Copy link
Contributor

Description

This PR updates the content displayed in AutoClient.tsx and ClientsTable.tsx to use a formatted number.

Changes:

  1. Applied formatNumber to clientStats before rendering it as content in .
    2.Applied formatNumber to numeric values in the Cell method to ensure consistent formatting.

Since I noticed that this PR #7505 introduces a function for formatting numeric display and applies it only to the homepage, I’ve extended its usage to also format numbers in the Setting Clients section to improve readability.

Thank you.

@ainar-g
Copy link
Contributor

ainar-g commented Feb 20, 2025

Thanks for the contribution! I'll ask the frontend team to review it.

@bankjirapan
Copy link
Contributor Author

Thank you! If you notice any code or anything that seems inappropriate, feel free to point it out to me at any time.

@ainar-g ainar-g added this to the v0.107.58 milestone Feb 20, 2025
adguard pushed a commit that referenced this pull request Feb 24, 2025
Updates #7583.

* commit 'e9d4e76828261622dfb424c760246a21b73040e8':
  all: upd chlog
  refactor: Format value requests_count on client table
  refactor: Format value clientstats
adguard pushed a commit that referenced this pull request Feb 26, 2025
Updates #7583.

* commit 'cd5dd1eb167d9bca014b2ff45f6826e7969d7b5c':
  refactor: fix conditional check for content formatting in statistics column
@adguard adguard merged commit cd5dd1e into AdguardTeam:master Feb 26, 2025
@ainar-g ainar-g requested a review from bniwredyc February 26, 2025 11:32
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