Basic Supabase OAuth integration & project-app binding

This commit is contained in:
Will Chen
2025-04-22 15:22:47 -07:00
parent 3cf93e10a0
commit ec43482d6c
22 changed files with 1469 additions and 9 deletions

View File

@@ -676,6 +676,51 @@ export class IpcClient {
}
// --- End Proposal Management ---
// --- Supabase Management ---
public async listSupabaseProjects(): Promise<any[]> {
try {
const projects = await this.ipcRenderer.invoke("supabase:list-projects");
return projects;
} catch (error) {
showError(error);
throw error;
}
}
public async setSupabaseAppProject(
project: string,
app: number
): Promise<{ success: boolean; appId: number; projectId: string }> {
try {
const result = await this.ipcRenderer.invoke("supabase:set-app-project", {
project,
app,
});
return result;
} catch (error) {
showError(error);
throw error;
}
}
public async unsetSupabaseAppProject(
app: number
): Promise<{ success: boolean; appId: number }> {
try {
const result = await this.ipcRenderer.invoke(
"supabase:unset-app-project",
{
app,
}
);
return result;
} catch (error) {
showError(error);
throw error;
}
}
// --- End Supabase Management ---
// Get system debug information
public async getSystemDebugInfo(): Promise<SystemDebugInfo> {
try {