From a9893ff05643e1e21b1fd72015ff5c1f5bf71fc8 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Fri, 15 Aug 2025 09:51:40 +0000 Subject: [PATCH] fix: add informative content to API Token section when auth is enabled - Show API Token Active status - Add security notice about one-time visibility - Include usage example with curl - Replaces empty section that was confusing users --- .../src/components/Settings/Settings.tsx | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index 5d9004d01..c734a974e 100644 --- a/frontend-modern/src/components/Settings/Settings.tsx +++ b/frontend-modern/src/components/Settings/Settings.tsx @@ -1559,7 +1559,35 @@ const Settings: Component = () => { {/* Content */}
- {/* API token is only shown during initial setup for security */} +
+
+

+ API Token Active +

+

+ An API token is configured for this instance. Use it with the X-API-Token header for automation. +

+
+ +
+
+ + + +
+

Security Notice

+

API tokens are only visible during initial setup. If you've lost your token, you'll need to reconfigure security to generate a new one.

+
+
+
+ +
+

Using the API Token:

+ + curl -H "X-API-Token: YOUR_TOKEN" http://pulse:7655/api/... + +
+