Skip to content

Change the start date to 2020-01-01 for stats page#1162

Merged
jcscottiii merged 1 commit intomainfrom
jcscottiii/change-stats-page-start-date
Feb 12, 2025
Merged

Change the start date to 2020-01-01 for stats page#1162
jcscottiii merged 1 commit intomainfrom
jcscottiii/change-stats-page-start-date

Conversation

@jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Feb 12, 2025

Previously, the stats page showed only a year's worth of data (by setting the start date 1 year in the past from the current date).

This change overrides the start date to explicitly be 2020-01-01.

Previously, the stats page showed only a year's worth of data.

This change overrides the start date to explicitly be 2020-01-01.
@jcscottiii jcscottiii requested a review from atopal February 12, 2025 17:39
@atopal
Copy link
Collaborator

atopal commented Feb 12, 2025

It seems like we also have to set a duration or end date? It should show 2020-today by default.

@jcscottiii
Copy link
Collaborator Author

jcscottiii commented Feb 12, 2025

Good question! I should have noted that the tests use a fake Date.now() (see link) for the end date to ensure consistent screenshots. This prevents the times from changing, which would cause the tests to fail across different days. However, when deployed, the actual date will be from 2020 to the present. Here's how it will appear in the live version.

image

@atopal
Copy link
Collaborator

atopal commented Feb 12, 2025

Ah, perfect! Thank you! This looks great! Also, unrelated, but could capitalize the names of the browsers?

@jcscottiii jcscottiii added this pull request to the merge queue Feb 12, 2025
@jcscottiii
Copy link
Collaborator Author

Ah, perfect! Thank you! This looks great! Also, unrelated, but could capitalize the names of the browsers?

We can definitely do that. I'll do that shortly

Merged via the queue into main with commit bc97abb Feb 12, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/change-stats-page-start-date branch February 12, 2025 20:03
jcscottiii added a commit that referenced this pull request Feb 12, 2025
This addresses this feedback #1162 (comment)

It uses the existing BROWSER_ID_TO_LABEL variable that we use on the feature detail page.
jcscottiii added a commit that referenced this pull request Feb 13, 2025
This addresses this feedback #1162 (comment)

It uses the existing BROWSER_ID_TO_LABEL variable that we use on the feature detail page.
github-merge-queue bot pushed a commit that referenced this pull request Feb 13, 2025
This addresses this feedback #1162 (comment)

It uses the existing BROWSER_ID_TO_LABEL variable that we use on the feature detail page.
github-merge-queue bot pushed a commit that referenced this pull request Feb 13, 2025
This addresses this feedback #1162 (comment)

It uses the existing BROWSER_ID_TO_LABEL variable that we use on the feature detail page.
@KyleJu KyleJu mentioned this pull request Feb 19, 2025
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