Skip to content

## Pull Request Overview #19

Description

@silentius-satoshi

Pull Request Overview

This PR implements following list functionality by adding the ability to fetch and display a user's followed contacts. The implementation includes efficient bulk user metadata fetching and a modal interface for browsing followed users.

Key changes:

  • Added two new hooks for fetching following data and bulk user profiles
  • Created a modal component to display the following list with user profiles
  • Updated the ProfileModal to include a clickable following count button

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/hooks/useFollowing.ts New hook to fetch user's contact list (kind 3 events) from Nostr
src/hooks/useAuthors.ts New hook for efficient bulk fetching of multiple user profiles
src/components/ProfileModal.tsx Added following count button and integration with following list modal
src/components/FollowingListModal.tsx New modal component displaying scrollable list of followed users
Comments suppressed due to low confidence (1)

src/hooks/useFollowing.ts:33

  • [nitpick] The unused first parameter should be explicitly named as '' to indicate it's intentionally ignored: .map(([, pubkey]) => pubkey)
        .map(([, pubkey]) => pubkey)

Originally posted by @Copilot in #10 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions