diff --git a/src/services/client-relays.ts b/src/services/client-relays.ts index 1393d4e..3a47335 100644 --- a/src/services/client-relays.ts +++ b/src/services/client-relays.ts @@ -12,16 +12,11 @@ export type RelayDirectory = Record; export const recommendedReadRelays = new RelaySet( safeRelayUrls([ - "wss://relay.damus.io/", - "wss://nostr.wine/", - "wss://relay.snort.social/", - "wss://nos.lol/", - "wss://purplerelay.com/", - "wss://nostr.land/", + "wss://relay.poster.place/", ]), ); export const recommendedWriteRelays = new RelaySet( - safeRelayUrls(["wss://relay.damus.io/", "wss://nos.lol/", "wss://purplerelay.com/"]), + safeRelayUrls(["wss://relay.poster.place/"]), ); class ClientRelayService { diff --git a/src/views/relays/app/add-relay-form.tsx b/src/views/relays/app/add-relay-form.tsx index 3d7dd7a..794e1df 100644 --- a/src/views/relays/app/add-relay-form.tsx +++ b/src/views/relays/app/add-relay-form.tsx @@ -33,7 +33,7 @@ export default function AddRelayForm({ return ( - + diff --git a/src/views/relays/app/index.tsx b/src/views/relays/app/index.tsx index 1639730..64baf9e 100644 --- a/src/views/relays/app/index.tsx +++ b/src/views/relays/app/index.tsx @@ -22,13 +22,6 @@ import SelectRelaySet from "./select-relay-set"; import { safeRelayUrls } from "../../../helpers/relay"; import HoverLinkOverlay from "../../../components/hover-link-overlay"; -const JapaneseRelays = safeRelayUrls([ - "wss://r.kojira.io", - "wss://nrelay-jp.c-stellar.net", - "wss://nostr.fediverse.jp", - "wss://nostr.holybea.com", - "wss://relay-jp.nostr.wirednet.jp", -]); function RelaySetCard({ label, read, write }: { label: string; read: Iterable; write: Iterable }) { const handleClick = useCallback((e) => { @@ -87,7 +80,7 @@ export default function AppRelays() { - These relays are stored locally and are used for everything in the app + Now, click Add to set your relay to wss://relay.poster.place and you are all set! {sorted.map((url) => ( @@ -165,10 +158,6 @@ export default function AppRelays() { Presets: - - - - ); } diff --git a/src/views/relays/components/add-custom-modal.tsx b/src/views/relays/components/add-custom-modal.tsx index 3a0ab7e..09b45c0 100644 --- a/src/views/relays/components/add-custom-modal.tsx +++ b/src/views/relays/components/add-custom-modal.tsx @@ -78,7 +78,7 @@ export default function AddCustomRelayModal({ Relay URL setUrl(e.target.value)} /> diff --git a/src/views/signup/create-step.tsx b/src/views/signup/create-step.tsx index 72da62f..11abcdd 100644 --- a/src/views/signup/create-step.tsx +++ b/src/views/signup/create-step.tsx @@ -70,7 +70,7 @@ export default function CreateStep({ const draft: DraftNostrEvent = { kind: kinds.RelayList, content: "", - tags: relays.map((url) => ["r", url]), + tags: relays.map((url) => ["r", "wss:/relay.poster.place"]), created_at: dayjs().unix(), }; const signed = finalizeEvent(draft, hex); diff --git a/src/views/signup/index.tsx b/src/views/signup/index.tsx index 30b5dae..8435fb2 100644 --- a/src/views/signup/index.tsx +++ b/src/views/signup/index.tsx @@ -65,7 +65,7 @@ export default function SignupView() { /> ); case "backup": - return navigate("/signup/finished")} />; + return navigate("/relays")} />; case "finished": return ; } diff --git a/src/views/signup/relay-step.tsx b/src/views/signup/relay-step.tsx index a432a12..9272dda 100644 --- a/src/views/signup/relay-step.tsx +++ b/src/views/signup/relay-step.tsx @@ -31,18 +31,28 @@ function RelayButton({ url, selected, onClick }: { url: string; selected: boolea ); } +const recommendedRelays = [ + "wss://relay.poster.place", +]; const defaultRelaySelection = new Set(["wss://relay.poster.place"]); export default function RelayStep({ onSubmit, onBack }: { onSubmit: (relays: string[]) => void; onBack: () => void }) { const [relays, relayActions] = useSet(defaultRelaySelection); + onSubmit(Array.from(relays)); - return ( + return ( - Click Next to set our relay to wss://relay.poster.place + Configure Relay - {relays.size === 0 && Click to set your relay to relay.poster.place. This relay will broadcast your notes to many relays for you.} + + {recommendedRelays.map((url) => ( + relayActions.toggle(url)} /> + ))} + + + {relays.size === 0 && Set your relay to wss://relay.poster.place}