From d03a1fcd2c9992ae5d578cc38299d4f3b66a67a2 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 5 Sep 2025 15:44:22 +0200 Subject: [PATCH] Add VisibilityService documentation and integration guide - Create comprehensive documentation for the new VisibilityService, detailing its purpose, core concepts, and architecture. - Include an integration guide for module developers, outlining best practices for registering services and handling app visibility changes. - Add example code snippets for implementing visibility management in various service types, ensuring clarity and ease of use. - Introduce a troubleshooting section to address common issues and provide debugging tips for developers. - Enhance the VisibilityService integration guide with real-world examples to illustrate practical usage scenarios. --- CLAUDE.md | 11 + docs/VisibilityService-Integration.md | 429 ++++++++++++++++ docs/VisibilityService.md | 699 ++++++++++++++++++++++++++ 3 files changed, 1139 insertions(+) create mode 100644 docs/VisibilityService-Integration.md create mode 100644 docs/VisibilityService.md diff --git a/CLAUDE.md b/CLAUDE.md index 7905a21..6c6c348 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,6 +80,7 @@ const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB) - `SERVICE_TOKENS.RELAY_HUB` - Centralized Nostr relay management - `SERVICE_TOKENS.NOSTR_CLIENT_HUB` - Nostr client services - `SERVICE_TOKENS.AUTH_SERVICE` - Authentication services +- `SERVICE_TOKENS.VISIBILITY_SERVICE` - App visibility and connection management **Core Stack:** - Vue 3 with Composition API (`