diff --git a/static/app/components/events/autofix/autofixGithubAppPermissionsModal.tsx b/static/app/components/events/autofix/autofixGithubAppPermissionsModal.tsx index 7d6371f5d3f1..542c4e5cc982 100644 --- a/static/app/components/events/autofix/autofixGithubAppPermissionsModal.tsx +++ b/static/app/components/events/autofix/autofixGithubAppPermissionsModal.tsx @@ -9,7 +9,9 @@ import type {ModalRenderProps} from 'sentry/actionCreators/modal'; import {t, tct} from 'sentry/locale'; interface AutofixGithubAppPermissionsModalProps extends ModalRenderProps { + description?: React.ReactNode; installationUrl?: string; + onUpdatePermissionsClick?: () => void; } const DEFAULT_INSTALLATIONS_URL = 'https://github.com/settings/installations/'; @@ -20,6 +22,8 @@ export function AutofixGithubAppPermissionsModal({ Footer, closeModal, installationUrl, + description, + onUpdatePermissionsClick, }: AutofixGithubAppPermissionsModalProps) { const settingsUrl = installationUrl ?? DEFAULT_INSTALLATIONS_URL; @@ -30,18 +34,27 @@ export function AutofixGithubAppPermissionsModal({ - {tct( - 'The Sentry GitHub App does not have sufficient permissions to launch a coding agent. Please update your [link:GitHub App installation settings] to grant the required permissions.', - { - link: , - } - )} + {description ?? + tct( + 'The Sentry GitHub App does not have sufficient permissions to launch a coding agent. Please update your [link:GitHub App installation settings] to grant the required permissions.', + { + link: , + } + )}