mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +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:
@@ -8,7 +8,6 @@ import { SpecView } from "@/components/views/spec-view";
|
||||
import { CodeView } from "@/components/views/code-view";
|
||||
import { AgentView } from "@/components/views/agent-view";
|
||||
import { SettingsView } from "@/components/views/settings-view";
|
||||
import { AnalysisView } from "@/components/views/analysis-view";
|
||||
import { AgentToolsView } from "@/components/views/agent-tools-view";
|
||||
import { InterviewView } from "@/components/views/interview-view";
|
||||
import { ContextView } from "@/components/views/context-view";
|
||||
@@ -72,8 +71,6 @@ export default function Home() {
|
||||
return <AgentView />;
|
||||
case "settings":
|
||||
return <SettingsView />;
|
||||
case "analysis":
|
||||
return <AnalysisView />;
|
||||
case "tools":
|
||||
return <AgentToolsView />;
|
||||
case "interview":
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
ChevronRight,
|
||||
Folder,
|
||||
X,
|
||||
Search,
|
||||
Wrench,
|
||||
PanelLeft,
|
||||
PanelLeftClose,
|
||||
@@ -71,7 +70,6 @@ export function Sidebar() {
|
||||
{ id: "spec", label: "Spec Editor", icon: FileText },
|
||||
{ id: "context", label: "Context", icon: BookOpen },
|
||||
{ id: "code", label: "Code View", icon: Code },
|
||||
{ id: "analysis", label: "Analysis", icon: Search },
|
||||
{ id: "tools", label: "Agent Tools", icon: Wrench },
|
||||
],
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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