Skip to content

Commit 3773ec7

Browse files
jianyuanconstantinius
authored andcommitted
ref: Include GitHub Enterprise option in the Seer settings page (#97882)
1. Convert Manage Integration button into a dropdown. 2. Add GitHub Enterprise as an option. <img width="1273" height="650" alt="Screenshot 2025-08-14 at 20 13 30" src="https://github.com/user-attachments/assets/f8d27361-0e32-40bc-9fa4-34f59a5535e5" />
1 parent 3a87f17 commit 3773ec7

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

static/app/views/settings/projectSeer/autofixRepositories.tsx

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import styled from '@emotion/styled';
44
import {openModal} from 'sentry/actionCreators/modal';
55
import {Alert} from 'sentry/components/core/alert';
66
import {Button} from 'sentry/components/core/button';
7-
import {LinkButton} from 'sentry/components/core/button/linkButton';
87
import {Flex} from 'sentry/components/core/layout';
98
import {Link} from 'sentry/components/core/link';
109
import {Tooltip} from 'sentry/components/core/tooltip';
10+
import {DropdownMenu} from 'sentry/components/dropdownMenu';
1111
import {useOrganizationRepositories} from 'sentry/components/events/autofix/preferences/hooks/useOrganizationRepositories';
1212
import {useProjectSeerPreferences} from 'sentry/components/events/autofix/preferences/hooks/useProjectSeerPreferences';
1313
import {useUpdateProjectSeerPreferences} from 'sentry/components/events/autofix/preferences/hooks/useUpdateProjectSeerPreferences';
@@ -16,8 +16,9 @@ import LoadingIndicator from 'sentry/components/loadingIndicator';
1616
import Panel from 'sentry/components/panels/panel';
1717
import PanelHeader from 'sentry/components/panels/panelHeader';
1818
import QuestionTooltip from 'sentry/components/questionTooltip';
19-
import {IconAdd, IconGithub} from 'sentry/icons';
19+
import {IconAdd} from 'sentry/icons';
2020
import {t, tct} from 'sentry/locale';
21+
import {PluginIcon} from 'sentry/plugins/components/pluginIcon';
2122
import {space} from 'sentry/styles/space';
2223
import type {Project} from 'sentry/types/project';
2324
import useOrganization from 'sentry/utils/useOrganization';
@@ -238,14 +239,32 @@ export function AutofixRepositories({project}: ProjectSeerProps) {
238239
/>
239240
</Flex>
240241
<div style={{display: 'flex', alignItems: 'center', gap: space(1)}}>
241-
<LinkButton
242+
<DropdownMenu
242243
size="sm"
243-
icon={<IconGithub />}
244-
to={`/settings/${organization.slug}/integrations/github/`}
245-
style={{textTransform: 'none'}}
246-
>
247-
{t('Manage Integration')}
248-
</LinkButton>
244+
triggerLabel={t('Manage Integration')}
245+
items={[
246+
{
247+
key: 'github',
248+
label: (
249+
<Flex gap="sm" align="center">
250+
<PluginIcon pluginId="github" size={16} />
251+
<div>{t('GitHub')}</div>
252+
</Flex>
253+
),
254+
to: `/settings/${organization.slug}/integrations/github/`,
255+
},
256+
{
257+
key: 'github_enterprise',
258+
label: (
259+
<Flex gap="sm" align="center">
260+
<PluginIcon pluginId="github_enterprise" size={16} />
261+
<div>{t('GitHub Enterprise')}</div>
262+
</Flex>
263+
),
264+
to: `/settings/${organization.slug}/integrations/github_enterprise/`,
265+
},
266+
]}
267+
/>
249268
<Tooltip
250269
isHoverable
251270
title={

0 commit comments

Comments
 (0)