Lifei/clean up old onboarding flow (#8099)
This commit is contained in:
@@ -303,18 +303,6 @@ export function trackOnboardingCompleted(provider: string, model?: string): void
|
||||
onboardingStartTime = null;
|
||||
}
|
||||
|
||||
export function trackOnboardingAbandoned(step: string): void {
|
||||
const durationSeconds = onboardingStartTime
|
||||
? Math.round((Date.now() - onboardingStartTime) / 1000)
|
||||
: undefined;
|
||||
|
||||
trackEvent({
|
||||
name: 'onboarding_abandoned',
|
||||
properties: { step, duration_seconds: durationSeconds },
|
||||
});
|
||||
onboardingStartTime = null;
|
||||
}
|
||||
|
||||
export function trackOnboardingSetupFailed(
|
||||
provider: 'openrouter' | 'tetrate' | 'chatgpt_codex' | 'local',
|
||||
errorMessage?: string
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { configureProviderOauth } from '../api';
|
||||
|
||||
export async function startChatGptCodexSetup(): Promise<{ success: boolean; message: string }> {
|
||||
try {
|
||||
await configureProviderOauth({
|
||||
path: { name: 'chatgpt_codex' },
|
||||
throwOnError: true,
|
||||
});
|
||||
return { success: true, message: 'ChatGPT Codex setup completed' };
|
||||
} catch (e) {
|
||||
return {
|
||||
success: false,
|
||||
message: `Failed to start ChatGPT Codex setup: ${e}`,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
import { startOpenrouterSetup } from '../api';
|
||||
|
||||
export interface OpenRouterSetupStatus {
|
||||
isRunning: boolean;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
export async function startOpenRouterSetup(): Promise<{ success: boolean; message: string }> {
|
||||
try {
|
||||
return (await startOpenrouterSetup({ throwOnError: true })).data;
|
||||
} catch (e) {
|
||||
return {
|
||||
success: false,
|
||||
message: `Failed to start OpenRouter setup ['${e}]`,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user