Load (canned) proposal from IPC

This commit is contained in:
Will Chen
2025-04-18 11:11:58 -07:00
parent 7aec3ef455
commit 4e0f93d21c
8 changed files with 191 additions and 45 deletions

View File

@@ -97,3 +97,23 @@ export const UserSettingsSchema = z.object({
* Type derived from the UserSettingsSchema
*/
export type UserSettings = z.infer<typeof UserSettingsSchema>;
// Define interfaces for the props
export interface SecurityRisk {
type: "warning" | "danger";
title: string;
description: string;
}
export interface FileChange {
name: string;
path: string;
summary: string;
}
// New Proposal interface
export interface Proposal {
title: string;
securityRisks: SecurityRisk[];
filesChanged: FileChange[];
}