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

Incorrect Formatting on Trackers & Ads Blocked #24450

Closed
jonathansampson opened this issue Aug 4, 2022 · 3 comments · Fixed by brave/brave-core#14519
Closed

Incorrect Formatting on Trackers & Ads Blocked #24450

jonathansampson opened this issue Aug 4, 2022 · 3 comments · Fixed by brave/brave-core#14519
Assignees
Labels
feature/new-tab OS/Desktop polish Nice to have — usually related to front-end/visual tasks priority/P4 Planned work. We expect to get to it "soon". QA Pass-macOS QA/Yes regression release-notes/exclude

Comments

@jonathansampson
Copy link
Contributor

Description

The number shown for Trackers & Ads Blocked on the New Tab Page lacks commas.

Steps to Reproduce

  1. Use Brave a lot 🙂
  2. Visit the New Tab Page

Actual result:

A number like 6011204 is displayed without commas.

Expected result:

A number like 6011204 is displayed according to the user's locale. For example, en-US users should see 6,011,204.

Reproduces how often:

Always.

Brave version (brave://version info)

1.42.86

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the nightly channel? Yes
@jonathansampson
Copy link
Contributor Author

jonathansampson commented Aug 4, 2022

Looks like the difference between numbers and strings; perhaps we recently switched types:

image

@jonathansampson
Copy link
Contributor Author

Looks like this is where the behavior changed: brave/brave-core@531526b.

@rebron rebron added QA/Yes polish Nice to have — usually related to front-end/visual tasks release-notes/exclude priority/P4 Planned work. We expect to get to it "soon". labels Aug 4, 2022
@brave-builds brave-builds added this to the 1.44.x - Nightly milestone Aug 16, 2022
@stephendonner
Copy link

stephendonner commented Sep 7, 2022

Verified PASSED using

Brave 1.44.73 Chromium: 105.0.5195.68 (Official Build) beta (x86_64)
Revision ad13e82529051bac6a0e65f455e6d7a1e5fd7938-refs/branch-heads/5195@{#903}
OS macOS Version 13.0 (Build 22A5331f)

Steps:

  1. installed 1.44.73
  2. launched Brave
  3. visited some sites, to get a profile and populate data
  4. shut down Brave
  5. found a way to set ads_blocked to 1000000000
  6. opened a new-tab page

Confirmed I saw 1,000,000,000 Trackers & ads blocked

Screenshot 2022-09-06 at 6 05 54 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/new-tab OS/Desktop polish Nice to have — usually related to front-end/visual tasks priority/P4 Planned work. We expect to get to it "soon". QA Pass-macOS QA/Yes regression release-notes/exclude
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants