feat: new cockpit

This commit is contained in:
OpenSquared
2026-07-14 11:21:43 +02:00
parent 9778c74ae3
commit ad07c8d886
32 changed files with 871 additions and 551 deletions

View File

@@ -114,7 +114,7 @@ export default function MacroRegime() {
useEffect(() => {
try {
const raw = localStorage.getItem('geo-options:macro-narration')
const raw = localStorage.getItem('openfin:macro-narration')
if (raw) setSavedNarration(JSON.parse(raw))
} catch {}
}, [])
@@ -151,7 +151,7 @@ export default function MacroRegime() {
const text = res.data.narration ?? res.data.text ?? JSON.stringify(res.data)
const entry = { text, at: new Date().toISOString() }
setSavedNarration(entry)
localStorage.setItem('geo-options:macro-narration', JSON.stringify(entry))
localStorage.setItem('openfin:macro-narration', JSON.stringify(entry))
} catch {
const entry = { text: 'Error during generation — please check your OpenAI key.', at: new Date().toISOString() }
setSavedNarration(entry)