Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {organizationRepositoriesInfiniteOptions} from 'sentry/components/events/
import {useSeerSupportedProviderIds} from 'sentry/components/events/autofix/utils';
import {useBulkUpdateRepositorySettings} from 'sentry/components/repositories/useBulkUpdateRepositorySettings';
import {getRepositoryWithSettingsQueryKey} from 'sentry/components/repositories/useRepositoryWithSettings';
import {IconRefresh, IconSettings} from 'sentry/icons';
import {IconSettings} from 'sentry/icons';
import {t, tct, tn} from 'sentry/locale';
import {DEFAULT_CODE_REVIEW_TRIGGERS} from 'sentry/types/integrations';
import type {Organization} from 'sentry/types/organization';
Expand Down Expand Up @@ -65,7 +65,6 @@ export function CodeReviewOverviewSection({
isPending,
organization,
data,
refetch,
}: Props) {
const queryClient = useQueryClient();

Expand Down Expand Up @@ -174,16 +173,8 @@ export function CodeReviewOverviewSection({
<FieldGroup
title={
<Flex justify="between" gap="md" flexGrow={1}>
<Flex align="center" gap="md">
<span>{t('Code Review')}</span>
<Button
size="zero"
priority="link"
icon={<IconRefresh size="xs" />}
aria-label={t('Reload repositories')}
onClick={() => refetch()}
/>
</Flex>
<span>{t('Code Review')}</span>

<Text uppercase={false}>
<Link to={`/settings/${organization.slug}/seer/repos/`}>
<Flex align="center" gap="xs">
Expand Down
20 changes: 12 additions & 8 deletions static/gsApp/views/seerAutomation/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ export function SeerAutomationSettings() {
)}
/>
<SeerSettingsPageContent>
<SCMOverviewSection
{...scmOverviewData}
canWrite={canWrite}
organizationSlug={organization.slug}
/>

{showSeerOverview ? (
<Fragment>
<div>
<SCMOverviewSection
{...scmOverviewData}
canWrite={canWrite}
organizationSlug={organization.slug}
/>
<AutofixOverviewSection
{...autofixOverviewData}
canWrite={canWrite}
Expand All @@ -112,9 +111,14 @@ export function SeerAutomationSettings() {
canWrite={canWrite}
organization={organization}
/>
</Fragment>
</div>
) : (
<Fragment>
<SCMOverviewSection
{...scmOverviewData}
canWrite={canWrite}
organizationSlug={organization.slug}
/>
<FieldGroup
title={
<Flex gap="md">
Expand Down
Loading