mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
Remove analysis link and related code
- Removed Analysis navigation link from sidebar - Removed AnalysisView component import and case from page.tsx - Removed analysis from ViewMode type in app-store - Removed analysis-related state (projectAnalysis, isAnalyzing) and actions - Deleted analysis-view.tsx file - Removed unused Search icon import Generated with Claude Code https://claude.com/claude-code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { create } from "zustand";
|
||||
import { persist } from "zustand/middleware";
|
||||
import type { Project } from "@/lib/electron";
|
||||
|
||||
export type ViewMode = "welcome" | "spec" | "board" | "code" | "agent" | "settings" | "analysis" | "tools" | "interview" | "context";
|
||||
export type ViewMode = "welcome" | "spec" | "board" | "code" | "agent" | "settings" | "tools" | "interview" | "context";
|
||||
export type ThemeMode = "light" | "dark" | "system";
|
||||
|
||||
export interface ApiKeys {
|
||||
@@ -51,23 +51,7 @@ export interface Feature {
|
||||
steps: string[];
|
||||
status: "backlog" | "in_progress" | "verified";
|
||||
images?: FeatureImage[];
|
||||
}
|
||||
|
||||
export interface FileTreeNode {
|
||||
name: string;
|
||||
path: string;
|
||||
isDirectory: boolean;
|
||||
children?: FileTreeNode[];
|
||||
size?: number;
|
||||
extension?: string;
|
||||
}
|
||||
|
||||
export interface ProjectAnalysis {
|
||||
fileTree: FileTreeNode[];
|
||||
totalFiles: number;
|
||||
totalDirectories: number;
|
||||
filesByExtension: Record<string, number>;
|
||||
analyzedAt: string;
|
||||
startedAt?: string; // ISO timestamp for when the card moved to in_progress
|
||||
}
|
||||
|
||||
export interface AppState {
|
||||
@@ -94,10 +78,6 @@ export interface AppState {
|
||||
// API Keys
|
||||
apiKeys: ApiKeys;
|
||||
|
||||
// Project Analysis
|
||||
projectAnalysis: ProjectAnalysis | null;
|
||||
isAnalyzing: boolean;
|
||||
|
||||
// Chat Sessions
|
||||
chatSessions: ChatSession[];
|
||||
currentChatSession: ChatSession | null;
|
||||
@@ -152,11 +132,6 @@ export interface AppActions {
|
||||
// API Keys actions
|
||||
setApiKeys: (keys: Partial<ApiKeys>) => void;
|
||||
|
||||
// Analysis actions
|
||||
setProjectAnalysis: (analysis: ProjectAnalysis | null) => void;
|
||||
setIsAnalyzing: (isAnalyzing: boolean) => void;
|
||||
clearAnalysis: () => void;
|
||||
|
||||
// Chat Session actions
|
||||
createChatSession: (title?: string) => ChatSession;
|
||||
updateChatSession: (sessionId: string, updates: Partial<ChatSession>) => void;
|
||||
@@ -194,8 +169,6 @@ const initialState: AppState = {
|
||||
anthropic: "",
|
||||
google: "",
|
||||
},
|
||||
projectAnalysis: null,
|
||||
isAnalyzing: false,
|
||||
chatSessions: [],
|
||||
currentChatSession: null,
|
||||
chatHistoryOpen: false,
|
||||
@@ -285,11 +258,6 @@ export const useAppStore = create<AppState & AppActions>()(
|
||||
// API Keys actions
|
||||
setApiKeys: (keys) => set({ apiKeys: { ...get().apiKeys, ...keys } }),
|
||||
|
||||
// Analysis actions
|
||||
setProjectAnalysis: (analysis) => set({ projectAnalysis: analysis }),
|
||||
setIsAnalyzing: (isAnalyzing) => set({ isAnalyzing }),
|
||||
clearAnalysis: () => set({ projectAnalysis: null, isAnalyzing: false }),
|
||||
|
||||
// Chat Session actions
|
||||
createChatSession: (title) => {
|
||||
const currentProject = get().currentProject;
|
||||
|
||||
Reference in New Issue
Block a user