From 64ba17407430ce4e76bf83d129bd0bbd4b0ac1cf Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Dec 2025 10:21:08 +0000 Subject: [PATCH] feat: add API documentation modal in admin panel Add an "API" button for each user in the admin panel that displays: - Authentication instructions with curl examples - Documentation for new endpoints (notes/full, todos/batch) - Complete usage examples with proper headers - Important notes about token expiration and data isolation --- src/pages/Index.tsx | 150 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index a416f7f..601a139 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -194,6 +194,7 @@ const Index = () => { const [showKeyboardHelp, setShowKeyboardHelp] = useState(false); const [showStatsDashboard, setShowStatsDashboard] = useState(false); const [showPomodoroModal, setShowPomodoroModal] = useState(false); + const [apiInfoModal, setApiInfoModal] = useState<{ open: boolean; user?: UserType }>({ open: false }); // Pomodoro timer states const [pomodoroRunning, setPomodoroRunning] = useState(false); @@ -2258,6 +2259,14 @@ const Index = () => {
+