diff --git a/src/app/components/RelaySettingsActionItems.svelte b/src/app/components/RelaySettingsActionItems.svelte index d228433a3..cc2f7f001 100644 --- a/src/app/components/RelaySettingsActionItems.svelte +++ b/src/app/components/RelaySettingsActionItems.svelte @@ -1,58 +1,140 @@ - - -
- - Action Items -
-

- Below are recommendations for adjustments to your relay selections that you might consider. -

- {#each $actionItems as actionItem} - - {/each} -
- - +
+
+ + + Health Check + + + + {$actionItems.length} Issue{$actionItems.length === 1 ? "" : "s"} Detected + +
+

+ {PLATFORM_NAME} actively checks your connection to the network in the background to discover relays + that are offline, that you don't have access to, or are otherwise causing trouble. +

+ {#each $actionItems as actionItem} + + {/each} + {#if $actionItems.length > 0} - - + {/if} +
diff --git a/src/app/components/ReportDetails.svelte b/src/app/components/ReportDetails.svelte index 0eef7db17..b8facbb0a 100644 --- a/src/app/components/ReportDetails.svelte +++ b/src/app/components/ReportDetails.svelte @@ -26,7 +26,7 @@ const back = () => history.back() - const onDelete = () => { + const onResolved = () => { if ($reports.size === 0) { back() } @@ -40,7 +40,7 @@ All reports for this event are shown below. {#each $reports.values() as report (report.id)} - + {/each} diff --git a/src/app/components/ReportMenu.svelte b/src/app/components/ReportMenu.svelte index 48c08108b..912aba64d 100644 --- a/src/app/components/ReportMenu.svelte +++ b/src/app/components/ReportMenu.svelte @@ -20,10 +20,10 @@ type Props = { url: string event: TrustedEvent - onDelete?: () => void + onResolved?: () => void } - const {url, event, onDelete}: Props = $props() + const {url, event, onResolved}: Props = $props() const shouldProtect = canEnforceNip70(url) const userIsAdmin = deriveUserIsSpaceAdmin(url) @@ -40,7 +40,7 @@ const deleteReport = async () => { publishDelete({event, relays: [url], protect: await shouldProtect}) - onDelete?.() + onResolved?.() } const dismissReport = async () => { @@ -54,7 +54,7 @@ } else { pushToast({message: "Content has successfully been deleted!"}) repository.removeEvent(event.id) - onDelete?.() + onResolved?.() } } @@ -77,7 +77,7 @@ repository.removeEvent(event.id) repository.removeEvent(id) history.back() - setTimeout(() => onDelete?.()) + setTimeout(() => onResolved?.()) } }, }) @@ -101,7 +101,7 @@ pushToast({message: "User has successfully been banned!"}) repository.removeEvent(event.id) history.back() - setTimeout(() => onDelete?.()) + setTimeout(() => onResolved?.()) } }, }) diff --git a/src/app/components/RoomJoinItem.svelte b/src/app/components/RoomJoinItem.svelte index 7c7c20209..5e7885ff1 100644 --- a/src/app/components/RoomJoinItem.svelte +++ b/src/app/components/RoomJoinItem.svelte @@ -1,7 +1,7 @@ -
+
+
-
- - - Your Relays - - {#if $actionItems.length > 0} - - {/if} -
-

+ + + Your Relays + +

Relays are servers which store your data, or allow you to find data from across the Nostr network. We've set you up with some reasonable defaults, but if you're a power user, you can customize your relay selections below.