Skip to content

Commit

Permalink
feat(insights): add transaction action buttons to transaction summary (
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikB2014 authored Nov 14, 2024
1 parent 3ae2f67 commit 542646a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions static/app/views/performance/transactionSummary/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,42 @@ function TransactionHeader({
},
view,
}),
headerActions: (
<Fragment>
<Feature organization={organization} features="incidents">
{({hasFeature}) =>
hasFeature && !metricsCardinality?.isLoading ? (
<CreateAlertFromViewButton
size="sm"
eventView={eventView}
organization={organization}
projects={projects}
onClick={handleCreateAlertSuccess}
referrer="performance"
alertType="trans_duration"
aria-label={t('Create Alert')}
disableMetricDataset={
metricsCardinality?.outcome?.forceTransactionsOnly
}
/>
) : null
}
</Feature>
<TeamKeyTransactionButton
eventView={eventView}
organization={organization}
transactionName={transactionName}
/>
<GuideAnchor target="project_transaction_threshold_override" position="bottom">
<TransactionThresholdButton
organization={organization}
transactionName={transactionName}
eventView={eventView}
onChangeThreshold={onChangeThreshold}
/>
</GuideAnchor>
</Fragment>
),
};
if (view === FRONTEND_LANDING_SUB_PATH) {
return <FrontendHeader {...headerProps} />;
Expand Down

0 comments on commit 542646a

Please sign in to comment.