feat: add relay event count stats to AllRelay settings screen

Use NostrClient's NIP-45 COUNT queries to show how many events each
relay stores, with filters specific to each relay role:
- Outbox: events authored by the user
- Inbox: events where the user is p-tagged
- DM Inbox: DM events (kind 4, 1059) tagging the user
- Private Home: events authored by the user
- Proxy: total event count
- Search: total event count
- Indexer: kind 0 and kind 10002 counts separately
- Broadcast: no count (as specified)

https://claude.ai/code/session_016158D5mq5BygS1uBbLNbsA
This commit is contained in:
Claude
2026-03-15 14:41:19 +00:00
parent a21e38f428
commit b1723a5dfb
12 changed files with 429 additions and 7 deletions
+1
View File
@@ -776,6 +776,7 @@
<string name="write_to_relay">Write to Relay</string>
<string name="write_to_relay_description">The amount in bytes that was sent to this relay, including filters and events</string>
<string name="read_from_relay_description">The amount in bytes that was received from this relay, including filters and events</string>
<string name="relay_event_count">Events stored</string>
<string name="an_error_occurred_trying_to_get_relay_information">An error occurred trying to get relay information from %1$s</string>
<string name="owner">Owner</string>
<string name="used_by">Used By</string>