chore(orbit): help modal with 9-section walk-through

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-24 19:06:32 +02:00
parent d912c4293b
commit b4bb40802d
8 changed files with 240 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
import { create } from 'zustand';
interface HelpModalStore {
isOpen: boolean;
open: () => void;
close: () => void;
}
/**
* App-wide toggle for the Orbit help modal. Two triggers — the launch
* popover "How does this work?" entry and the in-session bar help button
* — write to the same store so they share the one rendered modal. Not
* persisted; resets to closed on reload.
*/
export const useHelpModalStore = create<HelpModalStore>(set => ({
isOpen: false,
open: () => set({ isOpen: true }),
close: () => set({ isOpen: false }),
}));