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
22 changes: 14 additions & 8 deletions static/app/views/issueDetails/sidebar/autofixSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,20 @@ export function AutofixContent({aiConfig, group, project}: AutofixContentProps)

useLLMContext(autofixContextData);

const needOrgSetup =
// scm integration doesn't exist
!setupCheck?.hasSupportedScmIntegration;

const needProjSetup =
// scm integration not linked to project
!aiConfig.seerReposLinked;

useRouteAnalyticsParams({
seerNeedOrgSetup: isPending ? undefined : needOrgSetup,
seerNeedProjSetup:
isPending || aiConfig.isAutofixSetupLoading ? undefined : needProjSetup,
});
Comment thread
cursor[bot] marked this conversation as resolved.

if (
Comment thread
Zylphrex marked this conversation as resolved.
// waiting on the onboarding checks to load
isPending ||
Expand All @@ -183,14 +197,6 @@ export function AutofixContent({aiConfig, group, project}: AutofixContentProps)
return <Placeholder height="160px" />;
}

const needOrgSetup =
// scm integration doesn't exist
!setupCheck?.hasSupportedScmIntegration;

const needProjSetup =
// scm integration not linked to project
!aiConfig.seerReposLinked;

// non seat based seer plans are allowed to run autofix without the SCM integration
if (organization.features.includes('seat-based-seer-enabled')) {
if (needOrgSetup || needProjSetup) {
Expand Down
5 changes: 5 additions & 0 deletions static/gsApp/components/ai/aiConfigureSeerQuotaSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {Tooltip} from '@sentry/scraps/tooltip';
import {Placeholder} from 'sentry/components/placeholder';
import {IconOpen} from 'sentry/icons/iconOpen';
import {t} from 'sentry/locale';
import {useRouteAnalyticsParams} from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
import {useOrganization} from 'sentry/utils/useOrganization';
import {AutofixContent} from 'sentry/views/issueDetails/sidebar/autofixSection';
import type {AutofixContentProps} from 'sentry/views/issueDetails/sidebar/autofixSectionTypes';
Expand All @@ -21,6 +22,10 @@ export function AiConfigureSeerQuotaSidebar({
const organization = useOrganization();
const subscription = useSubscription();

useRouteAnalyticsParams({
seerNeedQuota: aiConfig.isAutofixSetupLoading ? undefined : !aiConfig.hasAutofixQuota,
});
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
sentry[bot] marked this conversation as resolved.

Comment thread
Zylphrex marked this conversation as resolved.
if (aiConfig.isAutofixSetupLoading) {
return <Placeholder height="160px" />;
}
Expand Down
Loading