mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-20 13:38:08 +02:00
feat: Add AI Copilot store for product analysis and a floating summary bar component with AI insight integration.
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user