Skip to content
Merged
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
10 changes: 10 additions & 0 deletions static/app/components/events/autofix/autofixSolution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,13 @@ function AutofixSolutionDisplay({
});
};

// Check if instructions were provided (either typed in input or already added to solution and active)
const hasInstructions =
instructions.trim().length > 0 ||
solutionItems.some(
item => item.timeline_item_type === 'human_instruction' && item.is_active !== false
);

useEffect(() => {
setSolutionItems(
solution.map(item => ({
Expand Down Expand Up @@ -650,6 +657,9 @@ function AutofixSolutionDisplay({
onClick={handleCodeItUp}
analyticsEventName="Autofix: Code It Up"
analyticsEventKey="autofix.solution.code"
analyticsParams={{
instruction_provided: hasInstructions,
}}
title={t('Implement this solution in code with Seer')}
>
{t('Code It Up')}
Expand Down
Loading