Add recipe download and copy yaml (#6201)

This commit is contained in:
Zane
2026-01-05 09:55:50 -08:00
committed by GitHub
parent 901cac9441
commit edcd011543
12 changed files with 300 additions and 19 deletions
+16
View File
@@ -115,6 +115,8 @@ export type AnalyticsEvent =
properties: { success: boolean; error_details?: string; in_new_window?: boolean };
}
| { name: 'recipe_deeplink_copied'; properties: { success: boolean; error_details?: string } }
| { name: 'recipe_yaml_copied'; properties: { success: boolean; error_details?: string } }
| { name: 'recipe_exported_to_file'; properties: { success: boolean; error_details?: string } }
| {
name: 'recipe_scheduled';
properties: { success: boolean; error_details?: string; action: 'add' | 'edit' | 'remove' };
@@ -536,6 +538,20 @@ export function trackRecipeDeeplinkCopied(success: boolean, errorDetails?: strin
});
}
export function trackRecipeYamlCopied(success: boolean, errorDetails?: string): void {
trackEvent({
name: 'recipe_yaml_copied',
properties: { success, error_details: errorDetails },
});
}
export function trackRecipeExportedToFile(success: boolean, errorDetails?: string): void {
trackEvent({
name: 'recipe_exported_to_file',
properties: { success, error_details: errorDetails },
});
}
export function trackRecipeScheduled(
success: boolean,
action: 'add' | 'edit' | 'remove',