feat(types): resolve TypeScript errors and enhance project analysis features

- Fixed TypeScript errors across the codebase, including updates to various files for improved type safety.
- Introduced new `FileTreeNode` and `ProjectAnalysis` interfaces to support project analysis functionality.
- Added `Badge` component for UI consistency and improved visual representation.
- Enhanced `useElectronAgent` and `electron` API with additional methods for project management.
- Updated `AnalysisView` to utilize new types and improve type annotations for better clarity.

These changes contribute to a more robust and type-safe codebase, facilitating future development and analysis capabilities.
This commit is contained in:
Kacper
2025-12-10 13:56:33 +01:00
parent 7ab2aaaa23
commit 55b8e6858e
8 changed files with 186 additions and 69 deletions

View File

@@ -241,6 +241,24 @@ export interface AutoModeAPI {
error?: string;
}>;
resumeFeature: (projectPath: string, featureId: string) => Promise<{
success: boolean;
passes?: boolean;
error?: string;
}>;
contextExists: (projectPath: string, featureId: string) => Promise<{
success: boolean;
exists?: boolean;
error?: string;
}>;
analyzeProject: (projectPath: string) => Promise<{
success: boolean;
message?: string;
error?: string;
}>;
followUpFeature: (projectPath: string, featureId: string, prompt: string, imagePaths?: string[]) => Promise<{
success: boolean;
passes?: boolean;
@@ -302,6 +320,10 @@ export interface ElectronAPI {
};
error?: string;
}>;
deleteFile: (filePath: string) => Promise<{
success: boolean;
error?: string;
}>;
// App APIs
getPath: (name: string) => Promise<string>;