feat(Relays): added logic to manage relays #63
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sigit/sigit.io#63
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "relays-management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Closes #38
Intent
Relays
page in order to manage user's relays.Implementation
src/pages/relays/index.tsx
.src/store/relays
.authAndGetMetadataAndRelaysMap
method ofAuthController
to also get relay map.getRelayMap
andpublishRelayMap
methods toNostrController
.useAppDispatch
anduseAppSelector
hooks tosrc/hooks/store.ts
.compareObjects
utility tosrc/utils/utils.ts
.@ -377,0 +391,4 @@
npub: string
): Promise<{ map: RelayMap; mapUpdated: number }> => {
const mostPopularRelays = import.meta.env.VITE_MOST_POPULAR_RELAYS
const hardcodedPopularRelays = (mostPopularRelays || '').split(' ')
Does this mean we will not use a https://stats.nostr.band/stats_api?method=stats service to fetch most popular relays?
do we already use such an approach to fetch relays?
In the
MetadataController
we also use env.We do have in the other project, sending you link in the DM
@ -0,0 +205,4 @@
<Box className={styles.relaysContainer}>
{Object.keys(relayMap).map((relay, i) => (
<Box className={styles.relay} key={`relay_${i}`}>
<List>
I suggest implementing an indication (green/red dot) if the relay actually works. Because relay can be:
Good suggestion!
I think we should implement this feature later as it feels like nice to have, but is not crucial.
Pull request closed