Skip to content

Commit

Permalink
feat(metric-issues): Rename All Events to All Open Periods (#83052)
Browse files Browse the repository at this point in the history
Rename `All Events` to `All Open Periods` for metric issues, with a
config to support calling it check-ins for crons
  • Loading branch information
snigdhas authored Jan 9, 2025
1 parent 8dd4941 commit a0baff4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion static/app/utils/issueTypeConfig/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const BASE_CONFIG: IssueTypeConfig = {
share: {enabled: false},
},
customCopy: {
resolution: 'Resolved',
resolution: t('Resolved'),
allEvents: t('All Events'),
},
attachments: {enabled: false},
autofix: false,
Expand Down
1 change: 1 addition & 0 deletions static/app/utils/issueTypeConfig/metricIssueConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const metricIssueConfig: IssueCategoryConfigMapping = {
},
customCopy: {
resolution: t('Back to baseline'),
allEvents: t('All Open Periods'),
},
attachments: {enabled: false},
eventAndUserCounts: {enabled: false},
Expand Down
1 change: 1 addition & 0 deletions static/app/utils/issueTypeConfig/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type IssueTypeConfig = {
* Custom copy for actions and other UI elements
*/
customCopy: {
allEvents: string;
resolution: string;
};
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function IssueEventNavigation({event, group}: IssueEventNavigationProps)
analyticsEventKey="issue_details.all_events_clicked"
analyticsEventName="Issue Details: All Events Clicked"
>
{t('All Events')}
{issueTypeConfig.customCopy.allEvents || t('All Events')}
</LinkButton>
</Fragment>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ describe('SolutionsSection', () => {
},
customCopy: {
resolution: 'Resolved',
allEvents: 'All Events',
},
attachments: {enabled: false},
autofix: true,
Expand Down

0 comments on commit a0baff4

Please sign in to comment.