feat: Add AI Copilot store for product analysis and a floating summary bar component with AI insight integration.

This commit is contained in:
Michael committed 2026-02-22 13:24:59 +01:00
1 parent 804328a525
commit 7765f97a1f
2 files changed
+25 -3

No files matched your search

@@ -23,6 +23,7 @@ interface AiCopilotState {
codeGamme: string | null;
score?: number | null;
}) => Promise<void>;
resetInsights: () => void;
}
export const useAiCopilotStore = create<AiCopilotState>()(
@@ -39,6 +40,10 @@ export const useAiCopilotStore = create<AiCopilotState>()(
}));
},
resetInsights: () => {
set({ insights: {} });
},
analyzeProduct: async (payload) => {
const { codein } = payload;