Lifei/clean up old onboarding flow (#8099)

This commit is contained in:
Lifei Zhou
2026-03-26 11:34:22 +11:00
committed by GitHub
parent 8615853a89
commit d2553978c4
20 changed files with 10 additions and 1178 deletions
-12
View File
@@ -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
-16
View File
@@ -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}`,
};
}
}
-17
View File
@@ -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}]`,
};
}
}