-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore(issues): Indicate duration when "Since First Seen" is selected #115533
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
base: master
Are you sure you want to change the base?
Changes from 6 commits
f733270
8029271
fc3c478
6c84f84
7e8fcba
5538f9f
b5f89de
94c5622
4b0b92d
368df85
cad6e89
f5cbc5a
1183830
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,9 +11,9 @@ import { | |
| TimeRangeSelector, | ||
| TimeRangeSelectTrigger, | ||
| } from 'sentry/components/timeRangeSelector'; | ||
| import {getRelativeSummary} from 'sentry/components/timeRangeSelector/utils'; | ||
| import {getRelativeDate} from 'sentry/components/timeSince'; | ||
| import {TourElement} from 'sentry/components/tours/components'; | ||
| import {t} from 'sentry/locale'; | ||
| import {t, tct} from 'sentry/locale'; | ||
| import type {Event} from 'sentry/types/event'; | ||
| import type {Group} from 'sentry/types/group'; | ||
| import type {Project} from 'sentry/types/project'; | ||
|
|
@@ -38,7 +38,10 @@ import {IssueUptimeCheckTimeline} from 'sentry/views/issueDetails/streamline/iss | |
| import {OccurrenceSummary} from 'sentry/views/issueDetails/streamline/occurrenceSummary'; | ||
| import {getDetectorDetails} from 'sentry/views/issueDetails/streamline/sidebar/detectorSection'; | ||
| import {ToggleSidebar} from 'sentry/views/issueDetails/streamline/sidebar/toggleSidebar'; | ||
| import {useGroupDefaultStatsPeriod} from 'sentry/views/issueDetails/useGroupDefaultStatsPeriod'; | ||
| import { | ||
| getFirstSeenDuration, | ||
| useGroupDefaultStatsPeriod, | ||
| } from 'sentry/views/issueDetails/useGroupDefaultStatsPeriod'; | ||
| import { | ||
| getGroupReprocessingStatus, | ||
| ReprocessingStatus, | ||
|
|
@@ -135,6 +138,9 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr | |
| /> | ||
| <TimeRangeSelector | ||
| menuTitle={t('Filter Time Range')} | ||
| menuWidth={ | ||
| shouldShowSinceFirstSeenOption ? 'fit-content' : undefined | ||
| } | ||
| start={period?.start} | ||
| end={period?.end} | ||
| utc={location.query.utc === 'true'} | ||
|
|
@@ -147,8 +153,10 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr | |
| shouldShowSinceFirstSeenOption | ||
| ? { | ||
| [defaultStatsPeriod.statsPeriod]: t( | ||
| '%s (since first seen)', | ||
| getRelativeSummary(defaultStatsPeriod.statsPeriod) | ||
| 'Last %s (since first seen)', | ||
| getRelativeDate(group.firstSeen) | ||
| .replace(/^a /, '1 ') | ||
| .replace(/^an /, '1 ') | ||
|
sentry[bot] marked this conversation as resolved.
Outdated
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Menu label mismatches periodMedium Severity The custom option key is still Reviewed by Cursor Bugbot for commit b5f89de. Configure here.
cursor[bot] marked this conversation as resolved.
Outdated
|
||
| ), | ||
|
sentry[bot] marked this conversation as resolved.
|
||
| } | ||
| : {}), | ||
|
Comment on lines
150
to
159
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The custom "since first seen" dropdown label is overwritten by default options when an issue's age matches a standard period like Suggested FixTo fix the label overwrite, move the Prompt for AI Agent
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. known issue, will need another ticket to address this |
||
|
|
@@ -181,7 +189,9 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr | |
| {period === defaultStatsPeriod && | ||
| !defaultStatsPeriod.isMaxRetention && | ||
| shouldShowSinceFirstSeenOption | ||
| ? t('Since First Seen') | ||
| ? tct('Since First Seen ([period])', { | ||
|
shashjar marked this conversation as resolved.
|
||
| period: getFirstSeenDuration(group.firstSeen), | ||
| }) | ||
| : triggerProps.children} | ||
| </TimeRangeSelectTrigger> | ||
| )} | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.