Skip to content

Conversation

@Zylphrex
Copy link
Member

…egory

This replaces the custom functions we wrote for each data category with a hook that accepts a list of data categories so we can automatically determine what the expected date page filter props should be. This sets it up so that we can replace the hook with an alternate implementation in order to support the coming retention changes.

Same as #103822 but fixed typing issues in 17c69c7

…egory

This replaces the custom functions we wrote for each data category with a hook
that accepts a list of data categories so we can automatically determine what
the expected date page filter props should be. This sets it up so that we can
replace the hook with an alternate implementation in order to support the coming
retention changes.
@Zylphrex Zylphrex requested review from a team as code owners November 24, 2025 22:11
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 24, 2025
}

return a;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Lost defaultPeriod when mixing data categories

The max function only returns one of the two MaxPickableDaysOptions objects without merging their properties. When combining data categories where some specify defaultPeriod (like TRACE_METRICS, LOG_BYTE, LOG_ITEM) with others that don't (like SPANS), the defaultPeriod gets lost. This causes the date filter to use an incorrect default period when multiple data categories are mixed.

Fix in Cursor Fix in Web

@Zylphrex Zylphrex merged commit 48a3366 into master Nov 25, 2025
49 checks passed
@Zylphrex Zylphrex deleted the txiao/feat/add-hooks-for-date-page-filter-props-based-on-data-category-2 branch November 25, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants