pro: show remaining credits (#329)

Fixes #265
This commit is contained in:
Will Chen
2025-06-03 23:46:35 -07:00
committed by GitHub
parent 0f4e532206
commit 9d1a0f7ad7
8 changed files with 182 additions and 21 deletions

View File

@@ -30,6 +30,7 @@ import type {
ImportAppResult,
ImportAppParams,
RenameBranchParams,
UserBudgetInfo,
} from "./ipc_types";
import type { ProposalResult } from "@/lib/schemas";
import { showError } from "@/lib/toast";
@@ -825,4 +826,9 @@ export class IpcClient {
async clearSessionData(): Promise<void> {
return this.ipcRenderer.invoke("clear-session-data");
}
// Method to get user budget information
public async getUserBudget(): Promise<UserBudgetInfo | null> {
return this.ipcRenderer.invoke("get-user-budget");
}
}